|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This API is utilized for purposes of Provisioning - both users and groups as
well as authorization through the use of roles. This API is thread safe -
threads can access it concurrently without introducing any deadlock or any
other abnormal behavior.
CSS defines "Provisioning" as the process of granting users and groups access
to resources be they other users and groups or entities such as dimensions,
reports etc.
All methods that retrieve users and groups would return both active and
inactive instances.
Please note that methods that specfiy relationships on CAS Domain Objects
such as Project and Applications are to be invoked only after CAS/Hub has
been invoked for the same. These methods are invoked internally by the Hub
and the product teams do not need to invoke these. For instance
addApplicationToProject(Map, CSSPrincipalIF, CSSApplicationInstance)
requires that the addition of this application to the project has already
been defined. The methods affected are:
addApplicationToProject(Map, CSSPrincipalIF, CSSApplicationInstance)
,
disassociateFromProject(Map, CSSPrincipalIF, String)
,
removeApplicationFromProject(Map, CSSPrincipalIF, String, String)
updateApplication(Map, CSSPrincipalIF, CSSApplicationInstance)
CSSException
and thrown.
Please note that any role that is associated with the Hub is considered
global. For instance: CSSAPIIF.ROLE_DIRECTORY_MANAGER_IDENTITY
is a
global role. If a user is assigned global roles then they are across
applications. If a user or a group is assigned a global role and even if it is
not assigned any roles on any application even then it is considered to be
provisioned.
Please note that to assign a user or group to a role in a application, the
principal needs to have
CSSPermissionIF.MODIFY
on the role and the
user and group and application should be viewable.
In some of methods in the API, prodoductTypes are passed in as arguments. The productType can be constructed utilizing:
In methods where a filter can be specified on names, wildcards such as '*' can be used.
For exapple a 'a*' used in the userName parameter would return the usernames
that begin with a 'a' in the order of directories that is specified by the search order.
Note that the NTLM provider does not support * as a prefix to the
userName when specifying the filter.
CSSAPIIF
Method Summary | |
void |
addApplicationToProject(java.util.Map context,
CSSPrincipalIF principal,
CSSApplicationInstance applicationInstance)
For Internal Use only - Adds an Application to a Project. |
void |
copyProvisioning(java.util.Map context,
CSSPrincipalIF principal,
java.lang.String fromAppId,
java.lang.String toAppId)
Copy's the provisioning information from a source application to the destination application. |
void |
createProduct(java.util.Map context,
java.lang.String productCode)
Creates product "organizational unit" in the Roles hierarchy if one doesn't exist. |
void |
deleteProduct(java.util.Map context,
CSSPrincipalIF principal,
java.lang.String productType)
For internal use only. |
void |
disassociateFromProject(java.util.Map context,
CSSPrincipalIF principal,
java.lang.String projectId)
Disassociate a Project. |
CSSGroupIF[] |
getAllProvisionedGroupsInApp(java.util.Map context,
CSSPrincipalIF principal,
GroupSearchFilter groupSrchFilter,
java.lang.String typeOfAccess,
java.lang.String applicationId)
Returns the groups that the specified principal can view from across the providers that are associated with the specified application and search filter passed in. |
CSSGroupIF[] |
getAllProvisionedGroupsInApp(java.util.Map context,
CSSPrincipalIF principal,
java.lang.String groupName,
java.lang.String typeOfAccess,
java.lang.String applicationId)
Returns the groups that the specified principal can view from across the providers that are associated with the application specified. |
CSSGroupIF[] |
getAllProvisionedGroupsInApps(java.util.Map context,
CSSPrincipalIF principal,
GroupSearchFilter groupSrchFilter,
com.hyperion.css.common.CSSRoleInfo[] rolesInfo,
java.lang.String typeOfAccess)
Returns all the provisioned groups in specified applications across providers. |
CSSUserIF[] |
getAllProvisionedUsersInApp(java.util.Map context,
CSSPrincipalIF principal,
java.lang.String userName,
java.lang.String typeOfAccess,
java.lang.String applicationId)
Returns the users that the specified principal can view from across the providers that are associated with the application specified. |
CSSUserIF[] |
getAllProvisionedUsersInApp(java.util.Map context,
CSSPrincipalIF principal,
UserSearchFilter userSrchFilter,
java.lang.String typeOfAccess,
java.lang.String applicationId)
Returns the users that the specified principal can view from across the providers that are associated with the specified application and search filter passed in. |
CSSUserIF[] |
getAllProvisionedUsersInApps(java.util.Map context,
CSSPrincipalIF principal,
UserSearchFilter userSrchFilter,
com.hyperion.css.common.CSSRoleInfo[] rolesInfo,
java.lang.String typeOfAccess)
Returns all the provisioned users in specified applications across providers. |
CSSApplicationInstance[] |
getApplicationsForPrincipal(java.util.Map context,
CSSPrincipalIF principal,
java.lang.String roleIdentity)
Gets the Applications that this principal is associated with. |
java.lang.String[] |
getDelegatedEntries(java.util.Map context,
CSSPrincipalIF principal,
java.lang.String[] identities)
Returns the css identities that the principal has access to from the specified list of CSS identities. |
CSSNodeIF[] |
getGraphForGroupEntries(java.util.Map context,
CSSPrincipalIF principal,
java.lang.String[] groupEntries,
int level)
Returns the graph of the "memberOf " relationships between groups and users with groups. |
CSSGroupIF |
getGroupByIdentity(java.util.Map context,
CSSPrincipalIF principal,
java.lang.String identity,
java.lang.String applicationId)
Returns the group with the specified identity provisioned to the specified application id. |
CSSGroupIF |
getGroupByIdentity(java.util.Map context,
CSSPrincipalIF principal,
java.lang.String identity,
java.lang.String applicationId,
java.lang.String typeOfAccess)
Deprecated. |
CSSGroupIF[] |
getGroups(java.util.Map context,
CSSPrincipalIF principal,
java.lang.String groupName,
java.lang.String typeOfAccess,
java.lang.String applicationId)
Returns the groups that the specified principal can view from across providers and if an application is specified then the groups returned are associated with the application. |
CSSGroupIF[] |
getGroupsWithRoleInApplication(java.util.Map context,
CSSPrincipalIF principal,
java.lang.String groupNameFilter,
java.lang.String roleIdentity,
java.lang.String applicationId,
java.lang.String typeOfAccess)
Returns the groups that the principal can view with the role specified in this application. |
java.lang.String |
getProjectForApplication(java.util.Map context,
CSSPrincipalIF principal,
java.lang.String applicationId)
Gets the Project for the Application specified. |
CSSApplicationInfoIF[] |
getProvisionedApplications(java.util.Map context,
CSSPrincipalIF principal,
java.lang.String identity,
java.lang.String[] productCodes)
Returns an array containing CSSApplicationInfoIF objects for all applications in given products for which this user/group has been provisioned. |
java.lang.String[] |
getProvisionedApps(java.util.Map context,
CSSPrincipalIF principal,
java.lang.String identity)
Deprecated. |
java.lang.String[] |
getProvisionedApps(java.util.Map context,
CSSPrincipalIF principal,
java.lang.String identity,
java.lang.String productCode)
Deprecated. |
CSSRoleIF |
getRoleByIdentity(java.util.Map context,
CSSPrincipalIF principal,
java.lang.String roleIdentity)
Return the role with the specified identity. |
CSSRoleIF |
getRoleByIdentity(java.util.Map context,
CSSPrincipalIF principal,
java.lang.String roleIdentity,
java.lang.String typeOfAccess)
Deprecated. |
CSSRoleIF[] |
getRoles(java.util.Map context,
CSSPrincipalIF principal,
com.hyperion.css.common.RoleSearchFilter roleSrchFilter)
Gets the roles associated with the query attributes like, ROLENAME,PRODUCTNAME, DESCRIPTION. |
CSSRoleIF[] |
getRoles(java.util.Map context,
CSSPrincipalIF principal,
java.lang.String roleName,
java.lang.String typeOfAccess,
java.lang.String applicationId)
Gets the roles associated with this application. |
CSSRoleIF[] |
getRolesByApplication(java.util.Map context,
CSSPrincipalIF principal,
java.lang.String applicationId,
java.lang.String roleName,
java.lang.String typeOfAccess)
Gets the roles registered by the Application that this principal has the Provisioning Manager role to. |
CSSRoleIF[] |
getRolesByProductType(java.util.Map context,
CSSPrincipalIF principal,
java.lang.String productTypeIdentity,
java.lang.String roleNameFilter,
java.lang.String typeOfAccess)
Gets the roles for this productType (both preconfigured as well as aggregated) that this principal has Provisioning Manager Role to. |
java.lang.String[] |
getRolesForGroupInApplication(java.util.Map context,
CSSPrincipalIF principal,
java.lang.String groupIdentity,
java.lang.String applicationId,
boolean indirect)
All the roles that are assigned to this group for this application are returned. |
java.lang.String[] |
getRolesForUserInApplication(java.util.Map context,
CSSPrincipalIF principal,
java.lang.String userIdentity,
java.lang.String applicationId,
boolean indirect)
Gets the roles assigned to a user for a application. |
CSSAppEntryIF[] |
getRolesListForEntries(java.util.Map context,
CSSPrincipalIF principal,
java.lang.String[] entryIdentities,
java.lang.String[] appIds,
boolean indirect)
Returns the roles that these array of entries are assigned to within the context of the specified applications. |
CSSAppEntryIF[] |
getRolesListForEntry(java.util.Map context,
CSSPrincipalIF principal,
java.lang.String entryIdentity,
java.lang.String[] appIds,
boolean indirect)
Returns the roles that this entry is assigned to within the context of the specified applications. |
CSSUserIF |
getUserByIdentity(java.util.Map context,
CSSPrincipalIF principal,
java.lang.String identity,
java.lang.String applicationId)
Returns the user with the specified identity provisioned to the specified application id. |
CSSUserIF |
getUserByIdentity(java.util.Map context,
CSSPrincipalIF principal,
java.lang.String identity,
java.lang.String applicationId,
java.lang.String typeOfAccess)
Deprecated. |
CSSUserIF[] |
getUsers(java.util.Map context,
CSSPrincipalIF principal,
java.lang.String userName,
java.lang.String typeOfAccess,
java.lang.String applicationId)
Returns the users that the principal can view from across the providers and if an application ID is specified then the users returned are associated with the application. |
java.util.List |
getUsersByIdentity(java.util.Map context,
CSSPrincipalIF principal,
java.util.List identities,
java.lang.String applicationId)
Returns users with specified identities provisioned to the specified application id. |
java.util.List |
getUsersByIdentity(java.util.Map context,
CSSPrincipalIF principal,
java.util.List identities,
java.lang.String applicationId,
java.lang.String typeOfAccess)
Deprecated. |
CSSUserIF[] |
getUsersWithRoleInApplication(java.util.Map context,
CSSPrincipalIF principal,
java.lang.String userNameFilter,
java.lang.String roleIdentity,
java.lang.String applicationId,
java.lang.String typeOfAccess)
Returns the users that the principal can view with the role specified in this application. |
boolean |
isProvisioned(java.util.Map context,
CSSPrincipalIF principal,
java.lang.String identity,
java.lang.String applicationId)
Checks to see if a user/group has been provisioned. |
void |
moveApplication(java.util.Map context,
CSSPrincipalIF principal,
java.lang.String appId,
java.lang.String projectId)
Moves the application from one project to another. |
void |
removeApplicationFromProject(java.util.Map context,
CSSPrincipalIF principal,
java.lang.String applicationId,
java.lang.String projectId)
Removes an Application from a Project. |
void |
reRegisterApplication(java.util.Map context,
CSSPrincipalIF principal,
CSSApplicationInstance applicationInstance)
For Internal Use only - Re-registers an Application that is associated with a Project. |
void |
setRolesList(java.util.Map context,
CSSPrincipalIF principal,
java.lang.String identity,
java.lang.String[] roles,
java.lang.String applicationId,
boolean add)
Sets the roles for this user or group. |
void |
updateApplication(java.util.Map context,
CSSPrincipalIF principal,
CSSApplicationInstance applicationInstance)
For Internal Use only - This method will be used to synchronize CMS and CSS, whenever a application display name is updated. |
Method Detail |
public void moveApplication(java.util.Map context, CSSPrincipalIF principal, java.lang.String appId, java.lang.String projectId) throws CSSRollbackException
context
- -
Map structure holding key-value information about locale.principal
- -
the identity of the callerappId
- - the id of the application that needs to be movedprojectId
- - the id of the project that the application needs to be moved to.
CSSRollbackException
- - if the operation could not be performed. This is a signal to the
caller to make the necessary rollbacks to preserve the consistency. If the principal does not
have the appropriate access on the project or the application to be moved to that project, then this
application is thrown.public void copyProvisioning(java.util.Map context, CSSPrincipalIF principal, java.lang.String fromAppId, java.lang.String toAppId) throws CSSCommunicationException, CSSAuthorizationException, CSSException
context
- -
Map structure holding key-value information about locale.principal
- -
the identity of the callerfromAppId
- - the id of the source applicationtoAppId
- - the id of the destination application
CSSAuthorizationException
- - if the principal is not the provisioning manager of the destination application
CSSException
- - any other abnormality
CSSCommunicationException
public boolean isProvisioned(java.util.Map context, CSSPrincipalIF principal, java.lang.String identity, java.lang.String applicationId) throws CSSAuthorizationException, CSSInvalidUserException, CSSInvalidGroupException, CSSInvalidIdentityException, CSSCommunicationException, CSSException
CSSAPIIF.ROLE_PROVISIONING_MANAGER_IDENTITY
and should also have
view access on the user
or group for invoking this method otherwise an
CSSAuthorizationException is thrown.
If the principal does not have
CSSPermissionIF.VIEW
on the
applicationId then a CSSAuthorizationException is
thrown. On the other hand if a applicationId is not specified and the
principal does not have visibility on any applications then false is
returned.
The applicationId will specify one of the following:
CSSAPIIF.SPECIFY_ALL
: All applications that this principal
has
atleast CSSPermissionIF.VIEW
on would be
searched.The context can specify the following:
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.
context
- -
Map structure holding key-value information about locale.principal
- -
the identity of the calleridentity
- -
the identity of the user or group.applicationId
- -
the id of the application.
CSSAuthorizationException
- -
if the principal is not authorized to perform this operation.
The principal does not have view access on the user/group
specified or the application if specified.
CSSInvalidUserException
- -
if the user with the identity does not exist anymore.
CSSInvalidGroupException
- -
if the group with the identity does not exist anymore.
CSSInvalidIdentityException
- -
If the user or group with the specified identity does not
exist
CSSException
- -
any other abnormality.
CSSCommunicationException
public void disassociateFromProject(java.util.Map context, CSSPrincipalIF principal, java.lang.String projectId) throws CSSRollbackException, CSSCommunicationException, CSSException
The context can specify the following:
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.
context
- -
Map structure holding key-value information about locale.principal
- -
the identity of the callerprojectId
- -
the id of the project.
CSSRollbackException
- -
if the project reference cannot be deleted in CSS. This would
signal the caller to rollback their transaction to maintain
integrity between CSS and their repository. If the principal
does not have the appropriate access on the project then this
exception is thrown.
CSSException
- -
any other abnormality.
CSSCommunicationException
public void removeApplicationFromProject(java.util.Map context, CSSPrincipalIF principal, java.lang.String applicationId, java.lang.String projectId) throws CSSException, CSSCommunicationException, CSSRollbackException
The context can specify the following:
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.
context
- -
Map structure holding key-value information about locale.principal
- -
the identity of the callerapplicationId
- -
the id for the applicationprojectId
- -
the id for the Project
CSSRollbackException
- -
if the application cannot be removed from a project in CSS.
This would signal the caller to rollback their transaction to
maintain integrity between CSS and their repository. If the
principal does not have the appropriate access on the project
then this exception is thrown as well.
CSSException
- -
any other abnormality.
CSSCommunicationException
public void addApplicationToProject(java.util.Map context, CSSPrincipalIF principal, CSSApplicationInstance applicationInstance) throws CSSException, CSSCommunicationException, CSSRollbackException
The context can specify the following:
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.
context
- -
Map structure holding key-value information about locale.principal
- -
the identity of the callerapplicationInstance
- -
the instance of CSSApplicationInstance
CSSRollbackException
- -
if the application cannot be added to a project in CSS. This
would signal the caller to rollback their transaction to
maintain integrity between CSS and their repository. If the
principal does not have the appropriate access on the project
then this exception is thrown as well.
CSSException
- -
any other abnormality.
CSSCommunicationException
public void updateApplication(java.util.Map context, CSSPrincipalIF principal, CSSApplicationInstance applicationInstance) throws CSSException, CSSRollbackException
The context can specify the following:
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.
context
- -
Map structure holding key-value information about locale.principal
- -
the identity of the callerapplicationInstance
- -
the instance of CSSApplicationInstance
CSSRollbackException
- -
if the application cannot be added to a project in CSS. This
would signal the caller to rollback their transaction to
maintain integrity between CSS and their repository. If the
principal does not have the appropriate access on the project
then this exception is thrown as well.
CSSException
- -
any other abnormality.public void deleteProduct(java.util.Map context, CSSPrincipalIF principal, java.lang.String productType) throws CSSRollbackException, CSSCommunicationException, CSSException
The context can specify the following:
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.
context
- -
Map structure holding key-value information about locale.principal
- -
the identity of the caller. Cannot be null.productType
- -
the productType value. Ex: HFM-4.0.0.
CSSRollbackException
- -
if the product cannot be deleted in CSS. This would signal
the caller to rollback their transaction to maintain
integrity between CSS and their repository. If the principal
does not have the appropriate access on the product then this
exception is thrown as well.
CSSCommunicationException
- -
Thrown on communication problems.
CSSException
- -
any other abnormality.public CSSApplicationInstance[] getApplicationsForPrincipal(java.util.Map context, CSSPrincipalIF principal, java.lang.String roleIdentity) throws CSSInvalidIdentityException, CSSCommunicationException, CSSException
CSSAPIIF.ROLE_PROVISIONING_MANAGER_IDENTITY
to see the
Application
The context can specify the following:
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.
context
- -
Map structure holding key-value information about locale.principal
- -
the identity of the caller. Cannot be nullroleIdentity
- -
the identity for the role. For instance:
CSSAPIIF.ROLE_PROVISIONING_MANAGER_IDENTITY
CSSInvalidIdentityException
- -
if the identity argument is not valid or is malformed.
CSSException
- -
any other abnormality.
CSSCommunicationException
public java.lang.String[] getRolesForUserInApplication(java.util.Map context, CSSPrincipalIF principal, java.lang.String userIdentity, java.lang.String applicationId, boolean indirect) throws CSSAuthorizationException, CSSInvalidIdentityException, CSSInvalidUserException, CSSCommunicationException, CSSException
CSSAuthorizationException
will be thrown if the specified principal
does not have access to the user.
The aggregated roles are also returned along with their constituents.
If the user has any Hub Roles (like Administrator), then these are also returned.
The context can specify the following:
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.
context
- -
Map structure holding key-value information about locale.principal
- -
the identity of the caller. Cannot be null.userIdentity
- -
the identity for the userapplicationId
- -
the id for the Application.indirect
- -
if true then returns the roles assigned to this user through
indirect associations such as through parent groups.
CSSAuthorizationException
- -
if the principal does not have VIEW access on the application
or the user.
CSSInvalidUserException
- -
if the user with the identity does not exist anymore.
CSSInvalidIdentityException
- -
If the user with the specified identity does not exist
CSSException
- -
any other abnormality.
CSSCommunicationException
public java.lang.String[] getRolesForGroupInApplication(java.util.Map context, CSSPrincipalIF principal, java.lang.String groupIdentity, java.lang.String applicationId, boolean indirect) throws CSSAuthorizationException, CSSInvalidIdentityException, CSSInvalidGroupException, CSSCommunicationException, CSSException
CSSAuthorizationException
will be thrown if the
specified principal does not have access to this group.
The aggregated roles are also returned along with their constituents. If
the group has any Hub Roles (like Administrator ), then please pass in
the hub application id to retrieve those..
The context can specify the following:
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.
context
- -
Map structure holding key-value information about locale.principal
- -
the identity of the caller. Cannot be null.groupIdentity
- -
the identity for the groupapplicationId
- -
the id for the Applicationindirect
- -
if true then returns the roles assigned to this group through
indirect associations such as through parent groups.
CSSAuthorizationException
- -
if the principal does not have VIEW access on the application or
the group.
CSSInvalidGroupException
- -
if the group with the identity does not exist anymore.
CSSInvalidIdentityException
- -
If the group with the specified identity does not exist
CSSException
- -
any other abnormality.
CSSCommunicationException
public CSSRoleIF[] getRolesByProductType(java.util.Map context, CSSPrincipalIF principal, java.lang.String productTypeIdentity, java.lang.String roleNameFilter, java.lang.String typeOfAccess) throws CSSIllegalArgumentException, CSSCommunicationException, CSSException
The roleName could contain a wildcard such as "*". This implies that all the matching roles in the directory need to be returned.
The context can specify the following:
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.
context
- -
Map structure holding key-value information about locale.principal
- -
the identity of the caller. Cannot be null.productTypeIdentity
- -
specifies the identity of the product type. For instance:
HFM-3.0.0. The productType can be constructed utilizing:roleNameFilter
- -
the filter for the role name.typeOfAccess
- -
reserved for future use. Can be null.
CSSIllegalArgumentException
- -
if the parameters are not valid. For instance: the
productTypeIdentity is not valid.
CSSException
- -
any other abnormality.
CSSCommunicationException
public CSSRoleIF[] getRolesByApplication(java.util.Map context, CSSPrincipalIF principal, java.lang.String applicationId, java.lang.String roleName, java.lang.String typeOfAccess) throws CSSAuthorizationException, CSSCommunicationException, CSSException
The roleName could contain a wildcard such as "*". This implies that all the matching roles in the directory need to be returned.
The context can specify the following:
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.
context
- -
Map structure holding key-value information about locale.principal
- -
the identity of the caller. Cannot be null.applicationId
- -
specifies the id for the application.roleName
- -
the filter for the role name. Empty if the principal does not
have the specified access on any of the roles.typeOfAccess
- -
reserved for future use. Can be null.
CSSAuthorizationException
- -
if the principal does not have atleas VIEW on the application.
CSSException
- -
any other abnormality.
CSSCommunicationException
public CSSRoleIF[] getRoles(java.util.Map context, CSSPrincipalIF principal, java.lang.String roleName, java.lang.String typeOfAccess, java.lang.String applicationId) throws CSSAuthorizationException, CSSCommunicationException, CSSException
CSSAPIIF.SPECIFY_NONE
: Roles across applications would be
returned.The roleName could contain a wildcard such as "*". This implies that all the matching roles in the directory need to be returned.
The context can specify the following:
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.
context
- -
Map structure holding key-value information about locale.principal
- -
the identity of the caller. Cannot be null.roleName
- -
the filter for the role name.typeOfAccess
- -
reserved for future use. Can be null.applicationId
- -
the id for the application. The roles are returned for the product that
this application associated with.
CSSAuthorizationException
- -
if the principal does not have atleas VIEW on the application
CSSException
- -
any other abnormality.
CSSCommunicationException
public CSSRoleIF[] getRoles(java.util.Map context, CSSPrincipalIF principal, com.hyperion.css.common.RoleSearchFilter roleSrchFilter) throws CSSAuthorizationException, CSSCommunicationException, CSSException
The attribute could contain a wildcard such as "*". This implies that all the matching roles in the directory need to be returned.
The context can specify the following:
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.
context
- -
Map structure holding key-value information about locale.principal
- -
the identity of the caller. Cannot be null.roleSrchFilter
- - which contains the filter attributes abd values.
CSSAuthorizationException
- -
if the principal does not have atleas VIEW on the application
CSSException
- -
any other abnormality.
CSSCommunicationException
public CSSRoleIF getRoleByIdentity(java.util.Map context, CSSPrincipalIF principal, java.lang.String roleIdentity) throws CSSInvalidRoleException, CSSInvalidIdentityException, CSSCommunicationException, CSSException
The context can specify the following:
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.
context
- -
Map structure holding key-value information about locale.principal
- -
the identity of the caller. Cannot be null.roleIdentity
- -
the identity of the role.
CSSInvalidRoleException
- -
the role specified by the identity does not exist.
CSSInvalidIdentityException
- -
If the identity specified is not valid.
CSSException
- -
Any other reasons.
CSSCommunicationException
public CSSRoleIF getRoleByIdentity(java.util.Map context, CSSPrincipalIF principal, java.lang.String roleIdentity, java.lang.String typeOfAccess) throws CSSInvalidRoleException, CSSInvalidIdentityException, CSSCommunicationException, CSSException
getRoleByIdentity(Map, CSSPrincipalIF, String)
instead.
CSSInvalidRoleException
CSSInvalidIdentityException
CSSCommunicationException
CSSException
public CSSUserIF[] getUsers(java.util.Map context, CSSPrincipalIF principal, java.lang.String userName, java.lang.String typeOfAccess, java.lang.String applicationId) throws CSSCommunicationException, CSSException
The context can specify the following:
CSSAPIIF.LOCALE
CSSAPIIF.ENTITY_DEACTIVATE
- Deactivated users would be returned as well.
CSSAPIIF.SPECIFY_NONE
: if the user list required is not
application specific. This will return a list of users from across
directories.
context
- -
Map structure holding key-value information about locale.principal
- -
the identity of the caller. Cannot be null.userName
- -
the userName. A filter can be specified here.typeOfAccess
- - the typeOfAccess can be CSSAPIIF.ACCESS_TYPE_VIEW
or CSSAPIIF.ACCESS_TYPE_MANAGE
.applicationId
- -
the id for the application.
CSSCommunicationException
- -
if provider is specified with the name of the user viz. in
the userName argument but is not reachable. For
instance: "userName@providerName".
CSSException
public CSSUserIF getUserByIdentity(java.util.Map context, CSSPrincipalIF principal, java.lang.String identity, java.lang.String applicationId, java.lang.String typeOfAccess) throws CSSCommunicationException, CSSInvalidIdentityException, CSSInvalidUserException, CSSAuthorizationException, CSSUserNotProvisionedException, CSSException
getUserByIdentity(Map, CSSPrincipalIF, String, String)
instead.
CSSCommunicationException
CSSInvalidIdentityException
CSSInvalidUserException
CSSAuthorizationException
CSSUserNotProvisionedException
CSSException
public CSSUserIF getUserByIdentity(java.util.Map context, CSSPrincipalIF principal, java.lang.String identity, java.lang.String applicationId) throws CSSCommunicationException, CSSInvalidIdentityException, CSSInvalidUserException, CSSAuthorizationException, CSSUserNotProvisionedException, CSSException
CSSAuthorizationException
will be
thrown if the principal does not have access to this application.
The applicationId will specify one of the following:
CSSAPIIF.SPECIFY_NONE
: This will return the CSSUserIF
irrespective of the users association with the application.
context
- -
Map structure holding key-value information about locale.principal
- -
the identity of the caller. Cannot be null.identity
- -
the identity of the user.applicationId
- -
the application Id.
CSSCommunicationException
- -
If the provider is not reachable.
CSSInvalidIdentityException
- -
If the identity specified is not valid.
CSSUserNotProvisionedException
- -
If the User Identity specfied is not provisioned to the
application specified.
CSSAuthorizationException
- -
If the principal does not have access to the application.
CSSInvalidUserException
- -
this implies that the user does not exist but must have
existed at some time in the past.
CSSException
- Any other reasons.public java.util.List getUsersByIdentity(java.util.Map context, CSSPrincipalIF principal, java.util.List identities, java.lang.String applicationId, java.lang.String typeOfAccess) throws CSSCommunicationException, CSSInvalidIdentityException, CSSInvalidUserException, CSSAuthorizationException, CSSUserNotProvisionedException, CSSException
getUsersByIdentity(Map, CSSPrincipalIF, List, String)
instead.
CSSCommunicationException
CSSInvalidIdentityException
CSSInvalidUserException
CSSAuthorizationException
CSSUserNotProvisionedException
CSSException
public java.util.List getUsersByIdentity(java.util.Map context, CSSPrincipalIF principal, java.util.List identities, java.lang.String applicationId) throws CSSCommunicationException, CSSInvalidIdentityException, CSSInvalidUserException, CSSAuthorizationException, CSSUserNotProvisionedException, CSSException
CSSAuthorizationException
will be
thrown if the specified principal does not have access to the application.
The applicationId will specify one of the following:
CSSAPIIF.SPECIFY_NONE
: This will return the CSSUserIF
irrespective of the users association with the application.
context
- -
Map structure holding key-value information about locale.principal
- -
the identity of the caller. Cannot be null.identities
- -
A list of identities of users.applicationId
- -
the application Id.
CSSCommunicationException
- -
If the provider is not reachable.
CSSInvalidIdentityException
- -
If any one of the identities specified is not valid.
CSSUserNotProvisionedException
- -
If any of the user identitities specfied is not provisioned to the
application specified.
CSSAuthorizationException
- If the principal is not authorized to view this application.
CSSInvalidUserException
- -
this implies that the user does not exist but must have
existed at some time in the past.
CSSException
- Any other reasons.public CSSUserIF[] getAllProvisionedUsersInApp(java.util.Map context, CSSPrincipalIF principal, java.lang.String userName, java.lang.String typeOfAccess, java.lang.String applicationId) throws CSSCommunicationException, CSSException
The context can specify the following:
CSSAPIIF.LOCALE
CSSAPIIF.ENTITY_DEACTIVATE
- if specified, then the deactivated users will be returned as well.
CSSAPIIF.ENTITY_DEACTIVATE
is not implemented.
The applicationId will specify the applicationId.
context
- - Map structure holding key-value information about locale.principal
- -
the identity of the caller. Cannot be null.userName
- -
the userName. A filter can be specified here.typeOfAccess
- - the typeOfAccess can be CSSAPIIF.ACCESS_TYPE_VIEW
or CSSAPIIF.ACCESS_TYPE_MANAGE
.applicationId
- -
the id for the application.
CSSCommunicationException
- -
if any of the configured provider is not reachable.
CSSException
public CSSUserIF[] getAllProvisionedUsersInApp(java.util.Map context, CSSPrincipalIF principal, UserSearchFilter userSrchFilter, java.lang.String typeOfAccess, java.lang.String applicationId) throws CSSCommunicationException, CSSException
UserSearchFilter
contains user filter attributes and values like,
USERNAME,FIRSTNAME,LASTNAME,EMAIL,DESCRIPTION.
This supports wild card search.
Eg. The search for users based on *userName* should return
all users matching this pattern.
when the attribute value is specified as "*" This implies that all the users in the directory need to be returned.The query can be based on any one of the above attributes.
Sample use of the application:
UserSearchFilter userSrchFilter = new UserSearchFilter(UserFilterAttribute.FIRSTNAME, "*j*");
CSSUserIF[] users = upAPI.getAllProvisionedUsersInApp(context, principal, userSrchFilter, CSSAPIIF.ACCESS_TYPE_MANAGE, "HP1:HPLOCAL");
The context can specify the following:
CSSAPIIF.LOCALE
CSSAPIIF.ENTITY_DEACTIVATE
- if specified, then the deactivated users will be returned as well.
CSSAPIIF.ENTITY_DEACTIVATE
is not implemented.
The applicationId will specify the applicationId.
context
- - Map structure holding key-value information about locale.principal
- -
the identity of the caller. Cannot be null.userSrchFilter
- - contains the search filter attribute and value.typeOfAccess
- - the typeOfAccess can be CSSAPIIF.ACCESS_TYPE_VIEW
or CSSAPIIF.ACCESS_TYPE_MANAGE
.applicationId
- - the id for the application.
CSSCommunicationException
- -
if any of the configured provider is not reachable.
CSSException
public CSSGroupIF[] getGroups(java.util.Map context, CSSPrincipalIF principal, java.lang.String groupName, java.lang.String typeOfAccess, java.lang.String applicationId) throws CSSCommunicationException, CSSException
The context can specify the following:
The applicationId will specify one of the following:CSSAPIIF.SPECIFY_NONE
: if the group list required is not
application specific. This will return a list of group from across
directories.
context
- - Map structure holding key-value information about locale.principal
- -
the identity of the caller. Cannot be null.groupName
- -
the group Name. A filter can be specified here.typeOfAccess
- - the typeOfAccess can be CSSAPIIF.ACCESS_TYPE_VIEW
or CSSAPIIF.ACCESS_TYPE_MANAGE
.applicationId
- -
the id for the application.
CSSCommunicationException
- -
if provider is specified with the name of the user viz. in
the userName argument but is not reachable. For
instance: "groupName@providerName".
CSSException
public CSSGroupIF getGroupByIdentity(java.util.Map context, CSSPrincipalIF principal, java.lang.String identity, java.lang.String applicationId, java.lang.String typeOfAccess) throws CSSCommunicationException, CSSInvalidIdentityException, CSSInvalidGroupException, CSSGroupNotProvisionedException, CSSAuthorizationException, CSSException
getGroupByIdentity(Map, CSSPrincipalIF, String, String)
instead.
CSSCommunicationException
CSSInvalidIdentityException
CSSInvalidGroupException
CSSGroupNotProvisionedException
CSSAuthorizationException
CSSException
public CSSGroupIF getGroupByIdentity(java.util.Map context, CSSPrincipalIF principal, java.lang.String identity, java.lang.String applicationId) throws CSSCommunicationException, CSSInvalidIdentityException, CSSInvalidGroupException, CSSGroupNotProvisionedException, CSSAuthorizationException, CSSException
CSSAuthorizationException
will
be thrown if the specified principal does have access to the application.
The applicationId will specify one of the following:
CSSAPIIF.SPECIFY_NONE
: This will return the CSSGroupIF
irrespective of the groups association with the application.
context
- -
Map structure holding key-value information about locale.principal
- -
the identity of the caller. Cannot be null.identity
- -
the identity of the group.applicationId
- -
the application Id.
CSSCommunicationException
- -
If the provider is not reachable.
CSSInvalidIdentityException
- -
If the identity specified is not valid.
CSSInvalidGroupException
- -
this implies that the group does not exist but must have
existed at some time in the past.
CSSAuthorizationException
- If the principal is not authorized to view this application.
CSSGroupNotProvisionedException
- -
If the Group Identity specfied is not provisioned to the
application specified.
CSSException
- Any other reasons.public CSSGroupIF[] getAllProvisionedGroupsInApp(java.util.Map context, CSSPrincipalIF principal, java.lang.String groupName, java.lang.String typeOfAccess, java.lang.String applicationId) throws CSSCommunicationException, CSSException
The context can specify the following:
context
- - Map structure holding key-value information about locale.principal
- -
the identity of the caller. Cannot be null.groupName
- -
the group Name. A filter can be specified here.typeOfAccess
- - the typeOfAccess can be CSSAPIIF.ACCESS_TYPE_VIEW
or CSSAPIIF.ACCESS_TYPE_MANAGE
.applicationId
- -
the id for the application.
CSSCommunicationException
- -
if any of the configured provider is not reachable.
CSSException
public CSSGroupIF[] getAllProvisionedGroupsInApp(java.util.Map context, CSSPrincipalIF principal, GroupSearchFilter groupSrchFilter, java.lang.String typeOfAccess, java.lang.String applicationId) throws CSSCommunicationException, CSSException
GroupSearchFilter
stores the search criteria for searching groups.
Search is based on GroupFilterAttribute
representing group filter attributes
such as GROUPNAME / DESCRIPTION, groupFilter
accepting wildcards
In order to be associated with an application, the group has to have a
role for this application.
Sample use of the application:
GroupSearchFilter groupSrchFilter = new GroupSearchFilter(GroupFilterAttribute.DESCRIPTION, "*v*");
CSSGroupIF[] groups = upAPI.getAllProvisionedGroupsInApp(context, principal, groupSrchFilter, CSSAPIIF.ACCESS_TYPE_MANAGE, "HP1:HPLOCAL");
The context can specify the following:
context
- - Map structure holding key-value information about locale.principal
- -
the identity of the caller. Cannot be null.groupSrchFilter
- - contains the search filter attribute and value.typeOfAccess
- - the typeOfAccess can be CSSAPIIF.ACCESS_TYPE_VIEW
or CSSAPIIF.ACCESS_TYPE_MANAGE
.applicationId
- -
the id for the application.
CSSCommunicationException
- -
if any of the configured provider is not reachable.
CSSException
public void setRolesList(java.util.Map context, CSSPrincipalIF principal, java.lang.String identity, java.lang.String[] roles, java.lang.String applicationId, boolean add) throws CSSCommunicationException, CSSAuthorizationException, CSSInvalidIdentityException, CSSException
CSSAuthorizationException
will be thrown if the principal does not have access to the identity specified.
For assigning users and groups to Hub Global roles, please use the
CSSAPIIF.HUB_APPLICATION_ID
as the application id. For the roles
that are specific to applications, please pass in the product's
application id.
context
- -
Map structure holding key-value information about locale.principal
- -
the identity of the calleridentity
- -
the identity of the user or grouproles
- -
the identities of the roles.applicationId
- -
the id of the Applicationadd
- -
if true, then the roles are added to the existing roles.
Otherwise, the existing roles are replaced.
CSSCommunicationException
CSSAuthorizationException
- -
If the principal does not have access to the idenitity specified.
CSSInvalidIdentityException
CSSException
public java.lang.String getProjectForApplication(java.util.Map context, CSSPrincipalIF principal, java.lang.String applicationId) throws CSSCommunicationException, CSSException
context
- -
Map structure holding key-value information about locale.principal
- -
the identity of the caller. Cannot be null.applicationId
- -
the id of the Application.
CSSException
CSSCommunicationException
public CSSUserIF[] getUsersWithRoleInApplication(java.util.Map context, CSSPrincipalIF principal, java.lang.String userNameFilter, java.lang.String roleIdentity, java.lang.String applicationId, java.lang.String typeOfAccess) throws CSSCommunicationException, CSSException
The context can specify the following:
CSSAPIIF.LOCALE
CSSAPIIF.ENTITY_DEACTIVATE
- if specified, then the
deactivated users will be returned as well.
CSSAPIIF.DIRECT_ROLE_ONLY
- if specified, only the
role identity passed is considered. Else, the parent roles of the
role identity passed also are considered.
CSSAPIIF.ENTITY_DEACTIVATE
is not implemented.
To get all users associated with this application through any of the
roles, please pass in CSSAPIIF.SPECIFY_ALL
for the
roleIdentity argument.
context
- -
Map structure holding key-value information about locale.principal
- -
the identity of the caller. Cannot be null.userNameFilter
- roleIdentity
- applicationId
- typeOfAccess
- - the typeOfAccess can be CSSAPIIF.ACCESS_TYPE_VIEW
or CSSAPIIF.ACCESS_TYPE_MANAGE
.
CSSException
CSSCommunicationException
public CSSGroupIF[] getGroupsWithRoleInApplication(java.util.Map context, CSSPrincipalIF principal, java.lang.String groupNameFilter, java.lang.String roleIdentity, java.lang.String applicationId, java.lang.String typeOfAccess) throws CSSException
The context can specify the following:
CSSAPIIF.DIRECT_ROLE_ONLY
- if specified, only the
role identity passed is considered. Else, the parent roles of the
role identity passed also are considered.
CSSAPIIF.SPECIFY_ALL
for the
roleIdentity argument.
context
- -
Map structure holding key-value information about locale.principal
- -
the identity of the caller. Cannot be null.groupNameFilter
- roleIdentity
- applicationId
- typeOfAccess
- - the typeOfAccess can be CSSAPIIF.ACCESS_TYPE_VIEW
or CSSAPIIF.ACCESS_TYPE_MANAGE
.
CSSException
public void createProduct(java.util.Map context, java.lang.String productCode) throws CSSCommunicationException, CSSException
context
- -
Map structure holding key-value information about locale.productCode
- -
product code obtained from application instance
CSSException
CSSCommunicationException
public CSSAppEntryIF[] getRolesListForEntry(java.util.Map context, CSSPrincipalIF principal, java.lang.String entryIdentity, java.lang.String[] appIds, boolean indirect) throws CSSCommunicationException, CSSException
CSSAuthorizationException
will be
thrown if the specified
Indirect would not be supported for Joyce and London.
The context can specify the following:
CSSAPIIF.LOCALE
CSSAPIIF.QUERY_LIMIT
- If true, it limits the scope of the
operations and would not return the name, email etc. of the user or group
entries. If true, then the impact in terms of faster execution of the
method would be seen especially when utilized with the
indirect=false settings. In this case the query would not
extend to any corporate directories.
CSSAPIIF.SPECIFY_ALL
: Returns all the provisioned entries.
Basically returns all entries that are provisoned to the applications
specified.CSSAppEntryIF.getEntries()
would be an empty array.
Please note that this method would not set any limits on the no of entries returned.
All entries would be returned.
context
- -
Map structure holding key-value information about locale.principal
- -
the identity of the caller. Cannot be null.entryIdentity
- -
the identity of the entry whose roles assignements are
requested.appIds
- -
the application ids arrayindirect
- -
if true then returns the roles assigned to this entry through
indirect associations such as through parent groups.
This (value of true) is not supported yet.
CSSCommunicationException
- -
if there is issue communicating to the corporate or Hyperion
User Directory.
CSSException
- -
any other abonormalitypublic CSSNodeIF[] getGraphForGroupEntries(java.util.Map context, CSSPrincipalIF principal, java.lang.String[] groupEntries, int level) throws CSSCommunicationException, CSSAuthorizationException, CSSException
if the specified principal does not have access to the specified group
identities a CSSAuthorizationException
will be thrown.
The "memberOf" relationship will also be filtered based on the users and groups that the specified principal can view. For example: Group1 has Group2 and Group3 as members. Principal has access only to Group1 and Group2, then Group3 will be filtered out of the result graph.
The context can specify the following:
context
- -
Map structure holding key-value information about locale.principal
- -
the identity of the caller. Cannot be null.groupEntries
- -
the identities of groups for which the children are to be
returned in a graph.level
- -
the level to recurse to. Zero specifies recurse to all levels. Not implemented in this release. The
default is to recurse to return all the children irresepective
of the level they are at.
CSSCommunicationException
- -
if there is issue communicating to the corporate or Hyperion
User Directory.
CSSAuthorizationException
- -
if the principal does not have access to the specified group identities.
CSSException
- -
any other abonormalitypublic CSSAppEntryIF[] getRolesListForEntries(java.util.Map context, CSSPrincipalIF principal, java.lang.String[] entryIdentities, java.lang.String[] appIds, boolean indirect) throws CSSCommunicationException, CSSAuthorizationException, CSSException
CSSAuthorizationException
will be
thrown if the entry identities is not accessible by the specified principal.
Indirect would not be supported for Joyce.
The context can specify the following:
CSSAPIIF.LOCALE
CSSAPIIF.QUERY_LIMIT
- If true, it limits the scope of the
operations and would not return the name, email etc. of the user or group
entries. If true, then the impact in terms of faster execution of the
method would be seen especially when utilized with the
indirect=false settings. In this case the query would not
extend to any corporate directories.
CSSAppEntryIF.getEntries()
would be an empty array.
context
- -
Map structure holding key-value information about locale.principal
- -
the identity of the caller. Cannot be null.entryIdentities
- -
the identities of the entries whose roles assignements are
requested.appIds
- -
the application ids arrayindirect
- -
if true then returns the roles assigned to this entry through
indirect associations such as through parent groups.
CSSCommunicationException
- -
if there is issue communicating to the corporate or Hyperion
User Directory.
CSSAuthorizationException
- -
if the principal does not have access to the specified entry identities.
CSSException
- -
any other abonormalitypublic void reRegisterApplication(java.util.Map context, CSSPrincipalIF principal, CSSApplicationInstance applicationInstance) throws CSSException, CSSCommunicationException, CSSRollbackException
The context can specify the following:
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.
context
- -
Map structure holding key-value information about locale.principal
- -
the identity of the callerapplicationInstance
- -
the instance of CSSApplicationInstance
CSSRollbackException
- -
if the application cannot be added to a project in CSS. This
would signal the caller to rollback their transaction to
maintain integrity between CSS and their repository. If the
principal does not have the appropriate access on the project
then this exception is thrown as well.
CSSException
- -
any other abnormality.
CSSCommunicationException
public java.lang.String[] getProvisionedApps(java.util.Map context, CSSPrincipalIF principal, java.lang.String identity) throws CSSException
This will not return the HUB application as per product specific requirement. The context can specify the following:
CSSAPIIF.LOCALE
context
- -
Map structure holding key-value information about locale.principal
- -
the identity of the caller. Cannot be null.identity
- -
the identity of the user/group
CSSException
- -thrown when the operation is not successful.public java.lang.String[] getProvisionedApps(java.util.Map context, CSSPrincipalIF principal, java.lang.String identity, java.lang.String productCode) throws CSSException
The context can specify the following:
CSSAPIIF.LOCALE
context
- -
Map structure holding key-value information about locale.principal
- -
the identity of the caller. Cannot be null.identity
- -
the identity of the user/groupproductCode
- -
The product code for which the provisioned applications are looked for.
CSSException
- -thrown when the operation is not successful.public CSSApplicationInfoIF[] getProvisionedApplications(java.util.Map context, CSSPrincipalIF principal, java.lang.String identity, java.lang.String[] productCodes) throws CSSException
The context can specify the following:
CSSAPIIF.LOCALE
context
- -
Map structure holding key-value information about locale.principal
- -
the identity of the caller. Cannot be null.identity
- -
the identity of the user/groupproductCodes
- - The product codes (such as HP, HFM) for which the provisioned applications are looked for.
- null to get for all applications.
CSSException
- -thrown when the operation is not successful.public java.lang.String[] getDelegatedEntries(java.util.Map context, CSSPrincipalIF principal, java.lang.String[] identities) throws CSSException
CSSException will be thrown incase there is any trouble getting the delegated list for this principal.
context
- - Map structure holding key-value information about locale.principal
- - the identity of the caller. Cannot be null.identities
- - the identities of the users/groups
CSSIllegalArgumentException
- - when principal is null
CSSException
public CSSUserIF[] getAllProvisionedUsersInApps(java.util.Map context, CSSPrincipalIF principal, UserSearchFilter userSrchFilter, com.hyperion.css.common.CSSRoleInfo[] rolesInfo, java.lang.String typeOfAccess) throws CSSException
UserSearchFilter
contains user filter attributes and values like
USERNAME, FIRSTNAME, LASTNAME, EMAIL, DESCRIPTION.
This supports wild card search.
Eg. The search for users based on *userName* should return
all users matching this pattern.
When the attribute value is specified as "*" this implies that all the users in the directory need to be returned. The query can be based on any one of the above attributes.
Sample use of the application:
UserSearchFilter userSrchFilter = new UserSearchFilter(UserFilterAttribute.FIRSTNAME, "*j*");
String[] hubRoles = new String[]{
"native://DN=cn=HUB:15,ou=HUB,ou=Roles,dc=css,dc=hyperion,dc=com?ROLE",
CSSAPIIF.ROLE_CREATE_INTEGRATIONS_IDENTITY,
CSSAPIIF.ROLE_PLANNING_APPLICATION_CREATOR_IDENTITY,
CSSAPIIF.ROLE_PLANNING_CALCULATION_MANAGER_ADMINISTRATOR_IDENTITY,
CSSAPIIF.ROLE_RUN_INTEGRATIONS_IDENTITY
};
String[] planningRoles = new String[]{
"native://DN=cn=HP:0002,ou=HP,ou=Roles,dc=css,dc=hyperion,dc=com?ROLE",
"native://DN=cn=HP:0003,ou=HP,ou=Roles,dc=css,dc=hyperion,dc=com?ROLE",
"native://DN=cn=HP:0001,ou=HP,ou=Roles,dc=css,dc=hyperion,dc=com?ROLE"
};
CSSRoleInfo[] rolesInfo = new CSSRoleInfo[]{
new CSSRoleInfo("HUB:1111", hubRoles),
new CSSRoleInfo("HP:HPAPP",planningRoles)
};
CSSUserIF[] users = CSSSystem.getManager().getNativeProvider().getUsersForRolesInApps(context,
principal, userSrchFilter, rolesInfo, CSSAPIIF.ACCESS_TYPE_VIEW);
The context can specify the following:
CSSAPIIF.LOCALE
CSSAPIIF.ENTITY_DEACTIVATE
- if specified, then the deactivated users will be returned as well.
context
- - Map structure holding key-value information about locale.principal
- -
the identity of the caller. Cannot be null.userSrchFilter
- - contains the search filter attribute and value.typeOfAccess
- - the typeOfAccess can be CSSAPIIF.ACCESS_TYPE_VIEW
or CSSAPIIF.ACCESS_TYPE_MANAGE
.rolesInfo
- - array of data structures which takes appId and roles array.
Every rolesInfo element should specify at least one role in the roles array.
CSSCommunicationException
- -
if any of the configured provider is not reachable.
CSSException
public CSSGroupIF[] getAllProvisionedGroupsInApps(java.util.Map context, CSSPrincipalIF principal, GroupSearchFilter groupSrchFilter, com.hyperion.css.common.CSSRoleInfo[] rolesInfo, java.lang.String typeOfAccess) throws CSSException
GroupSearchFilter
stores the search criteria for searching groups.
Search is based on GroupFilterAttribute
representing group filter attributes
such as GROUPNAME / DESCRIPTION, groupFilter
accepting wildcards.
In order to be associated with an application, the group has to have a
role for this application.
Sample use of the application:
GroupSearchFilter groupSrchFilter = new GroupSearchFilter(GroupFilterAttribute.DESCRIPTION, "*v*");
String[] hubRoles = new String[]{
"native://DN=cn=HUB:15,ou=HUB,ou=Roles,dc=css,dc=hyperion,dc=com?ROLE",
CSSAPIIF.ROLE_CREATE_INTEGRATIONS_IDENTITY,
CSSAPIIF.ROLE_PLANNING_APPLICATION_CREATOR_IDENTITY,
CSSAPIIF.ROLE_PLANNING_CALCULATION_MANAGER_ADMINISTRATOR_IDENTITY,
CSSAPIIF.ROLE_RUN_INTEGRATIONS_IDENTITY
};
String[] planningRoles = new String[]{
"native://DN=cn=HP:0002,ou=HP,ou=Roles,dc=css,dc=hyperion,dc=com?ROLE",
"native://DN=cn=HP:0003,ou=HP,ou=Roles,dc=css,dc=hyperion,dc=com?ROLE",
"native://DN=cn=HP:0001,ou=HP,ou=Roles,dc=css,dc=hyperion,dc=com?ROLE"
};
CSSRoleInfo[] rolesInfo = new CSSRoleInfo[]{
new CSSRoleInfo("HUB:1111", hubRoles),
new CSSRoleInfo("HP:HPAPP",planningRoles)
};
CSSGroupIF[] groups = upAPI.getGroupsForRolesInApps(context, principal, groupSrchFilter, rolesInfo, CSSAPIIF.ACCESS_TYPE_VIEW);
The context can specify the following:
context
- - Map structure holding key-value information about locale.principal
- -
the identity of the caller. Cannot be null.groupSrchFilter
- - contains the search filter attribute and value.typeOfAccess
- - the typeOfAccess can be CSSAPIIF.ACCESS_TYPE_VIEW
or CSSAPIIF.ACCESS_TYPE_MANAGE
.rolesInfo
- - array of data structures which takes appId and roles array.
Every rolesInfo element should specify at least one role in the roles array.
CSSCommunicationException
- -
if any of the configured provider is not reachable.
CSSException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |