public class HiddenAspect
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
HiddenAspect.Visibility |
| Constructor and Description |
|---|
HiddenAspect() |
| Modifier and Type | Method and Description |
|---|---|
HiddenFileInfo |
checkHidden(FileInfoImpl fileInfo,
boolean both)
Checks whether the file should be hidden and applies the hidden and not indexed aspects if so.
|
HiddenFileInfo |
checkHidden(org.alfresco.service.cmr.repository.NodeRef nodeRef,
boolean both)
Checks whether the file should be hidden and applies the hidden and not indexed aspects if so.
|
void |
checkHidden(org.alfresco.service.cmr.repository.StoreRef storeRef)
Searches for nodes in the given store that should be hidden (i.e.
|
org.alfresco.util.FileFilterMode.Client[] |
getClients() |
int |
getClientVisibilityMask(org.alfresco.util.FileFilterMode.Client client,
HiddenAspect.Visibility visibility) |
java.util.List |
getPatterns() |
HiddenAspect.Visibility |
getVisibility(org.alfresco.util.FileFilterMode.Client client,
org.alfresco.service.cmr.repository.NodeRef nodeRef)
Gets the visibility constraint for the given client on the given node.
|
void |
hideNode(FileInfoImpl fileInfo,
int visibilityMask)
Hides the node by applying the hidden and not indexed aspects.
|
void |
hideNode(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Hides the node by applying the hidden and not indexed aspects.
|
void |
hideNode(org.alfresco.service.cmr.repository.NodeRef nodeRef,
int clientVisibilityMask)
Hides the node by applying the hidden and not indexed aspects.
|
HiddenFileInfo |
onHiddenPath(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Checks whether the node is on a hidden path
|
void |
setFileFolderService(FileFolderService fileFolderService) |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
void |
setPatterns(java.util.List filters) |
void |
setSearchService(org.alfresco.service.cmr.search.SearchService searchService) |
void |
showNode(org.alfresco.service.cmr.repository.NodeRef nodeRef,
boolean cascade) |
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public void setFileFolderService(FileFolderService fileFolderService)
public void setSearchService(org.alfresco.service.cmr.search.SearchService searchService)
public void setPatterns(java.util.List filters)
public java.util.List getPatterns()
public org.alfresco.util.FileFilterMode.Client[] getClients()
public int getClientVisibilityMask(org.alfresco.util.FileFilterMode.Client client,
HiddenAspect.Visibility visibility)
public HiddenFileInfo onHiddenPath(org.alfresco.service.cmr.repository.NodeRef nodeRef)
nodeRef - public void hideNode(org.alfresco.service.cmr.repository.NodeRef nodeRef)
client - fileInfo - public void showNode(org.alfresco.service.cmr.repository.NodeRef nodeRef,
boolean cascade)
public void hideNode(org.alfresco.service.cmr.repository.NodeRef nodeRef,
int clientVisibilityMask)
client - fileInfo - public void checkHidden(org.alfresco.service.cmr.repository.StoreRef storeRef)
storeRef - public HiddenFileInfo checkHidden(FileInfoImpl fileInfo, boolean both)
fileInfo - both - if true, will check if the node should not be hidden and remove hidden and index control
aspects if they are presentpublic void hideNode(FileInfoImpl fileInfo, int visibilityMask)
client - fileInfo - public HiddenFileInfo checkHidden(org.alfresco.service.cmr.repository.NodeRef nodeRef, boolean both)
nodeRef - both - if true, will check both if the node should not be hidden and remove hidden and index control
aspects if they are present, and if the node should be hidden and add hidden and index control
aspects if they are not present.public HiddenAspect.Visibility getVisibility(org.alfresco.util.FileFilterMode.Client client, org.alfresco.service.cmr.repository.NodeRef nodeRef)
client - nodeRef - Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.