Class PreviewContext
java.lang.Object
org.springframework.extensions.webscripts.PreviewContext
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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPreviewContext(String storeId) Constructs a new preview context instancePreviewContext(String storeId, String webappId) Constructs a new preview context instancePreviewContext(String storeId, String webappId, String userId) Constructs a new preview context instance -
Method Summary
Modifier and TypeMethodDescriptionGets the id of the storeGets the user idGets the WCM web application id This applies for the case where the store is an AVM store which was built by Alfresco WCM.voidsetStoreId(String storeId) Sets the id of the storevoidSets the user idvoidsetWebappId(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 Details
-
DEFAULT_STORE_ID
- See Also:
-
-
Constructor Details
-
PreviewContext
public PreviewContext() -
PreviewContext
Constructs a new preview context instance- Parameters:
storeId- the store id
-
PreviewContext
Constructs a new preview context instance- Parameters:
storeId- the store idwebappId- the WCM web application id
-
PreviewContext
Constructs a new preview context instance- Parameters:
storeId- the store idwebappId- the WCM web application iduserId- the user id
-
-
Method Details
-
getStoreId
Gets the id of the store- Returns:
- the store id
-
setStoreId
Sets the id of the store- Parameters:
storeId- the store id
-
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
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
Gets the user id- Returns:
- user id
-
setUserId
Sets the user id- Parameters:
userId- user id
-