mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Merged V2.2 to HEAD
7498: Deployment callback and event changes 7499: Build fix 7505: Fixed deployment script issue in IE 7525: Added sample job that will clean deployment attempts older than 180 days (by default) 7526: Typo compilation fix git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@8383 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -56,6 +56,8 @@ public class DeploymentEvent implements Serializable
|
||||
private Pair<Integer, String> fSource;
|
||||
|
||||
private String fDestination;
|
||||
|
||||
private String fMessage;
|
||||
|
||||
public DeploymentEvent(Type type, Pair<Integer, String> source, String destination)
|
||||
{
|
||||
@@ -63,6 +65,13 @@ public class DeploymentEvent implements Serializable
|
||||
fSource = source;
|
||||
fDestination = destination;
|
||||
}
|
||||
|
||||
public DeploymentEvent(Type type, Pair<Integer, String> source, String destination, String message)
|
||||
{
|
||||
this(type, source, destination);
|
||||
|
||||
fMessage = message;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the type of the event.
|
||||
@@ -90,12 +99,28 @@ public class DeploymentEvent implements Serializable
|
||||
{
|
||||
return fDestination;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the message.
|
||||
* @return
|
||||
*/
|
||||
public String getMessage()
|
||||
{
|
||||
return fMessage;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a String representation.
|
||||
*/
|
||||
public String toString()
|
||||
{
|
||||
return fType + ": " + fSource + " -> " + fDestination;
|
||||
String str = fType + ": " + fSource + " -> " + fDestination;
|
||||
|
||||
if (fMessage != null)
|
||||
{
|
||||
str = str + " (" + fMessage + ")";
|
||||
}
|
||||
|
||||
return str;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user