com.ibm.task.clientmodel.bean
Class ApplicationComponentBean

java.lang.Object
  extended by 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:
ApplicationComponent, Serialized Form

Field Summary
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.
 
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
ApplicationComponentBean(ApplicationComponent applicationComponent)
          Constructs a ApplicationComponentBean from an id.
 
Method Summary
 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.
 
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:
Constant Field Values

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:
Constant Field Values

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:
Constant Field Values

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:
Constant Field Values

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:
Constant Field Values

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:
Constant Field Values

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:
Constant Field Values

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:
Constant Field Values

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:
Constant Field Values

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:
Constant Field Values

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:
Constant Field Values

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:
Constant Field Values
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:
ApplicationComponent.getID()

getName

public java.lang.String getName()
Returns the property name.

Specified by:
getName in interface ApplicationComponent
See Also:
ApplicationComponent.getName()

isBusinessRelevant

public boolean isBusinessRelevant()
Returns the property isBusinessRelevant.

Specified by:
isBusinessRelevant in interface ApplicationComponent
See Also:
ApplicationComponent.isBusinessRelevant()

getDurationUntilDeleted

public java.lang.String getDurationUntilDeleted()
Returns the property durationUntilDeleted.

Specified by:
getDurationUntilDeleted in interface ApplicationComponent
See Also:
ApplicationComponent.getDurationUntilDeleted()

getCalendarName

public java.lang.String getCalendarName()
Returns the property calendarName.

Specified by:
getCalendarName in interface ApplicationComponent
See Also:
ApplicationComponent.getCalendarName()

getJNDINameOfCalendar

public java.lang.String getJNDINameOfCalendar()
Returns the property jNDINameOfCalendar.

Specified by:
getJNDINameOfCalendar in interface ApplicationComponent
See Also:
ApplicationComponent.getJNDINameOfCalendar()

getJNDINameOfStaffPluginProvider

public java.lang.String getJNDINameOfStaffPluginProvider()
Returns the property jNDINameOfStaffPluginProvider.

Specified by:
getJNDINameOfStaffPluginProvider in interface ApplicationComponent
See Also:
ApplicationComponent.getJNDINameOfStaffPluginProvider()

getSubstitutionPolicy

public int getSubstitutionPolicy()
Returns the property substitutionPolicy.

Specified by:
getSubstitutionPolicy in interface ApplicationComponent
See Also:
ApplicationComponent.getSubstitutionPolicy()

isSupportsAutomaticClaim

public boolean isSupportsAutomaticClaim()
Returns the property supportsAutomaticClaim.

See Also:
ApplicationComponent.supportsAutomaticClaim()

isSupportsDelegation

public boolean isSupportsDelegation()
Returns the property supportsDelegation.

See Also:
ApplicationComponent.supportsDelegation()

isSupportsSubTasks

public boolean isSupportsSubTasks()
Returns the property supportsSubTasks.

See Also:
ApplicationComponent.supportsSubTasks()

isSupportsFollowOnTasks

public boolean isSupportsFollowOnTasks()
Returns the property supportsFollowOnTasks.

See Also:
ApplicationComponent.supportsFollowOnTasks()

isSupportsClaimIfSuspended

public boolean isSupportsClaimIfSuspended()
Returns the property supportsClaimIfSuspended.

See Also:
ApplicationComponent.supportsClaimIfSuspended()

supportsAutomaticClaim

public boolean supportsAutomaticClaim()
Returns the property supportsAutomaticClaim.

Specified by:
supportsAutomaticClaim in interface ApplicationComponent
See Also:
ApplicationComponent.supportsAutomaticClaim()

supportsDelegation

public boolean supportsDelegation()
Returns the property supportsDelegation.

Specified by:
supportsDelegation in interface ApplicationComponent
See Also:
ApplicationComponent.supportsDelegation()

supportsSubTasks

public boolean supportsSubTasks()
Returns the property supportsSubTasks.

Specified by:
supportsSubTasks in interface ApplicationComponent
See Also:
ApplicationComponent.supportsSubTasks()

supportsFollowOnTasks

public boolean supportsFollowOnTasks()
Returns the property supportsFollowOnTasks.

Specified by:
supportsFollowOnTasks in interface ApplicationComponent
See Also:
ApplicationComponent.supportsFollowOnTasks()

supportsClaimIfSuspended

public boolean supportsClaimIfSuspended()
Returns the property supportsClaimIfSuspended.

Specified by:
supportsClaimIfSuspended in interface ApplicationComponent
See Also:
ApplicationComponent.supportsClaimIfSuspended()

getEventHandlerName

public java.lang.String getEventHandlerName()
Returns the property eventHandlerName.

Specified by:
getEventHandlerName in interface ApplicationComponent
See Also:
ApplicationComponent.getEventHandlerName()