ALF-10200 - NodeMonitor: StringIndexOutOfBoundsException

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@30471 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Mark Rogers
2011-09-13 13:01:40 +00:00
parent 271595f862
commit ca11ba7b54
4 changed files with 156 additions and 122 deletions

View File

@@ -29,14 +29,19 @@ import org.alfresco.service.cmr.repository.NodeRef;
*/
public class CreateNodeEvent extends NodeEvent {
private String relPath;
private String name;
/**
* Class constructor
*
* @param fType FileFolderServiceTtype
* @param nodeRef NodeRef
*/
public CreateNodeEvent( FileFolderServiceType fType, NodeRef nodeRef) {
public CreateNodeEvent( FileFolderServiceType fType, NodeRef nodeRef, String relPath, String name) {
super( fType, nodeRef);
this.setRelPath(relPath);
this.setName(name);
}
/**
@@ -55,4 +60,24 @@ public class CreateNodeEvent extends NodeEvent {
return str.toString();
}
public void setRelPath(String relPath)
{
this.relPath = relPath;
}
public String getRelPath()
{
return relPath;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
}