The asset export transfers assets or asset structures to other systems. You can define server actions for your use case that export all or part of certain asset structures. This is done by defining which relationships like relations or asset references to follow or exclude. There is a manual and an automatic server action.
Context
There is a manual and an automatic server action for the asset export.
The manual asset export and import is available in the censhare Client.
The manual import is also available in censhare Web.
The configuration is done in the censhare Admin Client.
You can configure several server actions for different asset structures.
Introduction
Assets and their relationships form the data world of censhare. Asset structures can form complex objects in censhare. For example, Layout assets can be placed in an Issue asset. The Layout assets can contain Text assets and Image assets. Text assets and Image assets can have a Person asset that stores the author.
If you want to transfer such an asset structure, you cannot just export the assets and import them into another system. You also must maintain different relationships. Following all different kinds of relationship from the top of an asset structure and including all assets, might result in large exports. These can also contain assets that should not be transferred. To control which assets are exported, you can configure which types of relationships to include and which assets to filter out.
To transfer such an asset structure to another censhare system, you must export and then import the assets into the other systems. This export can be configured.
First, you can filter the assets. For example, filter for certain asset types, domains, or features.
Second, you can define which types of relationship censhare follows.
There are two ways to filter based on the relationship type:
White-listing:Include only certain relationships of that relationship type. All others are ignored.
Black-listing:Exclude certain relationships of that relationship type. All others are included.
The export starts from a root asset that is at the top of the asset structure. This root asset can be selected manually by a user or automatically by the system. From the root asset, censhare follows all configured types of relationships to the neighbor assets.
Censhare continues to follow the relationships to neighbor assets until there are no more relationships to follow. If there is a filter that matches an asset, this asset is ignored and censhare does not follow relationships that start from there.
After the export, censhare compresses all results into a Zip file.
Note:TheAsset Export/Importmodule includes several server actions for import and export that are not related to this server action.
The different relationships
censhare can follow three different types of relationships:
Relations are directed or non-directed. A directed relation has a parent asset and a child asset. If an asset has a child relation, the relation points to the asset. If an asset has a parent relation, the relation points to another asset. For example, the standard relation typeAssignmentis directed: anImageasset (child) is assigned to aGroupasset (parent).
A non-directed relation has no child or parent asset. There are just two assets that are connected. For example, the standard relation typeSimilaris non-directed.
A relation type can have sub-relation types. For example, the relation typeAssignmentcan have, among others, the sub-relation typesAuthorandMain content. The Asset relation type table in theMaster datasection of the censhare Admin-Client provides a list of all relation types.
For the user, asset references behave like asset relations. However, the technical concept is different. An asset reference is a feature of an asset that stores a reference to another asset. This reference can be the ID or the resource key of an asset. There are no sub-references. You must configure asset references separately from asset relations.
You can configure five different types of filters:
parent relations (relationship type)
child relations (relationship type)
asset reference features: stores an asset ID (relationship type)
features: stores a resource key (relationship type)
assets
Note:Non-directed relations are configured in the parts for child and parent relations.
Include or exclude relationship types
For the filtering, you need to know which of relationships and relationship types are used and which ones you want to export. This information helps you determine if you want to use black-listing or white-listing for a certain relationship type. To export mostly all relationship types of the asset structure, exclude the relationship types that you do not need. If you only want to have some specific relationship types, include these relationships.
For example, a simple asset structure with anImageasset that has the following child relations:
Marker
Author
Message
Task
For your export, you only want to have the related Marker assets. In this case, you only need one of the four child relations.
You can include the child relationMarkeror exclude the child relationsAuthor,Message, andTask.
For this example, the Include option requires less work than the Exclude option.
Directed relations
If an asset is part of an asset relation with the attributeType= "directed", it can be the child or the parent asset in this relation. The relation can start from this asset (parent) or end at this asset (child). You can configure whether censhare follows (include) or does not follow (exclude) a relation:
If the asset is the child
If the asset is the parent
If the asset is the child or parent
If the asset is not the child or parent
There are eight different ways to handle relations of an asset:
Child relation
Parent relation
Include (follow)
Yes
Exclude (do not follow)
Yes
Include (follow)
No
Exclude (do not follow)
Yes
Include (follow)
Yes
Exclude (do not follow)
No
Include (follow)
No
Exclude (do not follow)
No
Exclude (do not follow)
Yes
Include (follow)
Yes
Exclude (do not follow)
No
Include (follow)
Yes
Exclude (do not follow)
Yes
Include (follow)
No
Exclude (do not follow)
No
Include (follow)
No
Non-directed relations
Note:Non-directed relations and directed relations are configured in the sameChild relationsandParent relationssections.
But the configuration then behaves differently because there are no child or parent assets. If you configure a non-directed relation both in theChildand theParent relationssection, theExcludesetting supersedes theIncludesetting. For example, the Relation typeSimilaris configured in theChild relationssection withIncludeand in theParent relationssection with Exclude.ExcludesupersedesInclude. In this case, censhare does not follow any relations with the typeSimilar. Here are the setting combinations and results:
Child relation section
Parent relation section
Result
Include (follow)
Yes
Exclude (do not follow)
Yes
Include (follow)
Include (follow)
No
Exclude (do not follow)
Yes
Exclude (do not follow)
Include (follow)
Yes
Exclude (do not follow)
No
Exclude (do not follow)
Include (follow)
No
Exclude (do not follow)
No
Exclude (do not follow)
Exclude (do not follow)
Yes
Include (follow)
Yes
Include (follow)
Exclude (do not follow)
No
Include (follow)
Yes
Exclude (do not follow)
Exclude (do not follow)
Yes
Include (follow)
No
Exclude (do not follow)
Exclude (do not follow)
No
Include (follow)
No
Exclude (do not follow)
Features filter
Here you can select which features that reference assets via their resource key to include or exclude. The asset with this resource key is also exported. When this asset is imported on another system, censhare checks whether an asset with this resource key already exists. If an asset with this resource key already exists on the system, the existing asset is not updated. censhare does not overwrite values in the existing asset with the asset in the import file.
If an asset with this resource key does not exist on the system, censhare creates an asset. This asset also receives the resource key.
Note:References with resource keys are configured in the Features section in the configuration dialog in the censhare Admin Client.
Asset references features filter
Here you can select which features to follow that references assets via their asset ID. The asset with this asset ID is then also exported. When it is imported on another system, censhare always creates a new asset with a new ID. Asset references features behave like relations.
Note:References with asset IDs are configured in theAsset references featuressection in the configuration dialog in the censhare Admin Client.
Server actions
Manual and the automatic server action
censhare allows you to execute the Asset export manually or via asset automation. This means you can define the same filters as server action or asset automation. For the automatic server action, you then must define which kind of events trigger the execution. The automatic asset export stores the result in a defined directory of the assigned file system.
More than one export server action
If one set of filters does not fit all asset structures you want to export, create different Asset export actions, and give them meaningful names.
Administration rights
You need one of the following administration permissions to access the Asset Export/Import Module and create server actions and asset automation entries:
Admin configuration
Admin all
Steps
Configure Asset Export
General setup
Set the name for the server action:Enter the name in theTitlefield. This name is shown as entry in theServer actionsdrop-down list.
If you only want to export the selected asset, do not selectHierarchical.
Export asset structure
If you want to export an asset structure, selectHierarchical.
WhenHierarchicalis selected, the following sections are available:
Parent relations
Child relations
Features
Asset reference features
Asset filters
Parent relations
In theSelection typefield, select if you want toIncludeorExcludeparent relations. By default,Includeis selected.
If you want to include or exclude all parent relations, checkSelect all. Thebutton below the checkbox to select a single parent relation disappears.
To add a parent relation:
Click thebutton to add a certain relation.
Select theRelation type.
Select a sup-type. If you select "*", all sub-types are included. If you select " ", no sub-type is included.
Add sub-types until the full path of the relation is entered.
To delete a parent relation:
Click basket.
Child relations
In theSelection typefield, select if you want toIncludeorExcludechild relations. By default,Includeis selected.
If you want to include or exclude all parent relations, checkSelect all. Thebutton below the checkbox to select a single-child relation disappears.
By default, all child relations for the following relation types are included:
Planning
Placement
Variant
Assignment
You can adapt these entries, delete them, or add other child relations.
To add a child relation:
Click thebutton to add a certain relation.
Select theRelation type.
Select a sup-type. If you select "*", all sub-types are included. If you select " ", no sub-type is included.
Add sub-types until the full path of the relation is entered.
To delete a child relation:
Clickbasket.
Features
In theSelection typefield, select if you want toIncludeorExcludeFeatures (asset references by resource key). By default,Includeis selected.
To add a Feature:
Click thebutton.
Select theFeaturetype.
To delete aFeatureentry:
Clickbasket.
Asset reference features
In theSelection typefield, select if you want toIncludeorExcludeAsset reference features (asset references by asset ID). By default,Includeis selected.
To add anAsset reference feature:
Click thebutton.
Select the Asset reference feature type.
To delete an Asset reference features entry:
Clickbasket.
Asset filters
You can exclude certain assets from the export:
To open a search dialog, click the frame that is located to the right of theIgnorelabel.
A search dialog opens.
Enter the search criteria.
To apply your filter criteria and close the dialog, click OK.
Special setup
Zip64:censhare can use theZip64format for zipping. Zip64 can create files that are larger than 2 GB. We recommend this option.
Add json files:The content of the assets is always stored as XML in the export file. If this box is checked, censhare also adds the content of the assets in the json format.
The parameters define how work with the asset events that trigger the server action.
Trigger events
This part defines on which events the asset automation executes the asset export.
Asset filters
Add filters that define which assets are processed by the automatic server action.
Batch handling of events
Instead of handling events immediately, censhare can also store them and process them later. For example, batch handling is useful if many events occur and only the result of all events for an asset is important.
If activated, censhare fetches the events in chunks from the database, groups the events and creates a custom event that is processed later.
Field
Comment
Batch handled events
Select to activate the batch handling.
Cron pattern
Defines when the custom events are processed.
Group event by
Select the grouping criteria for the asset events. At the moment, this is the asset ID only.
Event buffer size
Enter the number of events that censhare fetches from the database for one chunk.
Asset structure
The configuration of the asset structure is the same as in the manual server action.
Special setup
Here you define the folder where censhare stores the ZIP files of exported assets.
After you change the configuration of the asset export, you must update the censhare Servers in the censhare Admin Client.
If there is only one censhare Server:
SelectUpdate server configurationin the top navigation of the censhare Admin Client.
If there are a Master Server and one or more Remote Servers:
SelectSynchronize remote serverin the top navigation of the censhare Admin Client.
This action updates the Master Server first and then transfers the configuration to the Remote Servers.
Result
You know how to set up manual and automatic asset exports in the censhare Admin-Client. You know the different relationship types and how to configure which relationship types censhare includes in the asset export.
JavaScript errors detected
Please note, these errors can depend on your browser setup.
If this problem persists, please contact our support.