|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.iplanet.am.sdk.AMStoreConnection
The AMStoreConnection
class represents a connection to the
Sun ONE Identity Server datastore. It provides methods to creat, remove and
get different type of Sun ONE Identity Server SDK objects in the datatore.
AMStoreConnection controls and manages access to the datastore.
Fields inherited from interface com.iplanet.am.sdk.AMConstants |
SCOPE_BASE, SCOPE_ONE, SCOPE_SUB, SUBSCRIBABLE_ATTRIBUTE, UNIQUE_MEMBER_ATTRIBUTE |
Constructor Summary | |
AMStoreConnection(SSOToken ssoToken)
Gets the connection to the Sun ONE Identity Server datastore if the Session is valid. |
Method Summary | |
AMOrganization |
createTopOrganization(java.lang.String orgName,
java.util.Map avPairs)
Bootstraps the Organization tree by creating the Top Organization tree. |
int |
getAMObjectType(java.lang.String DN)
Gets the type of the object given its DN. |
AMAssignableDynamicGroup |
getAssignableDynamicGroup(java.lang.String assignableDynamicGroupDN)
Gets the handle to the AMAssignableDynamicGroup object represented by DN. |
java.util.Set |
getAttributeNames(java.lang.String serviceName,
AMSchema.Type schemaType)
Gets the service attribute names for a given service name and schema type |
AMDynamicGroup |
getDynamicGroup(java.lang.String dynamicGroupDN)
Gets the handle to the AMDynamicGroup object represented by DN. |
AMGroupContainer |
getGroupContainer(java.lang.String groupContainerDN)
Gets the handle to the AMGroupContainer object represented by DN. |
static java.lang.String |
getGroupContainerNamingAttribute()
Gets the group container naming attribute. |
static java.lang.String |
getGroupNamingAttribute()
Gets the group naming attribute. |
java.lang.String |
getI18NPropertiesFileName(java.lang.String serviceName)
Gets the I18N properties file name that contains the internationalized messages. |
AMOrganization |
getOrganization(java.lang.String orgDN)
Gets the handle to the AMOrganization object represented by DN. |
AMOrganizationalUnit |
getOrganizationalUnit(java.lang.String orgUnitDN)
Gets the handle to the AMOrganizationalUnit object represented by DN. |
static java.lang.String |
getOrganizationalUnitNamingAttribute()
Gets the organizationalUnit naming attribute. |
static java.lang.String |
getOrganizationNamingAttribute()
Gets the org naming attribute. |
AMPeopleContainer |
getPeopleContainer(java.lang.String peopleContainerDN)
Gets the handle to the AMPeopleContainer object represented by DN. |
static java.lang.String |
getPeopleContainerNamingAttribute()
Gets the people container naming attribute. |
AMTemplate |
getPolicyTemplate(java.lang.String templateDN)
Gets the handle to the AMTemplate object represented by DN. |
java.lang.String |
getPropertiesViewBeanURL(java.lang.String serviceName)
Gets the URL of the view bean for the service |
AMRole |
getRole(java.lang.String roleDN)
Gets the handle to the AMRole object represented by DN. |
static java.lang.String |
getRoleNamingAttribute()
Gets the role naming attribute. |
AMSchema |
getSchema(java.lang.String serviceName,
AMSchema.Type schemaType)
Deprecated. This method has been deprecated. Please use com.sun.identity.sm.ServiceSchemaManager.getSchema() . |
java.util.Set |
getSchemaTypes(java.lang.String serviceName)
Deprecated. This method has been deprecated. Please use com.sun.identity.sm.ServiceSchemaManager.getSchemaTypes() . |
java.util.Set |
getServiceHierarchy()
Gets the service hiearchy for all registered services |
java.util.Set |
getServiceNames()
Gets the set of names of services that have been loaded to the datastore |
AMStaticGroup |
getStaticGroup(java.lang.String groupDN)
Gets the handle to the AMStaticGroup object represented by DN. |
java.util.Set |
getTopLevelContainers()
Gets the top level containers (Organizations, PeopleContainers, Roles, etc) for the particular user based on ssoToken as the starting point in the tree. |
java.util.Set |
getTopLevelOrganizations()
Gets the "real" or "physical" top level organizations as the starting point in the tree. |
AMUser |
getUser(java.lang.String userDN)
Gets the handle to the AMUser object represented by DN. |
static java.lang.String |
getUserNamingAttribute()
Gets the user naming attribute. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AMStoreConnection(SSOToken ssoToken) throws SSOException
SSOToken
- a valid SSO token object to authenticate before getting
the connectionSSOException
- if ssoToken is invalid or expired.Method Detail |
public static java.lang.String getUserNamingAttribute()
public static java.lang.String getGroupNamingAttribute()
public static java.lang.String getRoleNamingAttribute()
public static java.lang.String getOrganizationNamingAttribute()
public static java.lang.String getOrganizationalUnitNamingAttribute()
public static java.lang.String getPeopleContainerNamingAttribute()
public static java.lang.String getGroupContainerNamingAttribute()
public java.util.Set getTopLevelOrganizations() throws AMException, SSOException
AMException
- if an error occured when retrieving the information
from the data store.SSOException
- if ssoToken is invalid or expired.public java.util.Set getTopLevelContainers() throws AMException, SSOException
AMException
- if an error occured when retrieving the information
from the data store.SSOException
- if ssoToken is invalid or expired.public AMOrganization createTopOrganization(java.lang.String orgName, java.util.Map avPairs) throws AMException, SSOException
orgName
- name of the top organizationavPairs
- Attribute-Value pairs for the top organizationAMException
- if an error occured during the process of creation.SSOException
- if ssoToken is invalid or expired.public AMUser getUser(java.lang.String userDN) throws SSOException
Validity of the DN can be verified by using isExists() method of the object returned.
userDN
- user DNSSOException
- if ssoToken is invalid or expired.AMObject.isExists()
public AMTemplate getPolicyTemplate(java.lang.String templateDN) throws AMException, SSOException
Validity of the DN can be verified by using isExists() method of the object returned.
templatDN
- a policy template DNAMException
- if the DN does not represent a Policy template DNSSOException
- if ssoToken is invalid or expired.AMObject.isExists()
public AMOrganization getOrganization(java.lang.String orgDN) throws SSOException
Validity of the DN can be verified by using isExists() method of the object returned.
orgDN
- organization DNSSOException
- if ssoToken is invalid or expired.AMObject.isExists()
public AMOrganizationalUnit getOrganizationalUnit(java.lang.String orgUnitDN) throws SSOException
Validity of the DN can be verified by using isExists() method of the object returned.
orgUnitDN
- organizational unit DNSSOException
- if ssoToken is invalid or expired.AMObject.isExists()
public AMRole getRole(java.lang.String roleDN) throws SSOException
Validity of the DN can be verified by using isExists() method of the object returned.
roleDN
- role DNSSOException
- if ssoToken is invalid or expired.AMObject.isExists()
public AMStaticGroup getStaticGroup(java.lang.String groupDN) throws SSOException
Validity of the DN can be verified by using isExists() method of the object returned.
groupDN
- group DNSSOException
- if ssoToken is invalid or expired.AMObject.isExists()
public AMAssignableDynamicGroup getAssignableDynamicGroup(java.lang.String assignableDynamicGroupDN) throws SSOException
Validity of the DN can be verified by using isExists() method of the object returned.
assignableDynamicGroupDN
- assignable dynamic group DNSSOException
- if ssoToken is invalid or expired.AMObject.isExists()
public AMDynamicGroup getDynamicGroup(java.lang.String dynamicGroupDN) throws SSOException
Validity of the DN can be verified by using isExists() method of the object returned.
dynamicGroupDN
- group DNSSOException
- if ssoToken is invalid or expired.AMObject.isExists()
public AMPeopleContainer getPeopleContainer(java.lang.String peopleContainerDN) throws SSOException
Validity of the DN can be verified by using isExists() method of the object returned.
peopleContainerDN
- peopleContainer DNSSOException
- if ssoToken is invalid or expired.AMObject.isExists()
public AMGroupContainer getGroupContainer(java.lang.String groupContainerDN) throws SSOException
Validity of the DN can be verified by using isExists() method of the object returned.
groupContainerDN
- groupContainer DNSSOException
- if ssoToken is invalid or expired.AMObject.isExists()
public int getAMObjectType(java.lang.String DN) throws AMException, SSOException
DN
- DN of the object whose type is to be known.AMException
- if the data store is unavailable.
or the object type is unknownSSOException
- if ssoToken is invalid or expired.public java.util.Set getServiceHierarchy() throws AMException
AMException
- if an error is encountered in retrieving
the service hierarchy. The return value is a Set of strings
in slash format.public java.util.Set getServiceNames() throws AMException
AMException
- if an error is encountered in retrieving
the names of the servicespublic java.util.Set getSchemaTypes(java.lang.String serviceName) throws AMException
com.sun.identity.sm.ServiceSchemaManager.getSchemaTypes()
.
serviceName
- the name of the service whose schema
types needs to be retrievedAMException
- if an error is encountered in retrieving
the schemaTypespublic AMSchema getSchema(java.lang.String serviceName, AMSchema.Type schemaType) throws AMException
com.sun.identity.sm.ServiceSchemaManager.getSchema()
.
serviceName
- the name of the servicethe
- type of service schema that needs to be
retrievedAMException
- if an error is encountered in retrieving
the AMSchemapublic java.lang.String getI18NPropertiesFileName(java.lang.String serviceName) throws AMException
serviceName
- the service nameAMException
- if an error is encountered while retrieving
informationpublic java.lang.String getPropertiesViewBeanURL(java.lang.String serviceName) throws AMException
serviceName
- the service nameAMException
- if an error is encountered while retrieving
informationpublic java.util.Set getAttributeNames(java.lang.String serviceName, AMSchema.Type schemaType) throws AMException
serviceName
- the name of the servicethe
- type of service schema
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |