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.SerializableImmutable 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 booleanequals(java.lang.Object obj)java.lang.StringgetCode()Returns role code.inthashCode()booleanisSpaceLevel()Returnstrueif this role is for a particular space.java.lang.StringtoString()
-
-
-
Method Detail
-
getCode
public final java.lang.String getCode()
Returns role code.
-
isSpaceLevel
public final boolean isSpaceLevel()
Returnstrueif this role is for a particular space.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-