mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
. Confirmation screens for Undo All and Undo Selected items for a sandbox
- refactoring of revert functionality into Undo All and Undo Selected dialogs . Performance enhancement to Node class - to cache Path value from NodeService and changed appropriate class to use this . Fix to horribly broken values in AVMConstants git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4690 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -31,6 +31,7 @@ import org.alfresco.service.cmr.lock.LockStatus;
|
||||
import org.alfresco.service.cmr.repository.AssociationRef;
|
||||
import org.alfresco.service.cmr.repository.ChildAssociationRef;
|
||||
import org.alfresco.service.cmr.repository.NodeRef;
|
||||
import org.alfresco.service.cmr.repository.Path;
|
||||
import org.alfresco.service.cmr.security.AccessStatus;
|
||||
import org.alfresco.service.cmr.security.PermissionService;
|
||||
import org.alfresco.service.namespace.QName;
|
||||
@@ -49,7 +50,7 @@ public class Node implements Serializable
|
||||
protected NodeRef nodeRef;
|
||||
protected String name;
|
||||
protected QName type;
|
||||
protected String path;
|
||||
protected Path path;
|
||||
protected String id;
|
||||
protected Set<QName> aspects = null;
|
||||
protected Map<String, Boolean> permissions;
|
||||
@@ -367,15 +368,22 @@ public class Node implements Serializable
|
||||
}
|
||||
|
||||
/**
|
||||
* @return The path for the node
|
||||
* @return The simple display path for the node
|
||||
*/
|
||||
public String getPath()
|
||||
{
|
||||
return getNodePath().toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the repo Path to the node
|
||||
*/
|
||||
public Path getNodePath()
|
||||
{
|
||||
if (this.path == null)
|
||||
{
|
||||
this.path = getServiceRegistry().getNodeService().getPath(this.nodeRef).toString();
|
||||
this.path = getServiceRegistry().getNodeService().getPath(this.nodeRef);
|
||||
}
|
||||
|
||||
return this.path;
|
||||
}
|
||||
|
||||
|
@@ -261,7 +261,7 @@ public class TransientNode extends Node
|
||||
}
|
||||
|
||||
// setup remaining variables
|
||||
this.path = "";
|
||||
this.path = null;
|
||||
this.locked = Boolean.FALSE;
|
||||
this.workingCopyOwner = Boolean.FALSE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user