org.xcmis.spi
Class PermissionService
java.lang.Object
org.xcmis.spi.PermissionService
public class PermissionService
- extends Object
Common service for resolve CMIS object permissions.
- Version:
- $Id: PermissionService.java 1682 2010-09-10 12:15:01Z andrew00x $
- Author:
- Andrey Parfonov
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PermissionService
public PermissionService()
calculateAllowableActions
public AllowableActions calculateAllowableActions(ObjectData object,
String userId,
RepositoryInfo repositoryInfo)
- Calculate allowable actions for specified object.
- Parameters:
object - objectuserIdentity - user's identityrepositoryInfo - RepositoryInfo
- Returns:
- allowable actions for object
- See Also:
Identity
hasPermission
public boolean hasPermission(ObjectData object,
Collection<String> permissions,
String userId,
RepositoryInfo repositoryInfo)
- Parameters:
object - objectpermissions - set of actions to be checkeduserId - user's idrepositoryInfo -
- Returns:
true if user has all permissions and
false otherwise
Copyright © 2011 eXo Platform SAS. All Rights Reserved.