Class LimitController

    • Constructor Detail

      • LimitController

        public LimitController()
    • Method Detail

      • init

        public void init()
      • registerLimitControllerListener

        public void registerLimitControllerListener()
        This method should only be called by Channel.
        Since:
        jcms-8.0.0
      • 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
      • getActiveMemberCount

        public int getActiveMemberCount()
        Returns the count of active Members (account, enabled, and non-guest).
        Returns:
        the count of active Members (account, enabled, and non-guest).
        Since:
        jcms-8.0.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
      • getActiveDBMemberCount

        public int getActiveDBMemberCount()
        Returns the count of active DBMember (account, enabled, and non-guest).
        Returns:
        the count of active DBMember (account, enabled, and non-guest).
        Since:
        jcms-8.0.0
      • checkGuestLimit

        public ControllerStatus checkGuestLimit​(boolean add)
        Checks Guest limit.
        Parameters:
        add - if true check for a new Guest.
        Returns:
        a ControllerStatus
        Since:
        jcms-10.0.0
      • getGuestCount

        public int getGuestCount()
        Returns the count of active Guests (enabled Members and DBMembers).
        Returns:
        the count of active Guests (enabled Members and DBMembers).
        Since:
        jcms-10.0.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()
      • getLimit

        public int getLimit​(java.lang.Class<? extends Data> clazz)
        Returns the limit for a given Data class.
        Parameters:
        clazz - the Data class.
        Returns:
        the limit for a given Data class.
        Since:
        jcms-8.0.0
      • getMemberLimit

        public int getMemberLimit()
      • getDBMemberLimit

        public int getDBMemberLimit()
      • getGuestLimit

        public int getGuestLimit()
      • setGuestLimit

        public void setGuestLimit​(int limit)
      • getDBFileDocumentLimit

        public int getDBFileDocumentLimit()
      • getWorkspaceLimit

        public int getWorkspaceLimit()
      • getCollaborativeSpaceLimit

        public int getCollaborativeSpaceLimit()
      • checkAlertThreshold

        public void checkAlertThreshold​(Data data)
      • resetSendingMap

        public void resetSendingMap()