Interface ScopeValidator


  • public interface ScopeValidator
    • Method Detail

      • checkRead

        void checkRead​(com.flower.docs.domain.scope.Scope scope)
      • checkUpdate

        void checkUpdate​(com.flower.docs.domain.scope.Scope scope)
      • checkCreationValidity

        void checkCreationValidity​(java.util.List<com.flower.docs.domain.scope.Scope> scopes)
                            throws com.flower.docs.domain.exception.FunctionalException,
                                   com.flower.docs.domain.exception.TechnicalException
        Throws:
        com.flower.docs.domain.exception.FunctionalException
        com.flower.docs.domain.exception.TechnicalException
      • checkExistence

        void checkExistence​(java.lang.String scope)
                     throws com.flower.docs.domain.exception.TechnicalException,
                            com.flower.docs.domain.exception.FunctionalException
        Throws:
        com.flower.docs.domain.exception.TechnicalException
        com.flower.docs.domain.exception.FunctionalException
      • checkUpdateValidity

        void checkUpdateValidity​(java.util.List<com.flower.docs.domain.scope.Scope> scopes)
                          throws com.flower.docs.domain.exception.FunctionalException,
                                 com.flower.docs.domain.exception.TechnicalException
        Throws:
        com.flower.docs.domain.exception.FunctionalException
        com.flower.docs.domain.exception.TechnicalException
      • checkExistence

        void checkExistence​(java.util.List<java.lang.String> scopes)
                     throws com.flower.docs.domain.exception.TechnicalException,
                            com.flower.docs.domain.exception.FunctionalException
        Throws:
        com.flower.docs.domain.exception.TechnicalException
        com.flower.docs.domain.exception.FunctionalException
      • checkUserIsAllowedAndSetCurrentScope

        void checkUserIsAllowedAndSetCurrentScope​(java.lang.String scope)
                                           throws com.flower.docs.domain.exception.FunctionalException
        Throws:
        com.flower.docs.domain.exception.FunctionalException
      • checkDelete

        void checkDelete​(java.util.List<com.flower.docs.domain.common.Id> ids)
                  throws com.flower.docs.domain.exception.FunctionalException,
                         com.flower.docs.domain.exception.TechnicalException
        Throws:
        com.flower.docs.domain.exception.FunctionalException
        com.flower.docs.domain.exception.TechnicalException