Package oracle.tip.pc.services.identity
Interface BPMIdentity
- All Superinterfaces:
BPMPrincipal,Principal
- All Known Subinterfaces:
BPMAppRole,BPMGroup,BPMRole,BPMUser
BPMIdentity interface defines a BPEL Process Manager Identity.
This interface can be implemented to represented a user or role entity in the backend.-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.since 11.getAppRoles(boolean direct) Gets list of application roles,BPMAppRoles, which thisBPMIndentityhas been granted.getAppRoles(boolean direct, String appName) Gets list of application roles,BPMAppRoles, which thisBPMIndentityhas been granted.getEmail()Gets e-mail address for thisBPMIdentity.getGrantedRoles(boolean direct) Gets set of allBPMRoleobjects which theBPMIndentityhas been grantedgetGrantedRoles(boolean direct, String appName) Gets set of allBPMRoleobjects which theBPMIndentityhas been grantedgetGroups(boolean direct) Gets list of allBPMGroupobjects which thisBPMIndentityhas been granted.Gets identity type.getManagedRoles(boolean direct) Gets a List of BPMRoles managed by this identity.getOwnedRoles(boolean direct) Gets all roles owned by this identity.getRoles(RoleClassifier roleType, boolean direct) Deprecated.since release 11.booleanisInAppRole(String appRoleName, String appId) Defines whether the BPMIdentity belongs to given Application Role.booleanDefines whether the BPMIdentity belongs to given Group.booleanDeprecated.since release 11.booleanDefines whether the BPMIdentity belongs to givenBPMRolebooleanCheck whether the principal owns the role.Methods inherited from interface oracle.tip.pc.services.identity.BPMPrincipal
getAttribute, getAttributes, getDescription, getDisplayName, getDisplayName, getFullName, getGuid, getRealmName, getUniqueName, toNode
-
Method Details
-
getIdentityType
BPMIdentityType getIdentityType()Gets identity type. ReferBPMIdentityTypefor the possible values.- Returns:
- BPMIdentityType.
-
getEmail
Gets e-mail address for thisBPMIdentity.- Returns:
- e-mail adderess or null if not populated in the system.
- Throws:
BPMIdentityException
-
isInRole
Defines whether the BPMIdentity belongs to givenBPMRole- Parameters:
role- The role against which the check is to be made.- Returns:
- true if this identity belongs to given
BPMRole, false otherwise. - Throws:
BPMIdentityException
-
isInGroup
Defines whether the BPMIdentity belongs to given Group. Note that isInGroup just checks whether the identity is in given group, it does not validate the existence of the group itself.- Parameters:
groupName- The group against which the check is to be made.- Returns:
- true if this identity belongs to given Group, false otherwise.
- Throws:
BPMIdentityException
-
isInAppRole
Defines whether the BPMIdentity belongs to given Application Role. Note that isInAppRole just checks whether the identity is in given app role, it does not validate the existence of the group itself.- Parameters:
appRoleName- The AppRole against which the check is to be made.appId- application Id- Returns:
- true if this identity belongs to given AppRole, false otherwise.
- Throws:
BPMIdentityException
-
isInRole
Deprecated.since release 11. UseisInRole(BPMRole)Or(String groupName)insteadDefines whether the BPMIdentity belongs to givenBPMGroupname- Parameters:
groupName- is a BPMGroup name- Returns:
- boolean true if user in group
- Throws:
BPMIdentityExceptionBPMIdentityNotFoundException
-
getAppRoles
Gets list of application roles,BPMAppRoles, which thisBPMIndentityhas been granted.- Parameters:
direct- a boolean if true only direct roles, else all roles- Returns:
Listof grantedBPMRoles objects which thisBPMIndentityhas- Throws:
BPMIdentityException
-
getAppRoles
Gets list of application roles,BPMAppRoles, which thisBPMIndentityhas been granted.- Parameters:
direct- a boolean if true only direct roles, else all rolesappName- a application Name- Returns:
Listof grantedBPMRoles objects which thisBPMIndentityhas- Throws:
BPMIdentityException
-
getRoles
Deprecated.since release 11. UsegetGrantedRoles(boolean)insteadGets list of allBPMRoles which thisBPMIndentityhas- Parameters:
roleType- a role classifierdirect- a boolean if true method returns only direct granted roles, else all roles- Returns:
Listof grantedBPMRoles objects which thisBPMIndentityhas- Throws:
BPMIdentityException
-
getGroups
Gets list of allBPMGroupobjects which thisBPMIndentityhas been granted.- Parameters:
direct- is a boolean flag. If is true the method returns only direct granted groups, else all groups- Returns:
ListofBPMGroups objects which thisBPMIndentitybelongs- Throws:
BPMIdentityException
-
getGrantedRoles
Gets set of allBPMRoleobjects which theBPMIndentityhas been granted- Parameters:
direct- is a boolean flag. If is true the method returns only direct granted roles, else all- Returns:
SetofBPMRoleobjects which are graned to given identity- Throws:
BPMIdentityException
-
getGrantedRoles
Gets set of allBPMRoleobjects which theBPMIndentityhas been granted- Parameters:
direct- is a boolean flag. If is true the method returns only direct granted roles, else allappName- a application Name- Returns:
SetofBPMRoleobjects which are graned to given identity- Throws:
BPMIdentityException
-
getActions
Deprecated.since 11. UseBPMUser.hasPermission(Permission, String)for user objectGets list ofActions which thisBPMIndentityhas.- Returns:
Listof Actions- Throws:
BPMIdentityException
-
getOwnedRoles
Gets all roles owned by this identity.- Parameters:
direct- a boolean flag. If true return direct onwed roles, else all owned rolse- Returns:
- Set of BPMRole objects which the principal owns
- Throws:
BPMIdentityException- If exception condition occurs.
-
isOwner
Check whether the principal owns the role.- Parameters:
role- a BPMRole- Returns:
- boolean true, if principal owns the role, else false. Method returns false if role is BPMAppRole
- Throws:
BPMIdentityException- If exception condition occurs.
-
getManagedRoles
Gets a List of BPMRoles managed by this identity.- Parameters:
direct- a boolean flag. If true, returns only directly managed roles, else all.- Returns:
- List of BPMRole objects that are managed by this identity
- Throws:
BPMIdentityException- if error occurs
-