|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jalios.jcms.LimitController
public class LimitController
Field Summary | |
---|---|
protected static int |
MAX_COLLABORATIVE_SPACES
|
protected static int |
MAX_DBFILEDOCUMENT
|
protected static int |
MAX_DBMEMBERS
|
protected static int |
MAX_LANGUAGES
|
protected static int |
MAX_MEMBERS
|
protected static int |
MAX_WORKSPACES
|
static String |
REVISION
|
Constructor Summary | |
---|---|
LimitController()
|
Method Summary | |
---|---|
ControllerStatus |
checkAllLimits()
Checks all the limits for all the controlled resources. |
ControllerStatus |
checkCollaborativeSpaceLimit(boolean add)
Checks collaborative spaces limit. |
ControllerStatus |
checkDBFileDocumentLimit(boolean add)
Checks DBFileDocument limit. |
ControllerStatus |
checkDBMemberLimit(boolean add)
Checks DBMember limit. |
ControllerStatus |
checkLanguageLimit(boolean add)
Checks language limit. |
ControllerStatus |
checkMemberLimit(boolean add)
Checks member limit. |
ControllerStatus |
checkWorkspaceLimit(boolean add)
Checks workspace limit. |
int |
getActiveDBMemberCount()
Returns the count of active DBMember (account and enabled). |
int |
getActiveMemberCount()
Returns the count of active DBMember (account and enabled). |
int |
getCollaborativeSpaceLimit()
|
int |
getDBFileDocumentLimit()
|
int |
getDBMemberLimit()
|
int |
getLanguageLimit()
|
int |
getLimit(Class<? extends Data> clazz)
Returns the limit for a given Data class. |
int |
getMemberLimit()
|
int |
getWorkspaceLimit()
|
void |
init()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String REVISION
protected static final int MAX_WORKSPACES
protected static final int MAX_COLLABORATIVE_SPACES
protected static final int MAX_MEMBERS
protected static final int MAX_DBMEMBERS
protected static final int MAX_DBFILEDOCUMENT
protected static final int MAX_LANGUAGES
Constructor Detail |
---|
public LimitController()
Method Detail |
---|
public void init()
public ControllerStatus checkAllLimits()
public ControllerStatus checkWorkspaceLimit(boolean add)
add
- if true check for a new workspace.
public ControllerStatus checkCollaborativeSpaceLimit(boolean add)
add
- if true check for a new collaborative space.
public ControllerStatus checkMemberLimit(boolean add)
add
- if true check for a new member.
public int getActiveMemberCount()
public ControllerStatus checkDBMemberLimit(boolean add)
add
- if true check for a new DBMember.
public int getActiveDBMemberCount()
public ControllerStatus checkDBFileDocumentLimit(boolean add)
add
- if true check for a new DBFileDocument.
public ControllerStatus checkLanguageLimit(boolean add)
add
- if true check for a new language.
public int getLanguageLimit()
public int getLimit(Class<? extends Data> clazz)
clazz
- the Data class.
public int getMemberLimit()
public int getDBMemberLimit()
public int getDBFileDocumentLimit()
public int getWorkspaceLimit()
public int getCollaborativeSpaceLimit()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |