public class EntityObjectImpl extends Object implements EntityObjectIF
Modifier and Type | Field and Description |
---|---|
protected AMStoreConnection |
amsc |
protected AMOrganization |
entity |
protected static Object |
lock |
protected static Cache |
oCache |
protected SSOToken |
token |
Constructor and Description |
---|
EntityObjectImpl() |
Modifier and Type | Method and Description |
---|---|
protected static void |
checkInitialization()
Method to get the token manager handle.
|
Set |
createEntity(String ssotoken,
String entityName,
String entityType,
String entityLocation,
Map attributes)
Creates entities.
|
void |
deleteEntity(String ssoToken,
String entityName,
String entityType,
String entityLocation)
Deletes entities.
|
protected AMEntity |
getAMEntity(String ssoToken,
String entityName,
String entityType,
String entityLocation)
Method to get the AMEntity object from the storeconnection.
|
Map |
getEntity(String ssoToken,
String entityName,
String entityType,
String entityLocation)
Returns the entity object for each entity given the entityType and
entityName(s) in that particular organization.
|
Set |
getEntityNames(String ssoToken,
String entityType,
String entityLocation,
String entityFilter)
Returns a set of Entity Names given the Entity Type for that particular
organization.
|
protected void |
initializeObject(String ssoToken,
String entityLocation)
Method to initialize the object.
|
void |
modifyEntity(String ssoToken,
String entityName,
String entityType,
String entityLocation,
Map attributes)
Sets or replaces attribute values with the new values supplied and Stores
the changes to directory server.
|
protected static Cache oCache
protected static Object lock
protected SSOToken token
protected AMStoreConnection amsc
protected AMOrganization entity
public Set createEntity(String ssotoken, String entityName, String entityType, String entityLocation, Map attributes) throws EntityException, SSOException
createEntity
in interface EntityObjectIF
ssotoken
- String representing user's SSO Token.entityName
- Name of this entity.eg.cn=websphereAgententityType
- Type of entity being created. eg. Agent The types supported by
SDK are configured in the list of Managed Objects in the
DAI
service.entityLocation
- Location of the entity creation.eg.www.abc.comattributes
- Map to represent Attribute-Value PairsEntityException
- if there is an internal error in the AM StoreSSOException
- if the sign on is no longer validpublic void deleteEntity(String ssoToken, String entityName, String entityType, String entityLocation) throws EntityException, SSOException
deleteEntity
in interface EntityObjectIF
ssoToken
- User's Single Sign On Token.entityName
- Name of this entity. example
cn=websphereAgent
.entityType
- Type of entity being created. eg. Agent The types
supported by SDK are configured in the list of Managed Objects
in the DAI
service.entityLocation
- Location of the entity creation. example
www.abc.com
.EntityException
- if there is an internal error in the AM Store.SSOException
- if the sign on is no longer valid.public Map getEntity(String ssoToken, String entityName, String entityType, String entityLocation) throws EntityException, SSOException, RemoteException
getEntity
in interface EntityObjectIF
ssoToken
- User's Single Sign On Token.entityName
- Name of this entity. example
cn=websphereAgent
.entityType
- Type of entity being created. eg. Agent The types
supported by SDK are configured in the list of Managed Objects
in the DAI
service.entityLocation
- Location of the entity creation. example
www.abc.com
.EntityException
- if there is an internal error in the AM Store.SSOException
- if the sign on is no longer valid.RemoteException
public Set getEntityNames(String ssoToken, String entityType, String entityLocation, String entityFilter) throws EntityException, SSOException, RemoteException
getEntityNames
in interface EntityObjectIF
ssoToken
- User's Single Sign On Token.entityType
- Type of entity being created. eg. Agent The types
supported by SDK are configured in the list of Managed Objects
in the DAI
service.entityLocation
- Location of the entity creation. example
www.abc.com
.entityFilter
- EntityException
- if there is an internal error in the AM Store.SSOException
- if the sign on is no longer valid.RemoteException
public void modifyEntity(String ssoToken, String entityName, String entityType, String entityLocation, Map attributes) throws EntityException, SSOException, RemoteException
modifyEntity
in interface EntityObjectIF
ssoToken
- User's Single Sign Token.entityName
- Name of this entity. example
cn=websphereAgent
entityType
- Type of entity being created. eg. Agent The types
supported by SDK are configured in the list of Managed Objects
in the DAI
service.entityLocation
- Location of the entity creation. example
www.abc.com
.EntityException
- if there is an internal error in the AM Store.SSOException
- if the sign on is no longer valid.RemoteException
protected static void checkInitialization() throws SSOException
SSOException
protected AMEntity getAMEntity(String ssoToken, String entityName, String entityType, String entityLocation) throws EntityException, SSOException
EntityException
SSOException
protected void initializeObject(String ssoToken, String entityLocation) throws EntityException, SSOException
EntityException
SSOException
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.