Java Doc for CmsImportVersion7.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.CmsImportVersion7

CmsImportVersion7
public class CmsImportVersion7 implements I_CmsImport(Code)
Adds the XML handler rules for import and export of resources and accounts.


author:
   Michael Moossen
version:
   $Revision: 1.4 $
since:
   7.0.4



Field Summary
final public static  StringA_NAME
     Tag for the "userinfo/entry@name" attribute, contains the additional user info entry name.
final public static  StringA_TYPE
     Tag for the "type" attribute, contains the property type.
final public static  StringDTD_FILENAME
     The name of the DTD for this import version.
final public static  StringDTD_LOCATION
     The location of the OpenCms configuration DTD if the default prefix is the system ID.
final public static  intIMPORT_VERSION7
    
final public static  StringN_ACCESSCONTROL_ALLOWEDPERMISSIONS
     Tag for the "allowed" node, to identify allowed user permissions.
final public static  StringN_ACCESSCONTROL_DENIEDPERMISSIONS
     Tag for the "denied" node, to identify denied user permissions.
final public static  StringN_ACCESSCONTROL_ENTRIES
     Tag for the "accesscontrol" node, to identify access control entries.
final public static  StringN_ACCESSCONTROL_ENTRY
     Tag for the "accessentry" node, to identify a single access control entry.
final public static  StringN_ACCESSCONTROL_PERMISSIONSET
     Tag for the "permissionset" node, to identify a permission set.
final public static  StringN_ACCESSCONTROL_PRINCIPAL
     Tag for the "uuidprincipal" node, to identify a principal UUID.
final public static  StringN_ACCOUNTS
     Tag for the "accounts" node.
final public static  StringN_DATECREATED
     Tag for the "datecreated" node, contains the date created VFS file attribute.
final public static  StringN_DATEEXPIRED
     Tag for the "dateexpired" node, contains the expiration date VFS file attribute.
final public static  StringN_DATELASTMODIFIED
     Tag for the "datelastmodified" node, contains the date last modified VFS file attribute.
final public static  StringN_DATERELEASED
     Tag for the "datereleased" node, contains the release date VFS file attribute.
final public static  StringN_DESCRIPTION
     Tag for the "description" node, contains a users description test.
final public static  StringN_DESTINATION
     Tag for the "destination" node, contains target VFS file name.
final public static  StringN_EMAIL
     Tag for the "email" node, contains a users email.
final public static  StringN_FILE
     Tag for the "file" node, container node for all VFS resources.
final public static  StringN_FILES
     Tag for the "files" node, container node for all VFS resources.
final public static  StringN_FIRSTNAME
     Tag for the "firstname" node, contains a users first name.
final public static  StringN_FLAGS
     Tag for the "flags" node, contains the flags of a VFS resource.
final public static  StringN_GROUP
     Tag for the "group" node, contains a group name.
final public static  StringN_GROUPS
     Tag for the "groups" node, contains a users group data.
final public static  StringN_ID
     Tag for the "id" relation attribute, contains the structure id of the target resource of the relation.
final public static  StringN_LASTNAME
     Tag for the "lastname" node, contains a users last name.
final public static  StringN_MANAGERSGROUP
     Tag for the "managersgroup" node, contains name of the managers group of the project.
final public static  StringN_NAME
     Tag for the "name" node, contains the name of a property.
final public static  StringN_ORGUNIT
     Tag for the "orgunit" node, starts the organizational unit data.
final public static  StringN_ORGUNITS
     Tag for the "orgunits" node, starts the organizational unit data.
final public static  StringN_PARENTGROUP
     Tag for the "parentgroup" node, contains a groups parent group fqn.
final public static  StringN_PASSWORD
     Tag for the "password" node, contains a users encrypted password.
final public static  StringN_PATH
     Tag for the "path" relation attribute, contains the path to the target resource of the relation.
final public static  StringN_PROJECT
     Tag for the "project" node, starts the project data.
final public static  StringN_PROJECTS
     Tag for the "projects" node, starts the project data.
final public static  StringN_PROPERTIES
     Tag for the "properties" node, starts the list of properties of a VFS resource.
final public static  StringN_PROPERTY
     Tag for the "property" node, starts a property for a VFS resource.
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 for the "relations" node, starts the list of relations of a VFS resources.
final public static  StringN_RESOURCE
     Tag for the "resource" node, contains the a organizational unit resource name.
final public static  StringN_RESOURCES
     Tag for the "resources" node, contains the list of organizational unit resources.
final public static  StringN_SOURCE
     Tag for the "source" node, contains the source path of a VFS resource in the import zip (or folder).
final public static  StringN_TYPE
     Tag for the "type" node, the resource type name of a VFS resource.
final public static  StringN_USER
     Tag for the "user" node, starts the user data.
final public static  StringN_USERCREATED
     Tag for the "usercreated" node, contains the name of the user who created the VFS resource.
final public static  StringN_USERGROUP
     Tag for the "usergroup" node, the name of a users group.
final public static  StringN_USERGROUPS
     Tag for the "usergroups" node, starts the users group data.
final public static  StringN_USERINFO
     Tag for the "userinfo" node, contains the additional user info.
final public static  StringN_USERINFO_ENTRY
     Tag for the "userinfo/entry" node, contains the additional user info entry value.
final public static  StringN_USERLASTMODIFIED
     Tag for the "userlastmodified" node, contains the name of the user who last modified the VFS resource.
final public static  StringN_USERROLE
     Tag for the "userrole" node, contains an users role name.
final public static  StringN_USERROLES
     Tag for the "userroles" node, starts the users role data.
final public static  StringN_USERS
     Tag for the "users" node, starts the list of users.
final public static  StringN_USERSGROUP
     Tag for the "usersgroup" node, contains name of the users group of the project.
final public static  StringN_UUIDRESOURCE
     Tag for the "uuidresource" node, contains a the resource UUID of a VFS resource.
final public static  StringN_UUIDSTRUCTURE
     Tag for the "uuidstructure" node, only required for backward compatibility with import version 2.
final public static  StringN_VALUE
     Tag for the "value" node, contains the value of a property.
final public static  StringPROPERTY_ATTRIB_TYPE_SHARED
     Value for the "shared" property type attribute value.

Constructor Summary
public  CmsImportVersion7()
    

Method Summary
public  voidaddAccessControlEntry()
    
protected  voidaddAccountsGroupRules(Digester digester, String xpath)
    
protected  voidaddAccountsOrgunitRules(Digester digester, String xpath)
    
protected  voidaddAccountsUserRules(Digester digester, String xpath)
    
public  voidaddOrgUnitResource(String resourceName)
    
public  voidaddProjectResource(String resourceName)
    
protected  voidaddProjectRules(Digester digester, String xpath)
    
public  voidaddProperty()
    
public  voidaddProperty(String propertyType)
    
public  voidaddRelation()
    
protected  voidaddResourceAceRules(Digester digester, String xpath)
    
protected  voidaddResourceAttributesRules(Digester digester, String xpath)
    
protected  voidaddResourcePropertyRules(Digester digester, String xpath)
    
protected  voidaddResourceRelationRules(Digester digester, String xpath)
    
public  voidaddXmlDigesterRules(Digester digester)
    
public  voidaddXmlPreprocessingDigesterRules(Digester digester)
    
public  voidassociateOrgUnitResources()
    
protected  booleancheckImmutable(String resourceName)
    
protected  StringconvertDigestEncoding(String value)
    
protected  longconvertTimestamp(String timestamp)
    
public  intgetAceFlags()
    
public  intgetAcePermissionsAllowed()
    
public  intgetAcePermissionsDenied()
    
public  CmsUUIDgetAcePrincipalId()
    
public  CmsObjectgetCms()
    
public  longgetDateCreated()
    
public  longgetDateExpired()
    
public  longgetDateLastModified()
    
public  longgetDateReleased()
    
public  StringgetDestination()
    
public  intgetFlags()
    
public  StringgetGroupDescription()
    
public  intgetGroupFlags()
    
public  StringgetGroupName()
    
public  StringgetGroupParent()
    
protected  ListgetIgnoredProperties()
    
protected  ListgetImmutableResources()
    
public  StringgetOrgUnitDescription()
    
public  intgetOrgUnitFlags()
    
public  StringgetOrgUnitName()
    
public  StringgetProjectDescription()
    
public  StringgetProjectManagers()
    
public  StringgetProjectName()
    
public  StringgetProjectUsers()
    
public  StringgetPropertyName()
    
public  StringgetPropertyValue()
    
public  CmsUUIDgetRelationId()
    
public  StringgetRelationPath()
    
public  CmsRelationTypegetRelationType()
    
public  I_CmsReportgetReport()
    
public  CmsUUIDgetResourceId()
    
public  StringgetSource()
    
public  CmsUUIDgetStructureId()
    
public  ThrowablegetThrowable()
    
public  I_CmsResourceTypegetType()
    
public  CmsUUIDgetUserCreated()
    
public  longgetUserDateCreated()
    
public  StringgetUserEmail()
    
public  StringgetUserFirstname()
    
public  intgetUserFlags()
    
public  CmsUUIDgetUserLastModified()
    
public  StringgetUserLastname()
    
public  StringgetUserName()
    
public  StringgetUserPassword()
    
public  intgetVersion()
    
public  voidimportAccessControlEntries()
    
public  voidimportData(CmsObject cms, I_CmsReport report, CmsImportParameters parameters)
    
public  voidimportGroup()
    
public  voidimportOrgUnit()
    
public  voidimportProject()
    
public  voidimportRelations()
    
public  voidimportResource()
    
public  voidimportResources(CmsObject cms, String importPath, I_CmsReport report, File importResource, ZipFile importZip, Document docXml)
    
public  voidimportUser()
    
public  voidimportUserGroup(String groupName)
    
public  voidimportUserInfo(String infoName, String infoType, String infoValue)
    
public  voidimportUserRole(String roleName)
    
public  voidincreaseCounter()
    
public  voidincreaseTotalFiles()
    
public  booleanmatches(CmsImportParameters parameters)
    
public  voidrewriteParseables()
    
public  voidsetAceFlags(String aceFlags)
    
public  voidsetAcePermissionsAllowed(String acePermissionsAllowed)
    
public  voidsetAcePermissionsDenied(String acePermissionsDenied)
    
public  voidsetAcePrincipalId(String acePrincipalId)
    
public  voidsetDateCreated(String dateCreated)
    
public  voidsetDateExpired(String dateExpired)
    
public  voidsetDateLastModified(String dateLastModified)
    
public  voidsetDateReleased(String dateReleased)
    
public  voidsetDestination(String destination)
    
public  voidsetFlags(String flags)
    
public  voidsetGroupDescription(String groupDescription)
    
public  voidsetGroupFlags(String groupFlags)
    
public  voidsetGroupName(String groupName)
    
public  voidsetGroupParent(String groupParent)
    
public  voidsetMembership()
    
public  voidsetOrgUnitDescription(String orgUnitDescription)
    
public  voidsetOrgUnitFlags(String orgUnitFlags)
    
public  voidsetOrgUnitName(String orgUnitName)
    
public  voidsetProjectDescription(String projectDescription)
    
public  voidsetProjectManagers(String projectManagers)
    
public  voidsetProjectName(String projectName)
    
public  voidsetProjectUsers(String projectUsers)
    
public  voidsetPropertyName(String propertyName)
    
public  voidsetPropertyValue(String propertyValue)
    
public  voidsetRelationId(String relationId)
    
public  voidsetRelationPath(String relationPath)
    
public  voidsetRelationType(String relationType)
    
public  voidsetResourceId(String resourceId)
    
public  voidsetSource(String source)
    
public  voidsetStructureId(String structureId)
    
public  voidsetThrowable(Throwable throwable)
    
public  voidsetType(String typeName)
    
public  voidsetUserCreated(CmsUUID userCreated)
    
public  voidsetUserCreated(String userCreated)
    
public  voidsetUserDateCreated(String userDateCreated)
    
public  voidsetUserEmail(String userEmail)
    
public  voidsetUserFirstname(String userFirstname)
    
public  voidsetUserFlags(String userFlags)
    
public  voidsetUserLastModified(CmsUUID userLastModified)
    
public  voidsetUserLastModified(String userLastModified)
    
public  voidsetUserLastname(String userLastname)
    
public  voidsetUserName(String userName)
    
public  voidsetUserPassword(String userPassword)
    
public  voidsetVersion(String version)
    

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



A_TYPE
final public static String A_TYPE(Code)
Tag for the "type" attribute, contains the property type.



DTD_FILENAME
final public static String DTD_FILENAME(Code)
The name of the DTD for this import version.



DTD_LOCATION
final public static String DTD_LOCATION(Code)
The location of the OpenCms configuration DTD if the default prefix is the system ID.



IMPORT_VERSION7
final public static int IMPORT_VERSION7(Code)
The version number of this import implementation.




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



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



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



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



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



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



N_ACCOUNTS
final public static String N_ACCOUNTS(Code)
Tag for the "accounts" node.



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



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



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



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



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



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



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



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



N_FILES
final public static String N_FILES(Code)
Tag for the "files" node, container node for all VFS resources.



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



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



N_GROUP
final public static String N_GROUP(Code)
Tag for the "group" node, contains a group name.



N_GROUPS
final public static String N_GROUPS(Code)
Tag for the "groups" node, contains a users group data.



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



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



N_MANAGERSGROUP
final public static String N_MANAGERSGROUP(Code)
Tag for the "managersgroup" node, contains name of the managers group of the project.



N_NAME
final public static String N_NAME(Code)
Tag for the "name" node, contains the name of a property.



N_ORGUNIT
final public static String N_ORGUNIT(Code)
Tag for the "orgunit" node, starts the organizational unit data.



N_ORGUNITS
final public static String N_ORGUNITS(Code)
Tag for the "orgunits" node, starts the organizational unit data.



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



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



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



N_PROJECT
final public static String N_PROJECT(Code)
Tag for the "project" node, starts the project data.



N_PROJECTS
final public static String N_PROJECTS(Code)
Tag for the "projects" node, starts the project data.



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



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



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 for the "relations" node, starts the list of relations of a VFS resources.



N_RESOURCE
final public static String N_RESOURCE(Code)
Tag for the "resource" node, contains the a organizational unit resource name.



N_RESOURCES
final public static String N_RESOURCES(Code)
Tag for the "resources" node, contains the list of organizational unit resources.



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



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



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



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



N_USERGROUP
final public static String N_USERGROUP(Code)
Tag for the "usergroup" node, the name of a users group.



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



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



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



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



N_USERROLE
final public static String N_USERROLE(Code)
Tag for the "userrole" node, contains an users role name.



N_USERROLES
final public static String N_USERROLES(Code)
Tag for the "userroles" node, starts the users role data.



N_USERS
final public static String N_USERS(Code)
Tag for the "users" node, starts the list of users.



N_USERSGROUP
final public static String N_USERSGROUP(Code)
Tag for the "usersgroup" node, contains name of the users group of the project.



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



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



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



PROPERTY_ATTRIB_TYPE_SHARED
final public static String PROPERTY_ATTRIB_TYPE_SHARED(Code)
Value for the "shared" property type attribute value.




Constructor Detail
CmsImportVersion7
public CmsImportVersion7()(Code)
Public constructor.





Method Detail
addAccessControlEntry
public void addAccessControlEntry()(Code)
Adds an ACE from the current xml data.


See Also:   CmsImportVersion7.addResourceAceRules(Digester,String)




addAccountsGroupRules
protected void addAccountsGroupRules(Digester digester, String xpath)(Code)
Adds the XML digester rules for groups.


Parameters:
  digester - the digester to add the rules to
Parameters:
  xpath - the base xpath for the rules




addAccountsOrgunitRules
protected void addAccountsOrgunitRules(Digester digester, String xpath)(Code)
Adds the XML digester rules for organizational units.


Parameters:
  digester - the digester to add the rules to
Parameters:
  xpath - the base xpath for the rules




addAccountsUserRules
protected void addAccountsUserRules(Digester digester, String xpath)(Code)
Adds the XML digester rules for users.


Parameters:
  digester - the digester to add the rules to
Parameters:
  xpath - the base xpath for the rules




addOrgUnitResource
public void addOrgUnitResource(String resourceName)(Code)
Adds a new resource to be associated to the current organizational unit.


Parameters:
  resourceName - the resource name to add




addProjectResource
public void addProjectResource(String resourceName)(Code)
Adds a new resource to be associated to the current project.


Parameters:
  resourceName - the resource name to add




addProjectRules
protected void addProjectRules(Digester digester, String xpath)(Code)
Adds the XML digester rules for projects.


Parameters:
  digester - the digester to add the rules to
Parameters:
  xpath - the base xpath for the rules




addProperty
public void addProperty()(Code)
Adds a property from the current xml data, in case the type is implicit given.


See Also:   CmsImportVersion7.addResourcePropertyRules(Digester,String)




addProperty
public void addProperty(String propertyType)(Code)
Adds a property from the current xml data, in case the type is explicit given.


Parameters:
  propertyType - the type of the property to be added
See Also:   CmsImportVersion7.addResourcePropertyRules(Digester,String)




addRelation
public void addRelation()(Code)
Adds a relation to be imported from the current xml data.


See Also:   CmsImportVersion7.addResourceRelationRules(Digester,String)




addResourceAceRules
protected void addResourceAceRules(Digester digester, String xpath)(Code)
Adds the XML digester rules for resource access control entries.


Parameters:
  digester - the digester to add the rules to
Parameters:
  xpath - the base xpath for the rules




addResourceAttributesRules
protected void addResourceAttributesRules(Digester digester, String xpath)(Code)
Adds the XML digester rules for resource attributes.


Parameters:
  digester - the digester to add the rules to
Parameters:
  xpath - the base xpath for the rules




addResourcePropertyRules
protected void addResourcePropertyRules(Digester digester, String xpath)(Code)
Adds the XML digester rules for resource properties.


Parameters:
  digester - the digester to add the rules to
Parameters:
  xpath - the base xpath for the rules




addResourceRelationRules
protected void addResourceRelationRules(Digester digester, String xpath)(Code)
Adds the XML digester rules for resource relations.


Parameters:
  digester - the digester to add the rules to
Parameters:
  xpath - the base xpath for the rules




addXmlDigesterRules
public void addXmlDigesterRules(Digester digester)(Code)
Adds the XML digester rules for a single import file.


Parameters:
  digester - the digester to add the rules to




addXmlPreprocessingDigesterRules
public void addXmlPreprocessingDigesterRules(Digester digester)(Code)
Adds the XML digester rules for pre-processing a single import file.


Parameters:
  digester - the digester to add the rules to




associateOrgUnitResources
public void associateOrgUnitResources()(Code)
Associates the stored resources to the created organizational units.

This is a global process that occurs only once at the end of the import, after all resources have been imported, to make sure that the resources of the organizational units are available.


See Also:   CmsImportVersion7.addAccountsOrgunitRules(Digester,String)
See Also:   CmsImportVersion7.addXmlDigesterRules(Digester)




checkImmutable
protected boolean checkImmutable(String resourceName)(Code)
Checks if the resources is in the list of immutable resources.


Parameters:
  resourceName - the name of the resource true or false




convertDigestEncoding
protected 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




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




getAceFlags
public int getAceFlags()(Code)
Returns the ace Flags.

the ace Flags
See Also:   CmsImportVersion7.N_FLAGS
See Also:   CmsImportVersion7.addResourceAceRules(Digester,String)




getAcePermissionsAllowed
public int getAcePermissionsAllowed()(Code)
Returns the ace Permissions Allowed.

the ace Permissions Allowed
See Also:   CmsImportVersion7.N_ACCESSCONTROL_ALLOWEDPERMISSIONS
See Also:   CmsImportVersion7.addResourceAceRules(Digester,String)




getAcePermissionsDenied
public int getAcePermissionsDenied()(Code)
Returns the acePermissionsDenied.

the acePermissionsDenied
See Also:   CmsImportVersion7.N_ACCESSCONTROL_DENIEDPERMISSIONS
See Also:   CmsImportVersion7.addResourceAceRules(Digester,String)




getAcePrincipalId
public CmsUUID getAcePrincipalId()(Code)
Returns the acePrincipalId.

the acePrincipalId
See Also:   CmsImportVersion7.N_ACCESSCONTROL_PRINCIPAL
See Also:   CmsImportVersion7.addResourceAceRules(Digester,String)




getCms
public CmsObject getCms()(Code)
Returns the cms object.

the cms object




getDateCreated
public long getDateCreated()(Code)
Returns the dateCreated.

the dateCreated
See Also:   CmsImportVersion7.N_DATECREATED
See Also:   CmsImportVersion7.addResourceAttributesRules(Digester,String)




getDateExpired
public long getDateExpired()(Code)
Returns the dateExpired.

the dateExpired
See Also:   CmsImportVersion7.N_DATEEXPIRED
See Also:   CmsImportVersion7.addResourceAttributesRules(Digester,String)




getDateLastModified
public long getDateLastModified()(Code)
Returns the dateLastModified.

the dateLastModified
See Also:   CmsImportVersion7.N_DATELASTMODIFIED
See Also:   CmsImportVersion7.addResourceAttributesRules(Digester,String)




getDateReleased
public long getDateReleased()(Code)
Returns the dateReleased.

the dateReleased
See Also:   CmsImportVersion7.N_DATERELEASED
See Also:   CmsImportVersion7.addResourceAttributesRules(Digester,String)




getDestination
public String getDestination()(Code)
Returns the destination.

the destination
See Also:   CmsImportVersion7.N_DESTINATION
See Also:   CmsImportVersion7.addResourceAttributesRules(Digester,String)




getFlags
public int getFlags()(Code)
Returns the flags.

the flags
See Also:   CmsImportVersion7.N_FLAGS
See Also:   CmsImportVersion7.addResourceAttributesRules(Digester,String)




getGroupDescription
public String getGroupDescription()(Code)
Returns the group Description.

the group Description




getGroupFlags
public int getGroupFlags()(Code)
Returns the group Flags.

the group Flags




getGroupName
public String getGroupName()(Code)
Returns the group Name.

the group Name




getGroupParent
public String getGroupParent()(Code)
Returns the group Parent.

the group Parent




getIgnoredProperties
protected List getIgnoredProperties()(Code)
Returns the list of properties to ignore during import.

the list of properties to ignore during import




getImmutableResources
protected List getImmutableResources()(Code)
Returns the list of immutable resources.

the list of immutable resources




getOrgUnitDescription
public String getOrgUnitDescription()(Code)
Returns the organizational unit description.

the organizational unit description




getOrgUnitFlags
public int getOrgUnitFlags()(Code)
Returns the organizational unit flags.

the organizational unit flags




getOrgUnitName
public String getOrgUnitName()(Code)
Returns the organizational unit name.

the organizational unit name




getProjectDescription
public String getProjectDescription()(Code)
Returns the project Description.

the project Description




getProjectManagers
public String getProjectManagers()(Code)
Returns the project Managers group name.

the project Managers group name




getProjectName
public String getProjectName()(Code)
Returns the project Name.

the project Name




getProjectUsers
public String getProjectUsers()(Code)
Returns the project Users group name.

the project Users group name




getPropertyName
public String getPropertyName()(Code)
Returns the propertyName.

the propertyName
See Also:   CmsImportVersion7.N_NAME
See Also:   CmsImportVersion7.addResourcePropertyRules(Digester,String)




getPropertyValue
public String getPropertyValue()(Code)
Returns the propertyValue.

the propertyValue
See Also:   CmsImportVersion7.N_VALUE
See Also:   CmsImportVersion7.addResourcePropertyRules(Digester,String)




getRelationId
public CmsUUID getRelationId()(Code)
Returns the relationId.

the relationId
See Also:   CmsImportVersion7.N_ID
See Also:   CmsImportVersion7.addResourceRelationRules(Digester,String)




getRelationPath
public String getRelationPath()(Code)
Returns the relationPath.

the relationPath
See Also:   CmsImportVersion7.N_PATH
See Also:   CmsImportVersion7.addResourceRelationRules(Digester,String)




getRelationType
public CmsRelationType getRelationType()(Code)
Returns the relationType.

the relationType
See Also:   CmsImportVersion7.N_TYPE
See Also:   CmsImportVersion7.addResourceRelationRules(Digester,String)




getReport
public I_CmsReport getReport()(Code)
Returns the report.

the report




getResourceId
public CmsUUID getResourceId()(Code)
Returns the resourceId.

the resourceId
See Also:   CmsImportVersion7.N_UUIDRESOURCE
See Also:   CmsImportVersion7.addResourceAttributesRules(Digester,String)




getSource
public String getSource()(Code)
Returns the source.

the source
See Also:   CmsImportVersion7.N_SOURCE
See Also:   CmsImportVersion7.addResourceAttributesRules(Digester,String)




getStructureId
public CmsUUID getStructureId()(Code)
Returns the structureId.

the structureId
See Also:   CmsImportVersion7.N_UUIDSTRUCTURE
See Also:   CmsImportVersion7.addResourceAttributesRules(Digester,String)




getThrowable
public Throwable getThrowable()(Code)
Returns the throwable.

the throwable




getType
public I_CmsResourceType getType()(Code)
Returns the type.

the type
See Also:   CmsImportVersion7.N_TYPE
See Also:   CmsImportVersion7.addResourceAttributesRules(Digester,String)




getUserCreated
public CmsUUID getUserCreated()(Code)
Returns the userCreated.

the userCreated
See Also:   CmsImportVersion7.N_USERCREATED
See Also:   CmsImportVersion7.addResourceAttributesRules(Digester,String)




getUserDateCreated
public long getUserDateCreated()(Code)
Returns the user Date Created.

the user Date Created




getUserEmail
public String getUserEmail()(Code)
Returns the user Email address.

the user Email address




getUserFirstname
public String getUserFirstname()(Code)
Returns the user First name.

the user First name




getUserFlags
public int getUserFlags()(Code)
Returns the user Flags.

the user Flags




getUserLastModified
public CmsUUID getUserLastModified()(Code)
Returns the userLastModified.

the userLastModified
See Also:   CmsImportVersion7.N_USERLASTMODIFIED
See Also:   CmsImportVersion7.addResourceAttributesRules(Digester,String)




getUserLastname
public String getUserLastname()(Code)
Returns the user Last name.

the user Last name




getUserName
public String getUserName()(Code)
Returns the user Name.

the user Name




getUserPassword
public String getUserPassword()(Code)
Returns the user Password.

the user Password




getVersion
public int getVersion()(Code)

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



importAccessControlEntries
public void importAccessControlEntries()(Code)
Imports an ACE from the current xml data.


See Also:   CmsImportVersion7.addResourceAceRules(Digester,String)




importData
public void importData(CmsObject cms, I_CmsReport report, CmsImportParameters parameters)(Code)

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



importGroup
public void importGroup()(Code)
Import the current group from xml data.




importOrgUnit
public void importOrgUnit()(Code)
Imports the current organizational unit.




importProject
public void importProject()(Code)
Imports the current project.




importRelations
public void importRelations()(Code)
Imports all relations from the current xml data.

This is a global process that occurs only once at the end of the import, after all resources have been imported, to make sure that both resources of the relations are available.


See Also:   CmsImportVersion7.addResourceRelationRules(Digester,String)
See Also:   CmsImportVersion7.addXmlDigesterRules(Digester)




importResource
public void importResource()(Code)
Imports a resource from the current xml data.


See Also:   CmsImportVersion7.addResourceAttributesRules(Digester,String)
See Also:   CmsImportVersion7.addResourcePropertyRules(Digester,String)




importResources
public void importResources(CmsObject cms, String importPath, I_CmsReport report, File importResource, ZipFile importZip, Document docXml)(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)CmsImportVersion7.importData(CmsObject,I_CmsReport,CmsImportParameters)



importUser
public void importUser()(Code)
Imports a new user from the current xml data.




importUserGroup
public void importUserGroup(String groupName)(Code)
Sets the current user as member of the given group.

It can happen that the organizational unit has not been imported jet, in this case, the data is kept for later.


Parameters:
  groupName - the name of the group to set
See Also:   CmsImportVersion7.setMembership()




importUserInfo
public void importUserInfo(String infoName, String infoType, String infoValue)(Code)
Creates a new additional information entry for the current user.


Parameters:
  infoName - the name of the additional information entry
Parameters:
  infoType - the type of the additional information entry
Parameters:
  infoValue - the value of the additional information entry




importUserRole
public void importUserRole(String roleName)(Code)
Sets the current user as member of the given role.

It can happen that the organizational unit has not been imported jet, in this case, the data is kept for later.


Parameters:
  roleName - the name of the role to set
See Also:   CmsImportVersion7.setMembership()




increaseCounter
public void increaseCounter()(Code)
Increases the file counter.




increaseTotalFiles
public void increaseTotalFiles()(Code)
Increases the total number of files.




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

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



rewriteParseables
public void rewriteParseables()(Code)
Rewrites all parseable files, to assure link check.

This is a global process, that is executed only once at the end of the import to be sure that all link targets are available.


See Also:   CmsImportVersion7.addXmlDigesterRules(Digester)




setAceFlags
public void setAceFlags(String aceFlags)(Code)
Sets the aceFlags.


Parameters:
  aceFlags - the aceFlags to set
See Also:   CmsImportVersion7.N_FLAGS
See Also:   CmsImportVersion7.addResourceAceRules(Digester,String)




setAcePermissionsAllowed
public void setAcePermissionsAllowed(String acePermissionsAllowed)(Code)
Sets the acePermissionsAllowed.


Parameters:
  acePermissionsAllowed - the acePermissionsAllowed to set
See Also:   CmsImportVersion7.N_ACCESSCONTROL_ALLOWEDPERMISSIONS
See Also:   CmsImportVersion7.addResourceAceRules(Digester,String)




setAcePermissionsDenied
public void setAcePermissionsDenied(String acePermissionsDenied)(Code)
Sets the acePermissionsDenied.


Parameters:
  acePermissionsDenied - the acePermissionsDenied to set
See Also:   CmsImportVersion7.N_ACCESSCONTROL_DENIEDPERMISSIONS
See Also:   CmsImportVersion7.addResourceAceRules(Digester,String)




setAcePrincipalId
public void setAcePrincipalId(String acePrincipalId)(Code)
Sets the acePrincipalId.


Parameters:
  acePrincipalId - the acePrincipalId to set
See Also:   CmsImportVersion7.N_ACCESSCONTROL_PRINCIPAL
See Also:   CmsImportVersion7.addResourceAceRules(Digester,String)




setDateCreated
public void setDateCreated(String dateCreated)(Code)
Sets the dateCreated.


Parameters:
  dateCreated - the dateCreated to set
See Also:   CmsImportVersion7.N_DATECREATED
See Also:   CmsImportVersion7.addResourceAttributesRules(Digester,String)




setDateExpired
public void setDateExpired(String dateExpired)(Code)
Sets the dateExpired.


Parameters:
  dateExpired - the dateExpired to set
See Also:   CmsImportVersion7.N_DATEEXPIRED
See Also:   CmsImportVersion7.addResourceAttributesRules(Digester,String)




setDateLastModified
public void setDateLastModified(String dateLastModified)(Code)
Sets the dateLastModified.


Parameters:
  dateLastModified - the dateLastModified to set
See Also:   CmsImportVersion7.N_DATELASTMODIFIED
See Also:   CmsImportVersion7.addResourceAttributesRules(Digester,String)




setDateReleased
public void setDateReleased(String dateReleased)(Code)
Sets the dateReleased.


Parameters:
  dateReleased - the dateReleased to set
See Also:   CmsImportVersion7.N_DATERELEASED
See Also:   CmsImportVersion7.addResourceAttributesRules(Digester,String)




setDestination
public void setDestination(String destination)(Code)
Sets the destination.


Parameters:
  destination - the destination to set
See Also:   CmsImportVersion7.N_DESTINATION
See Also:   CmsImportVersion7.addResourceAttributesRules(Digester,String)




setFlags
public void setFlags(String flags)(Code)
Sets the flags.


Parameters:
  flags - the flags to set
See Also:   CmsImportVersion7.N_FLAGS
See Also:   CmsImportVersion7.addResourceAttributesRules(Digester,String)




setGroupDescription
public void setGroupDescription(String groupDescription)(Code)
Sets the group Description.


Parameters:
  groupDescription - the description to set




setGroupFlags
public void setGroupFlags(String groupFlags)(Code)
Sets the group Flags.


Parameters:
  groupFlags - the flags to set




setGroupName
public void setGroupName(String groupName)(Code)
Sets the group Name.


Parameters:
  groupName - the name to set




setGroupParent
public void setGroupParent(String groupParent)(Code)
Sets the group Parent.


Parameters:
  groupParent - the group Parent to set




setMembership
public void setMembership()(Code)
Sets the membership information that could not been set immediately, because of import order issues.




setOrgUnitDescription
public void setOrgUnitDescription(String orgUnitDescription)(Code)
Sets the organizational unit description.


Parameters:
  orgUnitDescription - the description to set




setOrgUnitFlags
public void setOrgUnitFlags(String orgUnitFlags)(Code)
Sets the organizational unit flags.


Parameters:
  orgUnitFlags - the flags to set




setOrgUnitName
public void setOrgUnitName(String orgUnitName)(Code)
Sets the organizational unit name.


Parameters:
  orgUnitName - the name to set




setProjectDescription
public void setProjectDescription(String projectDescription)(Code)
Sets the project Description.


Parameters:
  projectDescription - the description to set




setProjectManagers
public void setProjectManagers(String projectManagers)(Code)
Sets the project Managers group name.


Parameters:
  projectManagers - the managers group to set




setProjectName
public void setProjectName(String projectName)(Code)
Sets the project Name.


Parameters:
  projectName - the name to set




setProjectUsers
public void setProjectUsers(String projectUsers)(Code)
Sets the project Users group name.


Parameters:
  projectUsers - the Users group to set




setPropertyName
public void setPropertyName(String propertyName)(Code)
Sets the propertyName.


Parameters:
  propertyName - the propertyName to set
See Also:   CmsImportVersion7.N_NAME
See Also:   CmsImportVersion7.addResourcePropertyRules(Digester,String)




setPropertyValue
public void setPropertyValue(String propertyValue)(Code)
Sets the propertyValue.


Parameters:
  propertyValue - the propertyValue to set
See Also:   CmsImportVersion7.N_VALUE
See Also:   CmsImportVersion7.addResourcePropertyRules(Digester,String)




setRelationId
public void setRelationId(String relationId)(Code)
Sets the relationId.


Parameters:
  relationId - the relationId to set
See Also:   CmsImportVersion7.N_ID
See Also:   CmsImportVersion7.addResourceRelationRules(Digester,String)




setRelationPath
public void setRelationPath(String relationPath)(Code)
Sets the relationPath.


Parameters:
  relationPath - the relationPath to set
See Also:   CmsImportVersion7.N_PATH
See Also:   CmsImportVersion7.addResourceRelationRules(Digester,String)




setRelationType
public void setRelationType(String relationType)(Code)
Sets the relationType.


Parameters:
  relationType - the relationType to set
See Also:   CmsImportVersion7.N_TYPE
See Also:   CmsImportVersion7.addResourceRelationRules(Digester,String)




setResourceId
public void setResourceId(String resourceId)(Code)
Sets the resourceId.


Parameters:
  resourceId - the resourceId to set
See Also:   CmsImportVersion7.N_UUIDRESOURCE
See Also:   CmsImportVersion7.addResourceAttributesRules(Digester,String)




setSource
public void setSource(String source)(Code)
Sets the source.


Parameters:
  source - the source to set
See Also:   CmsImportVersion7.N_SOURCE
See Also:   CmsImportVersion7.addResourceAttributesRules(Digester,String)




setStructureId
public void setStructureId(String structureId)(Code)
Sets the structureId.


Parameters:
  structureId - the structureId to set
See Also:   CmsImportVersion7.N_UUIDSTRUCTURE
See Also:   CmsImportVersion7.addResourceAttributesRules(Digester,String)




setThrowable
public void setThrowable(Throwable throwable)(Code)
Sets the throwable.


Parameters:
  throwable - the throwable to set




setType
public void setType(String typeName)(Code)
Sets the type.


Parameters:
  typeName - the type to set
See Also:   CmsImportVersion7.N_TYPE
See Also:   CmsImportVersion7.addResourceAttributesRules(Digester,String)




setUserCreated
public void setUserCreated(CmsUUID userCreated)(Code)
Sets the user Created.


Parameters:
  userCreated - the user Created to set




setUserCreated
public void setUserCreated(String userCreated)(Code)
Sets the userCreated.


Parameters:
  userCreated - the userCreated to set
See Also:   CmsImportVersion7.N_USERCREATED
See Also:   CmsImportVersion7.addResourceAttributesRules(Digester,String)




setUserDateCreated
public void setUserDateCreated(String userDateCreated)(Code)
Sets the user Date Created.


Parameters:
  userDateCreated - the date to set




setUserEmail
public void setUserEmail(String userEmail)(Code)
Sets the user email address.


Parameters:
  userEmail - the email address to set




setUserFirstname
public void setUserFirstname(String userFirstname)(Code)
Sets the user First name.


Parameters:
  userFirstname - the first name to set




setUserFlags
public void setUserFlags(String userFlags)(Code)
Sets the user Flags.


Parameters:
  userFlags - the flags to set




setUserLastModified
public void setUserLastModified(CmsUUID userLastModified)(Code)
Sets the user Last Modified.


Parameters:
  userLastModified - the user Last Modified to set




setUserLastModified
public void setUserLastModified(String userLastModified)(Code)
Sets the userLastModified.


Parameters:
  userLastModified - the userLastModified to set
See Also:   CmsImportVersion7.N_USERLASTMODIFIED
See Also:   CmsImportVersion7.addResourceAttributesRules(Digester,String)




setUserLastname
public void setUserLastname(String userLastname)(Code)
Sets the user Last name.


Parameters:
  userLastname - the last name to set




setUserName
public void setUserName(String userName)(Code)
Sets the user Name.


Parameters:
  userName - the name to set




setUserPassword
public void setUserPassword(String userPassword)(Code)
Sets the user Password.


Parameters:
  userPassword - the password to set




setVersion
public void setVersion(String version)(Code)
Sets the export version from the manifest file.


Parameters:
  version - the export version to set




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.