public class FedoraResourceImpl extends org.modeshape.jcr.api.JcrTools implements FedoraJcrTypes, FedoraResource
org.modeshape.jcr.api.JcrTools.BasicOperation, org.modeshape.jcr.api.JcrTools.BrowseContent, org.modeshape.jcr.api.JcrTools.CountNodes, org.modeshape.jcr.api.JcrTools.NodeOperation, org.modeshape.jcr.api.JcrTools.Operation, org.modeshape.jcr.api.JcrTools.PrintNodes, org.modeshape.jcr.api.JcrTools.Variable| Modifier and Type | Field and Description |
|---|---|
protected javax.jcr.Node |
node |
CONTENT_DIGEST, CONTENT_SIZE, EXPOSED_PROTECTED_JCR_TYPES, FCR_METADATA, FCR_VERSIONS, FEDORA_BINARY, FEDORA_BLANKNODE, FEDORA_CONTAINER, FEDORA_NON_RDF_SOURCE_DESCRIPTION, FEDORA_PAIRTREE, FEDORA_RESOURCE, FEDORA_TOMBSTONE, FROZEN_MIXIN_TYPES, FROZEN_NODE, JCR_CREATED, JCR_CREATEDBY, JCR_FROZEN_NODE, JCR_LASTMODIFIED, JCR_MIXIN_TYPES, JCR_PRIMARY_TYPE, JCR_UUID, LDP_BASIC_CONTAINER, LDP_DIRECT_CONTAINER, LDP_HAS_MEMBER_RELATION, LDP_INDIRECT_CONTAINER, LDP_INSERTED_CONTENT_RELATION, LDP_IS_MEMBER_OF_RELATION, LDP_MEMBER_RESOURCE, PREMIS_FILE_NAME, ROOT, VERSIONABLE| Constructor and Description |
|---|
FedoraResourceImpl(javax.jcr.Node node)
Construct a FedoraObject from an existing JCR Node
|
| Modifier and Type | Method and Description |
|---|---|
void |
addVersionLabel(String label) |
void |
delete() |
void |
disableVersioning() |
void |
enableVersioning() |
boolean |
equals(Object object) |
javax.jcr.version.Version |
getBaseVersion() |
FedoraResource |
getChild(String relPath) |
Iterator<FedoraResource> |
getChildren() |
FedoraResource |
getContainer() |
Date |
getCreatedDate() |
String |
getEtagValue() |
Date |
getLastModifiedDate() |
javax.jcr.Node |
getNode() |
javax.jcr.Node |
getNodeVersion(String label) |
String |
getPath() |
javax.jcr.Property |
getProperty(String relPath) |
protected javax.jcr.Session |
getSession() |
RdfStream |
getTriples(IdentifierConverter<com.hp.hpl.jena.rdf.model.Resource,FedoraResource> idTranslator,
Class<? extends RdfStream> context) |
RdfStream |
getTriples(IdentifierConverter<com.hp.hpl.jena.rdf.model.Resource,FedoraResource> idTranslator,
Iterable<? extends Class<? extends RdfStream>> contexts) |
FedoraResource |
getUnfrozenResource() |
FedoraResource |
getVersionedAncestor() |
javax.jcr.version.VersionHistory |
getVersionHistory() |
int |
hashCode() |
boolean |
hasProperty(String relPath) |
boolean |
hasType(String type) |
boolean |
isFrozenResource() |
Boolean |
isNew() |
boolean |
isVersioned() |
void |
replaceProperties(IdentifierConverter<com.hp.hpl.jena.rdf.model.Resource,FedoraResource> idTranslator,
com.hp.hpl.jena.rdf.model.Model inputModel,
RdfStream originalTriples) |
String |
toString() |
void |
updateProperties(IdentifierConverter<com.hp.hpl.jena.rdf.model.Resource,FedoraResource> idTranslator,
String sparqlUpdateStatement,
RdfStream originalTriples) |
findOrCreateChild, findOrCreateChild, findOrCreateNode, findOrCreateNode, findOrCreateNode, findOrCreateNode, getNode, getReadable, getStringValue, importContent, importContent, importContent, importContent, importContent, importContent, importContent, isDebug, onEachNode, onEachNodeBelow, print, printNode, printQuery, printQuery, printQuery, printQuery, printSubgraph, printSubgraph, printSubgraph, registerNodeTypes, removeAllChildren, removeAllChildren, repeatedlyWithSession, resourceUrl, setDebug, uploadFile, uploadFile, uploadFile, uploadFileAndBlock, uploadFileAndBlock, uploadFileAndBlock, uploadFilesAndBlock, var, vars, withSessionpublic FedoraResourceImpl(javax.jcr.Node node)
node - an existing JCR node to treat as an fcrepo objectpublic javax.jcr.Node getNode()
getNode in interface FedoraResourcepublic String getPath()
getPath in interface FedoraResourcepublic Iterator<FedoraResource> getChildren()
getChildren in interface FedoraResourcepublic FedoraResource getContainer()
getContainer in interface FedoraResourcepublic FedoraResource getChild(String relPath)
getChild in interface FedoraResourcepublic boolean hasProperty(String relPath)
hasProperty in interface FedoraResourcepublic javax.jcr.Property getProperty(String relPath)
getProperty in interface FedoraResourcepublic void delete()
delete in interface FedoraResourcepublic Date getCreatedDate()
getCreatedDate in interface FedoraResourcepublic Date getLastModifiedDate()
getLastModifiedDate in interface FedoraResourcepublic boolean hasType(String type)
hasType in interface FedoraResourcepublic void updateProperties(IdentifierConverter<com.hp.hpl.jena.rdf.model.Resource,FedoraResource> idTranslator, String sparqlUpdateStatement, RdfStream originalTriples) throws MalformedRdfException
updateProperties in interface FedoraResourceMalformedRdfExceptionpublic RdfStream getTriples(IdentifierConverter<com.hp.hpl.jena.rdf.model.Resource,FedoraResource> idTranslator, Class<? extends RdfStream> context)
getTriples in interface FedoraResourcepublic RdfStream getTriples(IdentifierConverter<com.hp.hpl.jena.rdf.model.Resource,FedoraResource> idTranslator, Iterable<? extends Class<? extends RdfStream>> contexts)
getTriples in interface FedoraResourcepublic void addVersionLabel(String label)
addVersionLabel in interface FedoraResourcepublic javax.jcr.version.Version getBaseVersion()
getBaseVersion in interface FedoraResourcepublic javax.jcr.version.VersionHistory getVersionHistory()
getVersionHistory in interface FedoraResourcepublic Boolean isNew()
isNew in interface FedoraResourcepublic void replaceProperties(IdentifierConverter<com.hp.hpl.jena.rdf.model.Resource,FedoraResource> idTranslator, com.hp.hpl.jena.rdf.model.Model inputModel, RdfStream originalTriples) throws MalformedRdfException
replaceProperties in interface FedoraResourceMalformedRdfExceptionpublic String getEtagValue()
getEtagValue in interface FedoraResourcepublic void enableVersioning()
enableVersioning in interface FedoraResourcepublic void disableVersioning()
disableVersioning in interface FedoraResourcepublic boolean isVersioned()
isVersioned in interface FedoraResourcepublic boolean isFrozenResource()
isFrozenResource in interface FedoraResourcepublic FedoraResource getVersionedAncestor()
getVersionedAncestor in interface FedoraResourcepublic FedoraResource getUnfrozenResource()
getUnfrozenResource in interface FedoraResourcepublic javax.jcr.Node getNodeVersion(String label)
getNodeVersion in interface FedoraResourceprotected javax.jcr.Session getSession()
Copyright © 2013-2014 DuraSpace, Inc.. All Rights Reserved.