public class AttivioRole extends Object implements Serializable, Cloneable
AttivioRole
represents role authorization permissions on client APIs.
It has a required name representing the role name, and an optional subgroup/resource for partitioning of the role.
For example, a module might have an administrative role like:AttivioUserRole('ROLE_MODULE_ADMIN')And it might have collection specific roles like:
AttivioUserRole('ROLE_MODULE_USER','support') AttivioUserRole('ROLE_MODULE_USER','production')Or collectionId specific roles, like:
AttivioUserRole('ROLE_MODULE_USER','collection001') AttivioUserRole('ROLE_MODULE_USER','collection002')
Modifier and Type | Field and Description |
---|---|
static String |
SUBGROUP_ANY
Represents that all subroups match.
|
Constructor and Description |
---|
AttivioRole()
Constructor intended for use by serialization code.
|
AttivioRole(Enum<?> role)
Constructs a user role via an enum value for the role name.
|
AttivioRole(Enum<?> role,
String subgroup)
Constructs a user role with an enum value for name and a subgroup.
|
AttivioRole(String name)
Constructs a user role from a role name.
|
AttivioRole(String name,
String subgroup)
Constructs a user role from name and subgroup.
|
Modifier and Type | Method and Description |
---|---|
AttivioRole |
clone() |
boolean |
equals(Object obj) |
String |
getName() |
String |
getSubgroup() |
int |
hashCode() |
void |
setName(String name)
Sets the role name.
|
void |
setSubgroup(String subgroup)
Sets the subgroup
|
String |
toString() |
public static final String SUBGROUP_ANY
public AttivioRole()
public AttivioRole(String name, String subgroup)
name
- the namesubgroup
- the subgroup or resourcepublic AttivioRole(String name)
name
- the namepublic AttivioRole(Enum<?> role)
role
- any Enum
which maps to role names.public String getName()
public void setName(String name)
name
- the role namepublic String getSubgroup()
public void setSubgroup(String subgroup)
subgroup
- public AttivioRole clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
Copyright © 2018 Attivio, Inc. All Rights Reserved.
PATENT NOTICE: Attivio, Inc. Software Related Patents. With respect to the Attivio software product(s) being used, the following patents apply: Querying Joined Data Within A Search Engine Index: United States Patent No.(s): 8,073,840. Ordered Processing of Groups of Messages: U.S. Patent No.(s) 8,495,656. Signal processing approach to sentiment analysis for entities in documents: U.S. Patent No.(s) 8,725,494. Other U.S. and International Patents Pending.