Interface I_VersionedCRUD
- All Known Subinterfaces:
I_CompositionAccess,I_FolderAccess,I_StatusAccess
- All Known Implementing Classes:
CompositionAccess,FolderAccess,FolderHistoryAccess,StatusAccess
public interface I_VersionedCRUD
Common interface for versioned objects, like compositions, folders and statuses.
-
Method Summary
Modifier and TypeMethodDescriptioncommit(LocalDateTime timestamp, UUID contribution) Commit the object with the necessary metadata, which will be derived from the contribution.commit(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 Details
-
commit
Commit the object with the necessary metadata.- Parameters:
timestamp- Time of operationcommitterId- Audit committersystemId- Audit systemdescription- (Optional) Audit description- Returns:
- ID of object
-
commit
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
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
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
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
-