Interface CollectionWriter
- All Known Implementing Classes:
CollectionWriterES,CollectionWriterOS
public interface CollectionWriter
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRoleToCollection(String collectionId, List<CollectionRoleRequestDto> rolesToAdd, String userId) voidaddScopeEntriesToCollection(String userId, String collectionId, List<CollectionScopeEntryDto> scopeUpdates) default voidcreateNewCollection(CollectionDefinitionDto collectionDefinitionDto) default IdResponseDtocreateNewCollectionAndReturnId(String userId, PartialCollectionDefinitionRequestDto partialCollectionDefinitionDto) default IdResponseDtocreateNewCollectionAndReturnId(String userId, PartialCollectionDefinitionRequestDto partialCollectionDefinitionDto, String id, boolean automaticallyCreated) voiddeleteCollection(String collectionId) voiddeleteScopeEntryFromAllCollections(String scopeEntryId) voidpersistCollection(String id, CollectionDefinitionDto collectionDefinitionDto) voidremoveRoleFromCollectionUnlessIsLastManager(String collectionId, String roleEntryId, String userId) voidremoveScopeEntries(String collectionId, List<String> scopeEntryIds, String userId) voidremoveScopeEntry(String collectionId, String scopeEntryId, String userId) voidupdateCollection(CollectionDefinitionUpdateDto collection, String id) voidupdateRoleInCollection(String collectionId, String roleEntryId, CollectionRoleUpdateRequestDto roleUpdateDto, String userId) voidupdateScopeEntity(String collectionId, CollectionScopeEntryUpdateDto scopeEntry, String userId, String scopeEntryId)
-
Field Details
-
DEFAULT_COLLECTION_NAME
- See Also:
-
UPDATE_ENTITY_SCRIPT_CODE
- See Also:
-
REMOVE_SCOPE_ENTRY_FROM_COLLECTION_SCRIPT_CODE
- See Also:
-
REMOVE_SCOPE_ENTRY_SCRIPT_CODE
- See Also:
-
REMOVE_SCOPE_ENTRIES_SCRIPT_CODE
- See Also:
-
UPDATE_SCOPE_ENTITY_SCRIPT_CODE
- See Also:
-
ADD_ROLE_TO_COLLECTION_SCRIPT_CODE
- See Also:
-
UPDATE_ROLE_IN_COLLECTION_SCRIPT_CODE
- See Also:
-
REMOVE_ROLE_FROM_COLLECTION_SCRIPT_CODE
- See Also:
-
REMOVE_ROLE_FROM_COLLECTION_UNLESS_IS_LAST_MANAGER
- See Also:
-
LOG
static final org.slf4j.Logger LOG
-
-
Method Details
-
createNewCollectionAndReturnId
default IdResponseDto createNewCollectionAndReturnId(String userId, PartialCollectionDefinitionRequestDto partialCollectionDefinitionDto) -
createNewCollectionAndReturnId
default IdResponseDto createNewCollectionAndReturnId(String userId, PartialCollectionDefinitionRequestDto partialCollectionDefinitionDto, String id, boolean automaticallyCreated) -
createNewCollection
-
updateCollection
-
deleteCollection
-
addScopeEntriesToCollection
void addScopeEntriesToCollection(String userId, String collectionId, List<CollectionScopeEntryDto> scopeUpdates) -
deleteScopeEntryFromAllCollections
-
updateScopeEntity
void updateScopeEntity(String collectionId, CollectionScopeEntryUpdateDto scopeEntry, String userId, String scopeEntryId) -
removeScopeEntries
void removeScopeEntries(String collectionId, List<String> scopeEntryIds, String userId) throws NotFoundException - Throws:
NotFoundException
-
removeScopeEntry
void removeScopeEntry(String collectionId, String scopeEntryId, String userId) throws NotFoundException - Throws:
NotFoundException
-
addRoleToCollection
void addRoleToCollection(String collectionId, List<CollectionRoleRequestDto> rolesToAdd, String userId) -
updateRoleInCollection
void updateRoleInCollection(String collectionId, String roleEntryId, CollectionRoleUpdateRequestDto roleUpdateDto, String userId) -
removeRoleFromCollectionUnlessIsLastManager
-
persistCollection
-