Class CmsImportVersion7

  • All Implemented Interfaces:
    I_CmsImport

    @Deprecated
    public class CmsImportVersion7
    extends java.lang.Object
    implements I_CmsImport
    Deprecated.
    Adds the XML handler rules for import and export of resources and accounts.

    Since:
    7.0.4
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String A_NAME
      Deprecated.
      Tag for the "userinfo / entry name" attribute, contains the additional user info entry name.
      static java.lang.String A_TYPE
      Deprecated.
      Tag for the "type" attribute, contains the property type.
      static java.lang.String DTD_FILENAME
      Deprecated.
      The name of the DTD for this import version.
      static java.lang.String DTD_LOCATION
      Deprecated.
      The location of the OpenCms configuration DTD if the default prefix is the system ID.
      static int IMPORT_VERSION7
      Deprecated.
      The version number of this import implementation.
      static java.lang.String N_ACCESSCONTROL_ALLOWEDPERMISSIONS
      Deprecated.
      Tag for the "allowed" node, to identify allowed user permissions.
      static java.lang.String N_ACCESSCONTROL_DENIEDPERMISSIONS
      Deprecated.
      Tag for the "denied" node, to identify denied user permissions.
      static java.lang.String N_ACCESSCONTROL_ENTRIES
      Deprecated.
      Tag for the "accesscontrol" node, to identify access control entries.
      static java.lang.String N_ACCESSCONTROL_ENTRY
      Deprecated.
      Tag for the "accessentry" node, to identify a single access control entry.
      static java.lang.String N_ACCESSCONTROL_PERMISSIONSET
      Deprecated.
      Tag for the "permissionset" node, to identify a permission set.
      static java.lang.String N_ACCESSCONTROL_PRINCIPAL
      Deprecated.
      Tag for the "uuidprincipal" node, to identify a principal UUID.
      static java.lang.String N_ACCOUNTS
      Deprecated.
      Tag for the "accounts" node.
      static java.lang.String N_DATECREATED
      Deprecated.
      Tag for the "datecreated" node, contains the date created VFS file attribute.
      static java.lang.String N_DATEEXPIRED
      Deprecated.
      Tag for the "dateexpired" node, contains the expiration date VFS file attribute.
      static java.lang.String N_DATELASTMODIFIED
      Deprecated.
      Tag for the "datelastmodified" node, contains the date last modified VFS file attribute.
      static java.lang.String N_DATERELEASED
      Deprecated.
      Tag for the "datereleased" node, contains the release date VFS file attribute.
      static java.lang.String N_DESCRIPTION
      Deprecated.
      Tag for the "description" node, contains a users description test.
      static java.lang.String N_DESTINATION
      Deprecated.
      Tag for the "destination" node, contains target VFS file name.
      static java.lang.String N_EMAIL
      Deprecated.
      Tag for the "email" node, contains a users email.
      static java.lang.String N_FILE
      Deprecated.
      Tag for the "file" node, container node for all VFS resources.
      static java.lang.String N_FILES
      Deprecated.
      Tag for the "files" node, container node for all VFS resources.
      static java.lang.String N_FIRSTNAME
      Deprecated.
      Tag for the "firstname" node, contains a users first name.
      static java.lang.String N_FLAGS
      Deprecated.
      Tag for the "flags" node, contains the flags of a VFS resource.
      static java.lang.String N_GROUP
      Deprecated.
      Tag for the "group" node, contains a group name.
      static java.lang.String N_GROUPS
      Deprecated.
      Tag for the "groups" node, contains a users group data.
      static java.lang.String N_ID
      Deprecated.
      Tag for the "id" relation attribute, contains the structure id of the target resource of the relation.
      static java.lang.String N_LASTNAME
      Deprecated.
      Tag for the "lastname" node, contains a users last name.
      static java.lang.String N_MANAGERSGROUP
      Deprecated.
      Tag for the "managersgroup" node, contains name of the managers group of the project.
      static java.lang.String N_NAME
      Deprecated.
      Tag for the "name" node, contains the name of a property.
      static java.lang.String N_ORGUNIT
      Deprecated.
      Tag for the "orgunit" node, starts the organizational unit data.
      static java.lang.String N_ORGUNITS
      Deprecated.
      Tag for the "orgunits" node, starts the organizational unit data.
      static java.lang.String N_PARENTGROUP
      Deprecated.
      Tag for the "parentgroup" node, contains a groups parent group fqn.
      static java.lang.String N_PASSWORD
      Deprecated.
      Tag for the "password" node, contains a users encrypted password.
      static java.lang.String N_PATH
      Deprecated.
      Tag for the "path" relation attribute, contains the path to the target resource of the relation.
      static java.lang.String N_PROJECT
      Deprecated.
      Tag for the "project" node, starts the project data.
      static java.lang.String N_PROJECTS
      Deprecated.
      Tag for the "projects" node, starts the project data.
      static java.lang.String N_PROPERTIES
      Deprecated.
      Tag for the "properties" node, starts the list of properties of a VFS resource.
      static java.lang.String N_PROPERTY
      Deprecated.
      Tag for the "property" node, starts a property for a VFS resource.
      static java.lang.String N_RELATION
      Deprecated.
      Tag in the CmsImportExportManager.EXPORT_MANIFEST for the "relation" node, starts a relation for a VFS resource.
      static java.lang.String N_RELATIONS
      Deprecated.
      Tag for the "relations" node, starts the list of relations of a VFS resources.
      static java.lang.String N_RESOURCE
      Deprecated.
      Tag for the "resource" node, contains the a organizational unit resource name.
      static java.lang.String N_RESOURCES
      Deprecated.
      Tag for the "resources" node, contains the list of organizational unit resources.
      static java.lang.String N_SOURCE
      Deprecated.
      Tag for the "source" node, contains the source path of a VFS resource in the import zip (or folder).
      static java.lang.String N_TYPE
      Deprecated.
      Tag for the "type" node, the resource type name of a VFS resource.
      static java.lang.String N_USER
      Deprecated.
      Tag for the "user" node, starts the user data.
      static java.lang.String N_USERCREATED
      Deprecated.
      Tag for the "usercreated" node, contains the name of the user who created the VFS resource.
      static java.lang.String N_USERGROUP
      Deprecated.
      Tag for the "usergroup" node, the name of a users group.
      static java.lang.String N_USERGROUPS
      Deprecated.
      Tag for the "usergroups" node, starts the users group data.
      static java.lang.String N_USERINFO
      Deprecated.
      Tag for the "userinfo" node, contains the additional user info.
      static java.lang.String N_USERINFO_ENTRY
      Deprecated.
      Tag for the "userinfo/entry" node, contains the additional user info entry value.
      static java.lang.String N_USERLASTMODIFIED
      Deprecated.
      Tag for the "userlastmodified" node, contains the name of the user who last modified the VFS resource.
      static java.lang.String N_USERROLE
      Deprecated.
      Tag for the "userrole" node, contains an users role name.
      static java.lang.String N_USERROLES
      Deprecated.
      Tag for the "userroles" node, starts the users role data.
      static java.lang.String N_USERS
      Deprecated.
      Tag for the "users" node, starts the list of users.
      static java.lang.String N_USERSGROUP
      Deprecated.
      Tag for the "usersgroup" node, contains name of the users group of the project.
      static java.lang.String N_UUIDRESOURCE
      Deprecated.
      Tag for the "uuidresource" node, contains a the resource UUID of a VFS resource.
      static java.lang.String N_UUIDSTRUCTURE
      Deprecated.
      Tag for the "uuidstructure" node, only required for backward compatibility with import version 2.
      static java.lang.String N_VALUE
      Deprecated.
      Tag for the "value" node, contains the value of a property.
      static java.lang.String PROPERTY_ATTRIB_TYPE_SHARED
      Deprecated.
      Value for the "shared" property type attribute value.
    • Constructor Summary

      Constructors 
      Constructor Description
      CmsImportVersion7()
      Deprecated.
      Public constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void addAccessControlEntry()
      Deprecated.
      Adds an ACE from the current xml data.
      protected void addAccountsGroupRules​(org.apache.commons.digester3.Digester digester, java.lang.String xpath)
      Deprecated.
      Adds the XML digester rules for groups.
      protected void addAccountsOrgunitRules​(org.apache.commons.digester3.Digester digester, java.lang.String xpath)
      Deprecated.
      Adds the XML digester rules for organizational units.
      protected void addAccountsUserRules​(org.apache.commons.digester3.Digester digester, java.lang.String xpath)
      Deprecated.
      Adds the XML digester rules for users.
      void addContentFile​(java.lang.String source, java.lang.String resourceId)
      Deprecated.
      Registers a file whose contents are contained in the zip file.
      void addOrgUnitResource​(java.lang.String resourceName)
      Deprecated.
      Adds a new resource to be associated to the current organizational unit.
      void addProjectResource​(java.lang.String resourceName)
      Deprecated.
      Adds a new resource to be associated to the current project.
      protected void addProjectRules​(org.apache.commons.digester3.Digester digester, java.lang.String xpath)
      Deprecated.
      Adds the XML digester rules for projects.
      void addProperty()
      Deprecated.
      Adds a property from the current xml data, in case the type is implicit given.
      void addProperty​(java.lang.String propertyType)
      Deprecated.
      Adds a property from the current xml data, in case the type is explicit given.
      void addRelation()
      Deprecated.
      Adds a relation to be imported from the current xml data.
      protected void addResourceAceRules​(org.apache.commons.digester3.Digester digester, java.lang.String xpath)
      Deprecated.
      Adds the XML digester rules for resource access control entries.
      protected void addResourceAttributesRules​(org.apache.commons.digester3.Digester digester, java.lang.String xpath)
      Deprecated.
      Adds the XML digester rules for resource attributes.
      protected void addResourcePropertyRules​(org.apache.commons.digester3.Digester digester, java.lang.String xpath)
      Deprecated.
      Adds the XML digester rules for resource properties.
      protected void addResourceRelationRules​(org.apache.commons.digester3.Digester digester, java.lang.String xpath)
      Deprecated.
      Adds the XML digester rules for resource relations.
      void addXmlDigesterRules​(org.apache.commons.digester3.Digester digester)
      Deprecated.
      Adds the XML digester rules for a single import file.
      void addXmlPreprocessingDigesterRules​(org.apache.commons.digester3.Digester digester)
      Deprecated.
      Adds the XML digester rules for pre-processing a single import file.
      void associateOrgUnitResources()
      Deprecated.
      Associates the stored resources to the created organizational units.
      protected boolean checkImmutable​(java.lang.String resourceName)
      Deprecated.
      Checks if the resources is in the list of immutable resources.
      protected java.lang.String convertDigestEncoding​(java.lang.String value)
      Deprecated.
      Converts a given digest to base64 encoding.
      protected long convertTimestamp​(java.lang.String timestamp)
      Deprecated.
      Convert a given time stamp from a String format to a long value.
      protected void findContentFiles()
      Deprecated.
      This method goes through the manifest, records all files from the manifest for which the content also exists in the zip file, and stores their resource ids in m_contentFiles.
      int getAceFlags()
      Deprecated.
      Returns the ace Flags.
      int getAcePermissionsAllowed()
      Deprecated.
      Returns the ace Permissions Allowed.
      int getAcePermissionsDenied()
      Deprecated.
      Returns the acePermissionsDenied.
      CmsUUID getAcePrincipalId()
      Deprecated.
      Returns the acePrincipalId.
      CmsObject getCms()
      Deprecated.
      Returns the cms object.
      long getDateCreated()
      Deprecated.
      Returns the dateCreated.
      long getDateExpired()
      Deprecated.
      Returns the dateExpired.
      long getDateLastModified()
      Deprecated.
      Returns the dateLastModified.
      long getDateReleased()
      Deprecated.
      Returns the dateReleased.
      java.lang.String getDestination()
      Deprecated.
      Returns the destination.
      int getFlags()
      Deprecated.
      Returns the flags.
      java.lang.String getGroupDescription()
      Deprecated.
      Returns the group Description.
      int getGroupFlags()
      Deprecated.
      Returns the group Flags.
      java.lang.String getGroupName()
      Deprecated.
      Returns the group Name.
      java.lang.String getGroupParent()
      Deprecated.
      Returns the group Parent.
      protected CmsImportHelper getHelper()
      Deprecated.
      Gets the import helper instance.
      protected java.util.List<java.lang.String> getIgnoredProperties()
      Deprecated.
      Returns the list of properties to ignore during import.
      protected java.util.List<java.lang.String> getImmutableResources()
      Deprecated.
      Returns the list of immutable resources.
      java.lang.String getOrgUnitDescription()
      Deprecated.
      Returns the organizational unit description.
      int getOrgUnitFlags()
      Deprecated.
      Returns the organizational unit flags.
      java.lang.String getOrgUnitName()
      Deprecated.
      Returns the organizational unit name.
      java.lang.String getProjectDescription()
      Deprecated.
      Returns the project Description.
      java.lang.String getProjectManagers()
      Deprecated.
      Returns the project Managers group name.
      java.lang.String getProjectName()
      Deprecated.
      Returns the project Name.
      java.lang.String getProjectUsers()
      Deprecated.
      Returns the project Users group name.
      java.lang.String getPropertyName()
      Deprecated.
      Returns the propertyName.
      java.lang.String getPropertyValue()
      Deprecated.
      Returns the propertyValue.
      CmsUUID getRelationId()
      Deprecated.
      Returns the relationId.
      java.lang.String getRelationPath()
      Deprecated.
      Returns the relationPath.
      CmsRelationType getRelationType()
      Deprecated.
      Returns the relationType.
      I_CmsReport getReport()
      Deprecated.
      Returns the report.
      CmsUUID getResourceId()
      Deprecated.
      Returns the resourceId.
      java.lang.String getSource()
      Deprecated.
      Returns the source.
      CmsUUID getStructureId()
      Deprecated.
      Returns the structureId.
      java.lang.Throwable getThrowable()
      Deprecated.
      Returns the throwable.
      I_CmsResourceType getType()
      Deprecated.
      Returns the type.
      CmsUUID getUserCreated()
      Deprecated.
      Returns the userCreated.
      long getUserDateCreated()
      Deprecated.
      Returns the user Date Created.
      java.lang.String getUserEmail()
      Deprecated.
      Returns the user Email address.
      java.lang.String getUserFirstname()
      Deprecated.
      Returns the user First name.
      int getUserFlags()
      Deprecated.
      Returns the user Flags.
      CmsUUID getUserLastModified()
      Deprecated.
      Returns the userLastModified.
      java.lang.String getUserLastname()
      Deprecated.
      Returns the user Last name.
      java.lang.String getUserName()
      Deprecated.
      Returns the user Name.
      java.lang.String getUserPassword()
      Deprecated.
      Returns the user Password.
      int getVersion()
      Deprecated.
      Returns the version of the import implementation.
      void importAccessControlEntries()
      Deprecated.
      Imports an ACE from the current xml data.
      void importData​(CmsObject cms, I_CmsReport report, CmsImportParameters parameters)
      Deprecated.
      Imports the data.
      void importGroup()
      Deprecated.
      Import the current group from xml data.
      void importOrgUnit()
      Deprecated.
      Imports the current organizational unit.
      void importProject()
      Deprecated.
      Imports the current project.
      void importRelations()
      Deprecated.
      Imports all relations from the current xml data.
      void importResource()
      Deprecated.
      Imports a resource from the current xml data.
      void importResources​(CmsObject cms, java.lang.String importPath, I_CmsReport report, java.io.File importResource, java.util.zip.ZipFile importZip, org.dom4j.Document docXml)
      void importUser()
      Deprecated.
      Imports a new user from the current xml data.
      void importUserGroup​(java.lang.String groupName)
      Deprecated.
      Sets the current user as member of the given group.
      void importUserInfo​(java.lang.String infoName, java.lang.String infoType, java.lang.String infoValue)
      Deprecated.
      Creates a new additional information entry for the current user.
      void importUserRole​(java.lang.String roleName)
      Deprecated.
      Sets the current user as member of the given role.
      void increaseCounter()
      Deprecated.
      Increases the file counter.
      void increaseTotalFiles()
      Deprecated.
      Increases the total number of files.
      boolean matches​(CmsImportParameters parameters)
      Deprecated.
      Checks if the file given as parameter matches this import version implementation.
      void rewriteParseables()
      Deprecated.
      Rewrites all parseable files, to assure link check.
      void setAceFlags​(java.lang.String aceFlags)
      Deprecated.
      Sets the aceFlags.
      void setAcePermissionsAllowed​(java.lang.String acePermissionsAllowed)
      Deprecated.
      Sets the acePermissionsAllowed.
      void setAcePermissionsDenied​(java.lang.String acePermissionsDenied)
      Deprecated.
      Sets the acePermissionsDenied.
      void setAcePrincipalId​(java.lang.String acePrincipalId)
      Deprecated.
      Sets the acePrincipalId.
      void setDateCreated​(java.lang.String dateCreated)
      Deprecated.
      Sets the dateCreated.
      void setDateExpired​(java.lang.String dateExpired)
      Deprecated.
      Sets the dateExpired.
      void setDateLastModified​(java.lang.String dateLastModified)
      Deprecated.
      Sets the dateLastModified.
      void setDateReleased​(java.lang.String dateReleased)
      Deprecated.
      Sets the dateReleased.
      void setDestination​(java.lang.String destination)
      Deprecated.
      Sets the destination.
      void setFlags​(java.lang.String flags)
      Deprecated.
      Sets the flags.
      void setGroupDescription​(java.lang.String groupDescription)
      Deprecated.
      Sets the group Description.
      void setGroupFlags​(java.lang.String groupFlags)
      Deprecated.
      Sets the group Flags.
      void setGroupName​(java.lang.String groupName)
      Deprecated.
      Sets the group Name.
      void setGroupParent​(java.lang.String groupParent)
      Deprecated.
      Sets the group Parent.
      void setMembership()
      Deprecated.
      Sets the membership information that could not been set immediately, because of import order issues.
      void setOrgUnitDescription​(java.lang.String orgUnitDescription)
      Deprecated.
      Sets the organizational unit description.
      void setOrgUnitFlags​(java.lang.String orgUnitFlags)
      Deprecated.
      Sets the organizational unit flags.
      void setOrgUnitName​(java.lang.String orgUnitName)
      Deprecated.
      Sets the organizational unit name.
      void setProjectDescription​(java.lang.String projectDescription)
      Deprecated.
      Sets the project Description.
      void setProjectManagers​(java.lang.String projectManagers)
      Deprecated.
      Sets the project Managers group name.
      void setProjectName​(java.lang.String projectName)
      Deprecated.
      Sets the project Name.
      void setProjectUsers​(java.lang.String projectUsers)
      Deprecated.
      Sets the project Users group name.
      void setPropertyName​(java.lang.String propertyName)
      Deprecated.
      Sets the propertyName.
      void setPropertyValue​(java.lang.String propertyValue)
      Deprecated.
      Sets the propertyValue.
      void setRelationId​(java.lang.String relationId)
      Deprecated.
      Sets the relationId.
      void setRelationPath​(java.lang.String relationPath)
      Deprecated.
      Sets the relationPath.
      void setRelationType​(java.lang.String relationType)
      Deprecated.
      Sets the relationType.
      void setResourceId​(java.lang.String resourceId)
      Deprecated.
      Sets the resourceId.
      void setSource​(java.lang.String source)
      Deprecated.
      Sets the source.
      void setStructureId​(java.lang.String structureId)
      Deprecated.
      Sets the structureId.
      void setThrowable​(java.lang.Throwable throwable)
      Deprecated.
      Sets the throwable.
      void setType​(java.lang.String typeName)
      Deprecated.
      Sets the type.
      void setUserCreated​(java.lang.String userCreated)
      Deprecated.
      Sets the userCreated.
      void setUserCreated​(CmsUUID userCreated)
      Deprecated.
      Sets the user Created.
      void setUserDateCreated​(java.lang.String userDateCreated)
      Deprecated.
      Sets the user Date Created.
      void setUserEmail​(java.lang.String userEmail)
      Deprecated.
      Sets the user email address.
      void setUserFirstname​(java.lang.String userFirstname)
      Deprecated.
      Sets the user First name.
      void setUserFlags​(java.lang.String userFlags)
      Deprecated.
      Sets the user Flags.
      void setUserLastModified​(java.lang.String userLastModified)
      Deprecated.
      Sets the userLastModified.
      void setUserLastModified​(CmsUUID userLastModified)
      Deprecated.
      Sets the user Last Modified.
      void setUserLastname​(java.lang.String userLastname)
      Deprecated.
      Sets the user Last name.
      void setUserName​(java.lang.String userName)
      Deprecated.
      Sets the user Name.
      void setUserPassword​(java.lang.String userPassword)
      Deprecated.
      Sets the user Password.
      void setVersion​(java.lang.String version)
      Deprecated.
      Sets the export version from the manifest file.
      protected void sortParseableResources​(java.util.List<CmsResource> parseables)
      Deprecated.
      Sorts the parsealble resources before we actually parse the links.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait