info.magnolia.cms.security
Class PermissionImpl

java.lang.Object
  extended by info.magnolia.cms.security.PermissionImpl
All Implemented Interfaces:
Permission, Serializable

public class PermissionImpl
extends Object
implements Permission, Serializable

Concrete implementation of Permission using UrlPattern to match pathes.

Author:
Sameer Charles
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface info.magnolia.cms.security.Permission
ADD, ALL, EXECUTE, NONE, PERMISSION_NAME_ADD, PERMISSION_NAME_ALL, PERMISSION_NAME_EXECUTE, PERMISSION_NAME_READ, PERMISSION_NAME_REMOVE, PERMISSION_NAME_SET, PERMISSION_NAME_SYNDICATE, PERMISSION_NAME_WRITE, READ, REMOVE, SET, SYNDICATE, WRITE
 
Constructor Summary
PermissionImpl()
           
 
Method Summary
 UrlPattern getPattern()
           
static String getPermissionAsName(long permission)
           
 long getPermissions()
           
 boolean match(String path)
          True if this permission matches the path.
 void setPattern(UrlPattern value)
           
 void setPermissions(long value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PermissionImpl

public PermissionImpl()
Method Detail

setPattern

public void setPattern(UrlPattern value)
Specified by:
setPattern in interface Permission

getPattern

public UrlPattern getPattern()
Specified by:
getPattern in interface Permission

setPermissions

public void setPermissions(long value)
Specified by:
setPermissions in interface Permission

getPermissions

public long getPermissions()
Specified by:
getPermissions in interface Permission

match

public boolean match(String path)
Description copied from interface: Permission
True if this permission matches the path.

Specified by:
match in interface Permission

toString

public String toString()
Overrides:
toString in class Object

getPermissionAsName

public static String getPermissionAsName(long permission)


Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.