Interface DocumentHierarchy
Deprecated.
A hierarchy is the abstract concept of folders. Folders are however only
applicable in file systems. When working with document management systems,
they will often have another implementation behind their "folders". This is
the interface that all document management systems must have to be able to
organize documents.
As an example of a DMS that do not use folders, see Centuri and their concept
of Unit, or in Swedish "kopplingspunkt".
- Author:
- Per-Erik
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Finds a certain document in this hierarchy.Deprecated.Returns all child hierarhies.Deprecated.Returns all documents directly contained in this hierarchy.getIcon()
Deprecated.Returns an icon that corresponds to this hierarchy.Deprecated.Returns a URI describing how to get to this hierarchy.getName()
Deprecated.Returns the name (should be displayable) of this hierarchy.Deprecated.Returns a UUID that can be used to persist this hierarchy toghether with other hierarchies that might have the same name.getRoot()
Deprecated.Returns the root of this hierarchy or 'this' if this is the root.boolean
Deprecated.Returns true if this hierarchy has child hierarchies, false otherwise.boolean
Deprecated.Returns true if this hierarchy has documents directly contained in it, false otherwise.boolean
isRoot()
Deprecated.Returns true if this is the root of the hierarchy.
-
Method Details
-
getDocuments
Deprecated.Returns all documents directly contained in this hierarchy.- Returns:
- All documents in this hierarchy. Does not include documents from child hierarchies.
- Throws:
DocumentServiceException
- if the service provider cannot reach its service host or a communication error occurs.
-
find
Deprecated.Finds a certain document in this hierarchy. The search continues to all child hierarchies if not found in this hierarchy.- Parameters:
searchCriteria
- A UUID that enables this hierarchy to find the document.- Returns:
- A specific document contained directly in this hierarchy or in any child hierarchies or their children. For ever and ever. If the document cannot be found, null is returned.
- Throws:
DocumentServiceException
- if the service provider cannot reach its service host or a communication error occurs.
-
getChildHierarchies
Deprecated.Returns all child hierarhies.- Returns:
- A collection containing all child hierarchies to this hierarchy.
- Throws:
DocumentServiceException
- if the service provider cannot reach its service host or a communication error occurs.
-
getRoot
Deprecated.Returns the root of this hierarchy or 'this' if this is the root.- Returns:
- This hierarchies root hierarchy. If this hierarchy is the root, returns 'this'.
- Throws:
DocumentServiceException
- if the service provider cannot reach its service host or a communication error occurs.
-
getName
Deprecated.Returns the name (should be displayable) of this hierarchy. This would correspond to the name of a folder in a filesystem.
Note: May be called from event dispatch thread.- Returns:
- The name of this hierarchy.
- Throws:
DocumentServiceException
- if the service provider cannot reach its service host or a communication error occurs.
-
getPersistableID
Deprecated.Returns a UUID that can be used to persist this hierarchy toghether with other hierarchies that might have the same name.- Returns:
- A UUID used to persist this hierarchy. The UUID need not be universally unique as long as it is unique to the source of the hierarchy.
- Throws:
DocumentServiceException
- if the service provider cannot reach its service host or a communication error occurs.
-
hasChildHierarchies
Deprecated.Returns true if this hierarchy has child hierarchies, false otherwise. True would correspond to a folder containing subfolders in a filesystem.- Returns:
- True if this hierarchy has child hierarchies, false otherwise.
- Throws:
DocumentServiceException
- if the service provider cannot reach its service host or a communication error occurs.
-
hasDocuments
Deprecated.Returns true if this hierarchy has documents directly contained in it, false otherwise. False would thus correspond to a folder that does only contain other folders, no documents. The subfolder might of course contain documents but this method would return false anyway, since this very folder does not (directly) contain documents.- Returns:
- True if this hierarchy has documents directly contained in it
(does not include children). If this method returns true, a non-empty
collection will be returned from
getDocuments()
. - Throws:
DocumentServiceException
- if the service provider cannot reach its service host or a communication error occurs.
-
isRoot
Deprecated.Returns true if this is the root of the hierarchy.- Returns:
- True if this hierarchy is the root, false otherwise.
- Throws:
DocumentServiceException
- if the service provider cannot reach its service host or a communication error occurs.
-
getIcon
Deprecated.Returns an icon that corresponds to this hierarchy. For example a folder- icon. Can also return null in wich case a default icon will be chosen. Notice that you can return different icons for different types of hierarchies.
Note: May be called from event dispatch thread.- Returns:
- an icon or null.
- Throws:
DocumentServiceException
- if the service provider cannot reach its service host or a communication error occurs.
-
getLocation
Deprecated.Returns a URI describing how to get to this hierarchy.- Returns:
- a URI describing how to get to this hierarchy.
- Throws:
DocumentServiceException
- if the service provider cannot reach its service host or a communication error occurs.
-