com.hyperion.css
Interface CSSDirectoryManagementAPIIF


public interface CSSDirectoryManagementAPIIF

This is an EPM mode only Interface. All implementation of this interface will throw CSSMethodNotSupportedException in Fusion/JPS mode

This interface provides for interaction to create, retrieve, update and delete users, groups, and roles in the Hyperion Hub (Shared Services) directory.

"Hyperion Shared Services Directory" is the repository of native users, groups, and roles. Its function is similar to the corporate directories with one important distinguishing feature - the IT Admin is not the individual that interacts with it. The Hyperion Application Admin is responsbile for utilizing it.

This API is thread safe - threads can access it concurrently without introducing any deadlock or any other abnormal behavior.

If, during the course of the invocation of a method, the user identified by the CSSPrincipalIF parameter is deleted, then a CSSInvalidPrincipalException is nested in a CSSException and thrown.

If a user is deactivated, then it will not be available for retrieval unless explicitly requested. The CSSNativeUserIF for a deactivated entity is never exposed. Therefore, no updates are permissible on a deactivated entity. It has to be activated before any further updates can be processed.

Since:
CSS v3.0 Feb 11, 2005
Author:
gkhanna

Method Summary
 void activateNativeUsers(java.util.Map context, CSSPrincipalIF principal, java.lang.String[] userIdentities)
           Activates native users.
 void addDelegatedList(java.util.Map context, CSSPrincipalIF principal, CSSDelegatedListIF delegatedList)
           Adds the specified delegated list to the native directory.
 void addNativeGroup(java.util.Map context, CSSPrincipalIF principal, CSSNativeGroupIF group)
           Adds a group to the native directory.
 void addNativeRole(java.util.Map context, CSSPrincipalIF principal, CSSNativeRoleIF role)
           Adds an aggregated role to the native directory.
 void addNativeUser(java.util.Map context, CSSPrincipalIF principal, CSSNativeUserIF user)
           Adds a user to the native directory.
 void deactivateNativeUsers(java.util.Map context, CSSPrincipalIF principal, java.lang.String[] userIdentities)
           De-activates native users.
 void deleteDelegatedList(java.util.Map context, CSSPrincipalIF principal, java.lang.String name)
           Deleted the specified delegated list in the native directory.
 void deleteNativeGroups(java.util.Map context, CSSPrincipalIF principal, java.lang.String[] groupIdentities)
           Deletes native groups and removes all associated relationships with provisioning, parent groups, and the containing users and groups.
 void deleteNativeRoles(java.util.Map context, CSSPrincipalIF principal, java.lang.String[] roleIdentities)
           Deletes roles.
 void deleteNativeUsers(java.util.Map context, CSSPrincipalIF principal, java.lang.String[] userIdentities)
           Deletes native users and removes all associated relationships with groups and provisioning.
 CSSDelegatedListIF[] getDelegatedList(java.util.Map context, CSSPrincipalIF principal, java.lang.String name)
          Returns an array of delegated lists that matches the specified name.
 CSSNativeGroupIF getNativeGroupByIdentity(java.util.Map context, CSSPrincipalIF principal, java.lang.String identity)
           Gets the group instance for updates given the identity in the argument.
 CSSNativeGroupIF getNativeGroupInstance(java.util.Map context, CSSPrincipalIF principal)
           Creates and returns a CSSNativeGroupIF with the identity filled in for creation.
 CSSNativeRoleIF getNativeRoleByIdentity(java.util.Map context, CSSPrincipalIF principal, java.lang.String identity)
           Gets the role instance for updates given the identity in the argument.
 CSSNativeRoleIF getNativeRoleInstance(java.util.Map context, CSSPrincipalIF principal, java.lang.String productType)
           Returns an instance of a CSSNativeRoleIF for the purposes of creation of a role.
 CSSNativeUserIF getNativeUserByIdentity(java.util.Map context, CSSPrincipalIF principal, java.lang.String identity)
           Gets the user instance for updates given the identity in the argument.
 CSSNativeUserIF getNativeUserInstance(java.util.Map context, CSSPrincipalIF principal)
           Creates and returns a CSSNativeUserIF with the identity filled in for creation.
 void setPassword(java.util.Map context, CSSPrincipalIF principal, java.lang.String identity, java.lang.String password)
           Changes the password for a native user.
 void setPassword(java.util.Map context, java.lang.String userName, java.lang.String oldPassword, java.lang.String newPassword)
           Changes the password for a native user.
 void updateDelegatedList(java.util.Map context, CSSPrincipalIF principal, java.lang.String oldName, CSSDelegatedListIF delegatedList)
           Updates the specified delegated list in the native directory.
 void updateNativeGroup(java.util.Map context, CSSPrincipalIF principal, CSSNativeGroupIF group)
           Updates the native group.
 void updateNativeRole(java.util.Map context, CSSPrincipalIF principal, CSSNativeRoleIF role)
           Updates the native role.
 void updateNativeUser(java.util.Map context, CSSPrincipalIF principal, CSSNativeUserIF user)
           Updates the native user.
 

Method Detail

addNativeUser

void addNativeUser(java.util.Map context,
                   CSSPrincipalIF principal,
                   CSSNativeUserIF user)
                   throws CSSEntityAlreadyExistsException,
                          CSSAuthorizationException,
                          CSSNoProviderException,
                          CSSCommunicationException,
                          CSSException

Adds a user to the native directory. If the principal does not have access to the groups that this user is to be associated with or if the principal does not have the required role to perform this operation then a CSSAuthorizationExceptionis thrown.

The context can specify the following:

  1. locale

These properties are discussed in the field description for CSSAPIIF. Please note that if the locale is not specified, the default locale set for the system is used.

Parameters:
context - Map structure holding key-value information about locale.
principal - The identity of the caller.
user - The data object to be persisted for this user.
Throws:
CSSEntityAlreadyExistsException - If any of the users with the login name specified exists.
CSSAuthorizationException - If the principal is not authorized to perform this operation.
CSSNoProviderException - If there is no native provider configured.
CSSException - Any other abnormality.
CSSCommunicationException

updateNativeUser

void updateNativeUser(java.util.Map context,
                      CSSPrincipalIF principal,
                      CSSNativeUserIF user)
                      throws CSSInvalidUserException,
                             CSSAuthorizationException,
                             CSSNoProviderException,
                             CSSEntityAlreadyExistsException,
                             CSSCommunicationException,
                             CSSException

Updates the native user. The update might involve committing modified user properties, which could include group membership.

The context can specify the following:

  1. locale

These properties are discussed in the field description for CSSAPIIF. Please note that if the locale is not specified, the default locale set for the system is used.

Parameters:
context - Map structure holding key-value information about locale.
principal - The identity of the caller.
user - The data object to be persisted for this user.
Throws:
CSSInvalidUserException - If the user with the identity does not exist anymore.
CSSAuthorizationException - If the principal is not authorized to perform this operation.
CSSNoProviderException - If there is no native provider configured.
CSSEntityAlreadyExistsException - If another user with the same name already exists.
CSSException - - Any other abnormality.
CSSException
CSSCommunicationException

addNativeGroup

void addNativeGroup(java.util.Map context,
                    CSSPrincipalIF principal,
                    CSSNativeGroupIF group)
                    throws CSSEntityAlreadyExistsException,
                           CSSCircularDependencyException,
                           CSSAuthorizationException,
                           CSSNoProviderException,
                           CSSCommunicationException,
                           CSSException

Adds a group to the native directory.

The context can specify the following:

  1. locale

These properties are discussed in the field description for CSSAPIIF. Please note that if the locale is not specified, the default locale set for the system is used.

Parameters:
context - Map structure holding key-value information about locale.
principal - The identity of the caller.
group - The data object to be persisted for this group.
Throws:
CSSEntityAlreadyExistsException - If any of the groupr with the group name specified exists.
CSSCircularDependencyException - If a circular dependency is being introduced.
CSSAuthorizationException - If the principal is not authorized to perform this operation.
CSSNoProviderException - If there is no native provider configured.
CSSException - Any other abnormality.
CSSCommunicationException

updateNativeGroup

void updateNativeGroup(java.util.Map context,
                       CSSPrincipalIF principal,
                       CSSNativeGroupIF group)
                       throws CSSInvalidGroupException,
                              CSSCircularDependencyException,
                              CSSAuthorizationException,
                              CSSNoProviderException,
                              CSSEntityAlreadyExistsException,
                              CSSCommunicationException,
                              CSSException

Updates the native group.

The context can specify the following:

  1. locale

These properties are discussed in the field description for CSSAPIIF. Please note that if the locale is not specified, the default locale set for the system is used.

Parameters:
context - Map structure holding key-value information about locale.
principal - The identity of the caller.
group - the data object to be persisted for this group.
Throws:
CSSInvalidGroupException - If the group with the specified identity does not exist.
CSSCircularDependencyException - If a circular dependency is being introduced.
CSSAuthorizationException - If the principal is not authorized to perform this operation.
CSSNoProviderException - If there is no native provider configured.
CSSEntityAlreadyExistsException - If another group with the same name already exists.
CSSException - Any other abnormality.
CSSCommunicationException

addNativeRole

void addNativeRole(java.util.Map context,
                   CSSPrincipalIF principal,
                   CSSNativeRoleIF role)
                   throws CSSEntityAlreadyExistsException,
                          CSSCircularDependencyException,
                          CSSAuthorizationException,
                          CSSNoProviderException,
                          CSSCommunicationException,
                          CSSException

Adds an aggregated role to the native directory.

This method makes the necessary authorization checks. For instance, in the case of an aggregate role, it is checked that the principal has at least "MODIFY" access on the base roles.

The context can specify the following:

  1. locale

These properties are discussed in the field description for CSSAPIIF. Please note that if the locale is not specified, the default locale set for the system is used.

Parameters:
context - Map structure holding key-value information about locale.
principal - The identity of the caller.
role - The data object to be persisted for this role.
Throws:
CSSEntityAlreadyExistsException - If any of the roles with the role name specified exists for this product type or another role exists for the identity generated for this preconfigured role.
CSSCircularDependencyException - If a circular dependency is being introduced.
CSSAuthorizationException - If the principal is not authorized to perform this operation.
CSSNoProviderException - If there is no native provider configured.
CSSException - Any other abnormality.
CSSCommunicationException

addDelegatedList

void addDelegatedList(java.util.Map context,
                      CSSPrincipalIF principal,
                      CSSDelegatedListIF delegatedList)
                      throws CSSEntityAlreadyExistsException,
                             CSSAuthorizationException,
                             CSSNoProviderException,
                             CSSCommunicationException,
                             CSSException

Adds the specified delegated list to the native directory.

This operation can be performed by a principal who has a HUB ADMINISTRATOR ( CSSAPIIF.ROLE_ADMINISTRATOR_IDENTITY) role or who is a Delegated Administrator.

Delegated Lists can be forcefully added for delegated admin mode off. by specifying ( CSSAPIIF.IE_DELEGATED_MODE) in the context

The context can specify the following:

  1. locale

These properties are discussed in the field description for CSSAPIIF. Please note that if the locale is not specified, the default locale set for the system is used.

Parameters:
context - Map structure holding key-value information about locale.
principal - The identity of the caller.
delegatedList - The data object to be persisted for this delegated list.
Throws:
CSSEntityAlreadyExistsException - If any of the delegatedList has the same name as the specified one.
CSSAuthorizationException - If the principal is not authorized to perform this operation.
CSSNoProviderException - If there is no native provider configured.
CSSException - Any other abnormality.
CSSCommunicationException

updateDelegatedList

void updateDelegatedList(java.util.Map context,
                         CSSPrincipalIF principal,
                         java.lang.String oldName,
                         CSSDelegatedListIF delegatedList)
                         throws CSSEntityAlreadyExistsException,
                                CSSAuthorizationException,
                                CSSNoProviderException,
                                CSSCommunicationException,
                                CSSException

Updates the specified delegated list in the native directory.

This operation can be performed by a principal who has a HUB ADMINISTRATOR ( CSSAPIIF.ROLE_ADMINISTRATOR_IDENTITY) role. It can also be performed by a principal who is a Delegated Administrator, but only for the list(s) for which he is a manager.

Delegated Lists can be forcefully updated for delegated admin mode off. by specifying ( CSSAPIIF.IE_DELEGATED_MODE) in the context

The context can specify the following:

  1. locale

These properties are discussed in the field description for CSSAPIIF. Please note that if the locale is not specified, the default locale set for the system is used.

Parameters:
context - Map structure holding key-value information about locale.
principal - The identity of the caller.
delegatedList - The data object to be persisted for this delegated list.
oldName - The current name of the list being updated.
Throws:
CSSEntityAlreadyExistsException - If any of the delegatedList has the same name as the specified one.
CSSAuthorizationException - If the principal is not authorized to perform this operation.
CSSNoProviderException - If there is no native provider configured.
CSSException - Any other abnormality.
CSSCommunicationException

deleteDelegatedList

void deleteDelegatedList(java.util.Map context,
                         CSSPrincipalIF principal,
                         java.lang.String name)
                         throws CSSAuthorizationException,
                                CSSNoProviderException,
                                CSSCommunicationException,
                                CSSException

Deleted the specified delegated list in the native directory.

This operation can be performed by a principal who has a HUB ADMINISTRATOR ( CSSAPIIF.ROLE_ADMINISTRATOR_IDENTITY) role. It can also be performed by a principal who is a Delegated Administrator, but only for the list(s) for which he is a manager.

Delegated Lists can be forcefully deleted for delegated admin mode off. by specifying ( CSSAPIIF.IE_DELEGATED_MODE) in the context

The context can specify the following:

  1. locale

These properties are discussed in the field description for CSSAPIIF. Please note that if the locale is not specified, the default locale set for the system is used.

Parameters:
context - Map structure holding key-value information about locale.
principal - The identity of the caller.
name - Name of the delegated list to delete.
Throws:
CSSAuthorizationException - If the principal is not authorized to perform this operation.
CSSNoProviderException - If there is no native provider configured.
CSSException - Any other abnormality.
CSSCommunicationException

updateNativeRole

void updateNativeRole(java.util.Map context,
                      CSSPrincipalIF principal,
                      CSSNativeRoleIF role)
                      throws CSSInvalidRoleException,
                             CSSCircularDependencyException,
                             CSSAuthorizationException,
                             CSSNoProviderException,
                             CSSEntityAlreadyExistsException,
                             CSSCommunicationException,
                             CSSException

Updates the native role. Please note that a preconfigured role cannot be made available for updates.

This method makes the necessary authorization checks. For instance, in the case of an aggregate role, it is checked that the principal has at least "MODIFY" access on the base roles.

The context can specify the following:

  1. locale

These properties are discussed in the field description for CSSAPIIF. Please note that if the locale is not specified, the default locale set for the system is used.

Parameters:
context - Map structure holding key-value information about locale.
principal - The identity of the caller.
role - the data object to be persisted for this role.
Throws:
CSSInvalidRoleException - If the role with the specified identity does not exist.
CSSCircularDependencyException - If a circular dependency is being introduced.
CSSAuthorizationException - If the principal is not authorized to perform this operation.
CSSNoProviderException - If there is no native provider configured.
CSSEntityAlreadyExistsException - If another role with the same name already exists.
CSSException - Any other abnormality.
CSSCommunicationException

getNativeUserByIdentity

CSSNativeUserIF getNativeUserByIdentity(java.util.Map context,
                                        CSSPrincipalIF principal,
                                        java.lang.String identity)
                                        throws CSSInvalidUserException,
                                               CSSInvalidIdentityException,
                                               CSSNoProviderException,
                                               CSSCommunicationException,
                                               CSSException

Gets the user instance for updates given the identity in the argument. An authorization check is made to confirm that the operation is allowed for this principal. Please note that getting an instance for a CSSNativeUserIF implies that an update needs to be performed.

The context can specify the following:

  1. locale

These properties are discussed in the field description for CSSAPIIF. Please note that if the locale is not specified, the default locale set for the system is used.

Parameters:
context - Map structure holding key-value information about locale.
principal - The identity of the caller.
identity - The identity for the user.
Returns:
If null is returned then the principal does not have the required access on the user specified by the identity. The CSSNativeUserIF instance is returned if the principal has in the least CSSPermissionIF.MODIFY on the user specified by the identity.
Throws:
CSSInvalidUserException - If the user with the specified identity does not exist.
CSSInvalidIdentityException - If the identity format is not valid.
CSSNoProviderException - If there is no native provider configured.
CSSException - Any other abnormality.
CSSCommunicationException

getNativeGroupByIdentity

CSSNativeGroupIF getNativeGroupByIdentity(java.util.Map context,
                                          CSSPrincipalIF principal,
                                          java.lang.String identity)
                                          throws CSSInvalidGroupException,
                                                 CSSInvalidIdentityException,
                                                 CSSNoProviderException,
                                                 CSSCommunicationException,
                                                 CSSException

Gets the group instance for updates given the identity in the argument. An authorization check is made to confirm that the operation is allowed for this principal. Please note that getting an instance for a CSSNativeGroupIF implies that an update needs to be performed.

The context can specify the following:

  1. locale

These properties are discussed in the field description for CSSAPIIF. Please note that if the locale is not specified, the default locale set for the system is used.

Parameters:
context - Map structure holding key-value information about locale.
principal - The identity of the caller.
identity - The identity for the group.
Returns:
If null is returned then the principal does not have the required access on the group specified by the identity. The CSSNativeGroupIF instance is returned if the principal has in the least CSSPermissionIF.MODIFYon the group specified by the identity.
Throws:
CSSInvalidGroupException - If the group with the specified identity does not exist.
CSSInvalidIdentityException - If the identity format is not valid.
CSSNoProviderException - If there is no native provider configured.
CSSException - Any other abnormality.
CSSCommunicationException

getNativeRoleByIdentity

CSSNativeRoleIF getNativeRoleByIdentity(java.util.Map context,
                                        CSSPrincipalIF principal,
                                        java.lang.String identity)
                                        throws CSSInvalidRoleException,
                                               CSSInvalidIdentityException,
                                               CSSNoProviderException,
                                               CSSCommunicationException,
                                               CSSException

Gets the role instance for updates given the identity in the argument. An authorization check is made to confirm that the operation is allowed for this principal. Please note that getting an instance for a CSSNativeRoleIF implies that an update needs to be performed.

The context can specify the following:

  1. locale

These properties are discussed in the field description for CSSAPIIF. Please note that if the locale is not specified, the default locale set for the system is used.

Parameters:
context - Map structure holding key-value information about locale.
principal - The identity of the caller.
identity - The identity for the role.
Returns:
If null is returned then the principal does not have the required access on the role specified by the identity. The CSSNativeRoleIF instance is returned if the principal has in the least CSSPermissionIF.MODIFYon the role specified by the identity. Please note that null would be returned if the role is a preconfigured role.
Throws:
CSSInvalidRoleException - If the role with the specified identity does not exist.
CSSInvalidIdentityException - - If the identity format is not valid.
CSSNoProviderException - If there is no native provider configured.
CSSException - Any other abnormality.
CSSCommunicationException

getNativeUserInstance

CSSNativeUserIF getNativeUserInstance(java.util.Map context,
                                      CSSPrincipalIF principal)
                                      throws CSSNoProviderException,
                                             CSSCommunicationException,
                                             CSSException

Creates and returns a CSSNativeUserIF with the identity filled in for creation. This will check that the principal has the appropriate role for creation of a user.

This method call leads to a CSS Identity being contructed and returned.

The context can specify the following:

  1. locale

These properties are discussed in the field description for CSSAPIIF. Please note that if the locale is not specified, the default locale set for the system is used.

Parameters:
context - Map structure holding key-value information about locale.
principal - The identity of the caller.
Returns:
If null is returned then the principal does not have the required role for the creation of a native user.
Throws:
CSSNoProviderException - If there is no native provider configured.
CSSException - - Any other abnormality.
CSSCommunicationException

getNativeGroupInstance

CSSNativeGroupIF getNativeGroupInstance(java.util.Map context,
                                        CSSPrincipalIF principal)
                                        throws CSSNoProviderException,
                                               CSSCommunicationException,
                                               CSSException

Creates and returns a CSSNativeGroupIF with the identity filled in for creation. This will check that the principal has the appropriate role for creation of a group.

This method call leads to a CSS Identity being contructed and returned.

The context can specify the following:

  1. locale

These properties are discussed in the field description for CSSAPIIF. Please note that if the locale is not specified, the default locale set for the system is used.

Parameters:
context - Map structure holding key-value information about locale.
principal - The identity of the caller.
Returns:
- If null is returned then the principal does not have the required role for the creation of a native group.
Throws:
CSSNoProviderException - If there is no native provider configured.
CSSException - Any other abnormality.
CSSCommunicationException

getNativeRoleInstance

CSSNativeRoleIF getNativeRoleInstance(java.util.Map context,
                                      CSSPrincipalIF principal,
                                      java.lang.String productType)
                                      throws CSSNoProviderException,
                                             CSSEntityAlreadyExistsException,
                                             CSSCommunicationException,
                                             CSSException

Returns an instance of a CSSNativeRoleIF for the purposes of creation of a role. The ProductType argument is utilized for the specification of the CSS identity. Please note that the CSS identity for the role would include the objectId that is made available to this method (if it is a preconfigured role) or is generated by the CSS system (if it is not a preconfigured role).

This method call leads to a CSS Identity being contructed and returned.

The context can specify the following:

  1. locale
  2. objectId

These properties are discussed in the field description for CSSAPIIF. Please note that if the locale is not specified, the default locale set for the system is used.

If the objectId is passed in then the role is considered to be a preconfigured role.

Parameters:
context - Map structure holding key-value information about locale.
principal - The identity of the caller.
productType - The type of the product for which the role is being created. For instance: HFM-3_0.
Returns:
If null is returned then the principal does not have the required role for the creation of a native role. It could be that the principal is not a CSSAPIIF.ROLE_PROVISIONING_MANAGER_IDENTITY.
Throws:
CSSNoProviderException - If there is no native provider configured.
CSSEntityAlreadyExistsException - If any of the roles exist with the same identity that is generated when the objectId is passed in. If an objectId is passed in then that is a preconfigured role.
CSSException - Any other abnormality.
CSSCommunicationException

setPassword

void setPassword(java.util.Map context,
                 CSSPrincipalIF principal,
                 java.lang.String identity,
                 java.lang.String password)
                 throws CSSAuthorizationException,
                        CSSCommunicationException,
                        CSSNoProviderException,
                        CSSPasswordPolicyException,
                        CSSException

Changes the password for a native user. setPassword() can be used to assign a new password for the first time or change an existing password.

The scenarios are:

  1. Administrator or a principal setting the password for the user specified by the identity parameter where the principal has CSSPermissionIF.FULL_CONTROLpermission on it.
    In this case the principal argument is an account with authority (as specified above) over the user account specificed by the identity argument. The new password to apply should be provided in the password argument.
  2. User changing his or her password
    The principal argument refers to an account that is the same user account as specified by the identity argument. The password to apply should be provided in the password argument.
    In this case, the principal and the target identity refer to the same user account. The user in order to change his or her password must authenticate with the old password to retrieve the principal, and then invoke this method with the new password.

The context can specify the following:

  1. locale

These properties are discussed in the field description for CSSAPIIF. Please note that if the locale is not specified, the default locale set for the system is used.

Parameters:
context - Map structure holding key-value information about locale.
principal - The identity of the caller.
identity - Target identity to which password should be applied.
password - Password to apply, in plain text.
Throws:
CSSAuthorizationException - If the principal is not authorized to perform this operation.
CSSNoProviderException - If there is no native provider configured.
CSSPasswordPolicyException - Thrown if password policy applicable, enabled and if any password policy error.
CSSIllegalArgumentException - Thrown if the context is null, the identity is null or empty, or the password arguement is null or empty. The message assigned indicates the condition.
CSSException - Any other abnormality.
CSSCommunicationException

setPassword

void setPassword(java.util.Map context,
                 java.lang.String userName,
                 java.lang.String oldPassword,
                 java.lang.String newPassword)
                 throws CSSCommunicationException,
                        CSSNoProviderException,
                        CSSPasswordPolicyException,
                        CSSException

Changes the password for a native user. setPassword() can be used to assign a new password for the first time or change an existing password.

  • User changing his or her password
    The userName argument refers to an user account that password to be changed. The user in order to change his or her password must provide the oldPassword argument. The new password to apply should be provided in the newPassword argument.
  • The context can specify the following:

    1. locale

    These properties are discussed in the field description for CSSAPIIF. Please note that if the locale is not specified, the default locale set for the system is used.

    Parameters:
    context - Map structure holding key-value information about locale.
    userName - Target userName to which password should be applied.
    oldPassword - old password in plain text.
    newPassword - new password to apply, in plain text.
    Throws:
    CSSCommunicationException - Thrown if not able to communicate with Native Provider.
    CSSNoProviderException - If there is no native provider configured.
    CSSPasswordPolicyException - Thrown if password policy applicable, enabled and if any password policy error.
    CSSIllegalArgumentException - Thrown if the context is null, the identity is null or empty, or the old password arguement is null or empty, or the new password arguement is null or empty. The message assigned indicates the condition.
    CSSException - Any other abnormality.

    deleteNativeUsers

    void deleteNativeUsers(java.util.Map context,
                           CSSPrincipalIF principal,
                           java.lang.String[] userIdentities)
                           throws CSSAuthorizationException,
                                  CSSNoProviderException,
                                  CSSCommunicationException,
                                  CSSException

    Deletes native users and removes all associated relationships with groups and provisioning.

    The principal must have the required privileges to successfully delete the users specified. If the principal has insufficient privileges, a CSSAuthorizationException is thrown and no deletes are carried out.

    The context can specify the following:

    1. locale
    2. soft delete: This implies that the entity is deactivated wherein the entity can be restored at a later state with all its associations. The entity remains in the CSS System but is considered not available for any operations such as assigning membership, provisioning. If this key is not present in the context then the entities specified by the identities would be hard deleted and would not be available for restoration.

    These properties are discussed in the field description for CSSAPIIF. Please note that if the locale is not specified, the default locale set for the system is used.

    Parameters:
    context - Map structure holding key-value information about locale.
    principal - The identity of the caller (principal authority requesting the change).
    userIdentities - Array of identities of users who are to be deleted.
    Throws:
    CSSAuthorizationException - if the principal is not authorized to perform this operation.
    CSSNoProviderException - If there is no native provider configured.
    CSSException - Any other abnormality.
    CSSCommunicationException

    deleteNativeGroups

    void deleteNativeGroups(java.util.Map context,
                            CSSPrincipalIF principal,
                            java.lang.String[] groupIdentities)
                            throws CSSAuthorizationException,
                                   CSSNoProviderException,
                                   CSSCommunicationException,
                                   CSSException

    Deletes native groups and removes all associated relationships with provisioning, parent groups, and the containing users and groups.

    The principal must have the required privileges to successfully delete the groups specified. If the principal has insufficient privileges, a CSSAuthorizationException is thrown and no deletes are carried out.

    The context can specify the following:

    1. locale
    2. soft delete: This implies that the entity is deactivated wherein the entity can be restored at a later state with all its associations. The entity remains in the CSS System but is considered not available for any operations such as assigning membership, provisioning. if this key is not present in the context then the entities specified by the identities would be hard deleted and would not be available for restoration.

    These properties are discussed in the field description for CSSAPIIF. Please note that if the locale is not specified, the default locale set for the system is used.

    Parameters:
    context - Map structure holding key-value information about locale.
    principal - The identity of the caller.
    groupIdentities - Array of identities of groups who are to be deleted.
    Throws:
    CSSAuthorizationException - If the principal is not authorized to perform this operation.
    CSSNoProviderException - If there is no native provider configured.
    CSSException - Any other abnormality.
    CSSCommunicationException

    deleteNativeRoles

    void deleteNativeRoles(java.util.Map context,
                           CSSPrincipalIF principal,
                           java.lang.String[] roleIdentities)
                           throws CSSAuthorizationException,
                                  CSSNoProviderException,
                                  CSSCommunicationException,
                                  CSSException

    Deletes roles.

    The preconfigured roles cannot be deleted. They are registered and deregistered. Deletion of an aggregate role does not lead to deletion of its consituents. However, deletion of all the constituents of an aggregate role would lead to its deletion. The principal must have the required privileges to successfully delete the roles specified. If the principal has insufficient privileges, a CSSAuthorizationException is thrown and no deletes are be carried out. Additionally, a CSSAuthorizationException is thrown in the case wherein a principal attempts to delete a preconfigured role.

    The context can specify the following:

    1. locale

    These properties are discussed in the field description for CSSAPIIF. Please note that if the locale is not specified, the default locale set for the system is used.

    Parameters:
    context - Map structure holding key-value information about locale.
    principal - The identity of the caller.
    roleIdentities - Array of identities of roles who are to be deleted.
    Throws:
    CSSAuthorizationException - If the principal is not authorized to perform this operation.
    CSSNoProviderException - If there is no native provider configured.
    CSSException - Any other abnormality.
    CSSCommunicationException

    activateNativeUsers

    void activateNativeUsers(java.util.Map context,
                             CSSPrincipalIF principal,
                             java.lang.String[] userIdentities)
                             throws CSSAuthorizationException,
                                    CSSNoProviderException,
                                    CSSCommunicationException,
                                    CSSException

    Activates native users.

    This call activates native users and re-establishes all relationships with container groups and provisioning.

    The principal must have the required privileges to successfully activate the users specified. If the principal has insufficient privileges, a CSSAuthorizationException is thrown and no activations are carried out.

    The context can specify the following:

    1. locale

    These properties are discussed in the field description for CSSAPIIF. Please note that if the locale is not specified, the default locale set for the system is used.

    Parameters:
    context - Map structure holding key-value information about locale.
    principal - The identity of the caller (principal authority requesting the change).
    userIdentities - Array of identities of users who are to be activated.
    Throws:
    CSSAuthorizationException - If the principal is not authorized to perform this operation.
    CSSNoProviderException - If there is no native provider configured.
    CSSException - Any other abnormality.
    CSSCommunicationException

    deactivateNativeUsers

    void deactivateNativeUsers(java.util.Map context,
                               CSSPrincipalIF principal,
                               java.lang.String[] userIdentities)
                               throws CSSAuthorizationException,
                                      CSSNoProviderException,
                                      CSSCommunicationException,
                                      CSSException

    De-activates native users.

    The principal must have the required privileges to successfully de-activate the users specified. If the principal has insufficient privileges, a CSSAuthorizationException is thrown and no de-activation is carried out.

    The context can specify the following:

    1. locale

    These properties are discussed in the field description for CSSAPIIF. Please note that if the locale is not specified, the default locale set for the system is used.

    Parameters:
    context - Map structure holding key-value information about locale.
    principal - The identity of the caller (principal authority requesting the change).
    userIdentities - Array of identities of users to be de-activated.
    Throws:
    CSSAuthorizationException - If the principal is not authorized to perform this operation.
    CSSNoProviderException - If there is no native provider configured.
    CSSException - Any other abnormality.
    CSSCommunicationException

    getDelegatedList

    CSSDelegatedListIF[] getDelegatedList(java.util.Map context,
                                          CSSPrincipalIF principal,
                                          java.lang.String name)
                                          throws CSSAuthorizationException,
                                                 CSSException
    Returns an array of delegated lists that matches the specified name. The name can contain wild card such as "*" Eg: "list*". A null value for the name will return empty array. If no matches are found an empty list will be returned.

    This operation can be performed by a principal who has a HUB ADMINISTRATOR ( CSSAPIIF.ROLE_ADMINISTRATOR_IDENTITY) role. It can also be performed by a principal who is a Delegated Administrator, but it will return only the lists for which he is a manager.

    Delegated Lists can be forcefully fetched for delegated admin mode off. by specifying ( CSSAPIIF.IE_DELEGATED_MODE) in the context

    The context can specify the following:

    1. locale

    These properties are discussed in the field description for CSSAPIIF. Please note that if the locale is not specified, the default locale set for the system is used.

    Parameters:
    context - Map structure holding key-value information about locale.
    principal - The identity of the caller (principal authority requesting the change).
    name - Name of the delegated list to search for.
    Returns:
    Array of matching delegated list objects.
    Throws:
    CSSAuthorizationException - If the principal is not authorized to perform this operation.
    CSSException - Any other abnormality.


    Copyright © 2005-2009 Oracle Corporation.