| java.lang.Object org.opencms.importexport.A_CmsImport org.opencms.importexport.CmsImportVersion5
All known Subclasses: org.opencms.importexport.CmsImportVersion6,
Method Summary | |
protected long | convertTimestamp(String timestamp) Convert a given time stamp from a String format to a long value.
The time stamp is either the string representation of a long value (old export format)
or a user-readable string format. | public int | getVersion() | public void | importData(CmsObject cms, I_CmsReport report, CmsImportParameters params) | protected void | importRelations() | protected void | importRelations(CmsResource resource, Element parentElement) | protected CmsResource | importResource(String source, String destination, I_CmsResourceType type, String uuidstructure, String uuidresource, long datelastmodified, String userlastmodified, long datecreated, String usercreated, long datereleased, long dateexpired, String flags, List properties) | public void | importResources(CmsObject cms, String importPath, I_CmsReport report, File importResource, ZipFile importZip, Document docXml) | protected void | importUser(String name, String flags, String password, String firstname, String lastname, String email, long dateCreated, Map userInfo, List userGroups) | protected void | readResourcesFromManifest() | protected void | rewriteParseables() |
IMPORT_VERSION | final public static int IMPORT_VERSION(Code) | | The version number of this import implementation.
|
m_importedRelations | protected Map m_importedRelations(Code) | | Stores all relations defined in the import file to be created after all resources has been imported.
|
m_keepPermissions | protected boolean m_keepPermissions(Code) | | The keep permissions flag.
|
CmsImportVersion5 | public CmsImportVersion5()(Code) | | Creates a new CmsImportVerion7 object.
|
convertTimestamp | protected long convertTimestamp(String timestamp)(Code) | | Convert a given time stamp from a String format to a long value.
The time stamp is either the string representation of a long value (old export format)
or a user-readable string format.
Parameters: timestamp - time stamp to convert long value of the time stamp |
importRelations | protected void importRelations()(Code) | | Imports the relations.
|
importRelations | protected void importRelations(CmsResource resource, Element parentElement)(Code) | | Reads all the relations of the resource from the manifest.xml file
and adds them to the according resource.
Parameters: resource - the resource to import the relations for Parameters: parentElement - the current element |
importResource | protected CmsResource importResource(String source, String destination, I_CmsResourceType type, String uuidstructure, String uuidresource, long datelastmodified, String userlastmodified, long datecreated, String usercreated, long datereleased, long dateexpired, String flags, List properties)(Code) | | Imports a resource (file or folder) into the cms.
Parameters: source - the path to the source-file Parameters: destination - the path to the destination-file in the cms Parameters: type - the resource type name of the file Parameters: uuidstructure - the structure uuid of the resource Parameters: uuidresource - the resource uuid of the resource Parameters: datelastmodified - the last modification date of the resource Parameters: userlastmodified - the user who made the last modifications to the resource Parameters: datecreated - the creation date of the resource Parameters: usercreated - the user who created Parameters: datereleased - the release date of the resource Parameters: dateexpired - the expire date of the resource Parameters: flags - the flags of the resource Parameters: properties - a list with properties for this resource imported resource |
readResourcesFromManifest | protected void readResourcesFromManifest() throws CmsImportExportException(Code) | | Reads all file nodes plus their meta-information (properties, ACL)
from the manifest.xml and imports them as Cms resources to the VFS.
throws: CmsImportExportException - if something goes wrong |
rewriteParseables | protected void rewriteParseables()(Code) | | Rewrites all parseable files, to assure link check.
|
Methods inherited from org.opencms.importexport.A_CmsImport | protected boolean checkImmutable(String translatedName, List immutableResources)(Code)(Java Doc) protected void cleanUp()(Code)(Java Doc) public String convertDigestEncoding(String value)(Code)(Java Doc) protected void convertPointerToSiblings()(Code)(Java Doc) public String getChildElementTextValue(Element parentElement, String elementName)(Code)(Java Doc) protected byte[] getFileBytes(String filename)(Code)(Java Doc) protected CmsAccessControlEntry getImportAccessControlEntry(CmsResource res, String id, String allowed, String denied, String flags)(Code)(Java Doc) protected Locale getLocale(String destination, List properties)(Code)(Java Doc) protected void importAccessControlEntries(CmsResource resource, List aceList)(Code)(Java Doc) protected void importGroup(String name, String description, String flags, String parentgroupName) throws CmsImportExportException(Code)(Java Doc) protected void importGroups() throws CmsImportExportException(Code)(Java Doc) protected void importUser(String name, String flags, String password, String firstname, String lastname, String email, long dateCreated, Map userInfo, List userGroups) throws CmsImportExportException(Code)(Java Doc) protected void importUsers() throws CmsImportExportException(Code)(Java Doc) protected void initialize()(Code)(Java Doc) public boolean matches(CmsImportParameters parameters) throws CmsImportExportException(Code)(Java Doc) protected List readPropertiesFromManifest(Element parentElement, List ignoredPropertyKeys)(Code)(Java Doc)
|
|
|