Class WorkspaceFileSizeResult

java.lang.Object
com.jalios.jcms.quota.WorkspaceFileSizeResult

public class WorkspaceFileSizeResult extends Object
  • Field Details

  • Constructor Details

    • WorkspaceFileSizeResult

      public WorkspaceFileSizeResult()
  • Method Details

    • getWorkspace

      public Workspace getWorkspace()
    • setWorkspace

      public void setWorkspace(Workspace workspace)
    • getFileSizeMap

      public ObjectLongTreeMap getFileSizeMap()
      Retrieve a the file analyzis information for the current Workspace.

      This method retrieve a the underlying ObjectLongTreeMap which is NOT thread safe.
      Always synchronize iteration or modification on the returned map.

      Returns:
      a ObjectLongTreeMap instance, never return null
    • setFileSizeMap

      @Deprecated public void setFileSizeMap(ObjectLongTreeMap fileSizeMap)
      Deprecated.
    • incrementFileSize

      public void incrementFileSize(String contentType, long increment)
      Increment the filesize analysis for the specified key.

      This method is thread safe.

      Parameters:
      contentType - the content type for which increment operation is performed
      increment - the increment value
      Since:
      jcms-10.0.3
    • getFileSizeMapWithSatellite

      public ObjectLongTreeMap getFileSizeMapWithSatellite()
      Retrieve a the file analyzis information for the current Workspace.

      This method retrieve a the underlying ObjectLongTreeMap which is NOT thread safe.
      Always synchronize iteration or modification on the returned map.

      Returns:
      a ObjectLongTreeMap instance, never return null
    • setFileSizeMapWithSatellite

      @Deprecated public void setFileSizeMapWithSatellite(ObjectLongTreeMap fileSizeMapWithSatellite)
      Deprecated.
    • incrementFileSizeWithSatellite

      public void incrementFileSizeWithSatellite(String contentType, long increment)
      Increment the filesize analysis for the specified contentType.

      This method is thread safe.

      Parameters:
      contentType - the content type for which increment operation is performed
      increment - the increment value
      Since:
      jcms-10.0.3