Interface QuotaAware

  • All Known Implementing Classes:
    QuotaAwareDocument

    public interface QuotaAware
    Interface to manage DocumentModel that supports Quotas
    Since:
    5.6
    Author:
    Tiry
    • Method Detail

      • getInnerSize

        long getInnerSize()
      • getTotalSize

        long getTotalSize()
      • getTrashSize

        long getTrashSize()
      • getVersionsSize

        long getVersionsSize()
      • getMaxQuota

        long getMaxQuota()
      • addInnerSize

        void addInnerSize​(long additionalSize)
      • addTotalSize

        void addTotalSize​(long additionalSize)
      • addTrashSize

        void addTrashSize​(long additionalSize)
      • addVersionsSize

        void addVersionsSize​(long additionalSize)
      • save

        void save()
      • setMaxQuota

        void setMaxQuota​(long maxSize)
      • setMaxQuota

        void setMaxQuota​(long maxSize,
                         boolean skipValidation)
      • resetInfos

        void resetInfos()
      • clearInfos

        void clearInfos()
        Resets quota info but keeps the user-specified max quota size, if present.
        Since:
        10.1
      • setAll

        void setAll​(long innerSize,
                    long totalSize,
                    long trashSize,
                    long versionsSize)
        Set all quota info.
        Since:
        10.1