Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.webengine.security.guards
Class PermissionGuard

java.lang.Object
  extended by org.nuxeo.ecm.webengine.security.guards.PermissionGuard
All Implemented Interfaces:
Guard

public class PermissionGuard
extends Object
implements Guard

Check access against a built-in permission

Author:
Bogdan Stefanescu

Field Summary
 
Fields inherited from interface org.nuxeo.ecm.webengine.security.Guard
DEFAULT
 
Constructor Summary
PermissionGuard(String perm)
           
 
Method Summary
 boolean check(Adaptable context)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PermissionGuard

public PermissionGuard(String perm)
Method Detail

check

public boolean check(Adaptable context)
Specified by:
check in interface Guard

toString

public String toString()
Overrides:
toString in class Object

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.