Skip navigation links

Oracle Fusion Middleware
Workflow Services Java API Reference for Oracle SOA Suite
11g Release 1 (11.1.1.6.3)
E10660-10


oracle.tip.pc.services.identity
Interface BPMProvider


public interface BPMProvider

BPMProvider defines Identity Service Provider Interface


Method Summary
 void authenticateUser(java.lang.String name, java.lang.String password)
          Authenticates the user in the system.
 java.security.PermissionCollection getAllPermissions()
          Gets all the permissions associated with all the Applications
 java.security.PermissionCollection getAllPermissions(java.lang.String appName)
          Gets all the permissions associated with the Application
 java.lang.String getDefaultRealmName()
          Gets the default realm name
 java.util.Set getGrantedRoles(BPMPrincipal principal, boolean direct)
          Gets granted roles to principal
 java.util.Set getGrantedRoles(BPMPrincipal bpmPrincipal, boolean direct, java.lang.String appName)
          Gets granted roles to principal for a given application
 java.util.Set getGrantees(java.lang.String roleName, boolean direct)
          Gets all grantee for given group/role name
 java.util.List<java.lang.String> getLocaleSpecificGroupNames(java.util.List<java.lang.String> groupNames, java.util.Locale locale)
          Gets locale specific names of the groups
 java.util.List<java.lang.String> getLocaleSpecificUserNames(java.util.List<java.lang.String> usersNames, java.util.Locale locale)
          Gets locale specific names of the users
 java.util.List<BPMRole> getManagedRoles(BPMIdentity id, boolean direct)
          Gets a list of managed roles for an identity
 java.util.Map getObjectAttributes(BPMPrincipal pr)
          Get object Attributes return map - an attribute map containing the attributes of the object.
 java.util.Set getOwnedRoles(BPMPrincipal principal, boolean direct)
          Get roles owned by BPMPrincipal
 java.util.Set getOwners(BPMRole role, boolean direct)
          Gets users who own given role
 java.security.PermissionCollection getPermissions(BPMIdentity identity)
          Gets the permissions associated with an identity
 java.security.PermissionCollection getPermissions(BPMIdentity identity, java.lang.String appName)
          Gets the permissions associated with an identity for a given application
 java.lang.String getProviderAttributeName(java.lang.Class classifier, java.lang.String attrName)
          Gets provider attribute name.
 ProviderCfg getProviderCfg()
          Gets provider config associated with this provider.
 java.lang.String getRealmName()
          Gets the active realm name
 java.util.List<BPMIdentity> getRoleManagers(BPMRole role, boolean direct)
          Gets a list of managers for a group.
 java.util.List getRoles(RoleClassifier roleType)
          Gets Roles of the specified type.
 java.util.List<java.lang.String> getSearchableUserAttributes()
          Gets the list of user attribute names that are searchable
 java.lang.String getTenantName(java.lang.String tenantGUID)
          Gets tenant name from tenantid
 java.util.List getUsers()
          Gets all users
 boolean hasPermission(BPMIdentity identity, java.security.Permission perm, java.lang.String appName)
          Check if identity Has permission
 BPMAppRole lookupAppRole(java.lang.String appRoleName, java.lang.String appName)
          Looks up BPMGroup in specified realm by role name
 BPMGroup lookupGroup(java.lang.String name)
          Looks up BPMGroup in specified realm by role name
 BPMRole lookupRole(java.lang.String name)
          Looks up BPMRole in specified realm by role name
 BPMUser lookupUser(java.lang.String name)
          Looks up BPMUser in the scpecified logical realm using the given user name
 BPMRole populateDetails(BPMRole role)
          Loads BPMRole Details.
 BPMUser populateDetails(BPMUser user)
          Loads BPMUser Details
 java.util.List searchRoles(RoleClassifier classifier, SearchFilter filter)
          Searches BPMRole based on the classifier and search filter.
 java.util.List searchRoles(RoleClassifier classifier, java.lang.String attrName, java.lang.String attrValue)
          Searches BPMRole based on teh classifier and attribute name-value pair.
 java.util.List searchUsers(SearchFilter filter)
          Searches BPMUsers based on the criteria specified in teh search filter.
 java.util.List searchUsers(java.lang.String attrName, java.lang.String attrValue)
          Searches BPMUsers with the given attribute name and value pair.

 

Method Detail

getProviderCfg

ProviderCfg getProviderCfg()
Gets provider config associated with this provider.
Returns:
config

getDefaultRealmName

java.lang.String getDefaultRealmName()
                                     throws BPMIdentityException
Gets the default realm name
Returns:
default realm name
Throws:
BPMIdentityException - If exception condition occurs.

getRealmName

java.lang.String getRealmName()
Gets the active realm name
Returns:
realm name
Throws:
BPMIdentityException - If exception condition occurs.

lookupUser

BPMUser lookupUser(java.lang.String name)
                   throws BPMIdentityException,
                          BPMIdentityNotFoundException
Looks 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

lookupGroup

BPMGroup lookupGroup(java.lang.String name)
                     throws BPMIdentityException,
                            BPMIdentityNotFoundException
Looks up BPMGroup in specified realm by role name
Parameters:
name - group name
Throws:
BPMIdentityNotFoundException - If group is not found
BPMIdentityException - If exception condition occurs.

lookupAppRole

BPMAppRole lookupAppRole(java.lang.String appRoleName,
                         java.lang.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.

lookupRole

BPMRole lookupRole(java.lang.String name)
                   throws BPMIdentityException,
                          BPMIdentityNotFoundException
Looks 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.

getUsers

java.util.List getUsers()
                        throws BPMIdentityException
Gets all users
Throws:
BPMIdentityException - If exception condition occurs.

getLocaleSpecificUserNames

java.util.List<java.lang.String> getLocaleSpecificUserNames(java.util.List<java.lang.String> usersNames,
                                                            java.util.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.

getLocaleSpecificGroupNames

java.util.List<java.lang.String> getLocaleSpecificGroupNames(java.util.List<java.lang.String> groupNames,
                                                             java.util.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.

getRoles

java.util.List getRoles(RoleClassifier roleType)
                        throws BPMIdentityException
Gets Roles of the specified type.
Parameters:
roleType - a role classifier
Throws:
BPMIdentityException - If exception condition occurs.

getGrantedRoles

java.util.Set getGrantedRoles(BPMPrincipal principal,
                              boolean direct)
                              throws BPMIdentityException
Gets 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.

getGrantedRoles

java.util.Set getGrantedRoles(BPMPrincipal bpmPrincipal,
                              boolean direct,
                              java.lang.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.

getGrantees

java.util.Set getGrantees(java.lang.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

searchUsers

java.util.List searchUsers(java.lang.String attrName,
                           java.lang.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

searchUsers

java.util.List searchUsers(SearchFilter filter)
                           throws BPMIdentityException,
                                  BPMUnsupportedAttributeException
Searches 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

searchRoles

java.util.List searchRoles(RoleClassifier classifier,
                           java.lang.String attrName,
                           java.lang.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

searchRoles

java.util.List 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

populateDetails

BPMRole populateDetails(BPMRole role)
                        throws BPMIdentityException,
                               BPMIdentityNotFoundException
Loads BPMRole Details. These include the various attributes.
Returns:
BPMRole object
Throws:
BPMIdentityException - If exception condition occurs.
BPMIdentityNotFoundException - If role is not found

populateDetails

BPMUser populateDetails(BPMUser user)
                        throws BPMIdentityException,
                               BPMIdentityNotFoundException
Loads BPMUser Details
Parameters:
user - a BPMUser to populate
Returns:
BPMUser object
Throws:
BPMIdentityException - If exception condition occurs.
BPMIdentityNotFoundException - if role is not found

getOwnedRoles

java.util.Set getOwnedRoles(BPMPrincipal principal,
                            boolean direct)
                            throws BPMIdentityException
Get 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

getOwners

java.util.Set getOwners(BPMRole role,
                        boolean direct)
                        throws BPMIdentityException
Gets 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.

getRoleManagers

java.util.List<BPMIdentity> getRoleManagers(BPMRole role,
                                            boolean direct)
                                            throws BPMIdentityException
Gets 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

getManagedRoles

java.util.List<BPMRole> getManagedRoles(BPMIdentity id,
                                        boolean direct)
                                        throws BPMIdentityException
Gets 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

getObjectAttributes

java.util.Map getObjectAttributes(BPMPrincipal pr)
                                  throws BPMIdentityException
Get object Attributes return map - an attribute map containing the attributes of the object.
Throws:
BPMIdentityException

authenticateUser

void authenticateUser(java.lang.String name,
                      java.lang.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.

getProviderAttributeName

java.lang.String getProviderAttributeName(java.lang.Class classifier,
                                          java.lang.String attrName)
Gets 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:

hasPermission

boolean hasPermission(BPMIdentity identity,
                      java.security.Permission perm,
                      java.lang.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

getPermissions

java.security.PermissionCollection getPermissions(BPMIdentity identity)
                                                  throws BPMIdentityException
Gets the permissions associated with an identity
Parameters:
identity - the identity
Returns:
a PermissionCollection
Throws:
BPMIdentityException - if an exception condition occured

getPermissions

java.security.PermissionCollection getPermissions(BPMIdentity identity,
                                                  java.lang.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

getAllPermissions

java.security.PermissionCollection getAllPermissions()
                                                     throws BPMIdentityException
Gets all the permissions associated with all the Applications
Returns:
PermissionCollection
Throws:
BPMIdentityException - if an exception condition occured

getAllPermissions

java.security.PermissionCollection getAllPermissions(java.lang.String appName)
                                                     throws BPMIdentityException
Gets all the permissions associated with the Application
Parameters:
appName - Name of the application
Returns:
PermissionCollection
Throws:
BPMIdentityException - if an exception condition occured

getTenantName

java.lang.String getTenantName(java.lang.String tenantGUID)
                               throws BPMIdentityException
Gets tenant name from tenantid
Throws:
BPMIdentityException

getSearchableUserAttributes

java.util.List<java.lang.String> getSearchableUserAttributes()
                                                             throws BPMIdentityException
Gets the list of user attribute names that are searchable
Returns:
list of attribute names
Throws:
BPMIdentityException - if an exception condition occured

Skip navigation links

Oracle Fusion Middleware
Workflow Services Java API Reference for Oracle SOA Suite
11g Release 1 (11.1.1.6.3)
E10660-10


Copyright © 2009, 2012, Oracle and/or its affiliates. All rights reserved.