Package org.opencms.file
Class CmsResourceBuilder
java.lang.Object
org.opencms.file.CmsResourceBuilder
This class allows the developer to build a CmsResource object by filling out individual fields one after the
other.
-
Field Summary
Modifier and TypeFieldDescriptionprotected long
The date of the last modification of the content of this resource.protected int
The size of the content. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionBuilds the resource.long
Gets the date content.long
Gets the date created.long
Gets the date expired.long
Gets the date last modified.long
Gets the date released.int
getFlags()
Gets the flags.int
Gets the length.Gets the project last modified.Gets the resource id.Gets the root path.int
Gets the sibling count.getState()
Gets the state.Gets the structure id.getType()
Gets the type.Gets the user created.Gets the user last modified.int
Gets the version.boolean
isFolder()
Checks if is folder.boolean
Checks if is touched.void
setDateContent
(long dateContent) Sets the date content.void
setDateCreated
(long dateCreated) Sets the date created.void
setDateExpired
(long dateExpired) Sets the date expired.void
setDateLastModified
(long dateLastModified) Sets the date last modified.void
setDateReleased
(long dateReleased) Sets the date released.void
setFlags
(int flags) Sets the flags.void
setFolder
(boolean isFolder) Sets the folder.void
setLength
(int length) Sets the length.void
setProjectLastModified
(CmsUUID projectLastModified) Sets the project last modified.void
setResourceId
(CmsUUID resourceId) Sets the resource id.void
setRootPath
(String rootPath) Sets the root path.void
setSiblingCount
(int siblingCount) Sets the sibling count.void
setState
(CmsResourceState state) Sets the state.void
setStructureId
(CmsUUID structureId) Sets the structure id.void
setTouched
(boolean isTouched) Sets the touched.void
setType
(I_CmsResourceType type) Sets the type.void
setUserCreated
(CmsUUID userCreated) Sets the user created.void
setUserLastModified
(CmsUUID userLastModified) Sets the user last modified.void
setVersion
(int version) Sets the version.
-
Field Details
-
m_dateContent
The date of the last modification of the content of this resource. -
m_length
The size of the content.
-
-
Constructor Details
-
CmsResourceBuilder
public CmsResourceBuilder()
-
-
Method Details
-
buildResource
Builds the resource.- Returns:
- the cms resource
-
getDateContent
Gets the date content.- Returns:
- the date content
-
getDateCreated
Gets the date created.- Returns:
- the date created
-
getDateExpired
Gets the date expired.- Returns:
- the date expired
-
getDateLastModified
Gets the date last modified.- Returns:
- the date last modified
-
getDateReleased
Gets the date released.- Returns:
- the date released
-
getFlags
Gets the flags.- Returns:
- the flags
-
getLength
Gets the length.- Returns:
- the length
-
getProjectLastModified
Gets the project last modified.- Returns:
- the project last modified
-
getResourceId
Gets the resource id.- Returns:
- the resource id
-
getRootPath
Gets the root path.- Returns:
- the root path
-
getSiblingCount
Gets the sibling count.- Returns:
- the sibling count
-
getState
Gets the state.- Returns:
- the state
-
getStructureId
Gets the structure id.- Returns:
- the structure id
-
getType
Gets the type.- Returns:
- the type
-
getUserCreated
Gets the user created.- Returns:
- the user created
-
getUserLastModified
Gets the user last modified.- Returns:
- the user last modified
-
getVersion
Gets the version.- Returns:
- the version
-
isFolder
Checks if is folder.- Returns:
- true, if is folder
-
isTouched
Checks if is touched.- Returns:
- true, if is touched
-
setDateContent
Sets the date content.- Parameters:
dateContent
- the new date content
-
setDateCreated
Sets the date created.- Parameters:
dateCreated
- the new date created
-
setDateExpired
Sets the date expired.- Parameters:
dateExpired
- the new date expired
-
setDateLastModified
Sets the date last modified.- Parameters:
dateLastModified
- the new date last modified
-
setDateReleased
Sets the date released.- Parameters:
dateReleased
- the new date released
-
setFlags
Sets the flags.- Parameters:
flags
- the new flags
-
setFolder
Sets the folder.- Parameters:
isFolder
- the new folder
-
setLength
Sets the length.- Parameters:
length
- the new length
-
setProjectLastModified
Sets the project last modified.- Parameters:
projectLastModified
- the new project last modified
-
setResourceId
Sets the resource id.- Parameters:
resourceId
- the new resource id
-
setRootPath
Sets the root path.- Parameters:
rootPath
- the new root path
-
setSiblingCount
Sets the sibling count.- Parameters:
siblingCount
- the new sibling count
-
setState
Sets the state.- Parameters:
state
- the new state
-
setStructureId
Sets the structure id.- Parameters:
structureId
- the new structure id
-
setTouched
Sets the touched.- Parameters:
isTouched
- the new touched
-
setType
Sets the type.- Parameters:
type
- the new type
-
setUserCreated
Sets the user created.- Parameters:
userCreated
- the new user created
-
setUserLastModified
Sets the user last modified.- Parameters:
userLastModified
- the new user last modified
-
setVersion
Sets the version.- Parameters:
version
- the new version
-