org.xcmis.spi
Class PermissionService

java.lang.Object
  extended by org.xcmis.spi.PermissionService

public class PermissionService
extends Object

Common service for resolve CMIS object permissions.

Version:
$Id$
Author:
Andrey Parfonov

Constructor Summary
PermissionService()
           
 
Method Summary
 AllowableActions calculateAllowableActions(ObjectData object, String userId, RepositoryInfo repositoryInfo)
          Calculate allowable actions for specified object.
 boolean hasPermission(ObjectData object, Collection<String> permissions, String userId, RepositoryInfo repositoryInfo)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PermissionService

public PermissionService()
Method Detail

calculateAllowableActions

public AllowableActions calculateAllowableActions(ObjectData object,
                                                  String userId,
                                                  RepositoryInfo repositoryInfo)
Calculate allowable actions for specified object.

Parameters:
object - object
userIdentity - user's identity
repositoryInfo - RepositoryInfo
Returns:
allowable actions for object
See Also:
Identity

hasPermission

public boolean hasPermission(ObjectData object,
                             Collection<String> permissions,
                             String userId,
                             RepositoryInfo repositoryInfo)
Parameters:
object - object
permissions - set of actions to be checked
userId - user's id
repositoryInfo -
Returns:
true if user has all permissions and false otherwise


Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.