com.openexchange.admin.reseller.rmi.dataobjects
Class Restriction

java.lang.Object
  extended by EnforceableDataObject
      extended by com.openexchange.admin.reseller.rmi.dataobjects.Restriction
All Implemented Interfaces:
java.lang.Cloneable

public class Restriction
extends EnforceableDataObject
implements java.lang.Cloneable

Author:
choeger

Field Summary
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 Summary
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)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MAX_CONTEXT_PER_SUBADMIN

public static final java.lang.String MAX_CONTEXT_PER_SUBADMIN
The maximum number of contexts a subadmin may create

See Also:
Constant Field Values

MAX_OVERALL_CONTEXT_QUOTA_PER_SUBADMIN

public static final java.lang.String MAX_OVERALL_CONTEXT_QUOTA_PER_SUBADMIN
The overall quota of all contexts belonging to subadmin

See Also:
Constant Field Values

MAX_OVERALL_USER_PER_SUBADMIN

public static final 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

See Also:
Constant Field Values

SUBADMIN_CAN_CREATE_SUBADMINS

public static final java.lang.String SUBADMIN_CAN_CREATE_SUBADMINS
Per default a subadmin can only create contexts. Use this setting to enable a subadmin to be able to create further subadmins. Possible values are: true/false

See Also:
Constant Field Values

MAX_SUBADMIN_PER_SUBADMIN

public static final 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. If not set, there's no limit.

See Also:
Constant Field Values

MAX_OVERALL_USER_PER_SUBADMIN_BY_MODULEACCESS_PREFIX

public static final 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

See Also:
Constant Field Values

MAX_USER_PER_CONTEXT

public static final 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

See Also:
Constant Field Values

MAX_USER_PER_CONTEXT_BY_MODULEACCESS_PREFIX

public static final 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

See Also:
Constant Field Values

ALL_RESTRICTIONS

public static final java.lang.String[] ALL_RESTRICTIONS
All currently existing restrictions except the BY_MODULEACCESS restrictions

Constructor Detail

Restriction

public Restriction()

Restriction

public Restriction(java.lang.Integer id,
                   java.lang.String name)
Initializes a new Restriction.

Parameters:
id -
name -

Restriction

public Restriction(java.lang.String name,
                   java.lang.String value)
Parameters:
name -
value -

Restriction

public Restriction(java.lang.Integer id,
                   java.lang.String name,
                   java.lang.String value)
Initializes a new Restriction.

Parameters:
id -
name -
value -
Method Detail

equals

public 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


getId

public final java.lang.Integer getId()
Returns:
the id

getMandatoryMembersChange

public java.lang.String[] getMandatoryMembersChange()

getMandatoryMembersCreate

public java.lang.String[] getMandatoryMembersCreate()

getMandatoryMembersDelete

public java.lang.String[] getMandatoryMembersDelete()

getMandatoryMembersRegister

public java.lang.String[] getMandatoryMembersRegister()

getName

public final java.lang.String getName()
Returns:
the name

getValue

public final java.lang.String getValue()
Returns:
the value

hashCode

public int hashCode()
Note that this method only cares about the name attribute inside this class, all other attributes are not included in the check


setId

public final void setId(java.lang.Integer id)
Parameters:
id - the id to set

setName

public final void setName(java.lang.String name)
Parameters:
name - the name to set

setValue

public final void setValue(java.lang.String value)
Parameters:
value - the value to set

toString

public java.lang.String toString()