info.magnolia.cms.security
Class PermissionImpl
java.lang.Object
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
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 |
PermissionImpl
public PermissionImpl()
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-2013 Magnolia International Ltd.. All Rights Reserved.