@Name(value="layoutDemoContext") @Scope(value=SESSION) public class LayoutDemoContext extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected ActionManager |
actionManager |
protected DocumentModel |
bareDemoDocument |
static String |
DEMO_DOCUMENT_TYPE |
protected CoreSession |
demoCoreSession |
protected PageSelections<DocumentModel> |
demoDocuments |
protected Map<String,Aggregate<Bucket>> |
layoutDemoAggregates |
protected List<Action> |
layoutDemoCustomActions |
protected LayoutDemoManager |
layoutDemoManager |
protected DocumentModel |
previewDocument |
static String |
TEST_REPO_NAME |
static String |
VALIDATION_DOCUMENT_TYPE |
protected DocumentModel |
validationDocument |
protected WebLayoutManager |
webLayoutManager |
Constructor and Description |
---|
LayoutDemoContext() |
Modifier and Type | Method and Description |
---|---|
void |
closeCoreSession() |
protected DocumentModel |
fillListingDocumentProperties(DocumentModel doc,
int index) |
protected DocumentModel |
fillPreviewDocumentProperties(DocumentModel doc,
int index) |
protected DocumentModel |
generateBareDemoDocument() |
protected DocumentModel |
generateValidationDocument() |
List<DemoWidgetType> |
getActionWidgetTypes() |
List<DemoWidgetType> |
getAggregateWidgetTypes() |
DocumentModel |
getBareDemoDocument() |
List<DemoWidgetType> |
getCustomWidgetTypes() |
PageSelections<DocumentModel> |
getDemoDocuments() |
Map<String,Aggregate<Bucket>> |
getLayoutDemoAggregates() |
List<Action> |
getLayoutDemoCustomActions() |
protected DocumentModel |
getListingDemoDocument(int index) |
List<DemoWidgetType> |
getListingWidgetTypes() |
DocumentModel |
getPreviewDocument() |
List<DemoWidgetType> |
getStandardWidgetTypes() |
DocumentModel |
getValidationDocument() |
void |
openCoreSession() |
void |
resetValidationDocument() |
public static final String TEST_REPO_NAME
public static final String DEMO_DOCUMENT_TYPE
public static final String VALIDATION_DOCUMENT_TYPE
protected CoreSession demoCoreSession
@In(create=true) protected LayoutDemoManager layoutDemoManager
@In(create=true) protected WebLayoutManager webLayoutManager
@In(create=true) protected transient ActionManager actionManager
protected DocumentModel bareDemoDocument
protected DocumentModel validationDocument
protected DocumentModel previewDocument
protected PageSelections<DocumentModel> demoDocuments
protected List<Action> layoutDemoCustomActions
protected Map<String,Aggregate<Bucket>> layoutDemoAggregates
public LayoutDemoContext()
@Create public void openCoreSession()
@Destroy @BypassInterceptors public void closeCoreSession()
@Factory(value="standardWidgetTypes", scope=SESSION) public List<DemoWidgetType> getStandardWidgetTypes()
@Factory(value="listingWidgetTypes", scope=SESSION) public List<DemoWidgetType> getListingWidgetTypes()
@Factory(value="customWidgetTypes", scope=SESSION) public List<DemoWidgetType> getCustomWidgetTypes()
@Factory(value="aggregateWidgetTypes", scope=SESSION) public List<DemoWidgetType> getAggregateWidgetTypes()
@Factory(value="actionWidgetTypes", scope=SESSION) public List<DemoWidgetType> getActionWidgetTypes()
protected DocumentModel generateBareDemoDocument()
protected DocumentModel generateValidationDocument()
@Factory(value="layoutBareDemoDocument", scope=EVENT) public DocumentModel getBareDemoDocument()
@Factory(value="layoutValidationDocument", scope=EVENT) public DocumentModel getValidationDocument()
public void resetValidationDocument()
@Factory(value="layoutPreviewDocument", scope=EVENT) public DocumentModel getPreviewDocument()
@Factory(value="layoutDemoDocuments", scope=EVENT) public PageSelections<DocumentModel> getDemoDocuments()
protected DocumentModel fillPreviewDocumentProperties(DocumentModel doc, int index)
protected DocumentModel fillListingDocumentProperties(DocumentModel doc, int index)
protected DocumentModel getListingDemoDocument(int index)
@Factory(value="layoutDemoCustomActions", scope=EVENT) public List<Action> getLayoutDemoCustomActions()
@Factory(value="layoutDemoAggregates", scope=EVENT) public Map<String,Aggregate<Bucket>> getLayoutDemoAggregates()
Copyright © 2018 Nuxeo. All rights reserved.