com.ibm.task.clientmodel.bean
Class ApplicationComponentBean
- java.lang.Object
com.ibm.task.clientmodel.bean.ApplicationComponentBean
All implemented interfaces:
ApplicationComponent, java.io.Serializable
- 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.
See Also:
Field Summary
Modifier and Type | Field and Description |
---|---|
|
BUSINESSRELEVANT_PROPERTY
Use the property name to determine labels and converters for the property
BusinessRelevant.
|
|
COPYRIGHT
(C) Copyright IBM Corporation 2007.
|
|
DURATIONUNTILDELETED_PROPERTY
Use the property name to determine labels and converters for the property
durationUntilDeleted.
|
|
EVENTHANDLERNAME_PROPERTY
Use the property name to determine labels and converters for the property
eventHandlerName.
|
|
ID_PROPERTY
Use the property name to determine labels and converters for the property
ID.
|
|
NAME_PROPERTY
Use the property name to determine labels and converters for the property
name.
|
|
SUBSTITUTIONPOLICY_PROPERTY
Use the property name to determine labels and converters for the property
substitutionPolicy.
|
|
SUPPORTSAUTOMATICCLAIM_PROPERTY
Use the property name to determine labels and converters for the property
supportsAutomaticClaim.
|
|
SUPPORTSCLAIMIFSUSPENDED_PROPERTY
Use the property name to determine labels and converters for the property
supportsClaimIfSuspended.
|
|
SUPPORTSDELEGATION_PROPERTY
Use the property name to determine labels and converters for the property
supportsDelegation.
|
|
SUPPORTSFOLLOWONTASKS_PROPERTY
Use the property name to determine labels and converters for the property
supportsFollowOnTasks.
|
|
SUPPORTSSUBTASKS_PROPERTY
Use the property name to determine labels and converters for the property
supportsSubTasks.
|
Fields inherited from interface com.ibm.task.api.ApplicationComponent |
---|
SUBSTITUTION_POLICY_NO_SUBSTITUTION, SUBSTITUTION_POLICY_SELECT_USER_IF_PRESENT, SUBSTITUTION_POLICY_SUBSTITUTE_IF_ABSENT |
Constructor Summary
Constructor and Description |
---|
ApplicationComponentBean(ApplicationComponent applicationComponent)
Constructs a
ApplicationComponentBean from an id.
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
getCalendarName()
Returns the property
calendarName .
|
|
getConverter(java.lang.String propertyName)
Returns the default converter for a given property.
|
|
getDurationUntilDeleted()
Returns the property
durationUntilDeleted .
|
|
getEventHandlerName()
Returns the property
eventHandlerName .
|
getID()
Returns the property
ID .
|
|
|
getJNDINameOfCalendar()
Returns the property
jNDINameOfCalendar .
|
|
getJNDINameOfStaffPluginProvider()
Returns the property
jNDINameOfStaffPluginProvider .
|
|
getLabel(java.lang.String propertyName)
Returns the resource bundle key for a property
|
|
getLabel(java.lang.String propertyName,java.util.Locale locale)
Returns the label for a property from the resource bundle.
|
|
getName()
Returns the property
name .
|
|
getSubstitutionPolicy()
Returns the property
substitutionPolicy .
|
|
isBusinessRelevant()
Returns the property
isBusinessRelevant .
|
|
isSupportsAutomaticClaim()
Returns the property
supportsAutomaticClaim .
|
|
isSupportsClaimIfSuspended()
Returns the property
supportsClaimIfSuspended .
|
|
isSupportsDelegation()
Returns the property
supportsDelegation .
|
|
isSupportsFollowOnTasks()
Returns the property
supportsFollowOnTasks .
|
|
isSupportsSubTasks()
Returns the property
supportsSubTasks .
|
|
isValid(java.lang.String propertyName)
Checks if the property is valid.
|
|
supportsAutomaticClaim()
Returns the property
supportsAutomaticClaim .
|
|
supportsClaimIfSuspended()
Returns the property
supportsClaimIfSuspended .
|
|
supportsDelegation()
Returns the property
supportsDelegation .
|
|
supportsFollowOnTasks()
Returns the property
supportsFollowOnTasks .
|
|
supportsSubTasks()
Returns the property
supportsSubTasks .
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail
COPYRIGHT
- public static final java.lang.String COPYRIGHT
(C) Copyright IBM Corporation 2007.
See Also:
ID_PROPERTY
- public static final java.lang.String ID_PROPERTY
Use the property name to determine labels and converters for the property
ID.
See Also:
NAME_PROPERTY
- public static final java.lang.String NAME_PROPERTY
Use the property name to determine labels and converters for the property
name.
See Also:
BUSINESSRELEVANT_PROPERTY
- public static final java.lang.String BUSINESSRELEVANT_PROPERTY
Use the property name to determine labels and converters for the property
BusinessRelevant.
See Also:
DURATIONUNTILDELETED_PROPERTY
- public static final java.lang.String DURATIONUNTILDELETED_PROPERTY
Use the property name to determine labels and converters for the property
durationUntilDeleted.
See Also:
SUBSTITUTIONPOLICY_PROPERTY
- public static final java.lang.String SUBSTITUTIONPOLICY_PROPERTY
Use the property name to determine labels and converters for the property
substitutionPolicy.
See Also:
SUPPORTSAUTOMATICCLAIM_PROPERTY
- public static final java.lang.String SUPPORTSAUTOMATICCLAIM_PROPERTY
Use the property name to determine labels and converters for the property
supportsAutomaticClaim.
See Also:
SUPPORTSDELEGATION_PROPERTY
- public static final java.lang.String SUPPORTSDELEGATION_PROPERTY
Use the property name to determine labels and converters for the property
supportsDelegation.
See Also:
SUPPORTSSUBTASKS_PROPERTY
- public static final java.lang.String SUPPORTSSUBTASKS_PROPERTY
Use the property name to determine labels and converters for the property
supportsSubTasks.
See Also:
SUPPORTSFOLLOWONTASKS_PROPERTY
- public static final java.lang.String SUPPORTSFOLLOWONTASKS_PROPERTY
Use the property name to determine labels and converters for the property
supportsFollowOnTasks.
See Also:
SUPPORTSCLAIMIFSUSPENDED_PROPERTY
- public static final java.lang.String SUPPORTSCLAIMIFSUSPENDED_PROPERTY
Use the property name to determine labels and converters for the property
supportsClaimIfSuspended.
See Also:
EVENTHANDLERNAME_PROPERTY
- public static final java.lang.String EVENTHANDLERNAME_PROPERTY
Use the property name to determine labels and converters for the property
eventHandlerName.
See Also:
Constructor Detail
ApplicationComponentBean
- public ApplicationComponentBean( ApplicationComponent applicationComponent)
Constructs a
ApplicationComponentBean
from an id.
Parameters:
applicationComponent
- The application component. Method Detail
getConverter
- public static SimpleConverter getConverter( java.lang.String propertyName)
Returns the default converter for a given property.
Parameters:
propertyName
- The name for the property. Returns:
The converter instance if one has been registered with
propertyName, null otherwise.
getLabel
- public static java.lang.String getLabel( java.lang.String propertyName)
Returns the resource bundle key for a property
Parameters:
propertyName
- The name for the property. Returns:
The resource bundle key for the property.
getLabel
- public static java.lang.String getLabel( java.lang.String propertyName,
- java.util.Locale locale)
Returns the label for a property from the resource bundle.
If no label is found in the resource bundle the resource bundle key for the property is returned.
Parameters:
propertyName
- The name for the property. locale
- The locale. Returns:
The label or the resource bundle key for the property.
isValid
- public static boolean isValid(java.lang.String propertyName)
Checks if the property is valid.
Parameters:
propertyName
- The name of the property to be checked. Returns:
True, if the propertyName is a known property for an object of this
class.
getID
- public ACOID getID()
Returns the property
ID
.
Specified by:
getID
in interface ApplicationComponent
See Also:
getName
- public java.lang.String getName( )
Returns the property
name
.
Specified by:
getName
in interface ApplicationComponent
See Also:
isBusinessRelevant
- public boolean isBusinessRelevant( )
Returns the property
isBusinessRelevant
.
Specified by:
isBusinessRelevant
in interface ApplicationComponent
getDurationUntilDeleted
- public java.lang.String getDurationUntilDeleted( )
Returns the property
durationUntilDeleted
.
Specified by:
getDurationUntilDeleted
in interface ApplicationComponent
getCalendarName
- public java.lang.String getCalendarName( )
Returns the property
calendarName
.
Specified by:
getCalendarName
in interface ApplicationComponent
See Also:
getJNDINameOfCalendar
- public java.lang.String getJNDINameOfCalendar( )
Returns the property
jNDINameOfCalendar
.
Specified by:
getJNDINameOfCalendar
in interface ApplicationComponent
getJNDINameOfStaffPluginProvider
- public java.lang.String getJNDINameOfStaffPluginProvider( )
Returns the property
jNDINameOfStaffPluginProvider
.
Specified by:
getJNDINameOfStaffPluginProvider
in interface ApplicationComponent
getSubstitutionPolicy
- public int getSubstitutionPolicy( )
Returns the property
substitutionPolicy
.
Specified by:
getSubstitutionPolicy
in interface ApplicationComponent
isSupportsAutomaticClaim
- public boolean isSupportsAutomaticClaim( )
Returns the property
supportsAutomaticClaim
.
isSupportsDelegation
- public boolean isSupportsDelegation( )
Returns the property
supportsDelegation
.
isSupportsSubTasks
- public boolean isSupportsSubTasks( )
Returns the property
supportsSubTasks
.
See Also:
isSupportsFollowOnTasks
- public boolean isSupportsFollowOnTasks( )
Returns the property
supportsFollowOnTasks
.
isSupportsClaimIfSuspended
- public boolean isSupportsClaimIfSuspended( )
Returns the property
supportsClaimIfSuspended
.
supportsAutomaticClaim
- public boolean supportsAutomaticClaim( )
Returns the property
supportsAutomaticClaim
.
Specified by:
supportsAutomaticClaim
in interface ApplicationComponent
supportsDelegation
- public boolean supportsDelegation( )
Returns the property
supportsDelegation
.
Specified by:
supportsDelegation
in interface ApplicationComponent
supportsSubTasks
- public boolean supportsSubTasks( )
Returns the property
supportsSubTasks
.
Specified by:
supportsSubTasks
in interface ApplicationComponent
See Also:
supportsFollowOnTasks
- public boolean supportsFollowOnTasks( )
Returns the property
supportsFollowOnTasks
.
Specified by:
supportsFollowOnTasks
in interface ApplicationComponent
supportsClaimIfSuspended
- public boolean supportsClaimIfSuspended( )
Returns the property
supportsClaimIfSuspended
.
Specified by:
supportsClaimIfSuspended
in interface ApplicationComponent
getEventHandlerName
- public java.lang.String getEventHandlerName( )
Returns the property
eventHandlerName
.
Specified by:
getEventHandlerName
in interface ApplicationComponent