public interface DocumentFolderService extends Service
Modifier and Type | Field and Description |
---|---|
static String |
FILTER_INCLUDE_LINKS
Filter to include links object in listing.
|
static String |
RENDITION_PREVIEW |
static String |
RENDITION_THUMBNAIL
Represent the unique identifier for thumbnail rendition.
|
static String |
SORT_PROPERTY_CREATED_AT
Allowable sorting property : Creation Date
|
static String |
SORT_PROPERTY_DESCRIPTION
Allowable sorting property : Description
|
static String |
SORT_PROPERTY_MODIFIED_AT
Allowable sorting property : Modification Date
|
static String |
SORT_PROPERTY_NAME
Allowable sorting property : Name of the document or folder.
|
static String |
SORT_PROPERTY_TITLE
Allowable sorting property : Title of the document or folder.
|
Modifier and Type | Method and Description |
---|---|
Node |
addAspects(Node node,
List<String> aspects)
Adds the given aspects to the given node.
|
void |
addFavorite(Node node)
Marks the provided node as a favorite node.
|
Document |
createDocument(Folder parentFolder,
String documentName,
Map<String,Serializable> properties,
ContentFile file)
Creates a document object in the specified location with an optional set
of properties.
|
Document |
createDocument(Folder parentFolder,
String documentName,
Map<String,Serializable> properties,
ContentFile file,
List<String> aspects)
Creates a document object in the specified location with an optional set
of properties.
|
Document |
createDocument(Folder parentFolder,
String documentName,
Map<String,Serializable> properties,
ContentFile file,
List<String> aspects,
String type)
Creates a document object in the specified location with an optional set
of properties.
|
Folder |
createFolder(Folder parentFolder,
String folderName,
Map<String,Serializable> properties)
Creates a folder object in the specified location with an optional set of
properties and aspects.
|
Folder |
createFolder(Folder parentFolder,
String folderName,
Map<String,Serializable> properties,
List<String> aspects)
Creates a folder object in the specified location with an optional set of
properties and aspects.
|
Folder |
createFolder(Folder parentFolder,
String folderName,
Map<String,Serializable> properties,
List<String> aspects,
String type)
Creates a folder object in the specified location with an optional set of
properties and aspects.
|
void |
deleteNode(Node node)
Deletes the specified node.
|
Node |
getChildByPath(Folder folder,
String relativePath)
Gets the node object stored at the relative specified path from the
folder object.
|
Node |
getChildByPath(String path)
Gets the node object stored at the specified path.
|
List<Node> |
getChildren(Folder folder)
Lists all immediate child nodes of the given context folder.
|
PagingResult<Node> |
getChildren(Folder folder,
ListingContext listingContext)
Lists immediate child nodes of the given context folder.
|
ContentFile |
getContent(Document document)
Downloads the content for the given document.
|
ContentStream |
getContentStream(Document document)
Downloads the content for the given document as InputStream.
|
List<Document> |
getDocuments(Folder folder)
Lists all immediate child documents of the given context node Note:
this could be a long list
|
PagingResult<Document> |
getDocuments(Folder folder,
ListingContext listingContext)
Lists all immediate child documents of the given context folder.
|
List<Document> |
getFavoriteDocuments()
Returns a list of the current users favorite documents.
|
PagingResult<Document> |
getFavoriteDocuments(ListingContext listingContext)
Returns a paged list of the current users favorite documents.
|
List<Folder> |
getFavoriteFolders()
Returns a list of the current users favorite folders.
|
PagingResult<Folder> |
getFavoriteFolders(ListingContext listingContext)
Returns a paged list of the current users favorite folders.
|
List<Node> |
getFavoriteNodes()
Returns a list of the current users favorite nodes.
|
PagingResult<Node> |
getFavoriteNodes(ListingContext listingContext)
Returns a paged list of the current users favorite nodes.
|
List<Folder> |
getFolders(Folder folder)
Lists all immediate child folders of the given context folder.
|
PagingResult<Folder> |
getFolders(Folder folder,
ListingContext listingContext)
Lists all immediate child folders of the given context folder.
|
Node |
getNodeByIdentifier(String identifier) |
Folder |
getParentFolder(Node node)
Gets the direct parent folder object.
|
Permissions |
getPermissions(Node node) |
ContentFile |
getRendition(Node node,
String type)
Retrieve a specific type of Rendition for the specified identifier.
|
ContentStream |
getRenditionStream(Node node,
String type)
Retrieve a specific type of Rendition for the specified identifier as
InputStream
|
Folder |
getRootFolder() |
boolean |
isFavorite(Node node)
Determines whether the given node has been marked as a favorite by the
current user.
|
Node |
refreshNode(Node node)
Returns the latest (and complete) metadata for the provided node.
|
void |
removeFavorite(Node node)
Removes the provided node from the current users favorites.
|
Document |
updateContent(Document document,
ContentFile file)
Updates the content on the given document using the provided local file.
|
Node |
updateProperties(Node node,
Map<String,Serializable> properties)
Updates the properties of the specified node.
|
Node |
updateProperties(Node node,
Map<String,Serializable> properties,
List<String> aspects)
Updates the properties for the given node and applies the given aspects.
|
static final String SORT_PROPERTY_NAME
static final String SORT_PROPERTY_TITLE
static final String SORT_PROPERTY_DESCRIPTION
static final String SORT_PROPERTY_CREATED_AT
static final String SORT_PROPERTY_MODIFIED_AT
static final String FILTER_INCLUDE_LINKS
static final String RENDITION_THUMBNAIL
static final String RENDITION_PREVIEW
List<Node> getChildren(Folder folder)
getChildren(Folder, ListingContext)
to change this behaviour.folder
- : context folderAlfrescoServiceException
- : if network or internal problems occur
during the process.getChildren(Folder, ListingContext)
PagingResult<Node> getChildren(Folder folder, ListingContext listingContext)
folder
- : context folderlistingContext
- : Listing context that define the behaviour of
paging results
ListingContext
AlfrescoServiceException
- : if network or internal problems occur
during the process.Node getChildByPath(String path)
path
- : path from the root folder.AlfrescoServiceException
- : if network or internal problems occur
during the process.Node getChildByPath(Folder folder, String relativePath)
folder
- : context folderrelativePath
- : relative path from the root folder.Node getNodeByIdentifier(String identifier)
identifier
- List<Document> getDocuments(Folder folder)
folder
- : context folderAlfrescoServiceException
- : if network or internal problems occur
during the process.getDocuments(Folder, ListingContext)
PagingResult<Document> getDocuments(Folder folder, ListingContext listingContext)
folder
- : context folderlistingContext
- : defines the behavior of paging results
ListingContext
AlfrescoServiceException
- : if network or internal problems occur
during the process.List<Folder> getFolders(Folder folder)
folder
- : Parent FolderAlfrescoServiceException
- : if network or internal problems occur
during the process.getFolders(Folder, ListingContext)
PagingResult<Folder> getFolders(Folder folder, ListingContext listingContext)
folder
- : Parent FolderlistingContext
- : : defines the behaviour of paging results
ListingContext
AlfrescoServiceException
- : if network or internal problems occur
during the process.getFolders(Folder)
Folder getRootFolder()
AlfrescoServiceException
- : if network or internal problems occur
during the process.Folder getParentFolder(Node node)
node
- : Node object (Folder or Document).AlfrescoServiceException
- : if network or internal problems occur
during the process.Folder createFolder(Folder parentFolder, String folderName, Map<String,Serializable> properties)
ContentModel
folder
- : Parent FolderfolderName
- : Name of the future folderproperties
- : Map of properties to apply to the new folderAlfrescoServiceException
- : if network or internal problems occur
during the process.Folder createFolder(Folder parentFolder, String folderName, Map<String,Serializable> properties, List<String> aspects)
ContentModel
folder
- : Parent FolderfolderName
- : Name of the future folderproperties
- : Map of properties to apply to the new folderaspects
- : List of aspects to apply to the new folderAlfrescoServiceException
- : if network or internal problems occur
during the process.Folder createFolder(Folder parentFolder, String folderName, Map<String,Serializable> properties, List<String> aspects, String type)
ContentModel
folder
- : Parent FolderfolderName
- : Name of the future folderproperties
- : Map of properties to apply to the new folderaspects
- : List of aspects to apply to the new foldertype
- : custom type of the folder. If null it creates a default
cm:folder.AlfrescoServiceException
- : if network or internal problems occur
during the process.Document createDocument(Folder parentFolder, String documentName, Map<String,Serializable> properties, ContentFile file)
ContentModel
folder:
- Future parent folder of a new documentdocumentName
- properties
- : (Optional) list of property values that must be
appliedfile
- : (Optional) ContentFile that contains data stream or fileAlfrescoServiceException
- : if network or internal problems occur
during the process.Document createDocument(Folder parentFolder, String documentName, Map<String,Serializable> properties, ContentFile file, List<String> aspects)
ContentModel
folder:
- Future parent folder of a new documentdocumentName
- properties
- : (Optional) list of property values that must be
appliedaspects
- : List of aspects to apply to the new folderfile
- : (Optional) ContentFile that contains data stream or fileAlfrescoServiceException
- : if network or internal problems occur
during the process.Document createDocument(Folder parentFolder, String documentName, Map<String,Serializable> properties, ContentFile file, List<String> aspects, String type)
ContentModel
folder:
- Future parent folder of a new documentdocumentName
- properties
- : (Optional) list of property values that must be
appliedaspects
- : List of aspects to apply to the new foldertype
- : custom type of the folder. If null it creates a default
cm:folder.file
- : (Optional) ContentFile that contains data stream or fileAlfrescoServiceException
- : if network or internal problems occur
during the process.void deleteNode(Node node)
node
- : Node object (Folder or Document).AlfrescoServiceException
- : if network or internal problems occur
during the process.Node updateProperties(Node node, Map<String,Serializable> properties)
node
- : Node to updateproperties
- : Properties to update.AlfrescoServiceException
- : if network or internal problems occur
during the process.Node updateProperties(Node node, Map<String,Serializable> properties, List<String> aspects)
node
- : Node to updateproperties
- : Properties to update.aspects
- : list of aspects to applyAlfrescoServiceException
- : if network or internal problems occur
during the process.Node addAspects(Node node, List<String> aspects)
node
- Node to updateaspects
- : list of aspects to applyAlfrescoServiceException
- : if network or internal problems occur
during the process.Document updateContent(Document document, ContentFile file)
document
- : Document objectfile
- : File that is going to replace document contentAlfrescoServiceException
- : if network or internal problems occur
during the process.ContentFile getContent(Document document)
document
- : Document objectAlfrescoServiceException
- : if network or internal problems occur
during the process.ContentStream getContentStream(Document document)
document
- : Document objectAlfrescoServiceException
- : if network or internal problems occur
during the process.Permissions getPermissions(Node node)
node
- ContentFile getRendition(Node node, String type)
node
- : Node (Document in general)type
- : : Type of rendition availableAlfrescoServiceException
- : if network or internal problems occur
during the process.ContentStream getRenditionStream(Node node, String type)
node
- : Node (Document in general)type
- : : Type of rendition availableAlfrescoServiceException
- : if network or internal problems occur
during the process.List<Document> getFavoriteDocuments()
PagingResult<Document> getFavoriteDocuments(ListingContext listingContext)
listingContext
- List<Folder> getFavoriteFolders()
PagingResult<Folder> getFavoriteFolders(ListingContext listingContext)
listingContext
- List<Node> getFavoriteNodes()
PagingResult<Node> getFavoriteNodes(ListingContext listingContext)
listingContext
- boolean isFavorite(Node node)
node
- void addFavorite(Node node)
node
- void removeFavorite(Node node)
node
- Copyright © 2012-2018 Alfresco Software. All Rights Reserved.