mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@30270 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -82,7 +82,6 @@ import org.alfresco.service.cmr.security.PermissionService;
|
||||
import org.alfresco.service.cmr.thumbnail.ThumbnailService;
|
||||
import org.alfresco.service.cmr.version.Version;
|
||||
import org.alfresco.service.cmr.version.VersionHistory;
|
||||
import org.alfresco.service.cmr.version.VersionServiceException;
|
||||
import org.alfresco.service.cmr.version.VersionType;
|
||||
import org.alfresco.service.cmr.workflow.WorkflowInstance;
|
||||
import org.alfresco.service.cmr.workflow.WorkflowService;
|
||||
@@ -118,7 +117,7 @@ import org.springframework.extensions.surf.util.URLEncoder;
|
||||
*
|
||||
* @author Kevin Roast
|
||||
*/
|
||||
public class ScriptNode implements Serializable, Scopeable, NamespacePrefixResolverProvider
|
||||
public class ScriptNode implements Scopeable, NamespacePrefixResolverProvider
|
||||
{
|
||||
private static final long serialVersionUID = -3378946227712939601L;
|
||||
|
||||
@@ -880,6 +879,15 @@ public class ScriptNode implements Serializable, Scopeable, NamespacePrefixResol
|
||||
return getParentAssocs();
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks whether the {@link ScriptNode} exists in the repository.
|
||||
* @return
|
||||
*/
|
||||
public boolean exists()
|
||||
{
|
||||
return nodeService.exists(nodeRef);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return all the properties known about this node. The Map returned implements the Scriptable interface to
|
||||
* allow access to the properties via JavaScript associative array access. This means properties of a node can
|
||||
|
Reference in New Issue
Block a user