com.gigaspaces.security.authorities
Class GridAuthority
java.lang.Object
com.gigaspaces.security.authorities.GridAuthority
- All Implemented Interfaces:
- InternalAuthority, Authority, Serializable
public class GridAuthority
- extends Object
- implements InternalAuthority
Defines an Authority for managing grid services, with the specified privilege.
The GridAuthority
s' Authority.getAuthority()
String representation format:
GridPrivilege privilege-value
Where:
privilege-value = PROVISION_PU | MANAGE_PU | MANAGE_GRID
The privileges represent the following grid operations:
PROVISION_PU - deploy, un-deploy
MANAGE_PU - scale up/down, relocate, restart PU instance, destroy PU instance
MANAGE_GRID - start, terminate, restart of GSC/GSM/LUS
- Since:
- 7.0.1
- Author:
- Moran Avigdor
- See Also:
- Serialized Form
GridAuthority
public GridAuthority(GridAuthority.GridPrivilege gridPrivilege)
valueOf
public static GridAuthority valueOf(String authority)
getAuthority
public String getAuthority()
- Description copied from interface:
Authority
- An
Authority
that can be represented as a String
which is
sufficient in precision to be relied upon for an access control decisions.
- Specified by:
getAuthority
in interface Authority
- Returns:
- a representation of the granted authority (expressed as a
String
with
sufficient precision).
toString
public String toString()
- Overrides:
toString
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
getPrivilege
public Privilege getPrivilege()
- Description copied from interface:
InternalAuthority
- A granted privilege associated with this Authority.
- Specified by:
getPrivilege
in interface InternalAuthority
- Returns:
- a granted privilege.
Copyright © GigaSpaces.