org.alfresco.repo.template
Class AVMTemplateStore

java.lang.Object
  extended by org.alfresco.repo.template.AVMTemplateStore

public class AVMTemplateStore
extends java.lang.Object

Representation of an AVM Store for the template model. Accessed via the AVM helper object and is responsible for returning AVMTemplateNode objects via various mechanisms.


Constructor Summary
AVMTemplateStore(ServiceRegistry services, TemplateImageResolver resolver, AVMStoreDescriptor store)
          Constructor
 
Method Summary
 java.util.Date getCreatedDate()
           
 java.lang.String getCreator()
           
 java.lang.String getId()
           
 AVMTemplateNode getLookupRoot()
           
 java.lang.String getName()
           
 AVMTemplateNode lookupNode(java.lang.String path)
          Lookup a node in the store, the path is assumed to be related to the webapps folder root.
 java.util.List luceneSearch(java.lang.String query)
          Perform a lucene query against this store.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AVMTemplateStore

public AVMTemplateStore(ServiceRegistry services,
                        TemplateImageResolver resolver,
                        AVMStoreDescriptor store)
Constructor

Parameters:
services -
resolver -
store - Store descriptor this object represents
Method Detail

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.util.Date getCreatedDate()
Returns:
Creation date of the store

getLookupRoot

public AVMTemplateNode getLookupRoot()
Returns:
the root node of all webapps in the store

lookupNode

public AVMTemplateNode 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 java.util.List luceneSearch(java.lang.String query)
Perform a lucene query against this store.

Parameters:
query - Lucene
Returns:
list of AVM node objects as results - empty list if no results found


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.