com.jalios.jcms
Class LimitController

java.lang.Object
  extended by com.jalios.jcms.LimitController

public class LimitController
extends Object

Since:
jcms-5.5.0
Version:
$Revision: 30823 $
Author:
Olivier Dedieu

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 getCollaborativeSpaceLimit()
           
 int getDBFileDocumentLimit()
           
 int getDBMemberLimit()
           
 int getLanguageLimit()
           
 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

REVISION

public static final String REVISION
See Also:
Constant Field Values

MAX_WORKSPACES

protected static final int MAX_WORKSPACES
See Also:
Constant Field Values

MAX_COLLABORATIVE_SPACES

protected static final int MAX_COLLABORATIVE_SPACES
See Also:
Constant Field Values

MAX_MEMBERS

protected static final int MAX_MEMBERS
See Also:
Constant Field Values

MAX_DBMEMBERS

protected static final int MAX_DBMEMBERS
See Also:
Constant Field Values

MAX_DBFILEDOCUMENT

protected static final int MAX_DBFILEDOCUMENT
See Also:
Constant Field Values

MAX_LANGUAGES

protected static final int MAX_LANGUAGES
See Also:
Constant Field Values
Constructor Detail

LimitController

public LimitController()
Method Detail

init

public void init()

checkAllLimits

public ControllerStatus checkAllLimits()
Checks all the limits for all the controlled resources.

Returns:
a ControllerStatus
Since:
jcms-5.5.0

checkWorkspaceLimit

public ControllerStatus checkWorkspaceLimit(boolean add)
Checks workspace limit.

Parameters:
add - if true check for a new workspace.
Returns:
a ControllerStatus
Since:
jcms-5.5.0

checkCollaborativeSpaceLimit

public ControllerStatus checkCollaborativeSpaceLimit(boolean add)
Checks collaborative spaces limit.

Parameters:
add - if true check for a new collaborative space.
Returns:
a ControllerStatus
Since:
jcms-5.5.0

checkMemberLimit

public ControllerStatus checkMemberLimit(boolean add)
Checks member limit.

Parameters:
add - if true check for a new member.
Returns:
a ControllerStatus
Since:
jcms-5.5.0

checkDBMemberLimit

public ControllerStatus checkDBMemberLimit(boolean add)
Checks DBMember limit.

Parameters:
add - if true check for a new DBMember.
Returns:
a ControllerStatus
Since:
jcms-5.5.0

checkDBFileDocumentLimit

public ControllerStatus checkDBFileDocumentLimit(boolean add)
Checks DBFileDocument limit.

Parameters:
add - if true check for a new DBFileDocument.
Returns:
a ControllerStatus
Since:
jcms-5.5.0

checkLanguageLimit

public ControllerStatus checkLanguageLimit(boolean add)
Checks language limit.

Parameters:
add - if true check for a new language.
Returns:
a ControllerStatus
Since:
jcms-5.5.0

getLanguageLimit

public int getLanguageLimit()

getMemberLimit

public int getMemberLimit()

getDBMemberLimit

public int getDBMemberLimit()

getDBFileDocumentLimit

public int getDBFileDocumentLimit()

getWorkspaceLimit

public int getWorkspaceLimit()

getCollaborativeSpaceLimit

public int getCollaborativeSpaceLimit()


Copyright © 2001-2010 Jalios SA. All Rights Reserved.