Class AssetAttachmentValidator

java.lang.Object
overit.geocallapp.wfm.orchestrator.assets.rs1.asset.attachment.AssetAttachmentValidator
All Implemented Interfaces:
Validator<overit.geocallapp.wfm.documents.bl.attachment.BOAttachment>

public class AssetAttachmentValidator extends Object implements Validator<overit.geocallapp.wfm.documents.bl.attachment.BOAttachment>
Validator for relation between an asset and an attachment.
  • Constructor Details

    • AssetAttachmentValidator

      public AssetAttachmentValidator()
  • Method Details

    • make

      public static AssetAttachmentValidator make(Long assetId)
    • getAssetId

      public Long getAssetId()
    • setAssetId

      public void setAssetId(Long assetId)
    • validate

      public void validate(overit.geocallapp.wfm.documents.bl.attachment.BOAttachment attachment) throws DAValidateException
      Description copied from interface: Validator
      Validates the provided object according to the implementation's validation rules.
      Specified by:
      validate in interface Validator<overit.geocallapp.wfm.documents.bl.attachment.BOAttachment>
      Parameters:
      attachment - the object to validate
      Throws:
      DAValidateException - if the object fails validation