public abstract class AbstractPrintServicelayerTest extends ServicelayerTransactionalTest
defaultLanguage, jaloSession| Constructor and Description |
|---|
AbstractPrintServicelayerTest() |
| Modifier and Type | Method and Description |
|---|---|
protected AutomatedWorkflowActionTemplateModel |
createAutomatedWorkflowActionTemplateModel(UserModel user,
String code,
WorkflowActionType actionType,
WorkflowTemplateModel workflow,
Class jobClass)
Creates new automated action template.
|
protected void |
createChapter() |
protected void |
createCometConfiguration() |
protected void |
createLayoutTemplate() |
protected void |
createPageFormat() |
protected WorkflowTemplateModel |
createPrintJobWorkflowTemplate(UserModel owner,
UserModel assignee)
Creates new basic PrintJob workflow template with 3 WorkflowActions and the transition 1-->2, 2-->1 and 2-->3
|
protected void |
createPublication() |
protected UserModel |
createUser(String userName)
Creates a user instance using given uid and assign him read access to WorkflowActions
|
protected WorkflowActionTemplateModel |
createWorkflowActionTemplateModel(UserModel user,
String code,
WorkflowActionType actionType,
WorkflowTemplateModel workflow)
Creates new action template.
|
protected void |
createWorkflowActionTemplateModelLinkTemplateRelation(WorkflowDecisionTemplateModel decisionTemplate,
WorkflowActionTemplateModel toAction,
Boolean hasAndConnection) |
protected WorkflowDecisionTemplateModel |
createWorkflowDecisionTemplate(String code,
WorkflowActionTemplateModel actionTemplate)
Creates new decision template.
|
protected WorkflowTemplateModel |
createWorkflowTemplate(UserModel owner,
String code,
String desc)
Creates new workflow template using given user, code, and description.
|
protected WorkflowTemplateModel |
createWorkflowTemplate(UserModel owner,
String code,
String desc,
String activationScript)
Creates new workflow template using given user, code, description and activation script.
|
protected CatalogService |
getCatalogService() |
protected ConfigurationService |
getConfigurationService() |
protected WorkflowDecisionModel |
getDecision(String code,
WorkflowActionModel action)
Gets the decision with given code from test workflow instance.
|
protected FlexibleSearchService |
getFlexibleSearchService() |
protected ModelService |
getModelService() |
protected String |
getPrintJobWorkflowName() |
protected UserService |
getUserService() |
protected CommentModel |
prepareComment(String code,
String subject,
int pageIndex,
UserModel assignee) |
protected CommentModel |
prepareCommentWithMetadata(String code,
String subject,
int pageIndex,
UserModel assignee)
Create metadata to place comment on a page
|
protected GridModel |
prepareGrid(int gridElementsCount,
int id) |
protected PageModel |
preparePage() |
void |
setUp() |
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionfinish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivatedprotected UserModel createUser(String userName)
userName - user id used for user creationprotected GridModel prepareGrid(int gridElementsCount, int id)
protected PageModel preparePage()
protected void createChapter()
protected void createPublication()
protected void createPageFormat()
protected void createLayoutTemplate()
protected void createCometConfiguration()
protected CommentModel prepareComment(String code, String subject, int pageIndex, UserModel assignee)
protected CommentModel prepareCommentWithMetadata(String code, String subject, int pageIndex, UserModel assignee)
protected WorkflowTemplateModel createPrintJobWorkflowTemplate(UserModel owner, UserModel assignee)
owner - user which will be the owner of the workflow template assignee for WorkflowAction 1 and 3assignee - user which will be assignee for WorkflowAction 2protected WorkflowTemplateModel createWorkflowTemplate(UserModel owner, String code, String desc)
owner - user assigned to new templatecode - code of new templatedesc - description assigned to templateprotected WorkflowTemplateModel createWorkflowTemplate(UserModel owner, String code, String desc, String activationScript)
owner - user assigned to new templatecode - code of new templatedesc - description assigned to templateactivationScript - code of the activation scriptprotected WorkflowActionTemplateModel createWorkflowActionTemplateModel(UserModel user, String code, WorkflowActionType actionType, WorkflowTemplateModel workflow)
user - user assigned to templatecode - code of templateworkflow - workflow assigned to action templateprotected AutomatedWorkflowActionTemplateModel createAutomatedWorkflowActionTemplateModel(UserModel user, String code, WorkflowActionType actionType, WorkflowTemplateModel workflow, Class jobClass)
user - user assigned to templatecode - code of templateworkflow - workflow assigned to action templateprotected WorkflowDecisionTemplateModel createWorkflowDecisionTemplate(String code, WorkflowActionTemplateModel actionTemplate)
code - code of templateactionTemplate - action template assigned to decision templateprotected void createWorkflowActionTemplateModelLinkTemplateRelation(WorkflowDecisionTemplateModel decisionTemplate, WorkflowActionTemplateModel toAction, Boolean hasAndConnection)
decisionTemplate - toAction - hasAndConnection - protected WorkflowDecisionModel getDecision(String code, WorkflowActionModel action)
code - code of needed decisionprotected ModelService getModelService()
protected UserService getUserService()
protected ConfigurationService getConfigurationService()
protected CatalogService getCatalogService()
protected FlexibleSearchService getFlexibleSearchService()
protected String getPrintJobWorkflowName()
Copyright © 2017 SAP SE. All Rights Reserved.