Package com.jalios.jcms.quota
Class WorkspaceFileSizeResult
- java.lang.Object
-
- com.jalios.jcms.quota.WorkspaceFileSizeResult
-
public class WorkspaceFileSizeResult extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ObjectLongTreeMap
fileSizeMap
protected ObjectLongTreeMap
fileSizeMapWithSatellite
protected Workspace
workspace
-
Constructor Summary
Constructors Constructor Description WorkspaceFileSizeResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ObjectLongTreeMap
getFileSizeMap()
Retrieve a the file analyzis information for the current Workspace.ObjectLongTreeMap
getFileSizeMapWithSatellite()
Retrieve a the file analyzis information for the current Workspace.Workspace
getWorkspace()
void
incrementFileSize(java.lang.String contentType, long increment)
Increment the filesize analysis for the specified key.void
incrementFileSizeWithSatellite(java.lang.String contentType, long increment)
Increment the filesize analysis for the specified contentType.void
setFileSizeMap(ObjectLongTreeMap fileSizeMap)
Deprecated.void
setFileSizeMapWithSatellite(ObjectLongTreeMap fileSizeMapWithSatellite)
Deprecated.void
setWorkspace(Workspace workspace)
-
-
-
Field Detail
-
workspace
protected Workspace workspace
-
fileSizeMap
protected ObjectLongTreeMap fileSizeMap
-
fileSizeMapWithSatellite
protected ObjectLongTreeMap fileSizeMapWithSatellite
-
-
Method Detail
-
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(java.lang.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 performedincrement
- 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(java.lang.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 performedincrement
- the increment value- Since:
- jcms-10.0.3
-
-