org.alfresco.repo.jscript
Class AVMScriptStore
java.lang.Object
org.alfresco.repo.jscript.AVMScriptStore
- All Implemented Interfaces:
- java.io.Serializable
public class AVMScriptStore
- extends java.lang.Object
- implements java.io.Serializable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AVMScriptStore
public AVMScriptStore(ServiceRegistry services,
AVMStoreDescriptor store,
org.mozilla.javascript.Scriptable scope)
- Constructor
- Parameters:
services
- store
- Store descriptor this object representsscope
-
getName
public java.lang.String getName()
- Returns:
- Store name
getId
public java.lang.String getId()
- Returns:
- Store name
getCreator
public java.lang.String getCreator()
- Returns:
- User who created the store
getCreatedDate
public java.io.Serializable getCreatedDate()
- Returns:
- Creation date of the store
lookupRoot
public AVMNode lookupRoot()
- Returns:
- the root node of all webapps in the store
lookupNode
public AVMNode lookupNode(java.lang.String path)
- Lookup a node in the store, the path is assumed to be related to the webapps folder root.
Therefore a valid path would be "/ROOT/WEB-INF/lib/web.xml".
- Parameters:
path
- Relative to the webapps folder root path for this store.
- Returns:
- node if found, null otherwise.
luceneSearch
public org.mozilla.javascript.Scriptable luceneSearch(java.lang.String query)
- Perform a lucene query against this store.
- Parameters:
query
- Lucene
- Returns:
- array of AVM node object results - empty array if no results found
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.