Package org.fcrepo.kernel.api.utils
Class RelaxedPropertiesHelper
- java.lang.Object
-
- org.fcrepo.kernel.api.utils.RelaxedPropertiesHelper
-
public class RelaxedPropertiesHelper extends Object
Some server managed triples can have the prohibition on user-management overridden. While the server still updates them implicitly, it may be possible in some cases for a user request to override them.- Author:
- Mike Durbin
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetCreatedBy(Iterable<org.apache.jena.rdf.model.Statement> statements)Gets the created by user (if any) that is included within the statements.static CalendargetCreatedDate(Iterable<org.apache.jena.rdf.model.Statement> statements)Gets the created date (if any) that was included in the statements.static StringgetModifiedBy(Iterable<org.apache.jena.rdf.model.Statement> statements)Gets the modified by user (if any) that was included within the statements.static CalendargetModifiedDate(Iterable<org.apache.jena.rdf.model.Statement> statements)Gets the modified date (if any) that was included within the statements.
-
-
-
Method Detail
-
getCreatedDate
public static Calendar getCreatedDate(Iterable<org.apache.jena.rdf.model.Statement> statements)
Gets the created date (if any) that was included in the statements.- Parameters:
statements- statements to consider- Returns:
- the date that should be set for the CREATED_DATE or null if it should be untouched
-
getCreatedBy
public static String getCreatedBy(Iterable<org.apache.jena.rdf.model.Statement> statements)
Gets the created by user (if any) that is included within the statements.- Parameters:
statements- statements to consider- Returns:
- the date that should be set for the CREATED_BY or null if it should be untouched
-
getModifiedDate
public static Calendar getModifiedDate(Iterable<org.apache.jena.rdf.model.Statement> statements)
Gets the modified date (if any) that was included within the statements.- Parameters:
statements- statements to consider- Returns:
- the date that should be set for the LAST_MODIFIED_DATE or null if it should be untouched
-
getModifiedBy
public static String getModifiedBy(Iterable<org.apache.jena.rdf.model.Statement> statements)
Gets the modified by user (if any) that was included within the statements.- Parameters:
statements- statements to consider- Returns:
- the date that should be set for the MODIFIED_BY or null if it should be untouched
-
-