public class CmsResourceImportData extends java.lang.Object
Constructor and Description |
---|
CmsResourceImportData(CmsResource resource,
java.lang.String path,
byte[] content,
java.util.List<CmsProperty> properties,
java.util.List<CmsAccessControlEntry> aces,
java.util.List<CmsImportVersion10.RelationData> relationData,
boolean hasStructureId,
boolean hasDateLastModified)
Creats a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
cleanUp()
Cleans up temp files.
|
java.lang.Object |
computeRootPath(CmsObject cms)
Computes the root path.
|
java.util.List<CmsAccessControlEntry> |
getAccessControlEntries()
Gets the access control entries.
|
byte[] |
getContent()
Gets the content.
|
CmsResource |
getImportResource()
Gets the import resource.
|
java.lang.String |
getPath()
Gets the path.
|
java.util.Map<java.lang.String,CmsProperty> |
getProperties()
Gets the map of properties, with property names as keys.
|
java.util.List<CmsImportVersion10.RelationData> |
getRelations()
Gets the relations.
|
CmsResource |
getResource()
Gets the resource.
|
boolean |
hasContent()
Checks if there is content.
|
boolean |
hasDateLastModified()
Returns true if this had a modification date in the import.
|
boolean |
hasStructureId()
Returns true if this had a structure id in the import.
|
void |
setImportResource(CmsResource importRes)
Sets the import resource.
|
public CmsResourceImportData(CmsResource resource, java.lang.String path, byte[] content, java.util.List<CmsProperty> properties, java.util.List<CmsAccessControlEntry> aces, java.util.List<CmsImportVersion10.RelationData> relationData, boolean hasStructureId, boolean hasDateLastModified)
resource
- the resourcepath
- the pathcontent
- the contentproperties
- the propertiesaces
- the acccess control entriesrelationData
- the relation datahasStructureId
- true if has a structure idhasDateLastModified
- true if has a modification datepublic void cleanUp()
public java.lang.Object computeRootPath(CmsObject cms)
cms
- the CMS contextpublic java.util.List<CmsAccessControlEntry> getAccessControlEntries()
public byte[] getContent()
public CmsResource getImportResource()
This is set by the module updater if the resource has actually been imported.
public java.lang.String getPath()
public java.util.Map<java.lang.String,CmsProperty> getProperties()
public java.util.List<CmsImportVersion10.RelationData> getRelations()
public CmsResource getResource()
public boolean hasContent()
public boolean hasDateLastModified()
public boolean hasStructureId()
public void setImportResource(CmsResource importRes)
importRes
- the import resource