mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fixes for a couple of Script Version API issues found by TonyB when testing for API docs
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31402 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -19,6 +19,7 @@
|
|||||||
package org.alfresco.repo.jscript;
|
package org.alfresco.repo.jscript;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
import org.alfresco.service.ServiceRegistry;
|
import org.alfresco.service.ServiceRegistry;
|
||||||
import org.alfresco.service.cmr.repository.NodeRef;
|
import org.alfresco.service.cmr.repository.NodeRef;
|
||||||
@@ -56,9 +57,9 @@ public final class ScriptVersion implements Serializable
|
|||||||
*
|
*
|
||||||
* @return the date the version was created
|
* @return the date the version was created
|
||||||
*/
|
*/
|
||||||
public Object getCreatedDate()
|
public Date getCreatedDate()
|
||||||
{
|
{
|
||||||
return converter.convertValueForScript(services, scope, null, version.getCreatedDate());
|
return version.getCreatedDate();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -87,9 +88,16 @@ public final class ScriptVersion implements Serializable
|
|||||||
* @return "MAJOR", "MINOR"
|
* @return "MAJOR", "MINOR"
|
||||||
*/
|
*/
|
||||||
public String getType()
|
public String getType()
|
||||||
|
{
|
||||||
|
if (version.getVersionType() != null)
|
||||||
{
|
{
|
||||||
return version.getVersionType().name();
|
return version.getVersionType().name();
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the version description (or checkin comment)
|
* Gets the version description (or checkin comment)
|
||||||
|
Reference in New Issue
Block a user