public class PermissionImpl extends Object implements Permission, Serializable
Permission
using UrlPattern
to match pathes.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 and Description |
---|
PermissionImpl() |
Modifier and Type | Method and Description |
---|---|
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() |
public void setPattern(UrlPattern value)
setPattern
in interface Permission
public UrlPattern getPattern()
getPattern
in interface Permission
public void setPermissions(long value)
setPermissions
in interface Permission
public long getPermissions()
getPermissions
in interface Permission
public boolean match(String path)
Permission
match
in interface Permission
public static String getPermissionAsName(long permission)
Copyright © 2003–2017 Magnolia International Ltd.. All rights reserved.