mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
ACS-4064: fix for linking from a folder with inherited rules (#1577)
* ACS-4064: fix for linking from a folder with inherited rules * ACS-4064: fix failing tests and add E2E
This commit is contained in:
committed by
GitHub
parent
f96304bd28
commit
17c09efb93
@@ -459,7 +459,13 @@ public class RuleServiceImpl
|
||||
public boolean hasRules(NodeRef nodeRef)
|
||||
{
|
||||
return getRules(nodeRef).size() != 0;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasNonInheritedRules(NodeRef nodeRef)
|
||||
{
|
||||
return getRules(nodeRef, false).size() != 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Rule> getRules(NodeRef nodeRef)
|
||||
|
@@ -165,6 +165,15 @@ public interface RuleService
|
||||
@Auditable(parameters = {"nodeRef"})
|
||||
public boolean hasRules(NodeRef nodeRef);
|
||||
|
||||
/**
|
||||
* Indicates whether the node in question has any non-inherited rules associated with it.
|
||||
*
|
||||
* @param nodeRef the node reference
|
||||
* @return true if the node has rules associated, false otherwise
|
||||
*/
|
||||
@Auditable(parameters = {"nodeRef"})
|
||||
public boolean hasNonInheritedRules(NodeRef nodeRef);
|
||||
|
||||
/**
|
||||
* Get all the rules associated with an actionable node, including those
|
||||
* inherited from parents.
|
||||
|
Reference in New Issue
Block a user