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()
Resource
resourceName
in interface Resource
public int resourceType()
Resource
resourceType
in interface Resource
public String getName()
Permission
getName
in interface Permission
public int getValue()
Permission
getValue
in interface Permission
Copyright © 2019. All rights reserved.