Interface ScopeValidator
-
public interface ScopeValidator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
checkCreationValidity(java.util.List<com.flower.docs.domain.scope.Scope> scopes)
void
checkDelete(java.util.List<com.flower.docs.domain.common.Id> ids)
void
checkExistence(java.lang.String scope)
void
checkExistence(java.util.List<java.lang.String> scopes)
void
checkRead(com.flower.docs.domain.scope.Scope scope)
void
checkUpdate(com.flower.docs.domain.scope.Scope scope)
void
checkUpdateValidity(java.util.List<com.flower.docs.domain.scope.Scope> scopes)
void
checkUserIsAllowedAndSetCurrentScope(java.lang.String scope)
void
setService(ScopeService service)
-
-
-
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
-
setService
void setService(ScopeService service)
-
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
-
-