public interface VirtualUnit extends AbstractUnit
Modifier and Type | Interface and Description |
---|---|
static class |
VirtualUnit.Impl
Implementation of complex methods.
|
CHILD_COUNT
WATCHED_COUNT
Modifier and Type | Method and Description |
---|---|
boolean |
addChild(VirtualUnit child)
Add a child.
|
boolean |
addIncludedUnit(DocumentaryUnit unit)
Add a documentary unit to be included in this virtual unit.
|
Iterable<VirtualUnit> |
getAllChildren()
Fetch all child virtual units and their children
recursively.
|
Iterable<VirtualUnit> |
getAncestors() |
Accessor |
getAuthor()
Fetch the author of this virtual unit.
|
int |
getChildCount() |
Iterable<VirtualUnit> |
getChildren()
Get the child virtual units subordinate to this one.
|
Iterable<DocumentaryUnit> |
getIncludedUnits()
Fetch documentary unit items included in this virtual unit.
|
VirtualUnit |
getParent() |
Iterable<Repository> |
getRepositories()
Get the repositories which hold the documentary unit items
included in this virtual unit.
|
Iterable<DocumentaryUnitDescription> |
getVirtualDescriptions()
Fetch the descriptions of this virtual unit.
|
boolean |
removeChild(VirtualUnit child)
Remove a child virtual unit from this one.
|
void |
removeIncludedUnit(DocumentaryUnit unit)
Remove a documentary unit item from this virtual unit.
|
void |
setAuthor(Accessor accessor)
Set the author of this virtual unit.
|
addDescription, getDescriptions, removeDescription
getAllContainedItems, getContainedItems, getPermissionGrants, getPermissionScopes, idPath
getIdentifier
addAccessor, getAccessors, getHistory, getLatestEvent, getPermissionScope, getPermissionScopes, hasAccessRestriction, removeAccessor, setPermissionScope
getPermissionGrants
as, getId, getProperty, getProperty, getPropertyKeys, getType
getWatchedCount, getWatchers
getAllPriorVersions, getPriorVersion
addAnnotation, addAnnotationPart, getAnnotations
int getChildCount()
getChildCount
in interface ItemHolder
VirtualUnit getParent()
boolean addChild(VirtualUnit child)
child
- The child collectionboolean removeChild(VirtualUnit child)
child
- a virtual unit frameIterable<VirtualUnit> getAncestors()
Iterable<VirtualUnit> getChildren()
Iterable<VirtualUnit> getAllChildren()
Iterable<DocumentaryUnit> getIncludedUnits()
Iterable<Repository> getRepositories()
boolean addIncludedUnit(DocumentaryUnit unit)
unit
- a documentary unit framevoid removeIncludedUnit(DocumentaryUnit unit)
unit
- a documentary unit frameAccessor getAuthor()
void setAuthor(Accessor accessor)
accessor
- a user or group frameIterable<DocumentaryUnitDescription> getVirtualDescriptions()
Copyright © 2018 The European Holocaust Research Infrastructure (EHRI). All rights reserved.