Java Doc for CmsImportVersion5.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
      org.opencms.importexport.CmsImportVersion5

All known Subclasses:   org.opencms.importexport.CmsImportVersion6,
CmsImportVersion5
public class CmsImportVersion5 extends A_CmsImport (Code)
Implementation of the OpenCms Import Interface ( org.opencms.importexport.I_CmsImport ) for the import version 5.

This import format is used in OpenCms since 6.3.0.


author:
   Michael Moossen
version:
   $Revision: 1.9 $
since:
   6.3.0
See Also:   org.opencms.importexport.A_CmsImport



Field Summary
final public static  intIMPORT_VERSION
    
protected  Mapm_importedRelations
     Stores all relations defined in the import file to be created after all resources has been imported.
protected  booleanm_keepPermissions
     The keep permissions flag.
protected  Listm_parseables
     Stores all resources of any type that implements the I_CmsLinkParseable interface.

Constructor Summary
public  CmsImportVersion5()
    

Method Summary
protected  longconvertTimestamp(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  intgetVersion()
    
public  voidimportData(CmsObject cms, I_CmsReport report, CmsImportParameters params)
    
protected  voidimportRelations()
    
protected  voidimportRelations(CmsResource resource, Element parentElement)
    
protected  CmsResourceimportResource(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  voidimportResources(CmsObject cms, String importPath, I_CmsReport report, File importResource, ZipFile importZip, Document docXml)
    
protected  voidimportUser(String name, String flags, String password, String firstname, String lastname, String email, long dateCreated, Map userInfo, List userGroups)
    
protected  voidreadResourcesFromManifest()
    
protected  voidrewriteParseables()
    

Field Detail
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.



m_parseables
protected List m_parseables(Code)
Stores all resources of any type that implements the I_CmsLinkParseable interface.




Constructor Detail
CmsImportVersion5
public CmsImportVersion5()(Code)
Creates a new CmsImportVerion7 object.





Method Detail
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




getVersion
public int getVersion()(Code)

See Also:   org.opencms.importexport.I_CmsImport.getVersion



importData
public void importData(CmsObject cms, I_CmsReport report, CmsImportParameters params) throws CmsImportExportException, CmsXmlException(Code)

See Also:   org.opencms.importexport.I_CmsImport.importData(CmsObjectI_CmsReportCmsImportParameters)



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




importResources
public void importResources(CmsObject cms, String importPath, I_CmsReport report, File importResource, ZipFile importZip, Document docXml) throws CmsImportExportException(Code)

See Also:   org.opencms.importexport.I_CmsImport.importResources(org.opencms.file.CmsObjectjava.lang.Stringorg.opencms.report.I_CmsReportjava.io.Filejava.util.zip.ZipFileorg.dom4j.Document)CmsImportVersion5.importData(CmsObject,I_CmsReport,CmsImportParameters)



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)

See Also:   org.opencms.importexport.A_CmsImport.importUser(StringStringStringStringStringStringlongMapList)



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.




Fields inherited from org.opencms.importexport.A_CmsImport
final public static String A_NAME(Code)(Java Doc)
final public static String A_TYPE(Code)(Java Doc)
final protected static int DEBUG(Code)(Java Doc)
final public static String N_ACCESS(Code)(Java Doc)
final public static String N_ACCESSCONTROL_ALLOWEDPERMISSIONS(Code)(Java Doc)
final public static String N_ACCESSCONTROL_DENIEDPERMISSIONS(Code)(Java Doc)
final public static String N_ACCESSCONTROL_ENTRIES(Code)(Java Doc)
final public static String N_ACCESSCONTROL_ENTRY(Code)(Java Doc)
final public static String N_ACCESSCONTROL_PERMISSIONSET(Code)(Java Doc)
final public static String N_ACCESSCONTROL_PRINCIPAL(Code)(Java Doc)
final public static String N_DATECREATED(Code)(Java Doc)
final public static String N_DATEEXPIRED(Code)(Java Doc)
final public static String N_DATELASTMODIFIED(Code)(Java Doc)
final public static String N_DATERELEASED(Code)(Java Doc)
final public static String N_DEFAULTGROUP(Code)(Java Doc)
final public static String N_DESCRIPTION(Code)(Java Doc)
final public static String N_DESTINATION(Code)(Java Doc)
final public static String N_EMAIL(Code)(Java Doc)
final public static String N_FILE(Code)(Java Doc)
final public static String N_FIRSTNAME(Code)(Java Doc)
final public static String N_FLAGS(Code)(Java Doc)
final public static String N_GROUPDATA(Code)(Java Doc)
final public static String N_GROUPNAME(Code)(Java Doc)
final public static String N_ID(Code)(Java Doc)
final public static String N_LASTMODIFIED(Code)(Java Doc)
final public static String N_LASTNAME(Code)(Java Doc)
final public static String N_NAME(Code)(Java Doc)
final public static String N_ORGUNITDATA(Code)(Java Doc)
final public static String N_PARENTGROUP(Code)(Java Doc)
final public static String N_PASSWORD(Code)(Java Doc)
final public static String N_PROPERTIES(Code)(Java Doc)
final public static String N_PROPERTY(Code)(Java Doc)
final public static String N_PROPERTY_ATTRIB_TYPE(Code)(Java Doc)
final public static String N_PROPERTY_ATTRIB_TYPE_SHARED(Code)(Java Doc)
final public static String N_RELATION(Code)(Java Doc)
final public static String N_RELATIONS(Code)(Java Doc)
final public static String N_RELATION_ATTRIBUTE_ID(Code)(Java Doc)
final public static String N_RELATION_ATTRIBUTE_PATH(Code)(Java Doc)
final public static String N_RELATION_ATTRIBUTE_TYPE(Code)(Java Doc)
final public static String N_SOURCE(Code)(Java Doc)
final public static String N_TAG_ADDRESS(Code)(Java Doc)
final public static String N_TYPE(Code)(Java Doc)
final public static String N_USER(Code)(Java Doc)
final public static String N_USERCREATED(Code)(Java Doc)
final public static String N_USERDATA(Code)(Java Doc)
final public static String N_USERGROUPDATA(Code)(Java Doc)
final public static String N_USERGROUPS(Code)(Java Doc)
final public static String N_USERINFO(Code)(Java Doc)
final public static String N_USERINFO_ENTRY(Code)(Java Doc)
final public static String N_USERLASTMODIFIED(Code)(Java Doc)
final public static String N_UUIDRESOURCE(Code)(Java Doc)
final public static String N_UUIDSTRUCTURE(Code)(Java Doc)
final public static String N_VALUE(Code)(Java Doc)
final public static String RESOURCE_TYPE_LEGACY_PAGE_NAME(Code)(Java Doc)
final protected static int RESOURCE_TYPE_LINK_ID(Code)(Java Doc)
final protected static String RESOURCE_TYPE_LINK_NAME(Code)(Java Doc)
final protected static int RESOURCE_TYPE_NEWPAGE_ID(Code)(Java Doc)
final protected static String RESOURCE_TYPE_NEWPAGE_NAME(Code)(Java Doc)
protected CmsObject m_cms(Code)(Java Doc)
protected boolean m_convertToXmlPage(Code)(Java Doc)
protected Document m_docXml(Code)(Java Doc)
protected Stack m_groupsToCreate(Code)(Java Doc)
protected String m_importPath(Code)(Java Doc)
protected File m_importResource(Code)(Java Doc)
protected ZipFile m_importZip(Code)(Java Doc)
protected Map m_linkPropertyStorage(Code)(Java Doc)
protected Map m_linkStorage(Code)(Java Doc)
protected I_CmsReport m_report(Code)(Java Doc)
protected I_CmsMessageBundle m_userMessages(Code)(Java Doc)

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)

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.