public interface UserManager
Modifier and Type | Method and Description |
---|---|
void |
assignPermissionsToRole(String title,
List<String> permissionEntries)
Assigns a permission to a role
|
void |
assignPermissionsToUser(String name,
List<String> permissionEntries) |
void |
deleteAllPermissionsOfRole(String title)
Deletes all permission of a role
|
void |
deleteAllPermissionsOfUser(String name)
Deletes all permission of a user
|
void |
deletePermissionsOfRole(String title,
List<String> permissionEntries)
Deletes the defined permissions of the role
|
void |
deletePermissionsOfUser(String name,
List<String> permissionEntries) |
void |
deleteRole(String title) |
void |
deleteUser(String name) |
boolean |
emailExists(String email)
Checks if thereis already an agent with that email address.
|
String |
getNameByEmail(String email) |
Iterator<NonLiteral> |
getPermissionsOfRole(NonLiteral role) |
Iterator<NonLiteral> |
getPermissionsOfUser(NonLiteral user) |
NonLiteral |
getRoleByTitle(String title) |
Iterator<NonLiteral> |
getRoles() |
Iterator<NonLiteral> |
getRolesOfUser(NonLiteral user) |
NonLiteral |
getUserByName(String name)
Deprecated.
|
GraphNode |
getUserGraphNode(String name)
Returns the user with the specified name in an (editable) MGraph
(i.e.
|
GraphNode |
getUserInContentGraph(String name)
Returns the
GraphNode pointing to the user with the
specified name in the content graph. |
GraphNode |
getUserInSystemGraph(String name)
Returns the
GraphNode pointing to the user with the
specified name in the system graph. |
Iterator<NonLiteral> |
getUsers()
Returns all users.
|
boolean |
nameExists(String name)
Checks if the username exists
|
boolean |
roleExists(String title)
Checks if a role with this title exists
|
void |
storeRole(String title) |
void |
storeUser(String name,
String email,
String password,
List<String> assignedRoles,
String pathPrefix) |
void |
updateUser(String name,
String email,
String password,
Collection<String> assignedRoles,
String pathPrefix)
Updates the user with the specified userName
|
void storeRole(String title)
title
- the title of the role, may not be nullboolean roleExists(String title)
title
- specifies the title of the roleNonLiteral getRoleByTitle(String title)
title
- Iterator<NonLiteral> getRoles()
Iterator<NonLiteral> getRolesOfUser(NonLiteral user)
user
- the user is either a BNode or a UriRefvoid deleteRole(String title)
title
- the title of the role to be deleted, may not be nullvoid assignPermissionsToRole(String title, List<String> permissionEntries)
title
- specifies the title of the role, may not be nullpermissionEntries
- specifies a list of permissionsIterator<NonLiteral> getPermissionsOfRole(NonLiteral role)
role
- the role is either a BNode or an UriRefvoid deletePermissionsOfRole(String title, List<String> permissionEntries)
title
- specifies the title of the role, may not be nullpermissionEntries
- void deleteAllPermissionsOfRole(String title)
title
- specifies the title of the role, may not be nullvoid storeUser(String name, String email, String password, List<String> assignedRoles, String pathPrefix)
name
- the username of the user, may not be nullemail
- password
- assignedRoles
- pathPrefix
- NoSuchAlgorithmException
UnsupportedEncodingException
void updateUser(String name, String email, String password, Collection<String> assignedRoles, String pathPrefix)
name,
- may not be nullemail
- the email address (note that this is not the mailto-uri)password
- assignedRoles
- pathPrefix
- boolean nameExists(String name)
name
- specifies the username, may not be nullboolean emailExists(String email)
email
- String getNameByEmail(String email) throws UserHasNoNameException
email
- UserHasNoNameException
@Deprecated NonLiteral getUserByName(String name)
name
- specifies the username of the userGraphNode getUserGraphNode(String name)
name
- The username of the userGraphNode getUserInSystemGraph(String name)
GraphNode
pointing to the user with the
specified name in the system graph. Returns null if the user does not
exist.name
- The username of the userGraphNode getUserInContentGraph(String name)
GraphNode
pointing to the user with the
specified name in the content graph. If the user does not exist in the
content graph, but in the system graph, then the it is created with the
PLATFORM.userName property copied from the system graph. Returns null if
the user does not exist.name
- The username of the userIterator<NonLiteral> getUsers()
void deleteUser(String name)
name
- specifies the username of the user, may not be nullvoid assignPermissionsToUser(String name, List<String> permissionEntries)
name
- specifies the username of the user, may not be nullpermissionEntries
- Iterator<NonLiteral> getPermissionsOfUser(NonLiteral user)
user
- the user is either a BNode or a UriRefvoid deletePermissionsOfUser(String name, List<String> permissionEntries)
name
- specifies the username of the user, may not be nullpermissionEntries
- void deleteAllPermissionsOfUser(String name)
name
- specifies the username of the user, may not be nullCopyright © 2014 The Apache Software Foundation. All Rights Reserved.