Merged 5.2.0 (5.2.0) to HEAD (5.2)

133137 rmunteanu: REPO-557: Retrieve Permissions For Node
      -  Renamed field according to REST API code conventions


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@133393 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Alan Davis
2016-12-06 17:18:25 +00:00
parent 4d6e3974f5
commit 69e596c5e0
3 changed files with 16 additions and 16 deletions

View File

@@ -2200,11 +2200,11 @@ public class NodesImpl implements Nodes
}
// Check inherit from parent value and if it's changed set the new value
if (nodePerms.isInheritanceEnabled() != null)
if (nodePerms.getIsInheritanceEnabled() != null)
{
if (nodePerms.isInheritanceEnabled() != permissionService.getInheritParentPermissions(nodeRef))
if (nodePerms.getIsInheritanceEnabled() != permissionService.getInheritParentPermissions(nodeRef))
{
permissionService.setInheritParentPermissions(nodeRef, nodePerms.isInheritanceEnabled());
permissionService.setInheritParentPermissions(nodeRef, nodePerms.getIsInheritanceEnabled());
}
}

View File

@@ -58,12 +58,12 @@ public class NodePermissions
this.settable = settable;
}
public Boolean isInheritanceEnabled()
public Boolean getIsInheritanceEnabled()
{
return inherit;
}
public void setInheritanceEnabled(boolean inherit)
public void setIsInheritanceEnabled(boolean inherit)
{
this.inherit = inherit;
}
@@ -92,7 +92,7 @@ public class NodePermissions
public String toString()
{
final StringBuilder sb = new StringBuilder(120);
sb.append("PathInfo [inheritanceEnabled=").append(inherit)
sb.append("PathInfo [isInheritanceEnabled=").append(inherit)
.append(", inherited=").append(getInherited())
.append(", locallySet=").append(getLocallySet())
.append(", settable=").append(getSettable())