Java Doc for A_CmsImport.java in  » Content-Management-System » opencms » org » opencms » importexport » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Content Management System » opencms » org.opencms.importexport 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.opencms.importexport.A_CmsImport

All known Subclasses:   org.opencms.importexport.CmsImportVersion4,  org.opencms.importexport.CmsImportVersion2,  org.opencms.importexport.CmsImportVersion3,  org.opencms.importexport.CmsImportVersion5,
A_CmsImport
abstract public class A_CmsImport implements I_CmsImport(Code)
Collection of common used methods for implementing OpenCms Import classes.

This class does not implement a real OpenCms import, real import implementation should be inherited form this class.


author:
   Michael Emmerich
author:
   Thomas Weckert
version:
   $Revision: 1.89 $
since:
   6.0.0
See Also:   org.opencms.importexport.I_CmsImportCmsImportVersion7



Field Summary
final public static  StringA_NAME
     Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "userinfo/entry@name" attribute, contains the additional user info entry name.
final public static  StringA_TYPE
     Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "userinfo/entry@type" attribute, contains the additional user info entry data type name.
final protected static  intDEBUG
     Debug flag to show debug output.
final public static  StringN_ACCESS
     Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "access" node.
final public static  StringN_ACCESSCONTROL_ALLOWEDPERMISSIONS
     Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "allowed" node, to identify allowed user permissions.
final public static  StringN_ACCESSCONTROL_DENIEDPERMISSIONS
     Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "denied" node, to identify denied user permissions.
final public static  StringN_ACCESSCONTROL_ENTRIES
     Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "accesscontrol" node, to identify access control entries.
final public static  StringN_ACCESSCONTROL_ENTRY
     Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "accessentry" node, to identify a single access control entry.
final public static  StringN_ACCESSCONTROL_PERMISSIONSET
     Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "permissionset" node, to identify a permission set.
final public static  StringN_ACCESSCONTROL_PRINCIPAL
     Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "uuidprincipal" node, to identify a principal UUID.
final public static  StringN_DATECREATED
     Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "datecreated" node, contains the date created VFS file attribute.
final public static  StringN_DATEEXPIRED
     Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "dateexpired" node, contains the expiration date VFS file attribute.
final public static  StringN_DATELASTMODIFIED
     Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "datelastmodified" node, contains the date last modified VFS file attribute.
final public static  StringN_DATERELEASED
     Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "datereleased" node, contains the release date VFS file attribute.
final public static  StringN_DEFAULTGROUP
     Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "defaultgroup" node, for backward compatibility with OpenCms 5.x.
final public static  StringN_DESCRIPTION
     Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "description" node, contains a users description test.
final public static  StringN_DESTINATION
     Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "destination" node, contains target VFS file name.
final public static  StringN_EMAIL
     Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "email" node, contains a users email.
final public static  StringN_FILE
     Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "file" node, container node for all VFS resources.
final public static  StringN_FIRSTNAME
     Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "firstname" node, contains a users first name.
final public static  StringN_FLAGS
     Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "flags" node, contains the flags of a VFS resource.
final public static  StringN_GROUPDATA
     Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "groupdata" node, contains a users group data.
final public static  StringN_GROUPNAME
     Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "groupname" node, contains a groups name.
final public static  StringN_ID
     Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "id" node, only required for backward compatibility with import version 2.
final public static  StringN_LASTMODIFIED
     Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "lastmodified" node, only required for backward compatibility with import version 2.
final public static  StringN_LASTNAME
     Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "lastname" node, contains a users last name.
final public static  StringN_NAME
     Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "name" node, contains a users login name.
final public static  StringN_ORGUNITDATA
     Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "orgunitdatas" node, starts the organizational unit data.
final public static  StringN_PARENTGROUP
     Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "parentgroup" node, contains a groups parent group name.
final public static  StringN_PASSWORD
     Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "password" node, contains a users encrypted password.
final public static  StringN_PROPERTIES
     Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "properties" node, starts the list of properties of a VFS resource.
final public static  StringN_PROPERTY
     Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "property" node, starts a property for a VFS resource.
final public static  StringN_PROPERTY_ATTRIB_TYPE
     Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "type" property attribute, contains a property type.
final public static  StringN_PROPERTY_ATTRIB_TYPE_SHARED
     Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "shared" property type attribute value.
final public static  StringN_RELATION
     Tag in the [@link #EXPORT_MANIFEST} for the "relation" node, starts a relation for a VFS resource.
final public static  StringN_RELATIONS
     Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "relations" node, starts the list of relations of a VFS resources.
final public static  StringN_RELATION_ATTRIBUTE_ID
     Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "id" relation attribute, contains the structure id of the target resource of the relation.
final public static  StringN_RELATION_ATTRIBUTE_PATH
     Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "path" relation attribute, contains the path to the target resource of the relation.
final public static  StringN_RELATION_ATTRIBUTE_TYPE
     Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "type" relation attribute, contains the type of relation.
final public static  StringN_SOURCE
     Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "source" node, contains the source path of a VFS resource in the import zip (or folder).
final public static  StringN_TAG_ADDRESS
     Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "address" node, contains a users address.
final public static  StringN_TYPE
     Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "type" node, the resource type name of a VFS resource.
final public static  StringN_USER
     Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "user" node, starts the user data.
final public static  StringN_USERCREATED
     Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "usercreated" node, contains the name of the user who created the VFS resource.
final public static  StringN_USERDATA
     Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "userdata" node, starts the list of users.
final public static  StringN_USERGROUPDATA
     Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "usergroupdatas" node, starts the users group data.
final public static  StringN_USERGROUPS
     Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "usergroups" node, starts the users group data.
final public static  StringN_USERINFO
     Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "userinfo" node, contains the additional user info.
final public static  StringN_USERINFO_ENTRY
     Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "userinfo/entry" node, contains the additional user info entry value.
final public static  StringN_USERLASTMODIFIED
     Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "userlastmodified" node, contains the name of the user who last modified the VFS resource.
final public static  StringN_UUIDRESOURCE
     Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "uuidresource" node, contains a the resource UUID of a VFS resource.
final public static  StringN_UUIDSTRUCTURE
     Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "uuidstructure" node, only required for backward compatibility with import version 2.
final public static  StringN_VALUE
     Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "value" node, contains the value of a property.
final public static  StringRESOURCE_TYPE_LEGACY_PAGE_NAME
     The name of the legacy resource type "page".
final protected static  intRESOURCE_TYPE_LINK_ID
     The id of the legacy resource type "link".
final protected static  StringRESOURCE_TYPE_LINK_NAME
     The name of the legacy resource type "link".
final protected static  intRESOURCE_TYPE_NEWPAGE_ID
     The id of the legacy resource type "newpage".
final protected static  StringRESOURCE_TYPE_NEWPAGE_NAME
     The name of the legacy resource type "newpage".
protected  CmsObjectm_cms
     The cms context to do the import operations with.
protected  booleanm_convertToXmlPage
     Flag for conversion to xml pages.
protected  Documentm_docXml
     The xml manifest-file.
protected  Stackm_groupsToCreate
     Groups to create during import are stored here.
protected  Stringm_importPath
     The import-path to write resources into the cms.
protected  Filem_importResource
     The import-resource (folder) to load resources from.
protected  ZipFilem_importZip
     The import-resource (zip) to load resources from.
protected  Mapm_linkPropertyStorage
     Storage for all pointer properties which must be converted into links.
protected  Mapm_linkStorage
     Storage for all pointers which must be converted into links.
protected  I_CmsReportm_report
     The object to report the log messages.
protected  I_CmsMessageBundlem_userMessages
     Messages object with the locale of the current user.


Method Summary
protected  booleancheckImmutable(String translatedName, List immutableResources)
     Checks if the resources is in the list of immutalbe resources.
protected  voidcleanUp()
    
public  StringconvertDigestEncoding(String value)
    
protected  voidconvertPointerToSiblings()
    
public  StringgetChildElementTextValue(Element parentElement, String elementName)
    
protected  byte[]getFileBytes(String filename)
    
protected  CmsAccessControlEntrygetImportAccessControlEntry(CmsResource res, String id, String allowed, String denied, String flags)
     Creates a new access control entry and stores it for later write out.
protected  LocalegetLocale(String destination, List properties)
    
protected  voidimportAccessControlEntries(CmsResource resource, List aceList)
    
protected  voidimportGroup(String name, String description, String flags, String parentgroupName)
    
protected  voidimportGroups()
    
protected  voidimportUser(String name, String flags, String password, String firstname, String lastname, String email, long dateCreated, Map userInfo, List userGroups)
    
protected  voidimportUsers()
    
protected  voidinitialize()
    
public  booleanmatches(CmsImportParameters parameters)
    
protected  ListreadPropertiesFromManifest(Element parentElement, List ignoredPropertyKeys)
    

Field Detail
A_NAME
final public static String A_NAME(Code)
Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "userinfo/entry@name" attribute, contains the additional user info entry name.



A_TYPE
final public static String A_TYPE(Code)
Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "userinfo/entry@type" attribute, contains the additional user info entry data type name.



DEBUG
final protected static int DEBUG(Code)
Debug flag to show debug output.



N_ACCESS
final public static String N_ACCESS(Code)
Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "access" node.



N_ACCESSCONTROL_ALLOWEDPERMISSIONS
final public static String N_ACCESSCONTROL_ALLOWEDPERMISSIONS(Code)
Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "allowed" node, to identify allowed user permissions.



N_ACCESSCONTROL_DENIEDPERMISSIONS
final public static String N_ACCESSCONTROL_DENIEDPERMISSIONS(Code)
Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "denied" node, to identify denied user permissions.



N_ACCESSCONTROL_ENTRIES
final public static String N_ACCESSCONTROL_ENTRIES(Code)
Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "accesscontrol" node, to identify access control entries.



N_ACCESSCONTROL_ENTRY
final public static String N_ACCESSCONTROL_ENTRY(Code)
Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "accessentry" node, to identify a single access control entry.



N_ACCESSCONTROL_PERMISSIONSET
final public static String N_ACCESSCONTROL_PERMISSIONSET(Code)
Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "permissionset" node, to identify a permission set.



N_ACCESSCONTROL_PRINCIPAL
final public static String N_ACCESSCONTROL_PRINCIPAL(Code)
Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "uuidprincipal" node, to identify a principal UUID.



N_DATECREATED
final public static String N_DATECREATED(Code)
Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "datecreated" node, contains the date created VFS file attribute.



N_DATEEXPIRED
final public static String N_DATEEXPIRED(Code)
Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "dateexpired" node, contains the expiration date VFS file attribute.



N_DATELASTMODIFIED
final public static String N_DATELASTMODIFIED(Code)
Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "datelastmodified" node, contains the date last modified VFS file attribute.



N_DATERELEASED
final public static String N_DATERELEASED(Code)
Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "datereleased" node, contains the release date VFS file attribute.



N_DEFAULTGROUP
final public static String N_DEFAULTGROUP(Code)
Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "defaultgroup" node, for backward compatibility with OpenCms 5.x.



N_DESCRIPTION
final public static String N_DESCRIPTION(Code)
Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "description" node, contains a users description test.



N_DESTINATION
final public static String N_DESTINATION(Code)
Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "destination" node, contains target VFS file name.



N_EMAIL
final public static String N_EMAIL(Code)
Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "email" node, contains a users email.



N_FILE
final public static String N_FILE(Code)
Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "file" node, container node for all VFS resources.



N_FIRSTNAME
final public static String N_FIRSTNAME(Code)
Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "firstname" node, contains a users first name.



N_FLAGS
final public static String N_FLAGS(Code)
Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "flags" node, contains the flags of a VFS resource.



N_GROUPDATA
final public static String N_GROUPDATA(Code)
Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "groupdata" node, contains a users group data.



N_GROUPNAME
final public static String N_GROUPNAME(Code)
Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "groupname" node, contains a groups name.



N_ID
final public static String N_ID(Code)
Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "id" node, only required for backward compatibility with import version 2.



N_LASTMODIFIED
final public static String N_LASTMODIFIED(Code)
Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "lastmodified" node, only required for backward compatibility with import version 2.



N_LASTNAME
final public static String N_LASTNAME(Code)
Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "lastname" node, contains a users last name.



N_NAME
final public static String N_NAME(Code)
Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "name" node, contains a users login name.



N_ORGUNITDATA
final public static String N_ORGUNITDATA(Code)
Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "orgunitdatas" node, starts the organizational unit data.



N_PARENTGROUP
final public static String N_PARENTGROUP(Code)
Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "parentgroup" node, contains a groups parent group name.



N_PASSWORD
final public static String N_PASSWORD(Code)
Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "password" node, contains a users encrypted password.



N_PROPERTIES
final public static String N_PROPERTIES(Code)
Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "properties" node, starts the list of properties of a VFS resource.



N_PROPERTY
final public static String N_PROPERTY(Code)
Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "property" node, starts a property for a VFS resource.



N_PROPERTY_ATTRIB_TYPE
final public static String N_PROPERTY_ATTRIB_TYPE(Code)
Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "type" property attribute, contains a property type.



N_PROPERTY_ATTRIB_TYPE_SHARED
final public static String N_PROPERTY_ATTRIB_TYPE_SHARED(Code)
Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "shared" property type attribute value.



N_RELATION
final public static String N_RELATION(Code)
Tag in the [@link #EXPORT_MANIFEST} for the "relation" node, starts a relation for a VFS resource.



N_RELATIONS
final public static String N_RELATIONS(Code)
Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "relations" node, starts the list of relations of a VFS resources.



N_RELATION_ATTRIBUTE_ID
final public static String N_RELATION_ATTRIBUTE_ID(Code)
Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "id" relation attribute, contains the structure id of the target resource of the relation.



N_RELATION_ATTRIBUTE_PATH
final public static String N_RELATION_ATTRIBUTE_PATH(Code)
Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "path" relation attribute, contains the path to the target resource of the relation.



N_RELATION_ATTRIBUTE_TYPE
final public static String N_RELATION_ATTRIBUTE_TYPE(Code)
Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "type" relation attribute, contains the type of relation.



N_SOURCE
final public static String N_SOURCE(Code)
Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "source" node, contains the source path of a VFS resource in the import zip (or folder).



N_TAG_ADDRESS
final public static String N_TAG_ADDRESS(Code)
Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "address" node, contains a users address.



N_TYPE
final public static String N_TYPE(Code)
Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "type" node, the resource type name of a VFS resource.



N_USER
final public static String N_USER(Code)
Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "user" node, starts the user data.



N_USERCREATED
final public static String N_USERCREATED(Code)
Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "usercreated" node, contains the name of the user who created the VFS resource.



N_USERDATA
final public static String N_USERDATA(Code)
Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "userdata" node, starts the list of users.



N_USERGROUPDATA
final public static String N_USERGROUPDATA(Code)
Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "usergroupdatas" node, starts the users group data.



N_USERGROUPS
final public static String N_USERGROUPS(Code)
Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "usergroups" node, starts the users group data.



N_USERINFO
final public static String N_USERINFO(Code)
Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "userinfo" node, contains the additional user info.



N_USERINFO_ENTRY
final public static String N_USERINFO_ENTRY(Code)
Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "userinfo/entry" node, contains the additional user info entry value.



N_USERLASTMODIFIED
final public static String N_USERLASTMODIFIED(Code)
Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "userlastmodified" node, contains the name of the user who last modified the VFS resource.



N_UUIDRESOURCE
final public static String N_UUIDRESOURCE(Code)
Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "uuidresource" node, contains a the resource UUID of a VFS resource.



N_UUIDSTRUCTURE
final public static String N_UUIDSTRUCTURE(Code)
Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "uuidstructure" node, only required for backward compatibility with import version 2.



N_VALUE
final public static String N_VALUE(Code)
Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "value" node, contains the value of a property.



RESOURCE_TYPE_LEGACY_PAGE_NAME
final public static String RESOURCE_TYPE_LEGACY_PAGE_NAME(Code)
The name of the legacy resource type "page".



RESOURCE_TYPE_LINK_ID
final protected static int RESOURCE_TYPE_LINK_ID(Code)
The id of the legacy resource type "link".



RESOURCE_TYPE_LINK_NAME
final protected static String RESOURCE_TYPE_LINK_NAME(Code)
The name of the legacy resource type "link".



RESOURCE_TYPE_NEWPAGE_ID
final protected static int RESOURCE_TYPE_NEWPAGE_ID(Code)
The id of the legacy resource type "newpage".



RESOURCE_TYPE_NEWPAGE_NAME
final protected static String RESOURCE_TYPE_NEWPAGE_NAME(Code)
The name of the legacy resource type "newpage".



m_cms
protected CmsObject m_cms(Code)
The cms context to do the import operations with.



m_convertToXmlPage
protected boolean m_convertToXmlPage(Code)
Flag for conversion to xml pages.



m_docXml
protected Document m_docXml(Code)
The xml manifest-file.



m_groupsToCreate
protected Stack m_groupsToCreate(Code)
Groups to create during import are stored here.



m_importPath
protected String m_importPath(Code)
The import-path to write resources into the cms.



m_importResource
protected File m_importResource(Code)
The import-resource (folder) to load resources from.



m_importZip
protected ZipFile m_importZip(Code)
The import-resource (zip) to load resources from.



m_linkPropertyStorage
protected Map m_linkPropertyStorage(Code)
Storage for all pointer properties which must be converted into links.



m_linkStorage
protected Map m_linkStorage(Code)
Storage for all pointers which must be converted into links.



m_report
protected I_CmsReport m_report(Code)
The object to report the log messages.



m_userMessages
protected I_CmsMessageBundle m_userMessages(Code)
Messages object with the locale of the current user.





Method Detail
checkImmutable
protected boolean checkImmutable(String translatedName, List immutableResources)(Code)
Checks if the resources is in the list of immutalbe resources.


Parameters:
  translatedName - the name of the resource
Parameters:
  immutableResources - the list of the immutable resources true or false




cleanUp
protected void cleanUp()(Code)
Cleans up member variables after the import is finished.

This is required since there is only one instance for each import version that is kept in memory and reused.




convertDigestEncoding
public String convertDigestEncoding(String value)(Code)
Converts a given digest to base64 encoding.


Parameters:
  value - the digest value in the legacy encoding the digest in the new encoding




convertPointerToSiblings
protected void convertPointerToSiblings()(Code)
Converts old style pointers to siblings if possible.




getChildElementTextValue
public String getChildElementTextValue(Element parentElement, String elementName)(Code)
Returns the value of a child element with a specified name for a given parent element.


Parameters:
  parentElement - the parent element
Parameters:
  elementName - the child element name the value of the child node, or null if something went wrong




getFileBytes
protected byte[] getFileBytes(String filename)(Code)
Returns a byte array containing the content of the file.


Parameters:
  filename - the name of the file to read a byte array containing the content of the file




getImportAccessControlEntry
protected CmsAccessControlEntry getImportAccessControlEntry(CmsResource res, String id, String allowed, String denied, String flags)(Code)
Creates a new access control entry and stores it for later write out.
Parameters:
  res - the resource
Parameters:
  id - the id of the principal
Parameters:
  allowed - the allowed permissions
Parameters:
  denied - the denied permissions
Parameters:
  flags - the flags the created ACE



getLocale
protected Locale getLocale(String destination, List properties)(Code)
Returns the appropriate locale for the given destination.


Parameters:
  destination - the destination path (parent must exist)
Parameters:
  properties - the properties to check at first the locale




importAccessControlEntries
protected void importAccessControlEntries(CmsResource resource, List aceList)(Code)
Writes already imported access control entries for a given resource.


Parameters:
  resource - the resource assigned to the access control entries
Parameters:
  aceList - the access control entries to create




importGroup
protected void importGroup(String name, String description, String flags, String parentgroupName) throws CmsImportExportException(Code)
Imports a single group.


Parameters:
  name - the name of the group
Parameters:
  description - group description
Parameters:
  flags - group flags
Parameters:
  parentgroupName - name of the parent group
throws:
  CmsImportExportException - if something goes wrong




importGroups
protected void importGroups() throws CmsImportExportException(Code)
Imports the OpenCms groups.


throws:
  CmsImportExportException - if something goes wrong




importUser
protected void importUser(String name, String flags, String password, String firstname, String lastname, String email, long dateCreated, Map userInfo, List userGroups) throws CmsImportExportException(Code)
Imports a single user.


Parameters:
  name - user name
Parameters:
  flags - user flags
Parameters:
  password - user password
Parameters:
  firstname - firstname of the user
Parameters:
  lastname - lastname of the user
Parameters:
  email - user email
Parameters:
  dateCreated - creation date
Parameters:
  userInfo - user info
Parameters:
  userGroups - user groups
throws:
  CmsImportExportException - in case something goes wrong




importUsers
protected void importUsers() throws CmsImportExportException(Code)
Imports the OpenCms users.


throws:
  CmsImportExportException - if something goes wrong




initialize
protected void initialize()(Code)
Initializes all member variables before the import is started.

This is required since there is only one instance for each import version that is kept in memory and reused.




matches
public boolean matches(CmsImportParameters parameters) throws CmsImportExportException(Code)

See Also:   org.opencms.importexport.I_CmsImport.matches(org.opencms.importexport.CmsImportParameters)



readPropertiesFromManifest
protected List readPropertiesFromManifest(Element parentElement, List ignoredPropertyKeys)(Code)
Reads all properties below a specified parent element from the manifest.xml.


Parameters:
  parentElement - the current file node
Parameters:
  ignoredPropertyKeys - a list of properties to be ignored a list with all properties




Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.