@AlfrescoPublicApi public class HiddenAspect extends Object
Modifier and Type | Class and Description |
---|---|
static class |
HiddenAspect.Visibility |
Modifier and Type | Field and Description |
---|---|
static Set<org.alfresco.service.namespace.QName> |
HIDDEN_PROPERTIES |
Constructor and Description |
---|
HiddenAspect() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkHidden(FileInfo fileInfo,
boolean both,
boolean checkChildren)
Checks whether the file should be hidden and applies the hidden and not indexed aspects if so.
|
boolean |
checkHidden(org.alfresco.service.cmr.repository.NodeRef nodeRef,
boolean both,
boolean checkChildren)
Checks whether the file should be hidden and applies the hidden and not indexed aspects to it
and its children (if cascadeHidden == true).
|
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)
getClientVisibilityMap
|
List<HiddenFileInfo> |
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.
|
boolean |
hasHiddenAspect(org.alfresco.service.cmr.repository.NodeRef nodeRef) |
void |
hideNode(FileInfoImpl fileInfo,
int visibilityMask,
boolean cascadeHiddenAspect,
boolean cascadeIndexControlAspect,
boolean clientControlled)
Hides the node by applying the hidden and not indexed aspects.
|
void |
hideNode(org.alfresco.service.cmr.repository.NodeRef nodeRef,
boolean cascadeHiddenAspect,
boolean cascadeIndexControlAspect,
boolean clientControlled)
Hides the node by applying the hidden and not indexed aspects.
|
void |
hideNode(org.alfresco.service.cmr.repository.NodeRef nodeRef,
int clientVisibilityMask,
boolean cascadeHiddenAspect,
boolean cascadeIndexControlAspect,
boolean clientControlled)
Hides the node by applying the hidden and not indexed aspects.
|
void |
hideNodeExplicit(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Mark this node as hidden regardless of any name/pattern/matching rules.
|
void |
init() |
boolean |
isClientControlled(org.alfresco.service.cmr.repository.NodeRef nodeRef) |
HiddenFileInfo |
onHiddenPath(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Checks whether the node is on a hidden path
|
void |
removeHidden(org.alfresco.service.cmr.repository.NodeRef nodeRef) |
void |
removeHiddenAspect(org.alfresco.service.cmr.repository.NodeRef nodeRef) |
void |
setBehaviourFilter(BehaviourFilter behaviourFilter) |
void |
setFileFolderService(FileFolderService fileFolderService) |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
void |
setPatterns(List<HiddenFileFilter> filters) |
void |
setPolicyComponent(PolicyComponent policyComponent) |
void |
setSearchService(org.alfresco.service.cmr.search.SearchService searchService) |
void |
showNode(org.alfresco.service.cmr.repository.NodeRef nodeRef,
boolean cascade)
Removes the hidden and index contol aspect.
|
void |
unhideExplicit(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Remove the explicit hiding of a node.
|
public static Set<org.alfresco.service.namespace.QName> HIDDEN_PROPERTIES
public void setBehaviourFilter(BehaviourFilter behaviourFilter)
public void setPolicyComponent(PolicyComponent policyComponent)
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(List<HiddenFileFilter> filters)
public void init()
public List<HiddenFileInfo> getPatterns()
public org.alfresco.util.FileFilterMode.Client[] getClients()
public void hideNodeExplicit(org.alfresco.service.cmr.repository.NodeRef nodeRef)
nodeRef
- NodeRefpublic void unhideExplicit(org.alfresco.service.cmr.repository.NodeRef nodeRef)
nodeRef
- NodeRefpublic void removeHiddenAspect(org.alfresco.service.cmr.repository.NodeRef nodeRef)
public boolean hasHiddenAspect(org.alfresco.service.cmr.repository.NodeRef nodeRef)
public void removeHidden(org.alfresco.service.cmr.repository.NodeRef nodeRef)
public int getClientVisibilityMask(org.alfresco.util.FileFilterMode.Client client, HiddenAspect.Visibility visibility)
client
- Clientvisibility
- Visibilitypublic HiddenFileInfo onHiddenPath(org.alfresco.service.cmr.repository.NodeRef nodeRef)
nodeRef
- NodeRefpublic void hideNode(org.alfresco.service.cmr.repository.NodeRef nodeRef, boolean cascadeHiddenAspect, boolean cascadeIndexControlAspect, boolean clientControlled)
nodeRef
- nodeRefcascadeHiddenAspect
- booleancascadeIndexControlAspect
- booleanclientControlled
- booleanpublic void showNode(org.alfresco.service.cmr.repository.NodeRef nodeRef, boolean cascade)
nodeRef
- the node to showcascade
- true to cascade to all descendents of this nodepublic void hideNode(org.alfresco.service.cmr.repository.NodeRef nodeRef, int clientVisibilityMask, boolean cascadeHiddenAspect, boolean cascadeIndexControlAspect, boolean clientControlled)
nodeRef
- the node to hideclientVisibilityMask
- intcascadeHiddenAspect
- booleancascadeIndexControlAspect
- booleanclientControlled
- booleanpublic void checkHidden(org.alfresco.service.cmr.repository.StoreRef storeRef)
storeRef
- StoreRefpublic boolean checkHidden(FileInfo fileInfo, boolean both, boolean checkChildren)
fileInfo
- FileInfoboth
- if true, will check if the node should not be hidden and remove hidden and index control
aspects if they are presentcheckChildren
- booleanpublic void hideNode(FileInfoImpl fileInfo, int visibilityMask, boolean cascadeHiddenAspect, boolean cascadeIndexControlAspect, boolean clientControlled)
fileInfo
- file to make hiddenvisibilityMask
- intcascadeHiddenAspect
- booleancascadeIndexControlAspect
- booleanclientControlled
- booleanpublic boolean isClientControlled(org.alfresco.service.cmr.repository.NodeRef nodeRef)
public boolean checkHidden(org.alfresco.service.cmr.repository.NodeRef nodeRef, boolean both, boolean checkChildren)
Can optionally remove the hidden and index control aspects if the name of a node no longer matches the filter.
nodeRef
- NodeRefboth
- 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.checkChildren
- booleanpublic HiddenAspect.Visibility getVisibility(org.alfresco.util.FileFilterMode.Client client, org.alfresco.service.cmr.repository.NodeRef nodeRef)
client
- ClientnodeRef
- NodeRefCopyright © 2005–2017 Alfresco Software. All rights reserved.