public class ApplicationComponentBean extends java.lang.Object implements ApplicationComponent
Accesses the properties of an ApplicationComponent
object
and adds metadata for national language support and converters.
An ApplicationComponentBean
object can be instantiated from
an ACOID
object.
Use the static method getLabel(String, Locale)
to
retrieve the localized label for a property.
Use the static method getConverter(String)
to
retrieve a converter for a property. The return value may be null because converters
are optional.
ApplicationComponent
,
Serialized FormModifier and Type | Field and Description |
---|---|
static java.lang.String |
BUSINESSRELEVANT_PROPERTY
Use the property name to determine labels and converters for the property
BusinessRelevant.
|
static java.lang.String |
COPYRIGHT
(C) Copyright IBM Corporation 2007.
|
static java.lang.String |
DURATIONUNTILDELETED_PROPERTY
Use the property name to determine labels and converters for the property
durationUntilDeleted.
|
static java.lang.String |
EVENTHANDLERNAME_PROPERTY
Use the property name to determine labels and converters for the property
eventHandlerName.
|
static java.lang.String |
ID_PROPERTY
Use the property name to determine labels and converters for the property
ID.
|
static java.lang.String |
NAME_PROPERTY
Use the property name to determine labels and converters for the property
name.
|
static java.lang.String |
SUBSTITUTIONPOLICY_PROPERTY
Use the property name to determine labels and converters for the property
substitutionPolicy.
|
static java.lang.String |
SUPPORTSAUTOMATICCLAIM_PROPERTY
Use the property name to determine labels and converters for the property
supportsAutomaticClaim.
|
static java.lang.String |
SUPPORTSCLAIMIFSUSPENDED_PROPERTY
Use the property name to determine labels and converters for the property
supportsClaimIfSuspended.
|
static java.lang.String |
SUPPORTSDELEGATION_PROPERTY
Use the property name to determine labels and converters for the property
supportsDelegation.
|
static java.lang.String |
SUPPORTSFOLLOWONTASKS_PROPERTY
Use the property name to determine labels and converters for the property
supportsFollowOnTasks.
|
static java.lang.String |
SUPPORTSSUBTASKS_PROPERTY
Use the property name to determine labels and converters for the property
supportsSubTasks.
|
SUBSTITUTION_POLICY_NO_SUBSTITUTION, SUBSTITUTION_POLICY_SELECT_USER_IF_PRESENT, SUBSTITUTION_POLICY_SUBSTITUTE_IF_ABSENT
Constructor and Description |
---|
ApplicationComponentBean(ApplicationComponent applicationComponent)
Constructs a
ApplicationComponentBean from an id. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCalendarName()
Returns the property
calendarName . |
static SimpleConverter |
getConverter(java.lang.String propertyName)
Returns the default converter for a given property.
|
java.lang.String |
getDurationUntilDeleted()
Returns the property
durationUntilDeleted . |
java.lang.String |
getEventHandlerName()
Returns the property
eventHandlerName . |
ACOID |
getID()
Returns the property
ID . |
java.lang.String |
getJNDINameOfCalendar()
Returns the property
jNDINameOfCalendar . |
java.lang.String |
getJNDINameOfStaffPluginProvider()
Returns the property
jNDINameOfStaffPluginProvider . |
static java.lang.String |
getLabel(java.lang.String propertyName)
Returns the resource bundle key for a property
|
static java.lang.String |
getLabel(java.lang.String propertyName,
java.util.Locale locale)
Returns the label for a property from the resource bundle.
|
java.lang.String |
getName()
Returns the property
name . |
int |
getSubstitutionPolicy()
Returns the property
substitutionPolicy . |
boolean |
isBusinessRelevant()
Returns the property
isBusinessRelevant . |
boolean |
isSupportsAutomaticClaim()
Returns the property
supportsAutomaticClaim . |
boolean |
isSupportsClaimIfSuspended()
Returns the property
supportsClaimIfSuspended . |
boolean |
isSupportsDelegation()
Returns the property
supportsDelegation . |
boolean |
isSupportsFollowOnTasks()
Returns the property
supportsFollowOnTasks . |
boolean |
isSupportsSubTasks()
Returns the property
supportsSubTasks . |
static boolean |
isValid(java.lang.String propertyName)
Checks if the property is valid.
|
boolean |
supportsAutomaticClaim()
Returns the property
supportsAutomaticClaim . |
boolean |
supportsClaimIfSuspended()
Returns the property
supportsClaimIfSuspended . |
boolean |
supportsDelegation()
Returns the property
supportsDelegation . |
boolean |
supportsFollowOnTasks()
Returns the property
supportsFollowOnTasks . |
boolean |
supportsSubTasks()
Returns the property
supportsSubTasks . |
public static final java.lang.String COPYRIGHT
public static final java.lang.String ID_PROPERTY
public static final java.lang.String NAME_PROPERTY
public static final java.lang.String BUSINESSRELEVANT_PROPERTY
public static final java.lang.String DURATIONUNTILDELETED_PROPERTY
public static final java.lang.String SUBSTITUTIONPOLICY_PROPERTY
public static final java.lang.String SUPPORTSAUTOMATICCLAIM_PROPERTY
public static final java.lang.String SUPPORTSDELEGATION_PROPERTY
public static final java.lang.String SUPPORTSSUBTASKS_PROPERTY
public static final java.lang.String SUPPORTSFOLLOWONTASKS_PROPERTY
public static final java.lang.String SUPPORTSCLAIMIFSUSPENDED_PROPERTY
public static final java.lang.String EVENTHANDLERNAME_PROPERTY
public ApplicationComponentBean(ApplicationComponent applicationComponent)
ApplicationComponentBean
from an id.applicationComponent
- The application component.public static SimpleConverter getConverter(java.lang.String propertyName)
propertyName
- The name for the property.public static java.lang.String getLabel(java.lang.String propertyName)
propertyName
- The name for the property.public static java.lang.String getLabel(java.lang.String propertyName, java.util.Locale locale)
propertyName
- The name for the property.locale
- The locale.public static boolean isValid(java.lang.String propertyName)
propertyName
- The name of the property to be checked.public ACOID getID()
ID
.getID
in interface ApplicationComponent
ApplicationComponent.getID()
public java.lang.String getName()
name
.getName
in interface ApplicationComponent
ApplicationComponent.getName()
public boolean isBusinessRelevant()
isBusinessRelevant
.isBusinessRelevant
in interface ApplicationComponent
ApplicationComponent.isBusinessRelevant()
public java.lang.String getDurationUntilDeleted()
durationUntilDeleted
.getDurationUntilDeleted
in interface ApplicationComponent
ApplicationComponent.getDurationUntilDeleted()
public java.lang.String getCalendarName()
calendarName
.getCalendarName
in interface ApplicationComponent
ApplicationComponent.getCalendarName()
public java.lang.String getJNDINameOfCalendar()
jNDINameOfCalendar
.getJNDINameOfCalendar
in interface ApplicationComponent
ApplicationComponent.getJNDINameOfCalendar()
public java.lang.String getJNDINameOfStaffPluginProvider()
jNDINameOfStaffPluginProvider
.getJNDINameOfStaffPluginProvider
in interface ApplicationComponent
ApplicationComponent.getJNDINameOfStaffPluginProvider()
public int getSubstitutionPolicy()
substitutionPolicy
.getSubstitutionPolicy
in interface ApplicationComponent
ApplicationComponent.getSubstitutionPolicy()
public boolean isSupportsAutomaticClaim()
supportsAutomaticClaim
.public boolean isSupportsDelegation()
supportsDelegation
.public boolean isSupportsSubTasks()
supportsSubTasks
.public boolean isSupportsFollowOnTasks()
supportsFollowOnTasks
.public boolean isSupportsClaimIfSuspended()
supportsClaimIfSuspended
.public boolean supportsAutomaticClaim()
supportsAutomaticClaim
.supportsAutomaticClaim
in interface ApplicationComponent
ApplicationComponent.supportsAutomaticClaim()
public boolean supportsDelegation()
supportsDelegation
.supportsDelegation
in interface ApplicationComponent
ApplicationComponent.supportsDelegation()
public boolean supportsSubTasks()
supportsSubTasks
.supportsSubTasks
in interface ApplicationComponent
ApplicationComponent.supportsSubTasks()
public boolean supportsFollowOnTasks()
supportsFollowOnTasks
.supportsFollowOnTasks
in interface ApplicationComponent
ApplicationComponent.supportsFollowOnTasks()
public boolean supportsClaimIfSuspended()
supportsClaimIfSuspended
.supportsClaimIfSuspended
in interface ApplicationComponent
ApplicationComponent.supportsClaimIfSuspended()
public java.lang.String getEventHandlerName()
eventHandlerName
.getEventHandlerName
in interface ApplicationComponent
ApplicationComponent.getEventHandlerName()