public class CmsResourceBuilder extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected long |
m_dateContent
The date of the last modification of the content of this resource.
|
protected int |
m_length
The size of the content.
|
Constructor and Description |
---|
CmsResourceBuilder() |
Modifier and Type | Method and Description |
---|---|
CmsResource |
buildResource()
Builds the resource.
|
long |
getDateContent()
Gets the date content.
|
long |
getDateCreated()
Gets the date created.
|
long |
getDateExpired()
Gets the date expired.
|
long |
getDateLastModified()
Gets the date last modified.
|
long |
getDateReleased()
Gets the date released.
|
int |
getFlags()
Gets the flags.
|
int |
getLength()
Gets the length.
|
CmsUUID |
getProjectLastModified()
Gets the project last modified.
|
CmsUUID |
getResourceId()
Gets the resource id.
|
java.lang.String |
getRootPath()
Gets the root path.
|
int |
getSiblingCount()
Gets the sibling count.
|
CmsResourceState |
getState()
Gets the state.
|
CmsUUID |
getStructureId()
Gets the structure id.
|
I_CmsResourceType |
getType()
Gets the type.
|
CmsUUID |
getUserCreated()
Gets the user created.
|
CmsUUID |
getUserLastModified()
Gets the user last modified.
|
int |
getVersion()
Gets the version.
|
boolean |
isFolder()
Checks if is folder.
|
boolean |
isTouched()
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(java.lang.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.
|
protected long m_dateContent
protected int m_length
public CmsResourceBuilder()
public CmsResource buildResource()
public long getDateContent()
public long getDateCreated()
public long getDateExpired()
public long getDateLastModified()
public long getDateReleased()
public int getFlags()
public int getLength()
public CmsUUID getProjectLastModified()
public CmsUUID getResourceId()
public java.lang.String getRootPath()
public int getSiblingCount()
public CmsResourceState getState()
public CmsUUID getStructureId()
public I_CmsResourceType getType()
public CmsUUID getUserCreated()
public CmsUUID getUserLastModified()
public int getVersion()
public boolean isFolder()
public boolean isTouched()
public void setDateContent(long dateContent)
dateContent
- the new date contentpublic void setDateCreated(long dateCreated)
dateCreated
- the new date createdpublic void setDateExpired(long dateExpired)
dateExpired
- the new date expiredpublic void setDateLastModified(long dateLastModified)
dateLastModified
- the new date last modifiedpublic void setDateReleased(long dateReleased)
dateReleased
- the new date releasedpublic void setFlags(int flags)
flags
- the new flagspublic void setFolder(boolean isFolder)
isFolder
- the new folderpublic void setLength(int length)
length
- the new lengthpublic void setProjectLastModified(CmsUUID projectLastModified)
projectLastModified
- the new project last modifiedpublic void setResourceId(CmsUUID resourceId)
resourceId
- the new resource idpublic void setRootPath(java.lang.String rootPath)
rootPath
- the new root pathpublic void setSiblingCount(int siblingCount)
siblingCount
- the new sibling countpublic void setState(CmsResourceState state)
state
- the new statepublic void setStructureId(CmsUUID structureId)
structureId
- the new structure idpublic void setTouched(boolean isTouched)
isTouched
- the new touchedpublic void setType(I_CmsResourceType type)
type
- the new typepublic void setUserCreated(CmsUUID userCreated)
userCreated
- the new user createdpublic void setUserLastModified(CmsUUID userLastModified)
userLastModified
- the new user last modifiedpublic void setVersion(int version)
version
- the new version