Class PreviewContext

java.lang.Object
org.springframework.extensions.webscripts.PreviewContext

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 Details

  • Constructor Details

    • PreviewContext

      public PreviewContext()
    • PreviewContext

      public PreviewContext(String storeId)
      Constructs a new preview context instance
      Parameters:
      storeId - the store id
    • PreviewContext

      public PreviewContext(String storeId, String webappId)
      Constructs a new preview context instance
      Parameters:
      storeId - the store id
      webappId - the WCM web application id
    • PreviewContext

      public PreviewContext(String storeId, String webappId, String userId)
      Constructs a new preview context instance
      Parameters:
      storeId - the store id
      webappId - the WCM web application id
      userId - the user id
  • Method Details

    • 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
    • getUserId

      public String getUserId()
      Gets the user id
      Returns:
      user id
    • setUserId

      public void setUserId(String userId)
      Sets the user id
      Parameters:
      userId - user id