Package org.fcrepo.kernel.api.utils
Class RelaxedPropertiesHelper
java.lang.Object
org.fcrepo.kernel.api.utils.RelaxedPropertiesHelper
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, whikloj
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheckTripleForDisallowed(org.apache.jena.graph.Triple triple) Several tests for invalid or disallowed RDF statements.static StringgetCreatedBy(org.apache.jena.rdf.model.Resource resource) Gets the created by user (if any) that is included within the statements.static CalendargetCreatedDate(org.apache.jena.rdf.model.Resource resource) Gets the created date (if any) that was included in the statements.static StringgetModifiedBy(org.apache.jena.rdf.model.Resource resource) Gets the modified by user (if any) that was included within the statements.static CalendargetModifiedDate(org.apache.jena.rdf.model.Resource resource) Gets the modified date (if any) that was included within the statements.
-
Method Details
-
getCreatedDate
Gets the created date (if any) that was included in the statements.- Parameters:
resource- the resource we are looking for properties of- Returns:
- the date that should be set for the CREATED_DATE or null if it should be untouched
-
getCreatedBy
Gets the created by user (if any) that is included within the statements.- Parameters:
resource- the resource we are looking for properties of- Returns:
- the string that should be set for the CREATED_BY or null if it should be untouched
-
getModifiedDate
Gets the modified date (if any) that was included within the statements.- Parameters:
resource- the resource we are looking for properties of- Returns:
- the date that should be set for the LAST_MODIFIED_DATE or null if it should be untouched
-
getModifiedBy
Gets the modified by user (if any) that was included within the statements.- Parameters:
resource- the resource we are looking for properties of- Returns:
- the string that should be set for the MODIFIED_BY or null if it should be untouched
-
checkTripleForDisallowed
Several tests for invalid or disallowed RDF statements.- Parameters:
triple- the triple to check.
-