Class Role
- java.lang.Object
-
- ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.Role
-
- All Implemented Interfaces:
java.io.Serializable
@JsonObject("Role") public final class Role extends java.lang.Object implements java.io.Serializable
Immutable value object representing an authorization role. A role has a code and a flag which tells whether this role is for a certain space or for all spaces.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Role(java.lang.String code, boolean spaceLevel)
Creates a new instance from specified code and space level flag.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getCode()
Returns role code.int
hashCode()
boolean
isSpaceLevel()
Returnstrue
if this role is for a particular space.java.lang.String
toString()
-
-
-
Method Detail
-
getCode
public final java.lang.String getCode()
Returns role code.
-
isSpaceLevel
public final boolean isSpaceLevel()
Returnstrue
if this role is for a particular space.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-