|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ibm.itim.dataservices.model.EntityLifecycleProfile
public class EntityLifecycleProfile
This class implements the ManagableProfile interface for entities themselves. This class will only be used by entities which have lifecycle operations defined at the instance level vs. at the ObjectProfile level. Only the operations defined at the instance level will be available through this class. Any that are not defined at the instance level, but defined at the profile level must be obtained from the ObjectProfile directly.
| Field Summary | |
|---|---|
static java.lang.String |
LIFECYCLE_ATTR_OPERATION
String constant for the operation xml. |
static java.lang.String |
LIFECYCLE_ATTR_TARGET
String constant for the entity target attribute. |
| Constructor Summary | |
|---|---|
EntityLifecycleProfile(java.util.Collection operations)
Constructs the entity lifecycle profile with parameters. |
|
| Method Summary | |
|---|---|
void |
addOperation(ObjectProfileOperation operation)
Adds a new operation to the list of supported operations for the entity. |
void |
addRule(LifecycleRule rule)
Adds a new lifecycle rule to the list of supported lifecycle rules for the profile |
DistinguishedName |
getDistinguishedName()
Returns the distinguished name of the entity. |
DistinguishedName |
getEntityTarget()
Returns the distinguished name of the entity that the profile is defined for. |
java.lang.String |
getName()
Returns the name of the object |
ObjectProfileOperation |
getOperation(java.lang.String name)
Returns a specific operation by name. |
java.util.Collection |
getOperationNames()
Returns the supported operations for the entity |
java.util.Collection |
getOperations()
Returns the supported operations for the entity. |
LifecycleRule |
getRule(long ruleID)
Returns the supported lifecycle rules for the profile for a given id. |
java.util.Collection |
getRules()
Returns the supported lifecycle rules for the profile |
void |
removeOperation(java.lang.String operationName)
Removes an operation from the list of supported operations. |
void |
removeRule(long ruleID)
Removes the supported rules for the profile |
void |
setOperation(ObjectProfileOperation oper)
Modifies a specific operation by name. |
void |
setOperations(java.util.Collection operations)
Sets the supported operations for the entity. |
void |
setRule(LifecycleRule rule)
Sets the supported rule for the profile. |
void |
setRules(java.util.Collection rules)
Sets the supported rules for the profile. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static java.lang.String LIFECYCLE_ATTR_OPERATION
public static java.lang.String LIFECYCLE_ATTR_TARGET
| Constructor Detail |
|---|
public EntityLifecycleProfile(java.util.Collection operations)
operations - Collection of ObjectProfileOperations.| Method Detail |
|---|
public java.lang.String getName()
getName in interface ManagableProfilepublic DistinguishedName getDistinguishedName()
getDistinguishedName in interface ManagableProfilepublic DistinguishedName getEntityTarget()
public java.util.Collection getOperations()
getOperations in interface ManagableProfilepublic java.util.Collection getOperationNames()
getOperationNames in interface ManagableProfilepublic ObjectProfileOperation getOperation(java.lang.String name)
getOperation in interface ManagableProfilename - The name of the operation.
public void setOperations(java.util.Collection operations)
throws java.lang.ClassCastException
setOperations in interface ManagableProfileoperations - Collection of supported ObjectProfileOperations.
java.lang.ClassCastExceptionpublic void addOperation(ObjectProfileOperation operation)
addOperation in interface ManagableProfileoperation - ObjectProfileOperation to add.
public void setOperation(ObjectProfileOperation oper)
throws ObjectNotFoundException
setOperation in interface ManagableProfileoper - ObjectProfileOperation to modify.
ObjectNotFoundException - Thrown if operation is not currently in
the profile.
public void removeOperation(java.lang.String operationName)
throws ObjectNotFoundException,
ModelException
removeOperation in interface ManagableProfileoperationName - Name of the operation to remove.
ObjectNotFoundException - Thrown if operation with name is
not currently in the profile.
ModelException - Thrown if unable to remove the operation.public java.util.Collection getRules()
getRules in interface ManagableProfile
public void setRules(java.util.Collection rules)
throws java.lang.ClassCastException
setRules in interface ManagableProfilerules - Collection of supported LifecycleRule
java.lang.ClassCastExceptionpublic void setRule(LifecycleRule rule)
setRule in interface ManagableProfilerule - A modified lifecycle rule.public LifecycleRule getRule(long ruleID)
getRule in interface ManagableProfileruleID - the identification number of the lifecycle rule.
The identification number is obtained from getRules().
public void addRule(LifecycleRule rule)
addRule in interface ManagableProfilerule - A new lifecycle rule.
public void removeRule(long ruleID)
throws ObjectNotFoundException
removeRule in interface ManagableProfileruleID - identifier of supported LifecycleRule
ObjectNotFoundException - Thrown if unable to locate the lifecycle rule.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||