org.springframework.extensions.webscripts
Class PreviewContext

java.lang.Object
  extended by org.springframework.extensions.webscripts.PreviewContext
Direct Known Subclasses:
ThreadLocalPreviewContext

public class PreviewContext
extends Object

Provides information about the WCM sandbox which is currently being previewed. A sandbox context provider may be registered with any of the Alfresco Store types. LocalFileSystemStore RemoteStore

Author:
muzquiano

Field Summary
static String DEFAULT_STORE_ID
           
 
Constructor Summary
PreviewContext()
           
PreviewContext(String storeId)
          Constructs a new remote sandbox context instance
PreviewContext(String storeId, String webappId)
          Constructs a new remote sandbox context instance
 
Method Summary
 String getStoreId()
          Gets the id of the store
 String getWebappId()
          Gets the WCM web application id This applies for the case where the store is an AVM store which was built by Alfresco WCM.
 void setStoreId(String storeId)
          Sets the id of the store
 void setWebappId(String webappId)
          Sets the WCM web application id This applies for the case where the store is an AVM store which was built by Alfresco WCM.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_STORE_ID

public static final String DEFAULT_STORE_ID
See Also:
Constant Field Values
Constructor Detail

PreviewContext

public PreviewContext()

PreviewContext

public PreviewContext(String storeId)
Constructs a new remote sandbox context instance

Parameters:
storeId - the store id

PreviewContext

public PreviewContext(String storeId,
                      String webappId)
Constructs a new remote sandbox context instance

Parameters:
storeId - the store id
webappId - the WCM web application id
Method Detail

getStoreId

public String getStoreId()
Gets the id of the store

Returns:
the store id

setStoreId

public void setStoreId(String storeId)
Sets the id of the store

Parameters:
storeId - the store id

getWebappId

public String getWebappId()
Gets the WCM web application id This applies for the case where the store is an AVM store which was built by Alfresco WCM.

Returns:
the WCM web application id

setWebappId

public void setWebappId(String webappId)
Sets the WCM web application id This applies for the case where the store is an AVM store which was built by Alfresco WCM.

Parameters:
webappId - the WCM web application id


Copyright © 2009 SpringSource, Inc. All Rights Reserved.