public class BaseFolderModule extends Object
Constructor and Description |
---|
BaseFolderModule() |
Modifier and Type | Method and Description |
---|---|
static NodeFolder |
copy(String user,
NodeFolder srcFldNode,
NodeFolder dstFldNode,
ExtendedAttributes extAttr)
Duplicates a folder into another one
|
static NodeFolder |
create(String user,
NodeFolder parentFolder,
String name,
Calendar created,
Set<String> keywords,
Set<String> categories,
Set<NodeProperty> propertyGroups,
List<NodeNote> notes,
WikiPage wiki)
Create a new folder
|
static ContentInfo |
getContentInfo(String folderUuid)
Get content info recursively
|
static Folder |
getProperties(String user,
NodeFolder nFolder)
Get folder properties
|
static Map<String,ContentInfo> |
getUserContentInfo(String folderUuid)
Get content info by user recursively
|
static boolean |
hasLockedNodes(String fldUuid)
Check recursively if the folder contains locked nodes
|
static boolean |
hasWorkflowNodes(String fldUuid)
Check if a node is being used in a running workflow
|
static boolean |
hasWriteAccess(String fldUuid)
Check if a node has removable childs
TODO: Is this necessary?
|
static boolean |
isCategoryInUse(String fldUuid)
Check if a folder is used as category in other nodes.
|
public static NodeFolder create(String user, NodeFolder parentFolder, String name, Calendar created, Set<String> keywords, Set<String> categories, Set<NodeProperty> propertyGroups, List<NodeNote> notes, WikiPage wiki) throws PathNotFoundException, AccessDeniedException, ItemExistsException, DatabaseException
public static Folder getProperties(String user, NodeFolder nFolder) throws PathNotFoundException, DatabaseException
public static NodeFolder copy(String user, NodeFolder srcFldNode, NodeFolder dstFldNode, ExtendedAttributes extAttr) throws ItemExistsException, UserQuotaExceededException, PathNotFoundException, AccessDeniedException, AutomationException, DatabaseException, IOException
public static boolean hasLockedNodes(String fldUuid) throws PathNotFoundException, DatabaseException, RepositoryException
public static boolean hasWriteAccess(String fldUuid) throws PathNotFoundException, DatabaseException, RepositoryException
public static boolean hasWorkflowNodes(String fldUuid) throws WorkflowException, PathNotFoundException, DatabaseException
public static boolean isCategoryInUse(String fldUuid) throws PathNotFoundException, DatabaseException, RepositoryException
public static ContentInfo getContentInfo(String folderUuid) throws PathNotFoundException, DatabaseException
public static Map<String,ContentInfo> getUserContentInfo(String folderUuid) throws PathNotFoundException, DatabaseException
Copyright © 2017 Open Knowledge Management System S.L.. All rights reserved.