|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PumaProfile
The PumaProfile
provides functions to read attribute of
com.ibm.portal.um.User
and
com.ibm.portal.um.Group
objects.
An instance of this Interface can be retrieved by calling the
getPumaProfile() method exposed by the interfaces
com.ibm.portal.um.PumaHome
,
com.ibm.portal.um.portletservice.PumaHome
or
com.ibm.portal.um.portletservice.legacy.PumaHome
PumaHome
,
PumaHome
,
PumaHome
Field Summary | |
---|---|
static java.lang.String |
EXTERNAL_USERS_PARENT_DN_ALIAS
Deprecated. As of release 6.1, replaced by com.ibm.portal.um.PumaEnvironment.EXTERNAL_USERS_PARENT_DN_ALIAS |
Method Summary | |
---|---|
java.util.List<java.lang.String> |
getAllParentDNs()
Deprecated. As of release 6.1, replaced by PumaEnvironment.getAllParentDNs() |
java.util.Map<Principal,java.util.Map<java.lang.String,java.lang.Object>> |
getAttributes(java.util.Collection<? extends Principal> principals,
java.util.Collection<java.lang.String> attributeNames)
Returns a map that maps principals to a map of values based on the given Attributenames. |
java.util.Map<java.lang.String,java.lang.Object> |
getAttributes(Principal aPrincipal,
java.util.List<java.lang.String> aAttributeNames)
Returns a map of values based on the given Attributenames. |
User |
getCurrentUser()
Returns an object of type User for the current User.This method returns null if no security context is available from the WebShpere Application Server runtime and the service instance has no access to the request object |
java.util.List<AttributeDefinition> |
getDefinedGroupAttributeDefinitions()
Returns all attributes available for the type Group |
java.util.List<AttributeDefinition> |
getDefinedUserAttributeDefinitions()
Returns all attributes available for the type User |
java.util.List<java.lang.String> |
getDefinedUserAttributeNames()
Returns all attributes available for the type User |
java.lang.String |
getExternalParentDN()
Deprecated. As of release 6.1, replaced by PumaEnvironment.getExternalParentDN() |
AttributeDefinition |
getGroupAttributeDefinition(java.lang.String anAttribute)
Returns an instance of AttributeDefintion for the given
name |
java.lang.String |
getGroupDefaultSearchAttributeName()
Returns the attribute that is configured as default search attribute for groups |
java.lang.String |
getIdentifier(Principal aPrincipal)
Returns the unique identifier for the given Principal. |
java.util.List<java.lang.String> |
getMandatoryGroupAttributeNames()
Returns the mandatory attributes of the type Group |
java.util.List<java.lang.String> |
getMandatoryUserAttributeNames()
Returns the mandatory attributes of the type User |
java.lang.String |
getParentDN(java.lang.String alias)
Deprecated. As of release 6.1, replaced by PumaEnvironment.getParentDN(String) |
AttributeDefinition |
getUserAttributeDefinition(java.lang.String anAttribute)
Returns an instance of AttributeDefintion for the given
name |
java.lang.String |
getUserDefaultSearchAttributeName()
Returns the attribute that is configured as default search attribute for users |
boolean |
isExternal(Principal aPrincipal)
Deprecated. As of release 6.1, replaced by PumaEnvironment.isExternal(Principal) |
boolean |
matchesParentDN(Principal aPrincipal,
java.lang.String alias)
Deprecated. As of release 6.1, replaced by PumaEnvironment.matchesParentDN(Principal, String) |
Principal |
reload(Principal aPrincipal)
Loads the content of the given Principal from the
repository |
Field Detail |
---|
static final java.lang.String EXTERNAL_USERS_PARENT_DN_ALIAS
com.ibm.portal.um.PumaEnvironment.EXTERNAL_USERS_PARENT_DN_ALIAS
getParentDN(String)
,
Constant Field ValuesMethod Detail |
---|
java.util.Map<java.lang.String,java.lang.Object> getAttributes(Principal aPrincipal, java.util.List<java.lang.String> aAttributeNames) throws PumaAttributeException, PumaSystemException, PumaModelException, PumaMissingAccessRightsException
aPrincipal
- the Principal to get the values from, null
is
not allowed as input parameteraAttributeNames
- the names of the attributes to get the values of.
Map
including attribute names and
their values. Multivalue attributes will return a
java.util.List
object as Value
PumaAttributeException
- will be thrown if attributes are read-only, missing or not
defined
PumaSystemException
- will be thrown whenever an unrecoverable backend error occurs
PumaModelException
- will be thrown if no Principal
could be found
PumaMissingAccessRightsException
- will be thrown if the current authenticated user does not
have the necessary rightsjava.util.Map<Principal,java.util.Map<java.lang.String,java.lang.Object>> getAttributes(java.util.Collection<? extends Principal> principals, java.util.Collection<java.lang.String> attributeNames) throws PumaAttributeException, PumaSystemException, PumaModelException, PumaMissingAccessRightsException
principals
- the Principals to get the values from, null
is
not allowed as input parameterattributeNames
- the names of the attributes to get the values of.
Map
associating the input
principals with their attribute maps including attribute names
and their values. Multivalue attributes will return a
java.util.List
object as Value
PumaAttributeException
- will be thrown if attributes are read-only, missing or not
defined
PumaSystemException
- will be thrown whenever an unrecoverable backend error occurs
PumaModelException
- will be thrown if one of the Principal
s could
be found
PumaMissingAccessRightsException
- will be thrown if the current authenticated user does not
have the necessary rightsjava.util.List<java.lang.String> getDefinedUserAttributeNames() throws PumaSystemException, PumaMissingAccessRightsException
User
List
of Strings containing all available
attribute names for com.ibm.poral.um.User
as
java.lang.String
PumaSystemException
- will be thrown whenever an unrecoverable backend error occurs
PumaMissingAccessRightsException
- will be thrown if the current authenticated user does not
have the necessary rightsAttributeDefinition getUserAttributeDefinition(java.lang.String anAttribute) throws PumaSystemException, PumaMissingAccessRightsException
AttributeDefintion
for the given
name
AttributeDefinition
for the given String
PumaSystemException
- will be thrown whenever an unrecoverable backend error occurs
PumaMissingAccessRightsException
- will be thrown if the current authenticated user does not
have the necessary rightsAttributeDefinition getGroupAttributeDefinition(java.lang.String anAttribute) throws PumaSystemException, PumaMissingAccessRightsException
AttributeDefintion
for the given
name
AttributeDefinition
for the given String
PumaSystemException
- will be thrown whenever an unrecoverable backend error occurs
PumaMissingAccessRightsException
- will be thrown if the current authenticated user does not
have the necessary rightsjava.util.List<AttributeDefinition> getDefinedUserAttributeDefinitions() throws PumaSystemException, PumaMissingAccessRightsException
User
List
of AttributeDefinition
containing all available attribute for
com.ibm.poral.um.User
as
com.ibm.puma.um.AttributeDefinition
PumaSystemException
- will be thrown whenever an unrecoverable backend error occurs
PumaMissingAccessRightsException
- will be thrown if the current authenticated user does not
have the necessary rightsjava.util.List<AttributeDefinition> getDefinedGroupAttributeDefinitions() throws PumaSystemException, PumaMissingAccessRightsException
Group
List
of AttributeDefinition
containing all available attributes for
com.ibm.poral.um.Group
as
com.ibm.puma.um.AttributeDefinition
PumaSystemException
- will be thrown whenever an unrecoverable backend error occurs
PumaMissingAccessRightsException
- will be thrown if the current authenticated user does not
have the necessary rightsjava.util.List<java.lang.String> getMandatoryUserAttributeNames() throws PumaSystemException, PumaMissingAccessRightsException
User
List
of Strings containing the names of
all mandatory attributes of com.ibm.portal.um.User
as java.util.String
PumaSystemException
- will be thrown whenever an unrecoverable backend error occurs
PumaMissingAccessRightsException
- will be thrown if the current authenticated user does not
have the necessary rightsUser
,
String
java.util.List<java.lang.String> getMandatoryGroupAttributeNames() throws PumaSystemException, PumaMissingAccessRightsException
Group
List
of Strings containing the names of
all mandatory attributes of com.ibm.portal.um.Group
as java.util.String
PumaSystemException
- will be thrown whenever an unrecoverable backend error occurs
PumaMissingAccessRightsException
- will be thrown if the current authenticated user does not
have the necessary rightsGroup
,
String
User getCurrentUser() throws PumaException
User
for the current User.null
PumaException
- will be thrown whenever an unrecoverable backend error occursjava.lang.String getIdentifier(Principal aPrincipal) throws PumaSystemException, PumaMissingAccessRightsException, PumaModelException
aPrincipal
- the Principal to be processed. null
is not
allowed as input parameter
PumaSystemException
- will be thrown whenever an unrecoverable backend error occurs
PumaMissingAccessRightsException
- will be thrown if the current authenticated user does not
have the necessary rights
PumaModelException
- will be thrown if no Principal
could be foundPrincipal reload(Principal aPrincipal) throws PumaSystemException, PumaMissingAccessRightsException, PumaModelException
Principal
from the
repository
aPrincipal
- the Principal to be processed. null
is not
allowed as input parameter
null
will not be returned.
PumaSystemException
- will be thrown whenever an unrecoverable backend error occurs
PumaMissingAccessRightsException
- will be thrown if the current authenticated user does not
have the necessary rights
PumaModelException
- will be thrown if no Principal
could be foundboolean isExternal(Principal aPrincipal)
PumaEnvironment.isExternal(Principal)
aPrincipal
- the Principal to be processed. null
is not
allowed as input parameter
boolean matchesParentDN(Principal aPrincipal, java.lang.String alias)
PumaEnvironment.matchesParentDN(Principal, String)
aPrincipal
- the Principal to be processed. null
is not
allowed as input parameteralias
- the alias of the parent DN
java.lang.String getParentDN(java.lang.String alias)
PumaEnvironment.getParentDN(String)
alias
- -
the alias that points to the stored DN.
java.lang.String getExternalParentDN()
PumaEnvironment.getExternalParentDN()
java.util.List<java.lang.String> getAllParentDNs() throws PumaSystemException
PumaEnvironment.getAllParentDNs()
PumaSystemException
- will be thrown whenever an unrecoverable backend error occursjava.lang.String getGroupDefaultSearchAttributeName()
java.lang.String getUserDefaultSearchAttributeName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |