The AssetMarker-Plugin can be used to mark assets or nodes with bullets according to predefined criteria.
To be configured in {home}/appserver/conf/custom.properties
type: String, required: yes, default: -
License key (delivered by brix IT Solutions)
type: list of string, required: yes, default: noAssetType,invalidInformationFields,unlinked,unreleased,availability,locked,duplicate,conversionStatus
This property defines which bullets are displayed on the assets. The order of the bullets in the property also matches the actual order of the bullets on the assets.
To add a bullet, define a name and list it with the other bullets.
For example: guiPlugin.bullets.asset=noAssetType,invalidInformationFields,validMetadata,unlinked,unreleased,availability,locked,duplicate,conversionStatus,myBullet
. Here myBullet would be added.
The standard CELUM bullets must also be listed in the property, otherwise they'll be missing afterwards.
The name of the bullet is used for its remaining configuration, therefore {bulletName}
is to be replaced by the individual name of each instance.
type: list of string, required: no, default: subscription,driveSync,flowboard
This property defines which bullets are displayed on the nodes. The order of the bullets in the property also matches the actual order of the bullets on the nodes.
To add a bullet, define a name and list it with the other bullets.
For example: guiPlugin.bullets.asset=subscription,driveSync,flowboard,myBullet
. Here myBullet would be added.
The standard CELUM bullets must also be listed in the property, otherwise they'll be missing afterwards.
The name of the bullet is used for its remaining configuration, therefore {bulletName}
is to be replaced by the individual name of each instance.
type: string, required: yes, default: -
This property specifies the relative path to the bullet icon, e.g. ../images/16x16_black/visible.png
.
Each bullet needs an icon with size 16 × 16 px, the actual content should be ~12 × 12 px, background transparent.
type: string, required: yes, default: -
This property sets the mouseover-title on the bullet. For multilanguage-support, add your messages to appserver/lang/customMessages_xy.properties
and use the key here.
Example:
assetMarker.{bulletName}.title=assetMarker.myTitle
appserver/lang/customMessages_de.properties
contains assetMarker.myTitle=Mein Titel
appserver/lang/customMessages_en.properties
contains assetMarker.myTitle=My Title
type: boolean, required: no, default: false, since: 1.5
Inform the bullet that the title contains spring message placeholders, such as {0}
, which will then be populated with the actual value of the information field of said asset. Only available when handling infofields. Use sparingly!
Example:
appserver/lang/customMessages_de.properties
contains assetMarker.myTitle=Wert ist: {0}
appserver/lang/customMessages_en.properties
contains assetMarker.myTitle=Value is: {0}
type: list of long, required: no, default: -
If this property is set, only assets that have one of the configured Assettypes will have the bullet.
type: list of long, required: no, default: -
If this property is set, only assets that are linked to one of the configured nodes (or one of its children) will have the bullet.
type: list of long, required: no, default: -
If this property is set, only assets that are linked to one of the configured Nodetypes will have the bullet.
type: string, required: no, default: -
This property can be set for every Informationfield. If this property is configured for an Informationfield, only assets that have the configured value in these fields will have the bullet. The configuration of this property depends on the Type of the Informationfield as shown below. Furthermore, the value can be set to 'isEmpty' and 'notEmpty' for all types.
For better performance, we recommend that you add the property
customfields.list.asset.required.field.ids
with a list of all the information fields that you configure in the AssetMarker (e.g.customfields.list.asset.required.field.ids=108,118,138
). If you don't explicitly tell CELUM to pre-load these information field values in the list response, the AssetMarker will have to reload the asset with those information field values, which can be slow.
The value xy is a daycount. If the value is set to -1 it means infinite days from today. (e.g. next -1 means everyday in the future)
x and y are numbers (resp. doubles). Ranges with '()' / '[]' / '(]' are also allowed.
You can prefix the expected value with a
!
to invert the result (since 1.4)
type: boolean, required: no, default: false, since: 1.4
When configuring multiple assetMarker.{bulletName}.infofield.{id}
per asset marker, the conditions are joined with AND by default. This property allows you to use OR instead, but just within the information fields.
type: set of long, required: no, default: -
This property takes a comma separated list of informationfield-Ids that should not be empty.
type: boolean, required: no, default: false
If this property is set to true, the bullet is only shown if the asset is not linked to any other node than the ones configured in the property assetMarker.{bulletName}.nodes
type: list of string, required: no, default: -
This property takes a comma separated whitelist of file-extensions that the assets should have.
type: boolean, required: no, default: false
Inverts the assetMarker.{bulletName}.nodes property if set to true.
type: boolean, required: no, default: false
Inverts the assetMarker.{bulletName}.asssetTypes property if set to true.
type: boolean, required: no, default: false
Inverts the assetMarker.{bulletName}.nodeTypes property if set to true.
type: boolean, required: no, default: false
If enabled, the asset marker is for nodes not assets (if true, guiPlugin.bullets.node is required)
type: string, required: no, default: -
This property allows to use a custom bean to define the bullet rules.
List of available custom beans:
title
is set to message assetMarker.version=Version {0}
in order to show the current version. Note that this assumes you never delete versions, as actually loading all versions of all assets would be very slow, i.e. it will still show up when you add version 1 and then delete version 0).type: string, required: no, default: -
This property defines the category of the text-icon value. One of: infofield
, fileinfo
, property
type: string, required: no, default: -
This property defines the text-icon value. Possible values depending on key:
id
of the information field (long)type: int, required: no, default: -, since 1.3.13
The maximum length of the text that is displayed. Useful if you have a keyword like "EN - English" but only wish to show "EN".
type: path to file, required: no, default: -, since 1.8, not for NOVA
Path to an image you wish to show only a part of, depending on the input value. Basically this only servers one purpose, and that is to display a "5 stars"-style marker that has a better resolution than a single star. Starting with the following image (height needs to be 16px, width is dynamic):
Supposing the information field you provided via assetMarker.{bulletName}.textIcon.value
has a value of 3.7, it generates:
You can set the range through ..Min
(below which nothing will be displayed) and ..Max
(used to calculate the percentage):
assetMarker.ratingTextIcon.title=rating
assetMarker.ratingTextIcon.custom=assetMarkerTextIcon
assetMarker.ratingTextIcon.textIcon.key=infofield
assetMarker.ratingTextIcon.textIcon.value=155
assetMarker.ratingTextIcon.textIcon.percentageWidthImage=/opt/celum/home/appserver/META-INF/resources/images/5stars.png
assetMarker.ratingTextIcon.textIcon.percentageWidthMin=2
assetMarker.ratingTextIcon.textIcon.percentageWidthMax=5
type: string, required: yes, default: -
This property configures the bullet depending on the last modified date. It's configured like a date field:
guiPlugin.bullets.asset=noAssetType,invalidInformationFields,unlinked,unreleased,availability,locked,duplicate,conversionStatus,groupBullet,progressBullet,copyrightValidEnd
customfields.list.asset.required.field.ids=165,235
# assets that are linked to a specific node type
assetMarker.groupBullet.imagePath=../images/bullets/group.png
assetMarker.groupBullet.title=maintab.grouptitle
assetMarker.groupBullet.nodeTypeIds=106
# assets that have the apprival dropdown set to pending
assetMarker.progressBullet.imagePath=../images/bullets/asset_in_progress_16_blue.png
assetMarker.progressBullet.title=infofield.approval.pending
assetMarker.progressBullet.infofield.165=2
# assets that have a copyright date in the past
assetMarker.copyrightValidEnd.imagePath=../images/bullets/until_red.png
assetMarker.copyrightValidEnd.title=assetMarker.copyrightValidEnd
assetMarker.copyrightValidEnd.infofield.235=last -1
Asset Marker | CELUM (min. version) |
---|---|
1.0 - 1.2.1 | 5.12.2 - 5.13.2 |
1.2.2 - 1.3.8 | 5.13.3 |
1.3.8+ | 5.13.4 (tested up to 6.16) |
Released 2018-01-28
Initial Version
Released 2018-06-12
Add isDateControlled marker
Released 2018-08-09
Add the nodeExclusive property
Released 2018-08-27
Add texticon marker
Released 2018-11-08
Add number and double field logic
Released 2020-02-18 CELUM 6.4 compatible
Released: 2021-07-20
!
to infofield valuesReleased: 2021-10-01
Released: 2021-11-23