public class AuthorizationUtil extends Object implements Permission, Resource
| Modifier and Type | Field and Description |
|---|---|
protected String |
permissionName |
protected int |
permissionValue |
protected String |
resourceName |
protected int |
resourceType |
| Constructor and Description |
|---|
AuthorizationUtil(String resourceName,
int resourceType,
String permissionName) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getName()
returns the name of the perwission, ie.
|
int |
getValue()
returns the unique numeric value of the permission.
|
int |
hashCode() |
String |
resourceName()
returns the name of the resource
|
int |
resourceType()
an integer representing the type of the resource.
|
protected String resourceName
protected int resourceType
protected String permissionName
protected int permissionValue
public String resourceName()
ResourceresourceName in interface Resourcepublic int resourceType()
ResourceresourceType in interface Resourcepublic String getName()
PermissiongetName in interface Permissionpublic int getValue()
PermissiongetValue in interface PermissionCopyright © 2018. All rights reserved.