Asset Validation

The "Asset Validation" plugin allows to validate assets and marks them if they do not pass the validation.

Properties

To be configured in {home}/appserver/conf/custom.properties

assetValidation.license

type: String, required: yes, default: -

License key (delivered by brix cross media)

assetValidation.validators

type: List of String (comma-separated), required: yes, default: -

This property takes a list of all validators that are enabled.

Validators

Every Validator has its own properties. For every validator, the following properties are the same. Replace validatorName with the name of the validator specified in the section for the validator further down.

assetValidation.validatorName.nodeIdValid

type: long, required: no, default: -

If this property is set, the valid assets are collected in the configured node. This can help to find the valid assets and get an overview. Initially, all the assets can be validated and added to the node by running the "Revalidate Assets"-Task in "General"-Tab in System Tasks.

assetValidation.validatorName.nodeIdInvalid

type: long, required: no, default: -

If this property is set, the invalid assets are collected in the configured node. This can help to find the valid assets and get an overview. Initially, all the assets can be validated and added to the node by running the "Revalidate Assets"-Task in "General"-Tab in System Tasks.

assetValidation.validatorName.imagePath

type: String, required: no, default: -

This property takes a 16x16 px image which is shown on invalid assetes. NOTE: to show the bullet, the validatorName needs to be added to the list of bullets in the property "guiPlugin.bullets.asset=". This property is global and maybe also used by other plugins. If not, the celum bullets need to be added to the list, e.g. guiPlugin.bullets.asset=noAssetType,invalidInformationFields,unlinked,unreleased,availability,locked,duplicate,conversionStatus,fileTypeWhitelistValdiator

File Type Whitelist

This validator takes a list of allowed file extensions.

  • validatorName: fileTypeWhiteList
  • bulletName: fileTypeWhiteListValidator
assetValidation.fileTypeWhiteList.whitelist

type: List of String (comma-separated), required: yes, default: -

All file extensions set in this property are allowed. Assets with one of these extensions are valid.

Image Resolution Validator

This valdiator takes a minWidth and / or minHeight in pixels an image must have.

  • validatorName: imageResolution
  • bulletName: imageResolutionValidator
assetValidation.imageResolution.mode

type: String, required: no, default: OR

This property can be set to 'OR' or 'AND'. 'OR': The image needs to have either minWidht or minHeight to be valid. 'AND': An image needs to have minWidth and minHeight to be valid.

assetValidation.imageResolution.minWidth

type: long, required: no, default: 0

This property takes the minWidth an image must have. Note: If the imageResolution.mode is set to OR a valid image may not have the set minWidth since the minHeigt may be reached.

assetValidation.imageResolution.minHeight

type: long, required: no, default: 0

This property takes the minHeight an image must have. Note: If the imageResolution.mode is set to OR a valid image may not have the set minHeight since the minWidth may be reached.

Asset Name Validator

This Validator takes a list of forbidden Strings that are not allowed in the asset name.

  • validatorName: assetNameValidator
  • bulletName: assetNameValidator
assetValidation.assetNameValidator.notAllowed

type: List of String (comma-separated), required: yes, default: -

This property takes a list of strings that are not allowed in the asset name.

Release Notes

1.0

Initial Version