public class AMEntityImpl extends Object implements AMEntity
Modifier and Type | Field and Description |
---|---|
protected static Debug |
debug
Deprecated.
|
protected IDirectoryServices |
dsServices
Deprecated.
|
protected String |
entryDN
Deprecated.
|
protected String |
locale
Deprecated.
|
protected static Hashtable |
profileNameTable
Deprecated.
Hash table used to keep track of elements that need to be removed from
objImplListeners table when a SSOToken is no longer valid.
|
protected int |
profileType
Deprecated.
|
protected String |
rfcDN
Deprecated.
|
protected SSOToken |
token
Deprecated.
|
ACTIVE, ACTIVE_VALUE, ASSIGNABLE_DYNAMIC_GROUP, DELETED, DELETED_VALUE, DYNAMIC_GROUP, FILTERED_ROLE, GROUP, GROUP_CONTAINER, GROUP_PROFILE, INACTIVE, INACTIVE_VALUE, MANAGED_ROLE, ORGANIZATION, ORGANIZATIONAL_UNIT, PEOPLE_CONTAINER, POLICY, RESOURCE, ROLE, ROLE_PROFILE, SERVICE, STATIC_GROUP, TEMPLATE, UNDETERMINED_OBJECT_TYPE, UNKNOWN_OBJECT_TYPE, USER
ADD_MEMBER, ADMIN_GROUPS_ENABLED_ATTR, ADMIN_ROLE_ATTR, ADMINISTRATION_SERVICE, CACHE_ENABLED_DISABLED_KEY, CACHE_MAX_SIZE_KEY, COMPLIANCE_SPECIAL_FILTER_ATTR, COMPLIANCE_USER_DELETION_ATTR, CONTAINER_DEFAULT_TEMPLATE_ROLE, CONTAINER_SUPPORTED_TYPES_ATTRIBUTE, DCT_ATTRIBUTE_LIST_ATTR, DCT_ENABLED_ATTR, DOMAIN_ADMINISTRATORS, DOMAIN_HELP_DESK_ADMINISTRATORS, EMAIL_ATTRIBUTE, FILTER_ATTR_NAME, INET_ADMIN_OBJECT_CLASS, INET_DOMAIN_STATUS_ATTR, INET_DOMAIN_STATUS_ATTRIBUTE, INVALID_USERID_CHARACTERS, OTHER_COSATTR_TYPE, POLICY_COSATTR_TYPE, POLICY_SUFFIX, PRE_POST_PROCESSING_MODULES_ATTR, REMOVE_ATTRIBUTE, REMOVE_MEMBER, REQUIRED_SERVICES_ATTR, ROLE_MANAGED_CONTAINER_DN_ATTRIBUTE, SCOPE_BASE, SCOPE_ONE, SCOPE_SUB, SERVICE_STATUS_ATTRIBUTE, STATIC_GROUP_DN_ATTRIBUTE, SUBSCRIBABLE_ATTRIBUTE, UNIQUE_ATTRIBUTE_LIST_ATTRIBUTE, UNIQUE_MEMBER_ATTRIBUTE, USER_CREATE_NOTIFICATION_LIST, USER_DELETE_NOTIFICATION_LIST, USER_ENCRYPTED_PASSWORD_ATTRIBUTE, USER_ENTRY_PROCESSING_IMPL, USER_MODIFY_NOTIFICATION_LIST, USER_PASSWORD_ATTRIBUTE, USER_SEARCH_RETURN_ATTR, USERID_PASSWORD_VALIDATION_CLASS
Modifier | Constructor and Description |
---|---|
protected |
AMEntityImpl(SSOToken ssotoken,
String dn) |
protected |
AMEntityImpl(SSOToken ssotoken,
String dn,
int type) |
Modifier and Type | Method and Description |
---|---|
void |
activate()
Activates the entity (if a status attribute is defined for this entity).
|
void |
addEventListener(AMEventListener listener)
Deprecated.
Register a AMEventListener that needs to be invoked when a relevant event
occurs.
|
void |
assignPolicies(String serviceName,
Set policyDNs)
Deprecated.
Assigns the given policies to this object.
|
void |
assignServices(Map serviceNamesAndAttr)
Deprecated.
Assigns a set of services and the attributes for a service to the user.
|
void |
assignServices(Map serviceNamesAndAttr,
boolean store)
Deprecated.
Assigns a set of services and the attributes for a service to the user.
|
protected static String |
constructFilter(Map avPairs)
Deprecated.
|
protected static String |
constructFilter(String objectClassFilter)
Deprecated.
|
protected static String |
constructFilter(String namingAttr,
String objectClassFilter,
String wildcard)
Deprecated.
|
void |
create()
Deprecated.
|
void |
create(String stype) |
AMTemplate |
createPolicyTemplate(String serviceName,
Map attributes)
Deprecated.
Creates a Policy Template with no priority for the given service
associated with this
AMObject . |
AMTemplate |
createPolicyTemplate(String serviceName,
Map attributes,
int priority)
Deprecated.
Creates a Policy Template with a priority for the given service
associated with this
AMObject . |
AMTemplate |
createTemplate(int templateType,
String serviceName,
Map attributes)
Deprecated.
Creates a Template with no priority for the given service associated with
this
AMObject . |
AMTemplate |
createTemplate(int templateType,
String serviceName,
Map attributes,
int priority)
Deprecated.
Creates a Template with a priority for the given service associated with
this
AMObject . |
AMTemplate |
createTemplate(int templateType,
String serviceName,
Map attributes,
int priority,
Set policyDNs)
Deprecated.
|
void |
deactivate()
Deactivates the entity (if a status attribute is defined for this
entity).
|
void |
delete()
Removes and destroys the object.
|
void |
delete(boolean recursive)
Deletes object.
|
Set |
getAssignedServices()
Deprecated.
Gets all service names that are assigned to the user/group/org.
|
Set |
getAttribute(String attributeName)
Deprecated.
Returns attribute value.
|
byte[][] |
getAttributeByteArray(String attributeName)
Deprecated.
Returns attribute value.
|
Map |
getAttributes()
Returns Map of all attributes.
|
Map |
getAttributes(Set attributeNames)
Returns Map of specified attributes.
|
Map |
getAttributesByteArray()
Deprecated.
Returns Map of all attributes.
|
Map |
getAttributesByteArray(Set attributeNames)
Deprecated.
Returns Map of specified attributes.
|
Map |
getAttributesFromDataStore()
Deprecated.
Returns Map of all attributes directly from data store.
|
Map |
getAttributesFromDataStore(Set attributeNames)
Deprecated.
Returns Map of specified attributes directly from data store.
|
boolean |
getBooleanAttribute(String attributeName)
Deprecated.
|
String |
getDN()
Returns the DN of the entry.
|
int |
getIntegerAttribute(String attributeName)
Deprecated.
|
String |
getOrganizationDN()
Gets the object's organization.
|
String |
getParentDN()
Returns the parent DN of the entry.
|
Map |
getPolicy(String serviceName)
Deprecated.
Returns the effective service policy defined at this object after
considering any inheritance from any policy templates.
|
AMTemplate |
getPolicyTemplate(String serviceName)
Deprecated.
Returns the policy template for a service defined for this object
ignoring any inheritance.
|
protected Set |
getRoleDNs() |
protected String |
getSearchFilter(int objectType)
Deprecated.
|
protected String |
getSearchFilter(int objectType,
String searchTempName)
Deprecated.
|
Map |
getServiceAttributes(String serviceName)
Deprecated.
Returns Map of all attributes of specified service.
|
String |
getServiceStatus(String serviceName)
Deprecated.
Get the status of the service for this entity (user/group/organization/
organizational unit).
|
String |
getStringAttribute(String attributeName)
Deprecated.
Returns string type attribute value.
|
AMTemplate |
getTemplate(String serviceName,
int templateType)
Deprecated.
Returns the Template for the given service associated with this
AMObject . |
boolean |
isActivated()
Returns true if the entity is activated.
|
boolean |
isExists()
Checks if the entry exists in the directory or not.
|
void |
modifyService(String sname,
Map attrMap)
Deprecated.
Modify the service attributes of a service assigned to a entity
(user/group/organization/organizational unit).
|
protected static void |
notifyACIChangeEvent(String dn,
int eventType)
Deprecated.
Notifies ACI Change.
|
protected static void |
notifyAffectedDNs(String affectedDN,
AMEvent dpEvent)
Deprecated.
Sends event notifications to all the listeners that correspond to a DN
whose suffix which ends with affectedDN in the objImpListeners.
|
protected static void |
notifyEntryEvent(String dn,
int eventType,
boolean cosType)
Deprecated.
This method will be called EntryEventListener to send notifications to
all interested AMObjectImp's whenever an Entry Event occurs.
|
void |
purge(boolean recursive,
int graceperiod)
Method to hard Delete an object.
|
void |
removeAttributes(Set attributes)
Removes attributes in this
AMObject . |
void |
removeEventListener(AMEventListener listener)
Deprecated.
UnRegister a previously registered event listener.
|
protected static Set |
removeFromProfileNameTable(SSOToken ssoToken)
Deprecated.
This method removes the entry corresponding to SSOTokenID supplied.
|
protected static void |
removeObjImplListeners(Set dnSet,
SSOTokenID ssoTokenId)
Deprecated.
Method that removes all the entries that correspond ("dn",ssoTokenId)
supplied.
|
protected Set |
replaceAciListMacros(Set aciSet,
String roleDN,
String orgDN,
String groupDN,
String pcDN)
Deprecated.
Substitutes the macros in the set of DN:ACI.
|
protected String |
replaceAciMacro(String aci,
String macro,
String str)
Deprecated.
|
protected String |
replaceAciMacros(String aci,
String roleDN,
String orgDN,
String groupDN,
String pcDN)
Deprecated.
|
Set |
search(int level,
String filter)
Deprecated.
Search objects based on specified level and filter.
|
protected AMSearchResults |
searchObjects(int[] objectTypes,
String wildcard,
Map avPairs,
AMSearchControl searchControl)
Deprecated.
|
protected Set |
searchObjects(int[] objectTypes,
String wildcard,
Map avPairs,
int level)
Deprecated.
|
protected AMSearchResults |
searchObjects(String objectClassFilter,
AMSearchControl searchControl,
String avfilter)
Deprecated.
|
protected AMSearchResults |
searchObjects(String namingAttr,
String objectClassFilter,
String wildcard,
AMSearchControl searchControl,
String avfilter)
Deprecated.
|
protected AMSearchResults |
searchObjects(String namingAttr,
String objectClassFilter,
String wildcard,
Map avPairs,
AMSearchControl searchControl)
Deprecated.
|
Set |
searchObjects(String namingAttr,
String objectClassFilter,
String wildcard,
Map avPairs,
int level)
Deprecated.
|
protected static void |
sendExpiryEvent(String sourceDN,
int sourceType)
Deprecated.
|
void |
setAttribute(String attributeName,
Set attributeValue)
Deprecated.
|
void |
setAttributeByteArray(String attrName,
byte[][] byteValues)
Deprecated.
Sets byte attribute values in this
AMObject . |
void |
setAttributes(Map attributes)
Sets attribute values in this
AMObject . |
void |
setAttributesByteArray(Map attributes)
Deprecated.
Sets byte attribute values in this
AMObject . |
void |
setBooleanAttribute(String attributeName,
boolean value)
Deprecated.
|
void |
setIntegerAttribute(String attributeName,
int value)
Deprecated.
|
void |
setServiceStatus(String sname,
String status)
Deprecated.
Set the status of the service for this entity (User/Organization
/Group/Organizational Unit).
|
void |
setStringAttribute(String attributeName,
String value)
Deprecated.
Sets string type attribute value.
|
void |
store()
Stores the change to directory server.
|
void |
store(boolean isAdd)
Deprecated.
Stores the change to directory server.
|
void |
unassignPolicies(String serviceName,
Set policyDNs)
Deprecated.
Unassigns the given policies from this object.
|
void |
unassignServices(Set serviceNames)
Deprecated.
Unassigns services from the user.
|
protected static Hashtable profileNameTable
protected static Debug debug
protected IDirectoryServices dsServices
protected SSOToken token
protected String entryDN
protected String rfcDN
protected String locale
protected int profileType
public void delete(boolean recursive) throws AMException, SSOException
delete
in interface AMEntity
delete
in interface AMObject
recursive
- if true delete the object and any objects under it, otherwise,
delete the object only.AMException
- if there is an internal problem with AM Store.SSOException
- if the sign-on is no longer valid.AMObject.purge(boolean, int)
public Map getAttributes() throws AMException, SSOException
AMObject
getAttributes
in interface AMEntity
getAttributes
in interface AMObject
AMException
- if an error is encountered when trying to access/retrieve
data from the data store.SSOException
- if the single sign on token is no longer valid.public String getDN()
AMObject
public String getOrganizationDN() throws AMException, SSOException
getOrganizationDN
in interface AMEntity
getOrganizationDN
in interface AMObject
AMException
- if there is an internal error in the AM Store or the object
doesn't have organzation DN.SSOException
- if the sign on is no longer validpublic String getParentDN()
AMObject
getParentDN
in interface AMEntity
getParentDN
in interface AMObject
public boolean isExists() throws SSOException
NOTE: This method internally invokes a call to the directory to verify the existence of the entry. There could be a performance overhead. Hence, please use your discretion while using this method.
isExists
in interface AMEntity
isExists
in interface AMObject
SSOException
- if the sign-on is no longer valid.public void purge(boolean recursive, int graceperiod) throws AMException, SSOException
purge
in interface AMEntity
purge
in interface AMObject
recursive
- If true, then recursively delete the whole subtree.graceperiod
- If set to an integer greater than -1, it will verify if the
object was last modified at least that many days ago before
physically deleting it. Pre/Post Callback
plugins as registered in the Administration Service, will be
called upon object deletion. If any of the
pre-callback
classes throw an exception, then
the operation is aborted.AMException
- if there is an internal error in the access management data
store.SSOException
- if the single sign on token is no longer validAMObject.delete()
public void removeAttributes(Set attributes) throws AMException, SSOException
AMObject
AMObject
. The attributes are
removed from the LDAP data storeremoveAttributes
in interface AMEntity
removeAttributes
in interface AMObject
attributes
- The Set of attribute namesAMException
- if an error is encountered when trying to access/retrieve
data from the data storeSSOException
- if the single sign on token is no longer valid.public void setAttributes(Map attributes) throws AMException, SSOException
AMObject
AMObject
. Note that this
method sets or replaces the attribute value with the new value supplied.
Also, the attributes changed by this method are not committed to the LDAP
data store unless the method store()
is called
explicitly.setAttributes
in interface AMEntity
setAttributes
in interface AMObject
attributes
- Map where key is the attribute name and value is a Set of
attribute values. Each of the attribute value must be a string
value.AMException
- if an error is encountered when trying to access/retrieve
data from the data storeSSOException
- if the single sign on token is no longer valid.public void delete() throws AMException, SSOException
delete
in interface AMEntity
delete
in interface AMObject
AMException
- if there is an internal problem with AM Store.SSOException
- if the sign-on is no longer valid.AMObject.delete(boolean)
,
AMObject.purge(boolean, int)
public void store() throws AMException, SSOException
AMObject
setAttributes
so that the changes that are made can
be permanently committed to the LDAP data store.store
in interface AMEntity
store
in interface AMObject
AMException
- if an error is encountered when trying to access/retrieve
data from the data store.SSOException
- if the single sign on token is no longer valid.public void create(String stype) throws AMException, SSOException
AMException
SSOException
public void activate() throws AMException, SSOException
AMEntity
activate
in interface AMEntity
AMException
- if an error is encountered when trying to activate the
managed object.SSOException
- if the single sign on token is no longer valid.public void deactivate() throws AMException, SSOException
AMEntity
deactivate
in interface AMEntity
AMException
- if an error is encountered when trying to deactivate the
managed object.SSOException
- if the single sign on token is no longer valid.public boolean isActivated() throws AMException, SSOException
AMEntity
isActivated
in interface AMEntity
AMException
- if an error is encountered when trying to get the status
attribute from the data store.SSOException
- if the single sign on token is no longer valid.public Map getAttributes(Set attributeNames) throws AMException, SSOException
AMObject
getAttributes
in interface AMEntity
getAttributes
in interface AMObject
attributeNames
- The Set of attribute names.AMException
- if an error is encountered when trying to access/retrieve
data from the data storeSSOException
- if the single sign on token is no longer valid.protected Set getRoleDNs() throws AMException, SSOException
AMException
SSOException
public Set getAssignedServices() throws AMException, SSOException
getAssignedServices
in interface AMObject
AMException
- if there is an internal error in the AM StoreSSOException
- if the sign on is no longer validpublic void setAttribute(String attributeName, Set attributeValue) throws AMException, SSOException
AMException
SSOException
public Set getAttribute(String attributeName) throws AMException, SSOException
AMObject
getAttribute
in interface AMObject
attributeName
- Attribute nameAMException
- if an error is encountered when trying to access/retrieve
data from the data storeSSOException
- if the single sign on token is no longer valid.public void setAttributeByteArray(String attrName, byte[][] byteValues) throws AMException, SSOException
AMObject
AMObject
. Note that
this method sets or replaces the attribute value with the new value
supplied. Also, the attributes changed by this method are not committed
to the LDAP data store unless the method store()
is called explicitly.setAttributeByteArray
in interface AMObject
attrName
- the attribute namebyteValues
- attribute values in byte[][] formatAMException
- if an error is encountered when trying to access/retrieve
data from the data storeSSOException
- if the single sign on token is no longer valid.public byte[][] getAttributeByteArray(String attributeName) throws AMException, SSOException
AMObject
getAttributeByteArray
in interface AMObject
attributeName
- Attribute nameAMException
- if an error is encountered when trying to access/retrieve
data from the data storeSSOException
- if the single sign on token is no longer valid.public Map getAttributesFromDataStore() throws AMException, SSOException
AMObject
getAttributesFromDataStore
in interface AMObject
AMException
- if an error is encountered when trying to access/retrieve
data from the data storeSSOException
- if the single sign on token is no longer valid.public Map getAttributesFromDataStore(Set attributeNames) throws AMException, SSOException
AMObject
getAttributesFromDataStore
in interface AMObject
attributeNames
- The Set of attribute names.AMException
- if an error is encountered when trying to access/retrieve
data from the data storeSSOException
- if the single sign on token is no longer valid.public void setAttributesByteArray(Map attributes) throws SSOException, AMException
AMObject
AMObject
. Note that
this method sets or replaces the attribute value with the new value
supplied. Also, the attributes changed by this method are not committed
to the LDAP data store unless the method store()
is called explicitly.setAttributesByteArray
in interface AMObject
attributes
- Map where key is the attribute name and values are in byte[][]
format.SSOException
- if the single sign on token is no longer valid.AMException
- if an error is encountered when trying to access/retrieve
data from the data storepublic Map getAttributesByteArray() throws AMException, SSOException
AMObject
getAttributesByteArray
in interface AMObject
AMException
- if an error is encountered when trying to access/retrieve
data from the data storeSSOException
- if the single sign on token is no longer valid.public Map getAttributesByteArray(Set attributeNames) throws AMException, SSOException
AMObject
getAttributesByteArray
in interface AMObject
attributeNames
- The Set of attribute names.AMException
- if an error is encountered when trying to access/retrieve
data from the data storeSSOException
- if the single sign on token is no longer valid.public void setBooleanAttribute(String attributeName, boolean value) throws AMException, SSOException
AMException
SSOException
public boolean getBooleanAttribute(String attributeName) throws AMException, SSOException
AMException
SSOException
public void setIntegerAttribute(String attributeName, int value) throws AMException, SSOException
AMException
SSOException
public int getIntegerAttribute(String attributeName) throws AMException, SSOException
AMException
SSOException
public Map getPolicy(String serviceName) throws UnsupportedOperationException, AMException, SSOException
AMObject
getPolicy
in interface AMObject
serviceName
- service name.UnsupportedOperationException
- if the class implementing this interface does not support
this methodAMException
- if an error is encountered when trying to access/retrieve
data from the data storeSSOException
- if the single sign on token is no longer validpublic AMTemplate getPolicyTemplate(String serviceName) throws UnsupportedOperationException, AMException, SSOException
AMObject
getTemplate(serviceName, AMTemplate.POLICY_TEMPLATE)
.
AMUser
object will throw
UnsupportedOperationException
because this method is not
relevant for AMUser
.getPolicyTemplate
in interface AMObject
serviceName
- service name.AMTemplate
the policy template of the service for
this object.UnsupportedOperationException
- if the class implementing this interface does not support
this method.AMException
- if an error is encountered when trying to access/retrieve
data from the data store.SSOException
- if the single sign on token is no longer validpublic Map getServiceAttributes(String serviceName) throws AMException, SSOException
AMObject
getServiceAttributes
in interface AMObject
serviceName
- Service nameAMException
- if an error is encountered when trying to access/retrieve
data from the data storeSSOException
- if the single sign on token is no longer valid.AMObject.getTemplate(java.lang.String, int)
public void setServiceStatus(String sname, String status) throws AMException, SSOException
AMObject
setServiceStatus
in interface AMObject
sname
- Name of service whose status attribute has to be changedstatus
- One of the status values as defined in the service schemaAMException
- if a data store exception is encountered.SSOException
- if the single sign on token is no longer valid.public String getServiceStatus(String serviceName) throws AMException, SSOException
AMObject
getServiceStatus
in interface AMObject
serviceName
- Name of serviceAMException
- if a data store exception is encounteredSSOException
- if single sign on token is no longer valid.public void setStringAttribute(String attributeName, String value) throws AMException, SSOException
setStringAttribute
in interface AMObject
attributeName
- Attribute namevalue
- value to be set for the attributeNameAMException
- if there is an internal problem with AM Store.SSOException
- if the sign-on is no longer valid.public String getStringAttribute(String attributeName) throws AMException, SSOException
AMObject
getStringAttribute
in interface AMObject
attributeName
- Attribute nameAMException
- if an error is encountered when trying to access/retrieve
data from the data storeSSOException
- if the single sign on token is no longer valid.public AMTemplate getTemplate(String serviceName, int templateType) throws UnsupportedOperationException, AMException, SSOException
AMObject
AMObject
.getTemplate
in interface AMObject
serviceName
- service name.templateType
- the template type. Can be one of the following:
AMTemplate
the service template for this
AMObject
.UnsupportedOperationException
- if the class implementing this interface does not support
this methodAMException
- if an error is encountered when trying to access/retrieve
data from the data storeSSOException
- if the single sign on token is no longer valid.public void addEventListener(AMEventListener listener) throws SSOException
Object.equals()
method on the listener object is
used to determine duplicates.
NOTE: This method does not check if the listener implementation object
exists in the directory, since it is brought from directory itself.
addEventListener
in interface AMObject
listener
- listener object that will be called upon when an event occurs.SSOException
- if errors were encountered in adding a new SSOTokenListener
instancepublic void assignPolicies(String serviceName, Set policyDNs) throws AMException, SSOException
assignPolicies
in interface AMObject
serviceName
- serviceNamepolicyDNs
- Set of policy DN stringAMException
- if there is an internal problem with AM Store.SSOException
- if the sign-on is no longer valid.public void assignServices(Map serviceNamesAndAttr) throws AMException, SSOException
assignServices
in interface AMObject
serviceNamesAndAttr
- Set of service names and the attributes for a service.AMException
- if there is an internal error in the AM StoreSSOException
- if the sign on is no longer validAMUserImpl.assignServices(java.util.Set)
public void assignServices(Map serviceNamesAndAttr, boolean store) throws AMException, SSOException
serviceNamesAndAttr
- Set of service names and the attributes for a service.store
- A boolean value. If the boolean value is 'true', 1) Checks if
there is already an assigned service. 2) Checks if any of the
assigned services are registered with the parent organization.
3) Combines the old Object Classes and the new Object classes
and assigns them for a service. If the boolean value is
'false', 1) Assigns services without any check for existence
of already assigned service. 2) Assigns only the new object
classes.AMException
- if there is an internal error in the AM StoreSSOException
- if the sign on is no longer validAMUserImpl.assignServices( java.util.Set
serviceNames)
public void create() throws AMException, SSOException
AMException
SSOException
public AMTemplate createPolicyTemplate(String serviceName, Map attributes) throws UnsupportedOperationException, AMException, SSOException
AMObject
AMObject
. This is a convenience
method and is equivalent to createTemplate(
AMTemplate.POLICY_TEMPLATE, serviceName, attributes)
.createPolicyTemplate
in interface AMObject
serviceName
- service name.attributes
- Map of attributes name-value pairs.AMTemplate
the service template for this
AMObject
.UnsupportedOperationException
- if the class implementing this interface does not support
this method.AMException
- if an error is encountered when trying to access/retrieve
data from the data store.SSOException
- if the single sign on token is no longer valid.public AMTemplate createPolicyTemplate(String serviceName, Map attributes, int priority) throws UnsupportedOperationException, AMException, SSOException
AMObject
AMObject
. This is a convenience
method and is equivalent to
createTemplate(AMTemplate.POLICY_TEMPLATE, serviceName,
attributes, priority)
.createPolicyTemplate
in interface AMObject
serviceName
- service name.attributes
- Map of attributes name-value pairs.priority
- template priority (0 is the highest priority).AMTemplate
the service template for this
AMObject
.UnsupportedOperationException
- if the class implementing this interface does not support
this method.AMException
- if an error is encountered when trying to access/retrieve
data from the data storeSSOException
- if the single sign on token is no longer valid.public AMTemplate createTemplate(int templateType, String serviceName, Map attributes) throws UnsupportedOperationException, AMException, SSOException
AMObject
AMObject
.createTemplate
in interface AMObject
templateType
- the template type. Can be one of the following:
serviceName
- service nameattributes
- Map of attributes name-value pairs. if it is null default
values will be used.AMTemplate
the service template for this
AMObject
.UnsupportedOperationException
- if the class implementing this interface does not support
this method.AMException
- if an error is encountered when trying to access/retrieve
data from the data store.SSOException
- if the single sign on token is no longer valid.public AMTemplate createTemplate(int templateType, String serviceName, Map attributes, int priority) throws UnsupportedOperationException, AMException, SSOException
AMObject
AMObject
.createTemplate
in interface AMObject
templateType
- the template type. Can be one of the following:
serviceName
- service name.attributes
- Map of attributes name-value pairspriority
- template priority (0 is the highest priority)AMTemplate
the service template for this
AMObject
.UnsupportedOperationException
- if the class implementing this interface does not support
this methodAMException
- if an error is encountered when trying to access/retrieve
data from the data storeSSOException
- if the single sign on token is no longer valid.public AMTemplate createTemplate(int templateType, String serviceName, Map attributes, int priority, Set policyDNs) throws UnsupportedOperationException, AMException, SSOException
public void modifyService(String sname, Map attrMap) throws AMException, SSOException
AMObject
ServiceCallback
classes, if any, are instantiated and
the validateAttribute()
method is called.modifyService
in interface AMObject
sname
- Name of the service which has to be modifiedattrMap
- Map of attribute names and set of attribute values.AMException
- if an error occurs during validation or storingSSOException
- if the single sign on token is no longer valid.public void removeEventListener(AMEventListener listener)
listener
was not registered, the method simply returns
without doing anything.
removeEventListener
in interface AMObject
listener
- listener object that will be removed or unregistered.public Set search(int level, String filter) throws AMException, SSOException
AMObject
search
in interface AMObject
level
- The search level starting from the objectfilter
- The search filterAMException
- if an error is encountered when trying to access/retrieve
data from the data storeSSOException
- if the single sign on token is no longer valid.public Set searchObjects(String namingAttr, String objectClassFilter, String wildcard, Map avPairs, int level) throws AMException, SSOException
AMException
SSOException
public void store(boolean isAdd) throws AMException, SSOException
AMObject
setAttributes
or any other set methods
provided. so that the changes that are made can be permanently committed
to the LDAP data store.store
in interface AMObject
isAdd
- If addValues
is true, then the attribute values
as set in the setAttributes
method are added to
any existing values for the same attribute in the directory.
Otherwise, the attribute values replace existing values in the
data store.AMException
- if an error is encountered when trying to access/retrieve
data from the data store.SSOException
- if the single sign on token is no longer valid.public void unassignPolicies(String serviceName, Set policyDNs) throws AMException, SSOException
unassignPolicies
in interface AMObject
serviceName
- serviceNamepolicyDNs
- Set of policy DN stringAMException
- if there is an internal problem with AM Store.SSOException
- if the sign-on is no longer valid.public void unassignServices(Set serviceNames) throws AMException, SSOException
unassignServices
in interface AMObject
serviceNames
- Set of service namesAMException
- if there is an internal error in the AM StoreSSOException
- if the sign on is no longer validprotected static String constructFilter(String namingAttr, String objectClassFilter, String wildcard)
protected String getSearchFilter(int objectType)
protected static void notifyACIChangeEvent(String dn, int eventType)
AMIdRepoListener to send
notifications to all interested AMObjectImp's whenever an ACI
change occurs.
dn
- name of the object changedeventType
- type of modificationprotected static void notifyEntryEvent(String dn, int eventType, boolean cosType)
dn
- the object that is modifiedeventType
- type of modificationcosType
- -
true if it is a cosrelated event; false otherwiseprotected static void sendExpiryEvent(String sourceDN, int sourceType)
protected static Set removeFromProfileNameTable(SSOToken ssoToken)
ssoToken
- -
a SSOTokenprotected static void removeObjImplListeners(Set dnSet, SSOTokenID ssoTokenId)
dnSet
- -
a set of DNsssoTokenId
- -
the SSO token Idprotected Set replaceAciListMacros(Set aciSet, String roleDN, String orgDN, String groupDN, String pcDN)
aciSet
- Set of DN:ACIroleDN
- Role DN to replace macro ROLENAMEorgDN
- Organization DN to replace macro ORGANIZATIONgroupDN
- Group DN to replace macro GROUPNAMEpcDN
- People container DN to replace PCNAMEprotected String replaceAciMacros(String aci, String roleDN, String orgDN, String groupDN, String pcDN)
protected AMSearchResults searchObjects(String namingAttr, String objectClassFilter, String wildcard, Map avPairs, AMSearchControl searchControl) throws AMException, SSOException
AMException
SSOException
protected AMSearchResults searchObjects(String namingAttr, String objectClassFilter, String wildcard, AMSearchControl searchControl, String avfilter) throws AMException, SSOException
AMException
SSOException
protected AMSearchResults searchObjects(String objectClassFilter, AMSearchControl searchControl, String avfilter) throws AMException, SSOException
AMException
SSOException
protected Set searchObjects(int[] objectTypes, String wildcard, Map avPairs, int level) throws AMException, SSOException
AMException
SSOException
protected AMSearchResults searchObjects(int[] objectTypes, String wildcard, Map avPairs, AMSearchControl searchControl) throws AMException, SSOException
AMException
SSOException
protected static void notifyAffectedDNs(String affectedDN, AMEvent dpEvent)
affectedDN
- -
String which has been stripped to reflect the subtree of DN's
that will be affected in case of cos related changesdpEvent
- -
a AMEventCopyright © 2010–2025 Open Identity Platform Community. All rights reserved.