Package com.jalios.jcms.quota
Class WorkspaceFileSizeResult
java.lang.Object
com.jalios.jcms.quota.WorkspaceFileSizeResult
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ObjectLongTreeMapprotected ObjectLongTreeMapprotected Workspace -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieve a the file analyzis information for the current Workspace.Retrieve a the file analyzis information for the current Workspace.voidincrementFileSize(String contentType, long increment) Increment the filesize analysis for the specified key.voidincrementFileSizeWithSatellite(String contentType, long increment) Increment the filesize analysis for the specified contentType.voidsetFileSizeMap(ObjectLongTreeMap fileSizeMap) Deprecated.voidsetFileSizeMapWithSatellite(ObjectLongTreeMap fileSizeMapWithSatellite) Deprecated.voidsetWorkspace(Workspace workspace)
-
Field Details
-
workspace
-
fileSizeMap
-
fileSizeMapWithSatellite
-
-
Constructor Details
-
WorkspaceFileSizeResult
public WorkspaceFileSizeResult()
-
-
Method Details
-
getWorkspace
-
setWorkspace
-
getFileSizeMap
Retrieve a the file analyzis information for the current Workspace.This method retrieve a the underlying
ObjectLongTreeMapwhich is NOT thread safe.
Always synchronize iteration or modification on the returned map.- Returns:
- a
ObjectLongTreeMapinstance, never return null
-
setFileSizeMap
Deprecated. -
incrementFileSize
Increment the filesize analysis for the specified key.This method is thread safe.
- Parameters:
contentType- the content type for which increment operation is performedincrement- the increment value- Since:
- jcms-10.0.3
-
getFileSizeMapWithSatellite
Retrieve a the file analyzis information for the current Workspace.This method retrieve a the underlying
ObjectLongTreeMapwhich is NOT thread safe.
Always synchronize iteration or modification on the returned map.- Returns:
- a
ObjectLongTreeMapinstance, never return null
-
setFileSizeMapWithSatellite
Deprecated. -
incrementFileSizeWithSatellite
Increment the filesize analysis for the specified contentType.This method is thread safe.
- Parameters:
contentType- the content type for which increment operation is performedincrement- the increment value- Since:
- jcms-10.0.3
-