Package oracle.tip.pc.services.identity
Interface BPMProvider
public interface BPMProvider
BPMProvider defines Identity Service Provider Interface- 
Method SummaryModifier and TypeMethodDescriptionvoidauthenticateUser(String name, String password) Authenticates the user in the system.Gets all the permissions associated with all the ApplicationsgetAllPermissions(String appName) Gets all the permissions associated with the ApplicationGets the default realm namegetGrantedRoles(BPMPrincipal principal, boolean direct) Gets granted roles to principalgetGrantedRoles(BPMPrincipal bpmPrincipal, boolean direct, String appName) Gets granted roles to principal for a given applicationgetGrantees(String roleName, boolean direct) Gets all grantee for given group/role namegetGranteesToAppRole(String appRole, String appName, boolean direct, Set roleChain) Gets all grantees for given application rolegetKeyStoreType(String policyStoreTypeProperty) getLocaleSpecificGroupNames(List<String> groupNames, Locale locale) Gets locale specific names of the groupsgetLocaleSpecificUserNames(List<String> usersNames, Locale locale) Gets locale specific names of the usersgetLocalizedGroupNames(List<String> groupsNames, List<Locale> locales) Gets map of localized user's display name for given local listgetLocalizedUserNames(List<String> usersNames, List<Locale> locales) Gets map of localized user's display name for given local listgetManagedRoles(BPMIdentity id, boolean direct) Gets a list of managed roles for an identitygetNameAttribute(String entityName) Get object Attributes return map - an attribute map containing the attributes of the object.getOwnedRoles(BPMPrincipal principal, boolean direct) Get roles owned by BPMPrincipalGets users who own given rolegetPermissions(BPMIdentity identity) Gets the permissions associated with an identitygetPermissions(BPMIdentity identity, String appName) Gets the permissions associated with an identity for a given applicationgetProviderAttributeName(Class classifier, String attrName) Gets provider attribute name.Gets provider config associated with this provider.Gets the active realm namegetRoleManagers(BPMRole role, boolean direct) Gets a list of managers for a group.getRoles(RoleClassifier roleType) Gets Roles of the specified type.Gets the list of user attribute names that are searchablelonggetTenantGUID(String tenantname) Gets tenant id from tenantnamegetTenantName(String tenantGUID) Gets tenant name from tenantidgetUsers()Gets all usersbooleanhasPermission(BPMIdentity identity, Permission perm, String appName) Check if identity Has permissionbooleanisAPPIDUser(String username) lookupAppRole(String appRoleName, String appName) Looks up BPMGroup in specified realm by role namelookupGroup(String name) Looks up BPMGroup in specified realm by role namelookupRole(String name) Looks up BPMRole in specified realm by role namelookupUser(String name) Looks up BPMUser in the scpecified logical realm using the given user namepopulateDetails(BPMRole role) Loads BPMRole Details.populateDetails(BPMUser user) Loads BPMUser DetailssearchRoles(RoleClassifier classifier, String attrName, String attrValue) Searches BPMRole based on teh classifier and attribute name-value pair.searchRoles(RoleClassifier classifier, SearchFilter filter) Searches BPMRole based on the classifier and search filter.searchUsers(String attrName, String attrValue) Searches BPMUsers with the given attribute name and value pair.searchUsers(SearchFilter filter) Searches BPMUsers based on the criteria specified in teh search filter.
- 
Method Details- 
getProviderCfgProviderCfg getProviderCfg()Gets provider config associated with this provider.- Returns:
- config
 
- 
getDefaultRealmNameGets the default realm name- Returns:
- default realm name
- Throws:
- BPMIdentityException- If exception condition occurs.
 
- 
getRealmNameString getRealmName()Gets the active realm name- Returns:
- realm name
- Throws:
- BPMIdentityException- If exception condition occurs.
 
- 
lookupUserLooks up BPMUser in the scpecified logical realm using the given user name- Parameters:
- name- user name
- Throws:
- BPMIdentityException- If exception condition occurs.
- BPMIdentityNotFoundException- If user is not found
 
- 
lookupGroupLooks up BPMGroup in specified realm by role name- Parameters:
- name- group name
- Throws:
- BPMIdentityNotFoundException- If group is not found
- BPMIdentityException- If exception condition occurs.
 
- 
lookupAppRoleBPMAppRole lookupAppRole(String appRoleName, String appName) throws BPMIdentityException, BPMIdentityNotFoundException Looks up BPMGroup in specified realm by role name- Parameters:
- appRoleName- application role name
- appName- application name
- Throws:
- BPMIdentityNotFoundException- If application role is not found
- BPMIdentityException- If exception condition occurs.
 
- 
lookupRoleLooks up BPMRole in specified realm by role name- Parameters:
- name- a role name
- Throws:
- BPMIdentityNotFoundException- If role is not found
- BPMIdentityException- If exception condition occurs.
 
- 
getUsersGets all users- Throws:
- BPMIdentityException- If exception condition occurs.
 
- 
getLocaleSpecificUserNamesList<String> getLocaleSpecificUserNames(List<String> usersNames, Locale locale) throws BPMIdentityException, BPMIdentityNotFoundException Gets locale specific names of the users- Parameters:
- userNames- List of userNames
- Locale-
- Returns:
- List of localeNames For each entry in the input list (userNames) the corresponding localeName is returned in the same position in the ouput list. In case a non-exisiting username(s) is/are provided in the input, null will be returned as the localized name for that/those user(s).
- Throws:
- BPMIdentityNotFoundException- If user is not found
- BPMIdentityException- If exception condition occurs.
 
- 
getLocalizedUserNamesMap<String,Map<Locale, getLocalizedUserNamesString>> (List<String> usersNames, List<Locale> locales) throws BPMIdentityException Gets map of localized user's display name for given local list- Parameters:
- usersNames- List of userNames
- locales- List of Locale
- Returns:
- Map of user's display name for given local list
- Throws:
- BPMIdentityNotFoundException
- BPMIdentityException
 
- 
getLocaleSpecificGroupNamesList<String> getLocaleSpecificGroupNames(List<String> groupNames, Locale locale) throws BPMIdentityException, BPMIdentityNotFoundException Gets locale specific names of the groups- Parameters:
- userNames- List of groupNames
- Locale-
- Returns:
- List of localeNames For each entry in the input list (groupNamess) the corresponding localeName is returned in the same position in the ouput list. In case a non-exisiting groupname(s) is/are provided in the input, null will be returned as the localized name for that/those group(s).
- Throws:
- BPMIdentityNotFoundException- If group is not found
- BPMIdentityException- If exception condition occurs.
 
- 
getLocalizedGroupNamesMap<String,Map<Locale, getLocalizedGroupNamesString>> (List<String> groupsNames, List<Locale> locales) throws BPMIdentityException Gets map of localized user's display name for given local list- Parameters:
- groupsNames- List of userNames
- locales- List of Locale
- Returns:
- Map of user's display name for given local list
- Throws:
- BPMIdentityNotFoundException
- BPMIdentityException
 
- 
getRolesGets Roles of the specified type.- Parameters:
- roleType- a role classifier
- Throws:
- BPMIdentityException- If exception condition occurs.
 
- 
getGrantedRolesGets granted roles to principal- Parameters:
- principal- a BPMPrincipal object
- direct- a boolean flag. if true return direct granted role, else all
- Returns:
- Set of BPMRole objects
- Throws:
- BPMIdentityException- If exception condition occurs.
 
- 
getGrantedRolesSet getGrantedRoles(BPMPrincipal bpmPrincipal, boolean direct, String appName) throws BPMIdentityException Gets granted roles to principal for a given application- Parameters:
- principal- a BPMPrincipal object
- direct- a boolean flag. if true return direct granted role, else all
- appName- a String, the name of the application
- Returns:
- Set of BPMRole objects
- Throws:
- BPMIdentityException- If exception condition occurs.
 
- 
getGranteesSet getGrantees(String roleName, boolean direct) throws BPMIdentityException, BPMIdentityNotFoundException Gets all grantee for given group/role name- Parameters:
- roleName- a role name
- direct- a boolean flag. If true method returns only direct participans, else all.
- Returns:
- Set of BPMUser objects for given group/role name
- Throws:
- BPMIdentityException- If exception condition occurs.
- BPMIdentityNotFoundException
 
- 
searchUsersList searchUsers(String attrName, String attrValue) throws BPMIdentityException, BPMUnsupportedAttributeException Searches BPMUsers with the given attribute name and value pair.- Parameters:
- attrName-
- attrValue-
- Returns:
- List of BPMUser found according to search criteria
- Throws:
- BPMIdentityException- If exception condition occurs.
- BPMUnsupportedAttributeException
 
- 
searchUsersSearches BPMUsers based on the criteria specified in teh search filter.- Parameters:
- filter- a SearchFilter instance.
- Returns:
- List of BPMUser found according to search criteria
- Throws:
- BPMIdentityException- If exception condition occurs.
- BPMUnsupportedAttributeException
 
- 
searchRolesList searchRoles(RoleClassifier classifier, String attrName, String attrValue) throws BPMIdentityException, BPMUnsupportedAttributeException Searches BPMRole based on teh classifier and attribute name-value pair.- Parameters:
- classifier- RoleClassifier
- attrName-
- attrValue-
- Returns:
- List of BPMRole found according to search criteria
- Throws:
- BPMIdentityException- If exception condition occurs.
- BPMUnsupportedAttributeException
 
- 
searchRolesList searchRoles(RoleClassifier classifier, SearchFilter filter) throws BPMIdentityException, BPMUnsupportedAttributeException Searches BPMRole based on the classifier and search filter.- Parameters:
- classifier- RoleClassifier
- filter- a SearchFilter
- Returns:
- List of BPMRole found according to search criteria
- Throws:
- BPMIdentityException- If exception condition occurs.
- BPMUnsupportedAttributeException
 
- 
populateDetailsLoads BPMRole Details. These include the various attributes.- Returns:
- BPMRole object
- Throws:
- BPMIdentityException- If exception condition occurs.
- BPMIdentityNotFoundException- If role is not found
 
- 
populateDetailsLoads BPMUser Details- Parameters:
- user- a BPMUser to populate
- Returns:
- BPMUser object
- Throws:
- BPMIdentityException- If exception condition occurs.
- BPMIdentityNotFoundException- if role is not found
 
- 
getOwnedRolesGet roles owned by BPMPrincipal- Parameters:
- principal- The owner principal.
- direct- a boolean flag. If true method returns only directly owned roles.
- Returns:
- a set groups.
- Throws:
- BPMIdentityException
 
- 
getOwnersGets users who own given role- Parameters:
- role- The role whose owners are to be found
- direct- a boolean flag, if true only direct owners are returned, else all
- Returns:
- set of BPMUser objects
- Throws:
- BPMIdentityException- If exception condition occurs.
 
- 
getRoleManagersGets a list of managers for a group.- Parameters:
- role- The role for which the managers are to be fetched
- direct- a boolean flag, if true only direct managers are returned, else all
- Returns:
- A list of BPMIdentity
- Throws:
- BPMIdentityException
 
- 
getManagedRolesGets a list of managed roles for an identity- Parameters:
- id- The identity for which managed roles are to be fetched
- direct- a boolean flag, if true only direct managed roles are returned, else all
- Returns:
- A list of BPMRole
- Throws:
- BPMIdentityException
 
- 
getObjectAttributesGet object Attributes return map - an attribute map containing the attributes of the object.- Throws:
- BPMIdentityException
 
- 
authenticateUservoid authenticateUser(String name, String password) throws BPMIdentityException, BPMAuthenticationException Authenticates the user in the system.- Parameters:
- name- The name of the user to be authenticated.
- password- The password of the user to be authenticated.
- Throws:
- BPMIdentityException- If exception condition occurs.
- BPMAuthenticationException- If the user could not be authenticated or if an exception condition occured during authentication.
 
- 
getProviderAttributeNameGets provider attribute name. Provider has to map provider specifc attribute names to Identity Service attribute name for all pre-defined attributes- Parameters:
- classifier-
- attrName-
- Returns:
 
- 
hasPermissionboolean hasPermission(BPMIdentity identity, Permission perm, String appName) throws BPMIdentityException Check if identity Has permission- Parameters:
- identity- the identity
- perm- The permission
- appName- Name of the application
- Returns:
- a boolean value
- Throws:
- BPMIdentityException- if an exception condition occured
 
- 
getPermissionsGets the permissions associated with an identity- Parameters:
- identity- the identity
- Returns:
- a PermissionCollection
- Throws:
- BPMIdentityException- if an exception condition occured
 
- 
getPermissionsPermissionCollection getPermissions(BPMIdentity identity, String appName) throws BPMIdentityException Gets the permissions associated with an identity for a given application- Parameters:
- identity- the identity
- appName- Name of the application
- Returns:
- a PermissionCollection
- Throws:
- BPMIdentityException- if an exception condition occured
 
- 
getAllPermissionsGets all the permissions associated with all the Applications- Returns:
- PermissionCollection
- Throws:
- BPMIdentityException- if an exception condition occured
 
- 
getAllPermissionsGets all the permissions associated with the Application- Parameters:
- appName- Name of the application
- Returns:
- PermissionCollection
- Throws:
- BPMIdentityException- if an exception condition occured
 
- 
getTenantNameGets tenant name from tenantid- Throws:
- BPMIdentityException
 
- 
getSearchableUserAttributesGets the list of user attribute names that are searchable- Returns:
- list of attribute names
- Throws:
- BPMIdentityException- if an exception condition occured
 
- 
getTenantGUIDGets tenant id from tenantname- Throws:
- BPMIdentityException
 
- 
isAPPIDUser- Throws:
- BPMIdentityException
 
- 
getGranteesToAppRoleSet<BPMIdentity> getGranteesToAppRole(String appRole, String appName, boolean direct, Set roleChain) throws BPMIdentityException, BPMIdentityNotFoundException Gets all grantees for given application role- Parameters:
- appRole- The name of application role
- appName- an application name
- direct- a boolean flag. The method returns direct grantees if direct flag is true, else all
- roleChain- an role chain
- Returns:
- Set of BPMIdentityobjects
- Throws:
- BPMIdentityException- If exception condition occurs
- BPMIdentityNotFoundException
- Since:
- 11
 
- 
getPolicyStoreType- Throws:
- BPMIdentityException
 
- 
getKeyStoreType- Throws:
- BPMIdentityException
 
- 
getNameAttribute- Throws:
- BPMIdentityException
 
 
-