org.exoplatform.wiki.mow.api
Class Permission

java.lang.Object
  extended by org.exoplatform.wiki.mow.api.Permission
Direct Known Subclasses:
PermissionImpl

public abstract class Permission
extends Object


Field Summary
protected  MOWService mowService
           
 
Constructor Summary
Permission()
           
 
Method Summary
protected  org.chromattic.api.ChromatticSession getChromatticSession()
           
protected  javax.jcr.Node getJCRNode(String path)
           
 MOWService getMOWService()
           
abstract  HashMap<String,String[]> getPermission(String path)
           
abstract  boolean hasPermission(PermissionType permissionType, String path)
           
abstract  boolean hasPermission(PermissionType permissionType, String path, org.exoplatform.services.security.Identity user)
           
 void setMOWService(MOWService mowService)
           
abstract  void setPermission(HashMap<String,String[]> permissions, String path)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mowService

protected MOWService mowService
Constructor Detail

Permission

public Permission()
Method Detail

setMOWService

public void setMOWService(MOWService mowService)

getMOWService

public MOWService getMOWService()

getChromatticSession

protected org.chromattic.api.ChromatticSession getChromatticSession()

getJCRNode

protected javax.jcr.Node getJCRNode(String path)
                             throws Exception
Throws:
Exception

getPermission

public abstract HashMap<String,String[]> getPermission(String path)
                                                throws Exception
Throws:
Exception

hasPermission

public abstract boolean hasPermission(PermissionType permissionType,
                                      String path)
                               throws Exception
Throws:
Exception

hasPermission

public abstract boolean hasPermission(PermissionType permissionType,
                                      String path,
                                      org.exoplatform.services.security.Identity user)
                               throws Exception
Throws:
Exception

setPermission

public abstract void setPermission(HashMap<String,String[]> permissions,
                                   String path)
                            throws Exception
Throws:
Exception


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