Package org.fcrepo.kernel.api.services
Interface VersionService
public interface VersionService
Service for creating versions of resources
- Since:
- Feb 19, 2014
- Author:
- bbpennel, whikloj
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DateTimeFormatterTo format a datetime for use as a Memento path.static final DateTimeFormatterTo format a datetime as RFC-1123 with correct timezone. -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateVersion(Transaction transaction, FedoraId fedoraId, String userPrincipal) Explicitly creates a version for the resource at the path provided.
-
Field Details
-
MEMENTO_LABEL_FORMATTER
To format a datetime for use as a Memento path. -
MEMENTO_RFC_1123_FORMATTER
To format a datetime as RFC-1123 with correct timezone.
-
-
Method Details
-
createVersion
Explicitly creates a version for the resource at the path provided.- Parameters:
transaction- the transaction in which the resource residesfedoraId- the internal resource iduserPrincipal- the user principal
-