|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PumaController
The PumaController
provides functions to read and/or write
attributes of com.ibm.portal.um.User
,com.ibm.portal.um.Group
objects.
An instance of this Interface can be retrieved by calling
com.ibm.portal.um.PumaHome
,
com.ibm.portal.um.portletservice.PumaHome
or
com.ibm.portal.um.portletservice.legacy.PumaHome
PumaHome
,
PumaHome
,
PumaHome
Field Summary |
---|
Fields inherited from interface com.ibm.portal.um.PumaProfile |
---|
EXTERNAL_USERS_PARENT_DN_ALIAS |
Method Summary | |
---|---|
void |
addAttributes(Principal aPrincipal,
java.util.Map<java.lang.String,?> aValueMap)
Adds the given Attributes to the given Principal. |
void |
addToGroup(Group aGroup,
java.util.List<? extends Principal> aPrincipals)
Adds the given Principals to the given Group |
void |
addToGroups(java.util.Collection<Group> groups,
Principal aPrincipal)
Adds the given Principal to the given Groups |
Group |
createGroup(java.lang.String aName,
java.lang.String parentDN,
java.util.Map<java.lang.String,?> aInitialAttributes)
Creates a new Groups with the given shortname for the given Parent dn and the available initial Attributes |
User |
createUser(java.lang.String aName,
java.lang.String parentDN,
java.util.Map<java.lang.String,?> aInitialAttributes)
Creates a new User with the given shortname for the given Parent DN and the available initial Attributes. |
User |
createUser(java.lang.String aName,
java.lang.String parentDN,
java.util.Map<java.lang.String,?> aInitialAttributes,
java.lang.String initalApplicationRole)
Deprecated. Since 8.5. The parameter initalApplicationRole is ignored during user creation. |
void |
deleteGroup(Group aGroup)
Removes the provided Group from the backend system. |
void |
deleteUser(User aUser)
Removes the provided User from the backend system. |
void |
removeAttributes(Principal aPrincipal,
java.util.List<java.lang.String> aAttributeNames)
Removes the given attributes from the given Principal |
void |
removeFromGroup(Group aGroup,
java.util.List<? extends Principal> aPrincipals)
Removes the given Principals from the given Group |
void |
removeFromGroups(java.util.Collection<Group> groups,
Principal aPrincipal)
Removes the given Principal from the given Groups |
void |
setAttributes(Principal aPrincipal,
java.util.Map<java.lang.String,?> aValueMap)
Sets the given Attributes at the given Principal. |
Method Detail |
---|
void setAttributes(Principal aPrincipal, java.util.Map<java.lang.String,?> aValueMap) throws PumaAttributeException, PumaSystemException, PumaModelException, PumaMissingAccessRightsException
aPrincipal
- the Principal to be modified, null
is
not allowed as input parameteraValueMap
- a name/value map including the AttributeNames as keys
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 the Principal
could not be found
PumaMissingAccessRightsException
- will be thrown if the current
authenticated user does not have the necessary rightsvoid addAttributes(Principal aPrincipal, java.util.Map<java.lang.String,?> aValueMap) throws PumaAttributeException, PumaSystemException, PumaModelException, PumaMissingAccessRightsException
aPrincipal
- the Principal to be modified, null
is
not allowed as input parameteraValueMap
- a name/value map including the AttributeNames as keys
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 the Principal
could not be found
PumaMissingAccessRightsException
- will be thrown if the current
authenticated user does not have the necessary rightsvoid removeAttributes(Principal aPrincipal, java.util.List<java.lang.String> aAttributeNames) throws PumaAttributeException, PumaSystemException, PumaModelException, PumaMissingAccessRightsException
aPrincipal
- the Principal to be modified, null
is
not allowed as input parameteraAttributeNames
- the AttributeNames provided as String
PumaAttributeException
- will be thrown if attributes are
read-only, missing or not defined
PumaSystemException
- will be thrown whenever an unrecoverable
backend error occurs, e.g. if the method is called
PumaModelException
- will be thrown if the Principal
could not be found
PumaMissingAccessRightsException
- will be thrown if the current
authenticated user does not have the necessary rightsvoid addToGroups(java.util.Collection<Group> groups, Principal aPrincipal) throws PumaSystemException, PumaModelException, PumaMissingAccessRightsException
groups
- the Groups to be modified, null
is
not allowed as input parameteraPrincipal
- the Principal to be added
PumaSystemException
- will be thrown whenever an unrecoverable
backend error occurs
PumaModelException
- will be thrown if either one of the the
Group
s or the provided Principal
could
not be found
PumaMissingAccessRightsException
- will be thrown if the current
authenticated user does not have the necessary rightsvoid addToGroup(Group aGroup, java.util.List<? extends Principal> aPrincipals) throws PumaSystemException, PumaModelException, PumaMissingAccessRightsException
aGroup
- the Group to be modified, null
is
not allowed as input parameteraPrincipals
- the Principals to be added
PumaSystemException
- will be thrown whenever an unrecoverable
backend error occurs
PumaModelException
- will be thrown if either the
Group
or a provided Principal
could
not be found
PumaMissingAccessRightsException
- will be thrown if the current
authenticated user does not have the necessary rightsvoid removeFromGroup(Group aGroup, java.util.List<? extends Principal> aPrincipals) throws PumaSystemException, PumaModelException, PumaMissingAccessRightsException
aGroup
- the group to be modified, null
is
not allowed as input parameteraPrincipals
- the principals to be removed
PumaSystemException
- will be thrown whenever an unrecoverable
backend error occurs
PumaModelException
- will be thrown if either the
Group
or a provided Principal
could
not be found
PumaMissingAccessRightsException
- will be thrown if the current
authenticated user does not have the necessary rightsvoid removeFromGroups(java.util.Collection<Group> groups, Principal aPrincipal) throws PumaSystemException, PumaModelException, PumaMissingAccessRightsException
groups
- the groups to be modified, null
is
not allowed as input parameteraPrincipal
- the principal to be removed
PumaSystemException
- will be thrown whenever an unrecoverable
backend error occurs
PumaModelException
- will be thrown if either one of the
Group
s or the provided Principal
could
not be found
PumaMissingAccessRightsException
- will be thrown if the current
authenticated user does not have the necessary rightsUser createUser(java.lang.String aName, java.lang.String parentDN, java.util.Map<java.lang.String,?> aInitialAttributes) throws PumaAttributeException, PumaSystemException, PumaModelException, PumaMissingAccessRightsException
aName
- the shortname of the new userparentDN
- the parent object of the new user. If null
is provided the system default will be usedaInitialAttributes
- the attributes for an initial storage
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 a User
already exists matching the given parameters or the given
parentDN cannot be found within the used repository
PumaMissingAccessRightsException
- will be thrown if the current
authenticated user does not have the necessary rightsUser createUser(java.lang.String aName, java.lang.String parentDN, java.util.Map<java.lang.String,?> aInitialAttributes, java.lang.String initalApplicationRole) throws PumaAttributeException, PumaSystemException, PumaModelException, PumaMissingAccessRightsException
aName
- the shortname of the new userparentDN
- the parent object of the new user. If null
is provided the system default will be usedaInitialAttributes
- the attributes for an initial storageinitalApplicationRole
- the name of the application role the newly
created user should be assigned to. Note: the role must be
situated in the community domain, else the role is not found and
the user is not created
PumaAttributeException
- will be thrown if attributes are
read-only, missing or not defined
PumaSystemException
- will be thrown whenever an unrecoverable
backend error occurs, e.g. the application role could not be
found.
PumaModelException
- will be thrown if a User
already exists matching the given parameters or the given
parentDN cannot be found within the used repository
PumaMissingAccessRightsException
- will be thrown if the current
authenticated user does not have the necessary rightsGroup createGroup(java.lang.String aName, java.lang.String parentDN, java.util.Map<java.lang.String,?> aInitialAttributes) throws PumaAttributeException, PumaSystemException, PumaModelException, PumaMissingAccessRightsException
aName
- shortname of the groupparentDN
- the parent object of the new user. If null
is provided the system default will be usedaInitialAttributes
- the attributes for an initial storage
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 a Group
already exists matching the given parameters or the given
parentDN cannot be found within the used repository
PumaMissingAccessRightsException
- will be thrown if the current
authenticated user does not have the necessary rightsvoid deleteUser(User aUser) throws PumaSystemException, PumaModelException, PumaMissingAccessRightsException
aUser
- the user to be removed. null
is not allowed
as input
PumaSystemException
- will be thrown whenever an unrecoverable
backend error occurs
PumaModelException
- will be thrown if the User
could not be found
PumaMissingAccessRightsException
- will be thrown if the current
authenticated user does not have the necessary rightsvoid deleteGroup(Group aGroup) throws PumaSystemException, PumaModelException, PumaMissingAccessRightsException
aGroup
- the group to be deleted. null
is not allowed
as input
PumaSystemException
- will be thrown whenever an unrecoverable
backend error occurs
PumaModelException
- will be thrown if the Group
could not be found
PumaMissingAccessRightsException
- will be thrown if the current
authenticated user does not have the necessary rights
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |