public class Restriction
extends EnforceableDataObject
implements java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
ALL_RESTRICTIONS
All currently existing restrictions except the BY_MODULEACCESS restrictions
|
static java.lang.String |
MAX_CONTEXT_PER_SUBADMIN
The maximum number of contexts a subadmin may create
|
static java.lang.String |
MAX_OVERALL_CONTEXT_QUOTA_PER_SUBADMIN
The overall quota of all contexts belonging to subadmin
|
static java.lang.String |
MAX_OVERALL_USER_PER_SUBADMIN
The maximum number of users a subadmin may create distibuted over all contexts
Important: The oxadminuser is also counted as a user which means that when setting
MaxOverallUser to 10, only 9 additional users can be created
|
static java.lang.String |
MAX_OVERALL_USER_PER_SUBADMIN_BY_MODULEACCESS_PREFIX
The maximum number of users with a specific
UserModuleAccess a subadmin may create distibuted over all contexts
Important: The oxadminuser is also counted as a user which means that when setting
MaxOverallUser to 10, only 9 additional users can be created |
static java.lang.String |
MAX_SUBADMIN_PER_SUBADMIN
If
Restriction.SUBADMIN_CAN_CREATE_SUBADMINS is enabled, limit the amount of subadmins
to be created by a subadmin to this value. |
static java.lang.String |
MAX_USER_PER_CONTEXT
The maximum number of users that can be created in this context
Important: The oxadminuser is also counted as a user which means that when setting
MaxOverallUser to 10, only 9 additional users can be created
|
static java.lang.String |
MAX_USER_PER_CONTEXT_BY_MODULEACCESS_PREFIX
The maximum number of users with a specific
UserModuleAccess that can be created in this context
Important: The oxadminuser is also counted as a user which means that when setting
MaxOverallUser to 10, only 9 additional users can be created |
static java.lang.String |
SUBADMIN_CAN_CREATE_SUBADMINS
Per default a subadmin can only create contexts.
|
Constructor and Description |
---|
Restriction() |
Restriction(java.lang.Integer id,
java.lang.String name)
Initializes a new
Restriction . |
Restriction(java.lang.Integer id,
java.lang.String name,
java.lang.String value)
Initializes a new
Restriction . |
Restriction(java.lang.String name,
java.lang.String value) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Note that this method only cares about the name attribute inside this class, all other attributes are not included in the check
|
java.lang.Integer |
getId() |
java.lang.String[] |
getMandatoryMembersChange() |
java.lang.String[] |
getMandatoryMembersCreate() |
java.lang.String[] |
getMandatoryMembersDelete() |
java.lang.String[] |
getMandatoryMembersRegister() |
java.lang.String |
getName() |
java.lang.String |
getValue() |
int |
hashCode()
Note that this method only cares about the name attribute inside this class, all other attributes are not included in the check
|
void |
setId(java.lang.Integer id) |
void |
setName(java.lang.String name) |
void |
setValue(java.lang.String value) |
java.lang.String |
toString() |
public static final java.lang.String MAX_CONTEXT_PER_SUBADMIN
public static final java.lang.String MAX_OVERALL_CONTEXT_QUOTA_PER_SUBADMIN
public static final java.lang.String MAX_OVERALL_USER_PER_SUBADMIN
public static final java.lang.String SUBADMIN_CAN_CREATE_SUBADMINS
public static final java.lang.String MAX_SUBADMIN_PER_SUBADMIN
Restriction.SUBADMIN_CAN_CREATE_SUBADMINS
is enabled, limit the amount of subadmins
to be created by a subadmin to this value. If not set, there's no limit.public static final java.lang.String MAX_OVERALL_USER_PER_SUBADMIN_BY_MODULEACCESS_PREFIX
UserModuleAccess
a subadmin may create distibuted over all contexts
Important: The oxadminuser is also counted as a user which means that when setting
MaxOverallUser to 10, only 9 additional users can be createdpublic static final java.lang.String MAX_USER_PER_CONTEXT
public static final java.lang.String MAX_USER_PER_CONTEXT_BY_MODULEACCESS_PREFIX
UserModuleAccess
that can be created in this context
Important: The oxadminuser is also counted as a user which means that when setting
MaxOverallUser to 10, only 9 additional users can be createdpublic static final java.lang.String[] ALL_RESTRICTIONS
public Restriction()
public Restriction(java.lang.Integer id, java.lang.String name)
Restriction
.id
- name
- public Restriction(java.lang.String name, java.lang.String value)
name
- value
- public Restriction(java.lang.Integer id, java.lang.String name, java.lang.String value)
Restriction
.id
- name
- value
- public boolean equals(java.lang.Object obj)
public final java.lang.Integer getId()
public java.lang.String[] getMandatoryMembersChange()
public java.lang.String[] getMandatoryMembersCreate()
public java.lang.String[] getMandatoryMembersDelete()
public java.lang.String[] getMandatoryMembersRegister()
public final java.lang.String getName()
public final java.lang.String getValue()
public int hashCode()
public final void setId(java.lang.Integer id)
id
- the id to setpublic final void setName(java.lang.String name)
name
- the name to setpublic final void setValue(java.lang.String value)
value
- the value to setpublic java.lang.String toString()