Interface I_VersionedCRUD
-
- All Known Subinterfaces:
I_CompositionAccess,I_FolderAccess,I_StatusAccess
- All Known Implementing Classes:
CompositionAccess,FolderAccess,FolderHistoryAccess,StatusAccess
public interface I_VersionedCRUDCommon interface for versioned objects, like compositions, folders and statuses.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description UUIDcommit(LocalDateTime timestamp, UUID contribution)Commit the object with the necessary metadata, which will be derived from the contribution.UUIDcommit(LocalDateTime timestamp, UUID committerId, UUID systemId, String description)Commit the object with the necessary metadata.intdelete(LocalDateTime timestamp, UUID contribution)Delete the object with the necessary metadata, which will be derived from the contribution.intdelete(LocalDateTime timestamp, UUID committerId, UUID systemId, String description)Delete the object with the necessary metadata.booleanupdate(LocalDateTime timestamp, UUID contribution)Update the object with the necessary metadata, which will be derived from the contribution.booleanupdate(LocalDateTime timestamp, UUID committerId, UUID systemId, String description, I_ConceptAccess.ContributionChangeType changeType)Update the object with the necessary metadata.
-
-
-
Method Detail
-
commit
UUID commit(LocalDateTime timestamp, UUID committerId, UUID systemId, String description)
Commit the object with the necessary metadata.- Parameters:
timestamp- Time of operationcommitterId- Audit committersystemId- Audit systemdescription- (Optional) Audit description- Returns:
- ID of object
-
commit
UUID commit(LocalDateTime timestamp, UUID contribution)
Commit the object with the necessary metadata, which will be derived from the contribution.- Parameters:
timestamp- Time of operationcontribution- Given contribution to use and derive audit data from- Returns:
- ID of object
-
update
boolean update(LocalDateTime timestamp, UUID committerId, UUID systemId, String description, I_ConceptAccess.ContributionChangeType changeType)
Update the object with the necessary metadata.- Parameters:
timestamp- Time of operationcommitterId- Audit committersystemId- Audit systemdescription- (Optional) Audit descriptionchangeType- Specific change type, because there are more than DELETED.- Returns:
- Boolean representing success of update
-
update
boolean update(LocalDateTime timestamp, UUID contribution)
Update the object with the necessary metadata, which will be derived from the contribution.- Parameters:
timestamp- Time of operationcontribution- Given contribution to use and derive audit data from- Returns:
- Boolean representing success of update
-
delete
int delete(LocalDateTime timestamp, UUID committerId, UUID systemId, String description)
Delete the object with the necessary metadata.- Parameters:
timestamp- Time of operationcommitterId- Audit committersystemId- Audit systemdescription- (Optional) Audit description- Returns:
- Number of deleted objects
-
delete
int delete(LocalDateTime timestamp, UUID contribution)
Delete the object with the necessary metadata, which will be derived from the contribution.- Parameters:
timestamp- Time of operationcontribution- Given contribution to use and derive audit data from- Returns:
- Number of deleted objects
-
-