mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Changed the EditNodeCategories dialog to take a nodeRef rather than an id
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6877 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -67,13 +67,13 @@ public class EditNodeCategoriesDialog extends BaseDialogBean
|
||||
this.addedCategory = null;
|
||||
|
||||
// retrieve parameters
|
||||
String id = parameters.get("id");
|
||||
String nodeRef = parameters.get("nodeRef");
|
||||
|
||||
// make sure id was supplied
|
||||
ParameterCheck.mandatoryString("id", id);
|
||||
// make sure nodeRef was supplied
|
||||
ParameterCheck.mandatoryString("nodeRef", nodeRef);
|
||||
|
||||
// create the node
|
||||
this.node = new Node(new NodeRef(Repository.getStoreRef(), id));
|
||||
this.node = new Node(new NodeRef(nodeRef));
|
||||
|
||||
// determine description for dialog
|
||||
FacesContext context = FacesContext.getCurrentInstance();
|
||||
|
@@ -282,6 +282,14 @@ public class Node implements Serializable
|
||||
return this.nodeRef;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Returns the string form of the NodeRef this Node represents
|
||||
*/
|
||||
public final String getNodeRefAsString()
|
||||
{
|
||||
return this.nodeRef.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Returns the type.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user