|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.systemsx.cisd.openbis.generic.shared.api.v1.dto.Role
@JsonObject(value="Role") public final class Role
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.
Constructor Summary | |
---|---|
Role(java.lang.String code,
boolean spaceLevel)
Creates a new instance from specified code and space level flag. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getCode()
Returns role code. |
int |
hashCode()
|
boolean |
isSpaceLevel()
Returns true if this role is for a particular space. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Role(java.lang.String code, boolean spaceLevel)
java.lang.IllegalArgumentException
- if specified code is null
or an empty string.Method Detail |
---|
public final java.lang.String getCode()
public final boolean isSpaceLevel()
true
if this role is for a particular space.
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |