Package org.fcrepo.kernel.api.services
Interface VersionService
-
- All Known Implementing Classes:
VersionServiceImpl
public interface VersionService
Service for creating versions of resources- Since:
- Feb 19, 2014
- Author:
- bbpennel, whikloj
-
-
Field Summary
Fields Modifier and Type Field Description static DateTimeFormatter
MEMENTO_LABEL_FORMATTER
To format a datetime for use as a Memento path.static DateTimeFormatter
MEMENTO_RFC_1123_FORMATTER
To format a datetime as RFC-1123 with correct timezone.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
createVersion(Transaction transaction, FedoraId fedoraId, String userPrincipal)
Explicitly creates a version for the resource at the path provided.
-
-
-
Field Detail
-
MEMENTO_LABEL_FORMATTER
static final DateTimeFormatter MEMENTO_LABEL_FORMATTER
To format a datetime for use as a Memento path.
-
MEMENTO_RFC_1123_FORMATTER
static final DateTimeFormatter MEMENTO_RFC_1123_FORMATTER
To format a datetime as RFC-1123 with correct timezone.
-
-
Method Detail
-
createVersion
void createVersion(Transaction transaction, FedoraId fedoraId, String userPrincipal)
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
-
-