|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.itim.dataservices.model.ObjectProfile
public class ObjectProfile
Value Object class that holds the attribute data of an object profile.
ObjectProfileEntity
,
Serialized FormField Summary | |
---|---|
static java.lang.String |
ACCOUNT_ATTR_PASSWORD
|
static java.lang.String |
DAO_CLASS
|
static java.lang.String |
DESCRIPTION_ATTR
String constant for the description. |
static java.lang.String |
ER_XML
String constant for the operation xml. |
static java.lang.String |
MANAGE_GROUP
String constant property key to determ if this profile supports group management. |
static java.lang.String |
OBJ_PROFILE_ATTR_CATEGORY
String constant for the category attribute name. |
static java.lang.String |
OBJ_PROFILE_ATTR_CUSTOM_CLASS
String constant for the class attribute name. |
static java.lang.String |
OBJ_PROFILE_ATTR_MAP
String constant for the attribute map attribute name. |
static java.lang.String |
OBJ_PROFILE_ATTR_NAME
String constant for the naming attribute name. |
static java.lang.String |
OBJ_PROFILE_ATTR_PROPS
String constant for the custom properties of the profile. |
static java.lang.String |
OBJ_PROFILE_ATTR_RDN
String constant for the rdn attribute name. |
static java.lang.String |
OBJ_PROFILE_ATTR_SEARCH
String constant for the search attribute name. |
static java.lang.String |
OBJ_PROFILE_RULES_ATTR
String constant for the lifecycle rule xml. |
static java.lang.String |
OWNERSHIP_TYPE_ATTR
String constant for ownership type |
Constructor Summary | |
---|---|
ObjectProfile(DistinguishedName dn,
java.lang.String category,
java.lang.String name,
java.lang.String customClass,
java.lang.String nameAttr,
java.util.Map<java.lang.String,java.lang.String> attrMap,
java.util.Collection<java.lang.String> searchAttr,
java.util.Collection operations,
java.util.Collection complianceRules)
Deprecated. Use ObjectProfile(DistinguishedName,Map,Collection,Collection,AttributeValues) instead. |
|
ObjectProfile(DistinguishedName dn,
java.lang.String category,
java.lang.String name,
java.lang.String customClass,
java.lang.String nameAttr,
java.util.Map<java.lang.String,java.lang.String> attrMap,
java.lang.String searchAttr,
java.util.Collection operations,
java.util.Collection complianceRules)
Deprecated. Use ObjectProfile(DistinguishedName,String,String,String,Map,Collection, Collection,Collection) instead. |
|
ObjectProfile(DistinguishedName dn,
java.lang.String category,
java.lang.String name,
java.lang.String customClass,
java.lang.String nameAttr,
java.util.Map attrMap,
java.lang.String searchAttr)
Deprecated. Use ObjectProfile(DistinguishedName,String,String,String,Map,Collection) instead. |
|
ObjectProfile(DistinguishedName dn,
java.lang.String category,
java.lang.String name,
java.lang.String customClass,
java.lang.String nameAttr,
java.util.Map attrMap,
java.lang.String searchAttr,
java.util.Collection operations)
Deprecated. Use ObjectProfile(String,String,String,String,Map,Collection) instead. |
|
ObjectProfile(java.lang.String category,
java.lang.String name,
java.lang.String customClass,
java.lang.String nameAttr,
java.util.Map<java.lang.String,java.lang.String> attrMap,
java.util.Collection<java.lang.String> searchAttr)
Constructs a new ObjectProfile object. |
|
ObjectProfile(java.lang.String category,
java.lang.String name,
java.lang.String customClass,
java.lang.String nameAttr,
java.util.Map<java.lang.String,java.lang.String> attrMap,
java.util.Collection<java.lang.String> searchAttr,
AttributeValues avs)
Constructs a new ObjectProfile object. |
|
ObjectProfile(java.lang.String category,
java.lang.String name,
java.lang.String customClass,
java.lang.String nameAttr,
java.util.Map<java.lang.String,java.lang.String> attrMap,
java.lang.String searchAttr)
Constructs a new ObjectProfile object. |
Method Summary | |
---|---|
void |
addOperation(ObjectProfileOperation oper)
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 |
java.util.Map<java.lang.String,java.lang.String> |
getAttributeMap()
Returns the map of semantic attributes to class attributes. |
java.lang.String |
getCategory()
Returns the category of the profile (i.e., Person, Account, Service). |
java.lang.String |
getCustomClass()
Returns the data store class. |
java.util.Properties |
getCustomProperties()
Returns the properties for the profile. |
java.lang.String |
getDaoClassName()
|
DistinguishedName |
getDistinguishedName()
Gets the DistinguishedName of this ObjectProfile object. |
java.lang.String |
getMappedAttribute(java.lang.String attrName)
Returns the class attribute mapped to the given semantic attribute. |
java.lang.String |
getName()
Returns the profile's name. |
java.lang.String |
getNameAttribute()
Returns the naming attriute of the data store class (i.e., cn). |
ObjectProfileOperation |
getOperation(java.lang.String name)
Returns a specific operation by name |
java.util.Collection<java.lang.String> |
getOperationNames()
Returns the supported operations for the entity |
java.util.Collection<ObjectProfileOperation> |
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<LifecycleRule> |
getRules()
Returns the supported lifecycle rules for the profile |
java.lang.String |
getSearchAttribute()
Returns the default search attribute for the data store class. |
java.util.Collection<java.lang.String> |
getSearchAttributes()
Returns the a list of search attributes for the data store class. |
DistinguishedName |
getTenantDN()
Returns the distinguished name of the tenant this profile applies to. |
boolean |
isPasswordAttributeExist()
Returns whether a password attribute exists for this data store class. |
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 |
setAttributeMap(java.util.Map<java.lang.String,java.lang.String> attrMap)
Changes the map of semantic attributes to class attributes. |
void |
setCategory(java.lang.String category)
Changes the category of the entity. |
void |
setCustomClass(java.lang.String className)
Changes the data store class. |
void |
setName(java.lang.String name)
Changes the profile's name. |
void |
setNameAttribute(java.lang.String nameAttr)
Change the naming attribute of the data store class. |
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. |
void |
setSearchAttribute(java.util.Collection<java.lang.String> searchAttr)
Change the search attributes of the data store class. |
void |
setSearchAttribute(java.lang.String searchAttr)
Deprecated. Use setSearchAttribute(Collection) instead. |
void |
setTenantDN(DistinguishedName tenantDN)
Sets the distinguished name for the tenant this object resides in. |
java.lang.String |
toString()
Returns the name of the object profile. |
java.lang.String |
toXML()
Returns the name of the object profile. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static java.lang.String OBJ_PROFILE_ATTR_NAME
public static java.lang.String OBJ_PROFILE_ATTR_CATEGORY
public static java.lang.String OBJ_PROFILE_ATTR_CUSTOM_CLASS
public static java.lang.String OBJ_PROFILE_ATTR_RDN
public static java.lang.String OBJ_PROFILE_ATTR_SEARCH
public static java.lang.String OBJ_PROFILE_ATTR_MAP
public static java.lang.String ER_XML
public static final java.lang.String OBJ_PROFILE_RULES_ATTR
public static java.lang.String OBJ_PROFILE_ATTR_PROPS
public static final java.lang.String DESCRIPTION_ATTR
public static final java.lang.String MANAGE_GROUP
public static final java.lang.String OWNERSHIP_TYPE_ATTR
public static final java.lang.String DAO_CLASS
public static java.lang.String ACCOUNT_ATTR_PASSWORD
Constructor Detail |
---|
public ObjectProfile(java.lang.String category, java.lang.String name, java.lang.String customClass, java.lang.String nameAttr, java.util.Map<java.lang.String,java.lang.String> attrMap, java.lang.String searchAttr)
category
- Name of the category.name
- Name of the object profile.customClass
- Name of the data store class.nameAttr
- Attribute to use as the name of an entry defined by
this profile.attrMap
- A mapping of semantic attributes to class attributes
(may be null).searchAttr
- Attribute to use when searching entries defined by
this profile.public ObjectProfile(java.lang.String category, java.lang.String name, java.lang.String customClass, java.lang.String nameAttr, java.util.Map<java.lang.String,java.lang.String> attrMap, java.util.Collection<java.lang.String> searchAttr)
category
- Name of the category.name
- Name of the object profile.customClass
- Name of the data store class.nameAttr
- Attribute to use as the name of an entry defined by
this profile.attrMap
- A mapping of semantic attributes to class attributes
(may be null).searchAttr
- A list of attributes to use when searching entries defined by
this profile.public ObjectProfile(java.lang.String category, java.lang.String name, java.lang.String customClass, java.lang.String nameAttr, java.util.Map<java.lang.String,java.lang.String> attrMap, java.util.Collection<java.lang.String> searchAttr, AttributeValues avs)
category
- Name of the category.name
- Name of the object profile.customClass
- Name of the data store class.nameAttr
- Attribute to use as the name of an entry defined by
this profile.attrMap
- A mapping of semantic attributes to class attributes
(may be null).searchAttr
- A list of attributes to use when searching entries defined by
this profile.public ObjectProfile(DistinguishedName dn, java.lang.String category, java.lang.String name, java.lang.String customClass, java.lang.String nameAttr, java.util.Map attrMap, java.lang.String searchAttr)
dn
- DistinguishedName of the profile.category
- Name of the category.name
- Name of the object profile.customClass
- Name of the data store class.nameAttr
- Attribute to use as the name of an entry defined by
this profile.attrMap
- A mapping of semantic attributes to class attributes.searchAttr
- Attribute to use when searching entries defined by
this profile.public ObjectProfile(DistinguishedName dn, java.lang.String category, java.lang.String name, java.lang.String customClass, java.lang.String nameAttr, java.util.Map attrMap, java.lang.String searchAttr, java.util.Collection operations)
dn
- DistinguishedName of the profile.category
- Name of the category.name
- Name of the object profile.customClass
- Name of the data store class.nameAttr
- Attribute to use as the name of an entry defined by
this profile.attrMap
- A mapping of semantic attributes to class attributes.searchAttr
- Attribute to use when searching entries defined by
this profile.operations
- Collection of operations for this profilepublic ObjectProfile(DistinguishedName dn, java.lang.String category, java.lang.String name, java.lang.String customClass, java.lang.String nameAttr, java.util.Map<java.lang.String,java.lang.String> attrMap, java.lang.String searchAttr, java.util.Collection operations, java.util.Collection complianceRules)
dn
- DistinguishedName of the profile.category
- Name of the category.name
- Name of the object profile.customClass
- Name of the data store class.nameAttr
- Attribute to use as the name of an entry defined by
this profile.attrMap
- A mapping of semantic attributes to class attributes.searchAttr
- Attribute to use when searching entries defined by
this profile.operations
- Collection of operations for this profilecomplianceRules
- Collection of compliance rules for this profilepublic ObjectProfile(DistinguishedName dn, java.lang.String category, java.lang.String name, java.lang.String customClass, java.lang.String nameAttr, java.util.Map<java.lang.String,java.lang.String> attrMap, java.util.Collection<java.lang.String> searchAttr, java.util.Collection operations, java.util.Collection complianceRules)
dn
- DistinguishedName of the profile.category
- Name of the category.name
- Name of the object profile.customClass
- Name of the data store class.nameAttr
- Attribute to use as the name of an entry defined by
this profile.attrMap
- A mapping of semantic attributes to class attributes.searchAttr
- Attribute to use when searching entries defined by
this profile.operations
- Collection of operations for this profilecomplianceRules
- Collection of compliance rules for this profileMethod Detail |
---|
public DistinguishedName getDistinguishedName()
getDistinguishedName
in interface ManagableProfile
public DistinguishedName getTenantDN()
public void setTenantDN(DistinguishedName tenantDN)
tenantDN
- The DistinguishedName of the tenant.public java.lang.String getName()
getName
in interface ManagableProfile
public void setName(java.lang.String name)
name
- String name of the profile.public java.lang.String getCategory()
public void setCategory(java.lang.String category)
category
- String category to change to.public java.lang.String getMappedAttribute(java.lang.String attrName)
public java.util.Map<java.lang.String,java.lang.String> getAttributeMap()
public void setAttributeMap(java.util.Map<java.lang.String,java.lang.String> attrMap)
attrMap
- Map of attributes. The key of the map is the semantic
attribute name and the value is the raw (physical) attribute name.public java.lang.String getCustomClass()
public void setCustomClass(java.lang.String className)
className
- String class name.public java.lang.String getNameAttribute()
public void setNameAttribute(java.lang.String nameAttr)
nameAttr
- String attribute name.public java.lang.String getSearchAttribute()
public java.util.Collection<java.lang.String> getSearchAttributes()
public void setSearchAttribute(java.lang.String searchAttr)
searchAttr
- String attribute name.public void setSearchAttribute(java.util.Collection<java.lang.String> searchAttr)
searchAttr
- a list of attribute names (String).public boolean isPasswordAttributeExist()
public java.util.Properties getCustomProperties()
public java.util.Collection<ObjectProfileOperation> getOperations()
getOperations
in interface ManagableProfile
public java.util.Collection<java.lang.String> getOperationNames()
getOperationNames
in interface ManagableProfile
public ObjectProfileOperation getOperation(java.lang.String name)
getOperation
in interface ManagableProfile
name
- The name of the operation
public void setOperations(java.util.Collection operations) throws java.lang.ClassCastException
setOperations
in interface ManagableProfile
operations
- Collection of supported ObjectProfileOperation
java.lang.ClassCastException
public void addOperation(ObjectProfileOperation oper)
addOperation
in interface ManagableProfile
oper
- Operation name to add.public void setOperation(ObjectProfileOperation oper) throws ObjectNotFoundException
setOperation
in interface ManagableProfile
oper
- The new operation definition
ObjectNotFoundException
public void removeOperation(java.lang.String operationName) throws ObjectNotFoundException, ModelException
removeOperation
in interface ManagableProfile
operationName
- Operation name to remove.
ObjectNotFoundException
ModelException
public java.util.Collection<LifecycleRule> getRules()
getRules
in interface ManagableProfile
public void setRules(java.util.Collection rules) throws java.lang.ClassCastException
setRules
in interface ManagableProfile
rules
- Collection of supported LifecycleRule
java.lang.ClassCastException
public void setRule(LifecycleRule rule)
setRule
in interface ManagableProfile
rule
- A modified lifecycle rule.public LifecycleRule getRule(long ruleID)
getRule
in interface ManagableProfile
ruleID
- the identification number of the lifecycle rule.
The identification number is obtained from getRules().
public void addRule(LifecycleRule rule)
addRule
in interface ManagableProfile
rule
- A new lifecycle rule.public void removeRule(long ruleID) throws ObjectNotFoundException
removeRule
in interface ManagableProfile
ruleID
- identifier of supported LifecycleRule
ObjectNotFoundException
- Thrown if unable to locate the lifecycle rule.public java.lang.String getDaoClassName()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toXML()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |