public interface SecurityService
Modifier and Type | Method and Description |
---|---|
Group |
getGroup(String groupId)
Get the (@link Group} object identified by the given
groupId . |
Iterable<Group> |
getGroups(long offset,
long limit)
Get all the
Group s in the repository. |
User |
getUser(String userId)
Get the
User object identified by the given userId . |
Iterable<User> |
getUsers(long offset,
long limit)
Get all the
User s in the repository. |
boolean |
hasGroup(String groupId)
Check if the group with given
groupId exists. |
boolean |
hasUser(String userId)
Check if the user with the given
userId exists. |
boolean hasUser(String userId) throws javax.jcr.RepositoryException
userId
exists.userId
- the id of the user to checkuserId
existsjavax.jcr.RepositoryException
User getUser(String userId) throws javax.jcr.ItemNotFoundException, javax.jcr.RepositoryException
User
object identified by the given userId
.userId
- the id of the user to obtain.User
identified by the given userId
javax.jcr.ItemNotFoundException
- if no user with the given id could be foundjavax.jcr.RepositoryException
Iterable<User> getUsers(long offset, long limit) throws javax.jcr.RepositoryException
User
s in the repository.offset
- the start offset of the result; only has effect when value is larger than zero;
defaults to no offsetlimit
- maximum size of the result; only has effect when value is larger than zero; defaults to no limitUser
s in the repository. Never null
.javax.jcr.RepositoryException
Iterable<Group> getGroups(long offset, long limit) throws javax.jcr.RepositoryException
Group
s in the repository.offset
- the start offset of the result; only has effect when value is larger than zero;
defaults to no offsetlimit
- maximum size of the result; only has effect when value is larger than zero; defaults to no limitGroup
s in the repository. Never null
.javax.jcr.RepositoryException
boolean hasGroup(String groupId) throws javax.jcr.RepositoryException
groupId
exists.groupId
- the id of the group to checkgroupId
existsjavax.jcr.RepositoryException
Group getGroup(String groupId) throws javax.jcr.ItemNotFoundException, javax.jcr.RepositoryException
groupId
.groupId
- the id of the group to obtain.Group
identified by the given groupId
javax.jcr.ItemNotFoundException
- if no group with the given id could be foundjavax.jcr.RepositoryException
Copyright © 2007–2017 Hippo B.V. (http://www.onehippo.com). All rights reserved.