Package org.fcrepo.kernel.impl.models
Class ContainerImpl
- java.lang.Object
-
- org.fcrepo.kernel.impl.models.FedoraResourceImpl
-
- org.fcrepo.kernel.impl.models.ContainerImpl
-
- All Implemented Interfaces:
Container
,FedoraResource
- Direct Known Subclasses:
WebacAclImpl
public class ContainerImpl extends FedoraResourceImpl implements Container
Implementation of an LDP Container resource- Author:
- bbpennel
-
-
Field Summary
-
Fields inherited from class org.fcrepo.kernel.impl.models.FedoraResourceImpl
fedoraId, resourceFactory, transaction
-
-
Constructor Summary
Constructors Constructor Description ContainerImpl(FedoraId fedoraID, Transaction transaction, PersistentStorageSessionManager pSessionManager, ResourceFactory resourceFactory, UserTypesCache userTypesCache)
Construct the container
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stream<FedoraResource>
getChildren(Boolean recursive)
Get the children of this resource, possibly recursivelyFedoraResource
getDescribedResource()
Get the resource described by this resourceList<URI>
getSystemTypes(boolean forRdf)
Get only the system defined types from their RDF.-
Methods inherited from class org.fcrepo.kernel.impl.models.FedoraResourceImpl
findMementoByDatetime, getAcl, getArchivalGroupId, getContainer, getCreatedBy, getCreatedDate, getDescription, getEtagValue, getFedoraId, getId, getInteractionModel, getLastModifiedBy, getLastModifiedDate, getMementoDatetime, getOriginalResource, getParent, getParentId, getSession, getStateToken, getTimeMap, getTriples, getTypes, getUserTypes, hasProperty, hasType, isAcl, isMemento, isOriginalResource, resolveSystemTypes, setArchivalGroupId, setCreatedBy, setCreatedDate, setEtag, setInteractionModel, setIsArchivalGroup, setIsMemento, setLastModifiedBy, setLastModifiedDate, setMementoDatetime, setParentId, setStateToken, setTypes
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.fcrepo.kernel.api.models.FedoraResource
findMementoByDatetime, getAcl, getArchivalGroupId, getChildren, getContainer, getCreatedBy, getCreatedDate, getDescription, getEtagValue, getFedoraId, getId, getInteractionModel, getLastModifiedBy, getLastModifiedDate, getMementoDatetime, getOriginalResource, getParent, getParentId, getStateToken, getTimeMap, getTriples, getTypes, getUserTypes, hasProperty, hasType, isAcl, isMemento, isOriginalResource
-
-
-
-
Constructor Detail
-
ContainerImpl
public ContainerImpl(FedoraId fedoraID, Transaction transaction, PersistentStorageSessionManager pSessionManager, ResourceFactory resourceFactory, UserTypesCache userTypesCache)
Construct the container- Parameters:
fedoraID
- internal identifiertransaction
- transactionpSessionManager
- session managerresourceFactory
- resource factoryuserTypesCache
- the user types cache
-
-
Method Detail
-
getDescribedResource
public FedoraResource getDescribedResource()
Description copied from interface:FedoraResource
Get the resource described by this resource- Specified by:
getDescribedResource
in interfaceFedoraResource
- Overrides:
getDescribedResource
in classFedoraResourceImpl
- Returns:
- the resource being described
-
getSystemTypes
public List<URI> getSystemTypes(boolean forRdf)
Description copied from interface:FedoraResource
Get only the system defined types from their RDF.- Specified by:
getSystemTypes
in interfaceFedoraResource
- Overrides:
getSystemTypes
in classFedoraResourceImpl
- Parameters:
forRdf
- whether we only want types for displaying in a RDF body.- Returns:
- a list of types from the user provided RDF.
-
getChildren
public Stream<FedoraResource> getChildren(Boolean recursive)
Description copied from interface:FedoraResource
Get the children of this resource, possibly recursively- Specified by:
getChildren
in interfaceFedoraResource
- Overrides:
getChildren
in classFedoraResourceImpl
- Parameters:
recursive
- whether to recursively fetch child resources- Returns:
- a stream of Fedora resources
-
-