Class CmsImportVersion10
- All Implemented Interfaces:
I_CmsImport
- Direct Known Subclasses:
CmsImportResourceDataReader
- Since:
- 7.0.4
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Categories of resources that need to be handled differently in the 'rewrite parseables' import step.static class
Data class to temporarily keep track of relation data for a resource to be imported. -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Tag for the "userinfo / entry name" attribute, contains the additional user info entry name.static final String
Tag for the "type" attribute, contains the property type.protected static final long
Constant for the unspecified creation date.protected static final long
Constant for using file time as last modification date on file import.protected static final long
Constant for an unspecified last modification date.static final String
The name of the DTD for this import version.static final String
The location of the OpenCms configuration DTD if the default prefix is the system ID.static final int
The version number of this import implementation.protected int
The ACE flags value.protected int
The ACE allowed permissions value.protected int
The ACE denied permissions value.protected CmsUUID
The ACE principal id value.protected List<CmsAccessControlEntry>
The list of ACEs for the current imported resource.protected CmsObject
The cms object.The set of resource ids of files which actually are contained in the zip file.protected String
The destination value.protected int
The current file counter.protected String
The description of the current group to import.protected int
The flags of the current group to import.protected String
The name of the current group to import.protected String
The parent of the current group to import.Map of all parent groups that could not be set immediately, because of the import order.protected boolean
True if a modification date has been set.protected boolean
True if a structure id has been set.protected CmsImportHelper
The import helper.List of ignored properties.List of immutable resources.protected boolean
The flag to import ACEs.The membership structure.protected CmsOrganizationalUnit
The current imported organizational unit.protected String
The organizational unit description.protected int
The organizational unit flags.protected String
The organizational unit fqn.The map of organizational unit resources, this is a global field that will be use at the end of the import.protected CmsImportParameters
The import parameters to use.protected List<CmsResource>
The list of resource to be parsed, this is a global list, which will be handled at the end of the import.protected String
The project description.protected String
The project managers group name.protected String
The project fqn.The current read project resources.protected String
The project users group name.protected Map<String,
CmsProperty> The map of properties for current imported resource.protected String
The property name value.protected String
The property value value.protected CmsUUID
The relation id value.protected String
The relation path value.protected List<CmsImportVersion10.RelationData>
Holds the relation data for the resource to be imported.protected CmsRelationType
The relation type value.protected I_CmsReport
The report.protected CmsResource
The current imported resource.protected CmsResourceBuilder
Holds the field values for the CmsResource object to be created.protected String
The source value.protected Throwable
Possible exception during xml parsing.protected int
The total number of files to import.protected String
The type name.protected CmsUser
The current imported user.protected long
The current user date created.protected String
The current user email.protected String
The current user first name.protected int
The current user flags.The additional information for the current imported user.protected String
The current user last name.protected String
The current user name.protected String
The current user password.protected int
The export version.static final String
Tag for the "allowed" node, to identify allowed user permissions.static final String
Tag for the "denied" node, to identify denied user permissions.static final String
Tag for the "accesscontrol" node, to identify access control entries.static final String
Tag for the "accessentry" node, to identify a single access control entry.static final String
Tag for the "permissionset" node, to identify a permission set.static final String
Tag for the "uuidprincipal" node, to identify a principal UUID.static final String
Tag for the "accounts" node.static final String
Tag for the "datecreated" node, contains the date created VFS file attribute.static final String
Tag for the "dateexpired" node, contains the expiration date VFS file attribute.static final String
Tag for the "datelastmodified" node, contains the date last modified VFS file attribute.static final String
Tag for the "datereleased" node, contains the release date VFS file attribute.static final String
Tag for the "description" node, contains a users description test.static final String
Tag for the "destination" node, contains target VFS file name.static final String
Tag for the "email" node, contains a users email.static final String
Tag for the "file" node, container node for all VFS resources.static final String
Tag for the "files" node, container node for all VFS resources.static final String
Tag for the "firstname" node, contains a users first name.static final String
Tag for the "flags" node, contains the flags of a VFS resource.static final String
Tag for the "group" node, contains a group name.static final String
Tag for the "groups" node, contains a users group data.static final String
Tag for the "id" relation attribute, contains the structure id of the target resource of the relation.static final String
Tag for the "lastname" node, contains a users last name.static final String
Tag for the "managersgroup" node, contains name of the managers group of the project.static final String
Tag for the "name" node, contains the name of a property.static final String
Tag for the "orgunit" node, starts the organizational unit data.static final String
Tag for the "orgunits" node, starts the organizational unit data.static final String
Tag for the "parentgroup" node, contains a groups parent group fqn.static final String
Tag for the "password" node, contains a users encrypted password.static final String
Tag for the "path" relation attribute, contains the path to the target resource of the relation.static final String
Tag for the "project" node, starts the project data.static final String
Tag for the "projects" node, starts the project data.static final String
Tag for the "properties" node, starts the list of properties of a VFS resource.static final String
Tag for the "property" node, starts a property for a VFS resource.static final String
Tag in theCmsImportExportManager.EXPORT_MANIFEST
for the "relation" node, starts a relation for a VFS resource.static final String
Tag for the "relations" node, starts the list of relations of a VFS resources.static final String
Tag for the "resource" node, contains the a organizational unit resource name.static final String
Tag for the "resources" node, contains the list of organizational unit resources.static final String
Tag for the "source" node, contains the source path of a VFS resource in the import zip (or folder).static final String
Tag for the "type" node, the resource type name of a VFS resource.static final String
Tag for the "user" node, starts the user data.static final String
Tag for the "usercreated" node, contains the name of the user who created the VFS resource.static final String
Tag for the "usergroup" node, the name of a users group.static final String
Tag for the "usergroups" node, starts the users group data.static final String
Tag for the "userinfo" node, contains the additional user info.static final String
Tag for the "userinfo/entry" node, contains the additional user info entry value.static final String
Tag for the "userlastmodified" node, contains the name of the user who last modified the VFS resource.static final String
Tag for the "userrole" node, contains an users role name.static final String
Tag for the "userroles" node, starts the users role data.static final String
Tag for the "users" node, starts the list of users.static final String
Tag for the "usersgroup" node, contains name of the users group of the project.static final String
Tag for the "uuidresource" node, contains a the resource UUID of a VFS resource.static final String
Tag for the "uuidstructure" node, only required for backward compatibility with import version 2.static final String
Tag for the "value" node, contains the value of a property.static final String
Value for the "shared" property type attribute value. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds an ACE from the current xml data.protected void
addAccountsGroupRules
(org.apache.commons.digester3.Digester digester, String xpath) Adds the XML digester rules for groups.protected void
addAccountsOrgunitRules
(org.apache.commons.digester3.Digester digester, String xpath) Adds the XML digester rules for organizational units.protected void
addAccountsUserRules
(org.apache.commons.digester3.Digester digester, String xpath) Adds the XML digester rules for users.void
addContentFile
(String source, String resourceId) Registers a file whose contents are contained in the zip file.void
addOrgUnitResource
(String resourceName) Adds a new resource to be associated to the current organizational unit.void
addProjectResource
(String resourceName) Adds a new resource to be associated to the current project.protected void
addProjectRules
(org.apache.commons.digester3.Digester digester, String xpath) Adds the XML digester rules for projects.void
Adds a property from the current xml data, in case the type is implicit given.void
addProperty
(String propertyType) Adds a property from the current xml data, in case the type is explicit given.void
Adds a relation to be imported from the current xml data.protected void
addResourceAceRules
(org.apache.commons.digester3.Digester digester, String xpath) Adds the XML digester rules for resource access control entries.protected void
addResourceAttributesRules
(org.apache.commons.digester3.Digester digester, String xpath) Adds the XML digester rules for resource attributes.protected void
addResourcePropertyRules
(org.apache.commons.digester3.Digester digester, String xpath) Adds the XML digester rules for resource properties.protected void
addResourceRelationRules
(org.apache.commons.digester3.Digester digester, String xpath) Adds the XML digester rules for resource relations.void
addXmlDigesterRules
(org.apache.commons.digester3.Digester digester) Adds the XML digester rules for a single import file.void
addXmlPreprocessingDigesterRules
(org.apache.commons.digester3.Digester digester) Adds the XML digester rules for pre-processing a single import file.void
Associates the stored resources to the created organizational units.protected boolean
checkImmutable
(String resourceName) Checks if the resources is in the list of immutable resources.protected String
convertDigestEncoding
(String value) Converts a given digest to base64 encoding.protected long
convertTimestamp
(String timestamp) Convert a given time stamp from a String format to a long value.protected CmsResource
createResourceObjectFromFields
(String translatedName, int size) Create a CmsResource object from the currently set field values.protected void
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
Returns the ace Flags.int
Returns the ace Permissions Allowed.int
Returns the acePermissionsDenied.Returns the acePrincipalId.getCms()
Returns the cms object.long
Returns the dateCreated.long
Returns the dateExpired.long
Returns the dateLastModified.long
Returns the dateReleased.Returns the destination.int
getFlags()
Returns the flags.Returns the group Description.int
Returns the group Flags.Returns the group Name.Returns the group Parent.protected CmsImportHelper
Gets the import helper instance.Returns the list of properties to ignore during import.Returns the list of immutable resources.Returns the organizational unit description.int
Returns the organizational unit flags.Returns the organizational unit name.Returns the project Description.Returns the project Managers group name.Returns the project Name.Returns the project Users group name.Returns the propertyName.Returns the propertyValue.Returns the relationId.Returns the relationPath.Returns the relationType.Returns the report.Gets the request context of the currently used CmsObject.Returns the resourceId.Returns the source.Returns the structureId.Returns the throwable.getType()
Returns the type.Returns the userCreated.long
Returns the user Date Created.Returns the user Email address.Returns the user First name.int
Returns the user Flags.Returns the userLastModified.Returns the user Last name.Returns the user Name.Returns the user Password.int
Returns the version of the import implementation.void
Imports an ACE from the current xml data.void
importData
(CmsObject cms, I_CmsReport report, CmsImportParameters parameters) Imports the data.void
Import the current group from xml data.void
Imports the current organizational unit.void
Imports the current project.void
Imports all relations from the current xml data.void
Imports a resource from the current xml data.void
Imports the resource and access control entries.void
importResources
(CmsObject cms, String importPath, I_CmsReport report, File importResource, ZipFile importZip, org.dom4j.Document docXml) Deprecated.void
Imports a new user from the current xml data.void
importUserGroup
(String groupName) Sets the current user as member of the given group.void
importUserInfo
(String infoName, String infoType, String infoValue) Creates a new additional information entry for the current user.void
importUserRole
(String roleName) Sets the current user as member of the given role.void
Increases the file counter.void
Increases the total number of files.protected boolean
isFolderType
(String typeName) Checks if the given type name refers to a folder type.boolean
matches
(CmsImportParameters parameters) Checks if the file given as parameter matches this import version implementation.static void
parseLinks
(CmsObject cms, List<CmsResource> parseables, I_CmsReport report) Parses the links.void
Rewrites all parseable files, to assure link check.void
setAceFlags
(String aceFlags) Sets the aceFlags.void
setAcePermissionsAllowed
(String acePermissionsAllowed) Sets the acePermissionsAllowed.void
setAcePermissionsDenied
(String acePermissionsDenied) Sets the acePermissionsDenied.void
setAcePrincipalId
(String acePrincipalId) Sets the acePrincipalId.void
setDateCreated
(String dateCreated) Sets the dateCreated.void
setDateExpired
(String dateExpired) Sets the dateExpired.void
setDateLastModified
(String dateLastModified) Sets the dateLastModified.void
setDateReleased
(String dateReleased) Sets the dateReleased.protected void
Fills the unset fields for an imported resource with default values.void
setDestination
(String destination) Sets the destination.void
Sets the flags.void
setGroupDescription
(String groupDescription) Sets the group Description.void
setGroupFlags
(String groupFlags) Sets the group Flags.void
setGroupName
(String groupName) Sets the group Name.void
setGroupParent
(String groupParent) Sets the group Parent.void
Sets the membership information that could not been set immediately, because of import order issues.void
setOrgUnitDescription
(String orgUnitDescription) Sets the organizational unit description.void
setOrgUnitFlags
(String orgUnitFlags) Sets the organizational unit flags.void
setOrgUnitName
(String orgUnitName) Sets the organizational unit name.void
setProjectDescription
(String projectDescription) Sets the project Description.void
setProjectManagers
(String projectManagers) Sets the project Managers group name.void
setProjectName
(String projectName) Sets the project Name.void
setProjectUsers
(String projectUsers) Sets the project Users group name.void
setPropertyName
(String propertyName) Sets the propertyName.void
setPropertyValue
(String propertyValue) Sets the propertyValue.void
setRelationId
(String relationId) Sets the relationId.void
setRelationPath
(String relationPath) Sets the relationPath.void
setRelationType
(String relationType) Sets the relationType.void
setResourceId
(String resourceId) Sets the resourceId.void
Sets the source.void
setStructureId
(String structureId) Sets the structureId.void
setThrowable
(Throwable throwable) Sets the throwable.void
Sets the type.void
setUserCreated
(String userCreated) Sets the userCreated.void
setUserCreated
(CmsUUID userCreated) Sets the user Created.void
setUserDateCreated
(String userDateCreated) Sets the user Date Created.void
setUserEmail
(String userEmail) Sets the user email address.void
setUserFirstname
(String userFirstname) Sets the user First name.void
setUserFlags
(String userFlags) Sets the user Flags.void
setUserLastModified
(String userLastModified) Sets the userLastModified.void
setUserLastModified
(CmsUUID userLastModified) Sets the user Last Modified.void
setUserLastname
(String userLastname) Sets the user Last name.void
setUserName
(String userName) Sets the user Name.void
setUserPassword
(String userPassword) Sets the user Password.void
setVersion
(String version) Sets the export version from the manifest file.
-
Field Details
-
A_NAME
Tag for the "userinfo / entry name" attribute, contains the additional user info entry name.- See Also:
-
A_TYPE
Tag for the "type" attribute, contains the property type.- See Also:
-
DTD_FILENAME
The name of the DTD for this import version.- See Also:
-
DTD_LOCATION
The location of the OpenCms configuration DTD if the default prefix is the system ID.- See Also:
-
IMPORT_VERSION10
The version number of this import implementation.- See Also:
-
N_ACCESSCONTROL_ALLOWEDPERMISSIONS
Tag for the "allowed" node, to identify allowed user permissions.- See Also:
-
N_ACCESSCONTROL_DENIEDPERMISSIONS
Tag for the "denied" node, to identify denied user permissions.- See Also:
-
N_ACCESSCONTROL_ENTRIES
Tag for the "accesscontrol" node, to identify access control entries.- See Also:
-
N_ACCESSCONTROL_ENTRY
Tag for the "accessentry" node, to identify a single access control entry.- See Also:
-
N_ACCESSCONTROL_PERMISSIONSET
Tag for the "permissionset" node, to identify a permission set.- See Also:
-
N_ACCESSCONTROL_PRINCIPAL
Tag for the "uuidprincipal" node, to identify a principal UUID.- See Also:
-
N_ACCOUNTS
Tag for the "accounts" node.- See Also:
-
N_DATECREATED
Tag for the "datecreated" node, contains the date created VFS file attribute.- See Also:
-
N_DATEEXPIRED
Tag for the "dateexpired" node, contains the expiration date VFS file attribute.- See Also:
-
N_DATELASTMODIFIED
Tag for the "datelastmodified" node, contains the date last modified VFS file attribute.- See Also:
-
N_DATERELEASED
Tag for the "datereleased" node, contains the release date VFS file attribute.- See Also:
-
N_DESCRIPTION
Tag for the "description" node, contains a users description test.- See Also:
-
N_DESTINATION
Tag for the "destination" node, contains target VFS file name.- See Also:
-
N_EMAIL
Tag for the "email" node, contains a users email.- See Also:
-
N_FILE
Tag for the "file" node, container node for all VFS resources.- See Also:
-
N_FILES
Tag for the "files" node, container node for all VFS resources.- See Also:
-
N_FIRSTNAME
Tag for the "firstname" node, contains a users first name.- See Also:
-
N_FLAGS
Tag for the "flags" node, contains the flags of a VFS resource.- See Also:
-
N_GROUP
Tag for the "group" node, contains a group name.- See Also:
-
N_GROUPS
Tag for the "groups" node, contains a users group data.- See Also:
-
N_ID
Tag for the "id" relation attribute, contains the structure id of the target resource of the relation.- See Also:
-
N_LASTNAME
Tag for the "lastname" node, contains a users last name.- See Also:
-
N_MANAGERSGROUP
Tag for the "managersgroup" node, contains name of the managers group of the project.- See Also:
-
N_NAME
Tag for the "name" node, contains the name of a property.- See Also:
-
N_ORGUNIT
Tag for the "orgunit" node, starts the organizational unit data.- See Also:
-
N_ORGUNITS
Tag for the "orgunits" node, starts the organizational unit data.- See Also:
-
N_PARENTGROUP
Tag for the "parentgroup" node, contains a groups parent group fqn.- See Also:
-
N_PASSWORD
Tag for the "password" node, contains a users encrypted password.- See Also:
-
N_PATH
Tag for the "path" relation attribute, contains the path to the target resource of the relation.- See Also:
-
N_PROJECT
Tag for the "project" node, starts the project data.- See Also:
-
N_PROJECTS
Tag for the "projects" node, starts the project data.- See Also:
-
N_PROPERTIES
Tag for the "properties" node, starts the list of properties of a VFS resource.- See Also:
-
N_PROPERTY
Tag for the "property" node, starts a property for a VFS resource.- See Also:
-
N_RELATION
Tag in theCmsImportExportManager.EXPORT_MANIFEST
for the "relation" node, starts a relation for a VFS resource.- See Also:
-
N_RELATIONS
Tag for the "relations" node, starts the list of relations of a VFS resources.- See Also:
-
N_RESOURCE
Tag for the "resource" node, contains the a organizational unit resource name.- See Also:
-
N_RESOURCES
Tag for the "resources" node, contains the list of organizational unit resources.- See Also:
-
N_SOURCE
Tag for the "source" node, contains the source path of a VFS resource in the import zip (or folder).- See Also:
-
N_TYPE
Tag for the "type" node, the resource type name of a VFS resource.- See Also:
-
N_USER
Tag for the "user" node, starts the user data.- See Also:
-
N_USERCREATED
Tag for the "usercreated" node, contains the name of the user who created the VFS resource.- See Also:
-
N_USERGROUP
Tag for the "usergroup" node, the name of a users group.- See Also:
-
N_USERGROUPS
Tag for the "usergroups" node, starts the users group data.- See Also:
-
N_USERINFO
Tag for the "userinfo" node, contains the additional user info.- See Also:
-
N_USERINFO_ENTRY
Tag for the "userinfo/entry" node, contains the additional user info entry value.- See Also:
-
N_USERLASTMODIFIED
Tag for the "userlastmodified" node, contains the name of the user who last modified the VFS resource.- See Also:
-
N_USERROLE
Tag for the "userrole" node, contains an users role name.- See Also:
-
N_USERROLES
Tag for the "userroles" node, starts the users role data.- See Also:
-
N_USERS
Tag for the "users" node, starts the list of users.- See Also:
-
N_USERSGROUP
Tag for the "usersgroup" node, contains name of the users group of the project.- See Also:
-
N_UUIDRESOURCE
Tag for the "uuidresource" node, contains a the resource UUID of a VFS resource.- See Also:
-
N_UUIDSTRUCTURE
Tag for the "uuidstructure" node, only required for backward compatibility with import version 2.- See Also:
-
N_VALUE
Tag for the "value" node, contains the value of a property.- See Also:
-
PROPERTY_ATTRIB_TYPE_SHARED
Value for the "shared" property type attribute value.- See Also:
-
DATE_CREATED_UNSPECIFIED
Constant for the unspecified creation date.- See Also:
-
DATE_LAST_MODIFICATION_FILETIME
Constant for using file time as last modification date on file import.- See Also:
-
DATE_LAST_MODIFICATION_UNSPECIFIED
Constant for an unspecified last modification date.- See Also:
-
m_aceFlags
The ACE flags value. -
m_acePermissionsAllowed
The ACE allowed permissions value. -
m_acePermissionsDenied
The ACE denied permissions value. -
m_acePrincipalId
The ACE principal id value. -
m_aces
The list of ACEs for the current imported resource. -
m_cms
The cms object. -
m_contentFiles
The set of resource ids of files which actually are contained in the zip file. -
m_destination
The destination value. -
m_fileCounter
The current file counter. -
m_groupDescription
The description of the current group to import. -
m_groupFlags
The flags of the current group to import. -
m_groupName
The name of the current group to import. -
m_groupParent
The parent of the current group to import. -
m_groupParents
Map of all parent groups that could not be set immediately, because of the import order. -
m_hasDateLastModified
True if a modification date has been set. -
m_hasStructureId
True if a structure id has been set. -
m_helper
The import helper. -
m_ignoredProperties
List of ignored properties. -
m_immutables
List of immutable resources. -
m_importACEs
The flag to import ACEs. -
m_membership
The membership structure. -
m_orgUnit
The current imported organizational unit. -
m_orgUnitDescription
The organizational unit description. -
m_orgUnitFlags
The organizational unit flags. -
m_orgUnitName
The organizational unit fqn. -
m_orgUnitResources
The map of organizational unit resources, this is a global field that will be use at the end of the import. -
m_parameters
The import parameters to use. -
m_parseables
The list of resource to be parsed, this is a global list, which will be handled at the end of the import. -
m_projectDescription
The project description. -
m_projectManagers
The project managers group name. -
m_projectName
The project fqn. -
m_projectResources
The current read project resources. -
m_projectUsers
The project users group name. -
m_properties
The map of properties for current imported resource. -
m_propertyName
The property name value. -
m_propertyValue
The property value value. -
m_relationId
The relation id value. -
m_relationPath
The relation path value. -
m_relationsForResource
Holds the relation data for the resource to be imported. -
m_relationType
The relation type value. -
m_report
The report. -
m_resource
The current imported resource. -
m_resourceBuilder
Holds the field values for the CmsResource object to be created. -
m_source
The source value. -
m_throwable
Possible exception during xml parsing. -
m_totalFiles
The total number of files to import. -
m_typeName
The type name. -
m_user
The current imported user. -
m_userDateCreated
The current user date created. -
m_userEmail
The current user email. -
m_userFirstname
The current user first name. -
m_userFlags
The current user flags. -
m_userInfos
The additional information for the current imported user. -
m_userLastname
The current user last name. -
m_userName
The current user name. -
m_userPassword
The current user password. -
m_version
The export version.
-
-
Constructor Details
-
CmsImportVersion10
public CmsImportVersion10()Public constructor.
-
-
Method Details
-
parseLinks
Parses the links.- Parameters:
cms
- the CMS context to useparseables
- the list of resources for which to parse the linksreport
- the report
-
addAccessControlEntry
Adds an ACE from the current xml data.- See Also:
-
addContentFile
Registers a file whose contents are contained in the zip file.- Parameters:
source
- the path in the zip fileresourceId
- the resource id
-
addOrgUnitResource
Adds a new resource to be associated to the current organizational unit.- Parameters:
resourceName
- the resource name to add
-
addProjectResource
Adds a new resource to be associated to the current project.- Parameters:
resourceName
- the resource name to add
-
addProperty
Adds a property from the current xml data, in case the type is implicit given. -
addProperty
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:
-
addRelation
Adds a relation to be imported from the current xml data. -
addXmlDigesterRules
Adds the XML digester rules for a single import file.- Parameters:
digester
- the digester to add the rules to
-
addXmlPreprocessingDigesterRules
Adds the XML digester rules for pre-processing a single import file.- Parameters:
digester
- the digester to add the rules to
-
associateOrgUnitResources
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.
-
getAceFlags
Returns the ace Flags.- Returns:
- the ace Flags
- See Also:
-
getAcePermissionsAllowed
Returns the ace Permissions Allowed.- Returns:
- the ace Permissions Allowed
- See Also:
-
getAcePermissionsDenied
Returns the acePermissionsDenied.- Returns:
- the acePermissionsDenied
- See Also:
-
getAcePrincipalId
Returns the acePrincipalId.- Returns:
- the acePrincipalId
- See Also:
-
getCms
Returns the cms object.- Returns:
- the cms object
-
getDateCreated
Returns the dateCreated.- Returns:
- the dateCreated
- See Also:
-
getDateExpired
Returns the dateExpired.- Returns:
- the dateExpired
- See Also:
-
getDateLastModified
Returns the dateLastModified.- Returns:
- the dateLastModified
- See Also:
-
getDateReleased
Returns the dateReleased.- Returns:
- the dateReleased
- See Also:
-
getDestination
Returns the destination.- Returns:
- the destination
- See Also:
-
getFlags
Returns the flags.- Returns:
- the flags
- See Also:
-
getGroupDescription
Returns the group Description.- Returns:
- the group Description
-
getGroupFlags
Returns the group Flags.- Returns:
- the group Flags
-
getGroupName
Returns the group Name.- Returns:
- the group Name
-
getGroupParent
Returns the group Parent.- Returns:
- the group Parent
-
getOrgUnitDescription
Returns the organizational unit description.- Returns:
- the organizational unit description
-
getOrgUnitFlags
Returns the organizational unit flags.- Returns:
- the organizational unit flags
-
getOrgUnitName
Returns the organizational unit name.- Returns:
- the organizational unit name
-
getProjectDescription
Returns the project Description.- Returns:
- the project Description
-
getProjectManagers
Returns the project Managers group name.- Returns:
- the project Managers group name
-
getProjectName
Returns the project Name.- Returns:
- the project Name
-
getProjectUsers
Returns the project Users group name.- Returns:
- the project Users group name
-
getPropertyName
Returns the propertyName.- Returns:
- the propertyName
- See Also:
-
getPropertyValue
Returns the propertyValue.- Returns:
- the propertyValue
- See Also:
-
getRelationId
Returns the relationId.- Returns:
- the relationId
- See Also:
-
getRelationPath
Returns the relationPath.- Returns:
- the relationPath
- See Also:
-
getRelationType
Returns the relationType.- Returns:
- the relationType
- See Also:
-
getReport
Returns the report.- Returns:
- the report
-
getRequestContext
Gets the request context of the currently used CmsObject.- Returns:
- the current request context
-
getResourceId
Returns the resourceId.- Returns:
- the resourceId
- See Also:
-
getSource
Returns the source.- Returns:
- the source
- See Also:
-
getStructureId
Returns the structureId.- Returns:
- the structureId
- See Also:
-
getThrowable
Returns the throwable.- Returns:
- the throwable
-
getType
Returns the type.- Returns:
- the type
- See Also:
-
getUserCreated
Returns the userCreated.- Returns:
- the userCreated
- See Also:
-
getUserDateCreated
Returns the user Date Created.- Returns:
- the user Date Created
-
getUserEmail
Returns the user Email address.- Returns:
- the user Email address
-
getUserFirstname
Returns the user First name.- Returns:
- the user First name
-
getUserFlags
Returns the user Flags.- Returns:
- the user Flags
-
getUserLastModified
Returns the userLastModified.- Returns:
- the userLastModified
- See Also:
-
getUserLastname
Returns the user Last name.- Returns:
- the user Last name
-
getUserName
Returns the user Name.- Returns:
- the user Name
-
getUserPassword
Returns the user Password.- Returns:
- the user Password
-
getVersion
Description copied from interface:I_CmsImport
Returns the version of the import implementation.- 0 indicates an export file without a version number, that is before version 4.3.23 of OpenCms
- 1 indicates an export file of OpenCms with a version before 5.0.0
- 2 indicates an export file of OpenCms with a version before 5.1.2
- 3 indicates an export file of OpenCms with a version before 5.1.6
- 4 indicates an export file of OpenCms with a version before 6.3.0
- 5 indicates an export file of OpenCms with a version before 6.5.6
- 6 indicates an export file of OpenCms with a version before 7.0.4
- 7 indicates an export file of OpenCms with a version after 7.0.3
- Specified by:
getVersion
in interfaceI_CmsImport
- Returns:
- the version of the import implementation
- See Also:
-
importAccessControlEntries
Imports an ACE from the current xml data.- See Also:
-
importData
Description copied from interface:I_CmsImport
Imports the data.- Specified by:
importData
in interfaceI_CmsImport
- Parameters:
cms
- the current users OpenCms contextreport
- a report object to output the progress information toparameters
- the parameters to use during the import- See Also:
-
importGroup
Import the current group from xml data. -
importOrgUnit
Imports the current organizational unit. -
importProject
Imports the current project. -
importRelations
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.
-
importResource
Imports a resource from the current xml data. -
importResourceAll
Imports the resource and access control entries. -
importResources
@Deprecated public void importResources(CmsObject cms, String importPath, I_CmsReport report, File importResource, ZipFile importZip, org.dom4j.Document docXml) Deprecated.Description copied from interface:I_CmsImport
Imports the resources.- Specified by:
importResources
in interfaceI_CmsImport
- Parameters:
cms
- the current users OpenCms contextimportPath
- the path in the OpenCms VFS to import intoreport
- a report object to output the progress information toimportResource
- the import-resource (folder) to load resources fromimportZip
- the import-resource (zip) to load resources fromdocXml
- themanifest.xml
file which contains the meta information of the imported files- See Also:
-
importUser
Imports a new user from the current xml data. -
importUserGroup
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:
-
importUserInfo
Creates a new additional information entry for the current user.- Parameters:
infoName
- the name of the additional information entryinfoType
- the type of the additional information entryinfoValue
- the value of the additional information entry
-
importUserRole
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:
-
increaseCounter
Increases the file counter. -
increaseTotalFiles
Increases the total number of files. -
matches
Description copied from interface:I_CmsImport
Checks if the file given as parameter matches this import version implementation.- Specified by:
matches
in interfaceI_CmsImport
- Parameters:
parameters
- the parameters to use during matching- Returns:
true
if the file can be imported by this import version implementation- Throws:
CmsImportExportException
- if something goes wrong- See Also:
-
rewriteParseables
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:
-
setAceFlags
Sets the aceFlags.- Parameters:
aceFlags
- the aceFlags to set- See Also:
-
setAcePermissionsAllowed
Sets the acePermissionsAllowed.- Parameters:
acePermissionsAllowed
- the acePermissionsAllowed to set- See Also:
-
setAcePermissionsDenied
Sets the acePermissionsDenied.- Parameters:
acePermissionsDenied
- the acePermissionsDenied to set- See Also:
-
setAcePrincipalId
Sets the acePrincipalId.- Parameters:
acePrincipalId
- the acePrincipalId to set- See Also:
-
setDateCreated
Sets the dateCreated.- Parameters:
dateCreated
- the dateCreated to set- See Also:
-
setDateExpired
Sets the dateExpired.- Parameters:
dateExpired
- the dateExpired to set- See Also:
-
setDateLastModified
Sets the dateLastModified.- Parameters:
dateLastModified
- the dateLastModified to set- See Also:
-
setDateReleased
Sets the dateReleased.- Parameters:
dateReleased
- the dateReleased to set- See Also:
-
setDestination
Sets the destination.- Parameters:
destination
- the destination to set- See Also:
-
setFlags
Sets the flags.- Parameters:
flags
- the flags to set- See Also:
-
setGroupDescription
Sets the group Description.- Parameters:
groupDescription
- the description to set
-
setGroupFlags
Sets the group Flags.- Parameters:
groupFlags
- the flags to set
-
setGroupName
Sets the group Name.- Parameters:
groupName
- the name to set
-
setGroupParent
Sets the group Parent.- Parameters:
groupParent
- the group Parent to set
-
setMembership
Sets the membership information that could not been set immediately, because of import order issues. -
setOrgUnitDescription
Sets the organizational unit description.- Parameters:
orgUnitDescription
- the description to set
-
setOrgUnitFlags
Sets the organizational unit flags.- Parameters:
orgUnitFlags
- the flags to set
-
setOrgUnitName
Sets the organizational unit name.- Parameters:
orgUnitName
- the name to set
-
setProjectDescription
Sets the project Description.- Parameters:
projectDescription
- the description to set
-
setProjectManagers
Sets the project Managers group name.- Parameters:
projectManagers
- the managers group to set
-
setProjectName
Sets the project Name.- Parameters:
projectName
- the name to set
-
setProjectUsers
Sets the project Users group name.- Parameters:
projectUsers
- the Users group to set
-
setPropertyName
Sets the propertyName.- Parameters:
propertyName
- the propertyName to set- See Also:
-
setPropertyValue
Sets the propertyValue.- Parameters:
propertyValue
- the propertyValue to set- See Also:
-
setRelationId
Sets the relationId.- Parameters:
relationId
- the relationId to set- See Also:
-
setRelationPath
Sets the relationPath.- Parameters:
relationPath
- the relationPath to set- See Also:
-
setRelationType
Sets the relationType.- Parameters:
relationType
- the relationType to set- See Also:
-
setResourceId
Sets the resourceId.- Parameters:
resourceId
- the resourceId to set- See Also:
-
setSource
Sets the source.- Parameters:
source
- the source to set- See Also:
-
setStructureId
Sets the structureId.- Parameters:
structureId
- the structureId to set- See Also:
-
setThrowable
Sets the throwable.- Parameters:
throwable
- the throwable to set
-
setType
Sets the type.- Parameters:
typeName
- the type to set- See Also:
-
setUserCreated
Sets the user Created.- Parameters:
userCreated
- the user Created to set
-
setUserCreated
Sets the userCreated.- Parameters:
userCreated
- the userCreated to set- See Also:
-
setUserDateCreated
Sets the user Date Created.- Parameters:
userDateCreated
- the date to set
-
setUserEmail
Sets the user email address.- Parameters:
userEmail
- the email address to set
-
setUserFirstname
Sets the user First name.- Parameters:
userFirstname
- the first name to set
-
setUserFlags
Sets the user Flags.- Parameters:
userFlags
- the flags to set
-
setUserLastModified
Sets the user Last Modified.- Parameters:
userLastModified
- the user Last Modified to set
-
setUserLastModified
Sets the userLastModified.- Parameters:
userLastModified
- the userLastModified to set- See Also:
-
setUserLastname
Sets the user Last name.- Parameters:
userLastname
- the last name to set
-
setUserName
Sets the user Name.- Parameters:
userName
- the name to set
-
setUserPassword
Sets the user Password.- Parameters:
userPassword
- the password to set
-
setVersion
Sets the export version from the manifest file.- Parameters:
version
- the export version to set
-
addAccountsGroupRules
Adds the XML digester rules for groups.- Parameters:
digester
- the digester to add the rules toxpath
- the base xpath for the rules
-
addAccountsOrgunitRules
protected void addAccountsOrgunitRules(org.apache.commons.digester3.Digester digester, String xpath) Adds the XML digester rules for organizational units.- Parameters:
digester
- the digester to add the rules toxpath
- the base xpath for the rules
-
addAccountsUserRules
Adds the XML digester rules for users.- Parameters:
digester
- the digester to add the rules toxpath
- the base xpath for the rules
-
addProjectRules
Adds the XML digester rules for projects.- Parameters:
digester
- the digester to add the rules toxpath
- the base xpath for the rules
-
addResourceAceRules
Adds the XML digester rules for resource access control entries.- Parameters:
digester
- the digester to add the rules toxpath
- the base xpath for the rules
-
addResourceAttributesRules
protected void addResourceAttributesRules(org.apache.commons.digester3.Digester digester, String xpath) Adds the XML digester rules for resource attributes.- Parameters:
digester
- the digester to add the rules toxpath
- the base xpath for the rules
-
addResourcePropertyRules
protected void addResourcePropertyRules(org.apache.commons.digester3.Digester digester, String xpath) Adds the XML digester rules for resource properties.- Parameters:
digester
- the digester to add the rules toxpath
- the base xpath for the rules
-
addResourceRelationRules
protected void addResourceRelationRules(org.apache.commons.digester3.Digester digester, String xpath) Adds the XML digester rules for resource relations.- Parameters:
digester
- the digester to add the rules toxpath
- the base xpath for the rules
-
checkImmutable
Checks if the resources is in the list of immutable resources.- Parameters:
resourceName
- the name of the resource- Returns:
true
orfalse
-
convertDigestEncoding
Converts a given digest to base64 encoding.- Parameters:
value
- the digest value in the legacy encoding- Returns:
- the digest in the new encoding
-
convertTimestamp
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- Returns:
- long value of the time stamp
-
createResourceObjectFromFields
Create a CmsResource object from the currently set field values.- Parameters:
translatedName
- the resource namesize
- the size- Returns:
- the new CmsResource object
-
findContentFiles
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.- Throws:
CmsImportExportException
- thrown when the manifest.xml can't be opened as stream.IOException
- thrown if the manifest.xml stream causes problems during parsing and/or closing.SAXException
- thrown if parsing the manifest.xml fails
-
getHelper
Gets the import helper instance.- Returns:
- the import helper
-
getIgnoredProperties
Returns the list of properties to ignore during import.- Returns:
- the list of properties to ignore during import
-
getImmutableResources
Returns the list of immutable resources.- Returns:
- the list of immutable resources
-
isFolderType
Checks if the given type name refers to a folder type.- Parameters:
typeName
- the type name- Returns:
- the type name
-
setDefaultsForEmptyResourceFields
Fills the unset fields for an imported resource with default values.- Throws:
CmsImportExportException
- if something goes wrong
-
importData(CmsObject, I_CmsReport, CmsImportParameters)
instead