Class AuthorizedCollectionService
java.lang.Object
io.camunda.optimize.service.security.AuthorizedCollectionService
-
Constructor Summary
ConstructorsConstructorDescriptionAuthorizedCollectionService(CollectionReader collectionReader, AbstractIdentityService identityService) -
Method Summary
Modifier and TypeMethodDescriptiongetAuthorizedCollectionAndVerifyUserAuthorizedToManageOrFail(String userId, String collectionId) getAuthorizedCollectionDefinitionOrFail(String userId, String collectionId) getUsersCollectionResourceRole(String userId, String collectionId) voidverifyUserAuthorizedToEditCollectionResources(String userId, String collectionId) voidverifyUserAuthorizedToEditCollectionRole(String userId, String collectionId, String roleId)
-
Constructor Details
-
AuthorizedCollectionService
public AuthorizedCollectionService(CollectionReader collectionReader, AbstractIdentityService identityService)
-
-
Method Details
-
getUsersCollectionResourceRole
public Optional<RoleType> getUsersCollectionResourceRole(String userId, String collectionId) throws NotFoundException, ForbiddenException - Throws:
NotFoundExceptionForbiddenException
-
getAuthorizedCollectionDefinitionOrFail
public AuthorizedCollectionDefinitionDto getAuthorizedCollectionDefinitionOrFail(String userId, String collectionId) -
getAuthorizedCollectionAndVerifyUserAuthorizedToManageOrFail
public AuthorizedCollectionDefinitionDto getAuthorizedCollectionAndVerifyUserAuthorizedToManageOrFail(String userId, String collectionId) -
verifyUserAuthorizedToEditCollectionResources
public void verifyUserAuthorizedToEditCollectionResources(String userId, String collectionId) throws NotFoundException, ForbiddenException - Throws:
NotFoundExceptionForbiddenException
-
verifyUserAuthorizedToEditCollectionRole
public void verifyUserAuthorizedToEditCollectionRole(String userId, String collectionId, String roleId) throws NotFoundException, ForbiddenException - Throws:
NotFoundExceptionForbiddenException
-
getAuthorizedCollectionDefinitions
-