Class PreviewContext
- java.lang.Object
-
- org.springframework.extensions.webscripts.PreviewContext
-
public class PreviewContext extends java.lang.ObjectProvides 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
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_STORE_ID
-
Constructor Summary
Constructors Constructor Description PreviewContext()PreviewContext(java.lang.String storeId)Constructs a new preview context instancePreviewContext(java.lang.String storeId, java.lang.String webappId)Constructs a new preview context instancePreviewContext(java.lang.String storeId, java.lang.String webappId, java.lang.String userId)Constructs a new preview context instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetStoreId()Gets the id of the storejava.lang.StringgetUserId()Gets the user idjava.lang.StringgetWebappId()Gets the WCM web application id This applies for the case where the store is an AVM store which was built by Alfresco WCM.voidsetStoreId(java.lang.String storeId)Sets the id of the storevoidsetUserId(java.lang.String userId)Sets the user idvoidsetWebappId(java.lang.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.
-
-
-
Field Detail
-
DEFAULT_STORE_ID
public static final java.lang.String DEFAULT_STORE_ID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PreviewContext
public PreviewContext()
-
PreviewContext
public PreviewContext(java.lang.String storeId)
Constructs a new preview context instance- Parameters:
storeId- the store id
-
PreviewContext
public PreviewContext(java.lang.String storeId, java.lang.String webappId)Constructs a new preview context instance- Parameters:
storeId- the store idwebappId- the WCM web application id
-
PreviewContext
public PreviewContext(java.lang.String storeId, java.lang.String webappId, java.lang.String userId)Constructs a new preview context instance- Parameters:
storeId- the store idwebappId- the WCM web application iduserId- the user id
-
-
Method Detail
-
getStoreId
public java.lang.String getStoreId()
Gets the id of the store- Returns:
- the store id
-
setStoreId
public void setStoreId(java.lang.String storeId)
Sets the id of the store- Parameters:
storeId- the store id
-
getWebappId
public java.lang.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(java.lang.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 java.lang.String getUserId()
Gets the user id- Returns:
- user id
-
setUserId
public void setUserId(java.lang.String userId)
Sets the user id- Parameters:
userId- user id
-
-