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 1607 2010-09-02 09:58:25Z 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,
org.exoplatform.services.security.Identity userIdentity,
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,
org.exoplatform.services.security.Identity userIdentity,
RepositoryInfo repositoryInfo)
- Parameters:
object - objectpermissions - set of actions to be checkeduserIdentity - user's identityrepositoryInfo - TODO
- Returns:
true if user has all permissions and
false otherwise
Copyright © 2010 eXo Platform SAS. All Rights Reserved.