public class PrintManager extends GeneratedPrintManager
Extension.RestrictedLanguagesProvider, Extension.RightsProviderManager.GenericManagerSingletonCreator, Manager.ManagerSingletonCreatorCATEGORY2CONTENTBLOCKRELATION_MARKMODIFIED, CATEGORY2CONTENTBLOCKRELATION_SRC_ORDERED, CATEGORY2CONTENTBLOCKRELATION_TGT_ORDERED, COMPOSEDTYPE2PLACEHOLDERTEMPLATERELATIONPLACEHOLDERTEMPLATESHANDLER, DEFAULT_INITIAL_ATTRIBUTES, PRINCIPAL2READABLEPUBLICATIONCOMPONENTRELATION_MARKMODIFIED, PRINCIPAL2READABLEPUBLICATIONCOMPONENTRELATION_SRC_ORDERED, PRINCIPAL2READABLEPUBLICATIONCOMPONENTRELATION_TGT_ORDERED, PRINCIPAL2READABLEPUBLICATIONRELATION_MARKMODIFIED, PRINCIPAL2READABLEPUBLICATIONRELATION_SRC_ORDERED, PRINCIPAL2READABLEPUBLICATIONRELATION_TGT_ORDERED, PRINCIPAL2WRITEABLEPUBLICATIONCOMPONENTRELATION_MARKMODIFIED, PRINCIPAL2WRITEABLEPUBLICATIONCOMPONENTRELATION_SRC_ORDERED, PRINCIPAL2WRITEABLEPUBLICATIONCOMPONENTRELATION_TGT_ORDERED, PRINCIPAL2WRITEABLEPUBLICATIONRELATION_MARKMODIFIED, PRINCIPAL2WRITEABLEPUBLICATIONRELATION_SRC_ORDERED, PRINCIPAL2WRITEABLEPUBLICATIONRELATION_TGT_ORDERED, PUBLICATION2MEDIA_MARKMODIFIED, PUBLICATION2MEDIA_SRC_ORDERED, PUBLICATION2MEDIA_TGT_ORDERED| Constructor and Description |
|---|
PrintManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterItemCreation(SessionContext ctx,
ComposedType type,
Item createdItem,
Item.ItemAttributeMap attributes)
This method will be called after an item was created.
|
void |
beforeItemCreation(SessionContext ctx,
ComposedType type,
Item.ItemAttributeMap attributes)
This method will be called before an item is created BUT AFTER the default values of this type are assigned
|
CometConfiguration |
createCometConfiguration(String code,
String publicationController)
Creates a new CometConfiguration.
|
void |
createEssentialData(Map params,
JspContext jspc) |
PathPrefix |
createPathPrefix(SessionContext ctx,
String code,
String pathWindows,
String pathMac) |
PathPrefix |
createPathPrefix(String code,
String pathWindows,
String pathMac) |
void |
createPreviewPageJob(Page page)
Deprecated.
use
PagePreviewTools.createPreviewPageJob(Page) instead! |
void |
createPreviewPageJob(Page page,
CometConstants.AutoCometJob status)
Deprecated.
|
void |
createPreviewPageJob(Page page,
CometConstants.AutoCometJob status,
EnumerationValue enumvalue)
Deprecated.
|
void |
createProjectData(Map params,
JspContext jspc) |
void |
createUsersAndGroupsAndRights()
Deprecated.
|
String |
generateUniqueComponentID()
Creates a unique publication component id
|
List<AbstractLayoutTemplate> |
getAbstractLayoutTemplates(PlaceholderTemplate placeholderTemplate) |
List<AbstractLayoutTemplate> |
getAbstractLayoutTemplates(SessionContext ctx,
PlaceholderTemplate placeholderTemplate) |
Collection<LayoutTemplate> |
getAllLayoutTemplates(ComposedType type) |
Collection<MasterPage> |
getAllMasterPages(ComposedType type) |
Collection<PlaceholderTemplate> |
getAllPlaceholderTemplates(ComposedType type) |
List<Publication> |
getAllPublications()
Returns all publications in the system.
|
List<Publication> |
getAllPublications(int start,
int count)
Returns all Publications in the given range.
|
List<TableBlock> |
getAllTableTemplates()
Returns all table templates in system.
|
AutoCometJob |
getAutoCometJob(int id)
Returns the AutoCometJob with the given id ot throw a AutoCometJobNotFound CometException
|
ClassificationUtils |
getClassificationUtils() |
CometConfiguration |
getCometConfigurationByCode(String code)
Returns the first found CometConfiguration for the given code
(or null, if no CometConfiguration could be found). |
CometFile |
getCometFileByCode(CometConfiguration config,
String code)
Returns the first found CometFile for the given code in the given CometConfiguration
(or null, if no CometFile could be found). |
Collection<CometFile> |
getCometFiles(CometConfiguration config)
Returns all CometFiles of the specified CometConfiguration
|
String |
getCreatorParameterDefault(String param)
Implement this method to provide default value for the given creator parameter.
|
Collection |
getCreatorParameterNames()
Provides parameters for the system creator.
|
List |
getCreatorParameterPossibleValues(String param)
Implement this method to provide a list of all possible values for the given creator parameter.
|
CometConfiguration |
getDefaultCometConfiguration() |
PlaceholderTemplate |
getDefaultPlaceholderTemplate(ComposedType type)
Returns the first found PlaceholderTemplate that is assigned to the given type
(or null, if no PlaceholderTemplate could be found) |
ExpressionEvaluator |
getExpressionEvaluator() |
FormatUtils |
getFormatUtils() |
static PrintManager |
getInstance() |
List<LayoutTemplate> |
getLayoutTemplates(PlaceholderTemplate placeholderTemplate) |
List<LayoutTemplate> |
getLayoutTemplates(SessionContext ctx,
PlaceholderTemplate placeholderTemplate) |
List<MasterPage> |
getMasterPages(PlaceholderTemplate placeholderTemplate) |
List<MasterPage> |
getMasterPages(SessionContext ctx,
PlaceholderTemplate placeholderTemplate) |
Media |
getMediaByCode(String code)
Returns the first found Media with the specified code
|
AutoCometJob |
getNextAutoCometJob() |
StyleContainer |
getOrCreateGlobalStyleContainer()
Returns
null or the existing global (singleton) StyleContainer |
PathPrefix |
getOrCreatePathPrefix(String code) |
Page |
getPage(String code) |
List<Page> |
getPages(Grid grid) |
PathPrefix |
getPathPrefixByCode(String code)
Returns the PathPrefix item for the given code (or null, if an item could not be found)
|
Placeholder |
getPlaceholderByActionId(int id) |
Placeholder |
getPlaceholderById(int id) |
List<Placement> |
getPlacements(LayoutTemplate layoutTemplate) |
PriceUtils |
getPriceUtils() |
Publication |
getPublicationByCode(String code)
Returns
null or the first Publication that is registered for the given code. |
List<Publication> |
getPublicationByConfiguration(CometConfiguration config)
Returns all publications belonging to the given comet configuration.
|
PublicationComponent |
getPublicationComponentById(String id)
Returns PublicationComponent (Chapter, Page or Placement) by given ID
|
SessionManager |
getSessionManager()
Returns the SessionManager that handles Sessions of the Werk II Comet
|
StyleContainer |
getStyleContainerByCode(String code)
Returns
null or the first StyleContainer that is registered for the given code. |
List<Class> |
getTableAxisDataProviders()
Returns all table axis data provider classes.
|
TableBuilder |
getTableBuilder() |
List<Class> |
getTableCellDataResolvers()
Returns all table cell data resolver classes.
|
List<Class> |
getTableSortComparators()
Returns cell comparator classes.
|
TableRenderer |
getTableToHTMLPreviewRenderer() |
TableRenderer |
getTableToHTMLRenderer() |
TableRenderer |
getTableToTaggedTextRenderer() |
List<Product> |
getUncategorizedProducts(CatalogVersion catalogVersion)
Returns list of products from given catalog version that do not belong to any Category, but may belong to
ClassificationSystem.
|
ValuePostProcessingService |
getValuePostProcessingService() |
ValuePreProcessingService |
getValuePreProcessingService() |
ValueUtils |
getValueUtils() |
VariantUtils |
getVariantUtils() |
void |
importCSVFromResources(String csv) |
void |
importCSVFromResources(String csv,
String encoding,
char fieldseparator,
char quotecharacter,
boolean codeExecution) |
boolean |
isCreatorDisabled()
This default implementation returns
false. |
void |
loadCometConfigFromDirectory(CometConfiguration config,
File rootDir)
Creates CometFiles with static content for the given CometConfiguration and the given root directory of these
files.
|
void |
loadCometConfigFromZip(CometConfiguration config,
URL zip)
Creates CometFiles with static content for the given CometConfiguration and the given ZIP URL.
|
void |
loadCometConfigFromZip(CometConfiguration config,
ZipFile zip)
Creates CometFiles with static content for the given CometConfiguration and the given ZIP file.
|
protected void |
notifyItemRemoval(SessionContext ctx,
Item item)
TODO improve API doc Is called just before a item is being removed.
|
void |
setExampleFileHandlingAttributes(PathPrefix pathPrefix) |
void |
setFileHandlingAttributes(Chapter chapter,
String documentPath,
String templateFilePath) |
void |
setFileHandlingAttributes(Page page,
String documentPath,
String templateFilePath) |
void |
setFileHandlingAttributes(Publication pub,
String root) |
void |
setTableAxisDataProviders(List<Class> providers)
Sets all table axis data provider classes.
|
void |
setTableCellDataResolvers(List<Class> resolvers)
Sets all table cell data resolver classes.
|
void |
setTableSortComparators(List<Class> comparators)
Sets all cell comparator classes.
|
addToContentBlocks, addToContentBlocks, addToPlaceholderTemplates, addToPlaceholderTemplates, addToPublication, addToPublication, addToReadPublication, addToReadPublication, addToReadPublicationComponent, addToReadPublicationComponent, addToWritePublication, addToWritePublication, addToWritePublicationComponent, addToWritePublicationComponent, createAction, createAction, createAttributePlaceholder, createAttributePlaceholder, createAutoCometJob, createAutoCometJob, createAxisDataHolder, createAxisDataHolder, createCellDataHolder, createCellDataHolder, createCellEntry, createCellEntry, createCellStyle, createCellStyle, createChapter, createChapter, createChapterConfiguration, createChapterConfiguration, createChapterParagraphStyle, createChapterParagraphStyle, createChaptersConfiguration, createChaptersConfiguration, createCharacterStyle, createCharacterStyle, createClassificationAttributePlaceholder, createClassificationAttributePlaceholder, createCollectionParameterValue, createCollectionParameterValue, createColumnEntry, createColumnEntry, createCometConfiguration, createCometConfiguration, createCometFile, createCometFile, createCommentGroup, createCommentGroup, createCrossreference, createCrossreference, createCrossreferenceTargetPlaceholder, createCrossreferenceTargetPlaceholder, createCustomPlaceholder, createCustomPlaceholder, createDtpComment, createDtpComment, createExpressionPlaceholder, createExpressionPlaceholder, createGrid, createGrid, createGridElement, createGridElement, createHotfolder, createHotfolder, createImageBlock, createImageBlock, createItemPlacement, createItemPlacement, createLayoutTemplate, createLayoutTemplate, createMapParameterValue, createMapParameterValue, createMasterPage, createMasterPage, createPage, createPage, createPageFormat, createPageFormat, createParagraphStyle, createParagraphStyle, createPathPrefix, createPathPrefix, createPlaceholderTemplate, createPlaceholderTemplate, createPrintJobHistoryEntry, createPrintJobHistoryEntry, createPublication, createPublication, createRowEntry, createRowEntry, createSingleParameterValue, createSingleParameterValue, createSortConfig, createSortConfig, createStyleContainer, createStyleContainer, createTableBlock, createTableBlock, createTableDataHolder, createTableDataHolder, createTablePlaceholder, createTablePlaceholder, createTableStyle, createTableStyle, createTextBlock, createTextBlock, createTOCBlock, createTOCBlock, getCommentGroup, getCommentGroup, getContentBlocks, getContentBlocks, getContentBlocksCount, getContentBlocksCount, getDefaultAttributeModes, getName, getPlaceholderTemplates, getPlaceholderTemplates, getPrincipalAssigned, getPrincipalAssigned, getPrintJobDecision, getPrintJobDecision, getPublication, getPublication, getPublicationCount, getPublicationCount, getReadPublication, getReadPublication, getReadPublicationComponent, getReadPublicationComponent, getReadPublicationComponentCount, getReadPublicationComponentCount, getReadPublicationCount, getReadPublicationCount, getWorkflow, getWorkflow, getWritePublication, getWritePublication, getWritePublicationComponent, getWritePublicationComponent, getWritePublicationComponentCount, getWritePublicationComponentCount, getWritePublicationCount, getWritePublicationCount, isReceivedByDtp, isReceivedByDtp, isReceivedByDtpAsPrimitive, isReceivedByDtpAsPrimitive, removeFromContentBlocks, removeFromContentBlocks, removeFromPlaceholderTemplates, removeFromPlaceholderTemplates, removeFromPublication, removeFromPublication, removeFromReadPublication, removeFromReadPublication, removeFromReadPublicationComponent, removeFromReadPublicationComponent, removeFromWritePublication, removeFromWritePublication, removeFromWritePublicationComponent, removeFromWritePublicationComponent, setCommentGroup, setCommentGroup, setContentBlocks, setContentBlocks, setPlaceholderTemplates, setPlaceholderTemplates, setPrincipalAssigned, setPrincipalAssigned, setPrintJobDecision, setPrintJobDecision, setPublication, setPublication, setReadPublication, setReadPublication, setReadPublicationComponent, setReadPublicationComponent, setReceivedByDtp, setReceivedByDtp, setReceivedByDtp, setReceivedByDtp, setWorkflow, setWorkflow, setWritePublication, setWritePublication, setWritePublicationComponent, setWritePublicationComponentcheckBeforeItemRemoval, createSampleData, getCreatorDescription, getCreatorName, getRemote, notifyInitializationEnd, notifyInitializationStart, onFirstSessionCreation, writeReplacedestroy, getAllValuesSessionContext, getAttribute, getAttributeMap, getFirstItemByAttribute, getFirstItemByAttribute, getRemoteManagerClass, getSession, getSingletonManagerInstance, getTenant, getTransientObject, getTransientObjectMap, init, setAttribute, setTenant, setTransientObject, unwrap, unwrap, wrappublic static PrintManager getInstance()
public void createEssentialData(Map params, JspContext jspc)
createEssentialData in class Extensionparams - the parameters provided by user for creation of objects for the extensionjspc - the jsp context; you can use it to write progress information to the jsp page during creationpublic void createProjectData(Map params, JspContext jspc) throws Exception
createProjectData in class ExtensionException@Deprecated public void createUsersAndGroupsAndRights()
public void loadCometConfigFromZip(CometConfiguration config, URL zip)
config - The CometConfiguration to which to add static configuration fileszip - The ZIP URLpublic void loadCometConfigFromZip(CometConfiguration config, ZipFile zip)
config - The CometConfiguration to which to add static configuration fileszip - The ZIP filepublic void loadCometConfigFromDirectory(CometConfiguration config, File rootDir)
config - The CometConfiguration to which to add static configuration filesrootDir - The root directory to the static configuration filespublic CometFile getCometFileByCode(CometConfiguration config, String code)
config - The CometConfiguration in which to find the specified CometFilecode - The code for which to find a CometFilepublic Collection<CometFile> getCometFiles(CometConfiguration config)
config - The CometConfiguration from which to get all CometFilespublic void importCSVFromResources(String csv)
public void importCSVFromResources(String csv, String encoding, char fieldseparator, char quotecharacter, boolean codeExecution)
public Collection getCreatorParameterNames()
getCreatorParameterNames in class Extensionpublic String getCreatorParameterDefault(String param)
getCreatorParameterDefault in class Extensionparam - the name of the parameternull when the parameter should have no
default valuepublic List getCreatorParameterPossibleValues(String param)
null the
list of these values will be shown to the user of system creator and no other values will be possible to set.getCreatorParameterPossibleValues in class Extensionparam - the name of the parameternull when this parameter
should have
no restriction of possible valuespublic boolean isCreatorDisabled()
false.isCreatorDisabled in class Extensionfalsepublic StyleContainer getOrCreateGlobalStyleContainer()
null or the existing global (singleton) StyleContainernull or the first found StyleContainer with the given codepublic StyleContainer getStyleContainerByCode(String code)
null or the first StyleContainer that is registered for the given code.code - the code of the StyleContainer to be foundnull or the first found StyleContainer with the given codepublic Publication getPublicationByCode(String code)
null or the first Publication that is registered for the given code.code - the code of the Publication to be foundnull or the first found Publication with the given codepublic List<Publication> getPublicationByConfiguration(CometConfiguration config)
config - comet configuration the publications belong topublic List<Publication> getAllPublications(int start, int count)
start - the position where the search for Publications starts (0 = first position)count - the number of elements in this search rangepublic List<Product> getUncategorizedProducts(CatalogVersion catalogVersion)
catalogVersion - public List<Publication> getAllPublications()
public AutoCometJob getNextAutoCometJob()
public AutoCometJob getAutoCometJob(int id)
id - the unique id of an AutoCometJobpublic CometConfiguration createCometConfiguration(String code, String publicationController)
code - The unique code of the new CometConfigurationpublicationController - The related IPublicationController for this Configurationpublic CometConfiguration getCometConfigurationByCode(String code) throws JaloItemNotFoundException
code - The code for which to find a CometConfigurationJaloItemNotFoundException - if no CometConfiguration with the given code exists.public Media getMediaByCode(String code)
code - The code to find a media forpublic SessionManager getSessionManager()
public TableBuilder getTableBuilder()
public TableRenderer getTableToHTMLRenderer()
public TableRenderer getTableToHTMLPreviewRenderer()
public TableRenderer getTableToTaggedTextRenderer()
public ExpressionEvaluator getExpressionEvaluator()
public PriceUtils getPriceUtils()
public FormatUtils getFormatUtils()
public VariantUtils getVariantUtils()
public ValueUtils getValueUtils()
public ClassificationUtils getClassificationUtils()
public ValuePostProcessingService getValuePostProcessingService()
public ValuePreProcessingService getValuePreProcessingService()
public List<AbstractLayoutTemplate> getAbstractLayoutTemplates(PlaceholderTemplate placeholderTemplate)
public List<AbstractLayoutTemplate> getAbstractLayoutTemplates(SessionContext ctx, PlaceholderTemplate placeholderTemplate)
public List<LayoutTemplate> getLayoutTemplates(PlaceholderTemplate placeholderTemplate)
public List<LayoutTemplate> getLayoutTemplates(SessionContext ctx, PlaceholderTemplate placeholderTemplate)
public List<MasterPage> getMasterPages(PlaceholderTemplate placeholderTemplate)
public List<MasterPage> getMasterPages(SessionContext ctx, PlaceholderTemplate placeholderTemplate)
public PlaceholderTemplate getDefaultPlaceholderTemplate(ComposedType type)
type - The ComposedType for which to find a PlaceholderTemplatepublic Collection<PlaceholderTemplate> getAllPlaceholderTemplates(ComposedType type)
public Collection<MasterPage> getAllMasterPages(ComposedType type)
public Collection<LayoutTemplate> getAllLayoutTemplates(ComposedType type)
public Placeholder getPlaceholderById(int id)
public Placeholder getPlaceholderByActionId(int id)
public List<Placement> getPlacements(LayoutTemplate layoutTemplate)
public List<TableBlock> getAllTableTemplates()
public PublicationComponent getPublicationComponentById(String id)
id - public String generateUniqueComponentID()
public PathPrefix createPathPrefix(String code, String pathWindows, String pathMac)
public PathPrefix createPathPrefix(SessionContext ctx, String code, String pathWindows, String pathMac)
public PathPrefix getOrCreatePathPrefix(String code)
public void setFileHandlingAttributes(Publication pub, String root)
public void setFileHandlingAttributes(Chapter chapter, String documentPath, String templateFilePath)
public void setFileHandlingAttributes(Page page, String documentPath, String templateFilePath)
public void setExampleFileHandlingAttributes(PathPrefix pathPrefix)
public List<Class> getTableAxisDataProviders()
AxisDataProviderpublic void setTableAxisDataProviders(List<Class> providers)
providers - provider classesAxisDataProviderpublic List<Class> getTableCellDataResolvers()
CellDataResolverpublic void setTableCellDataResolvers(List<Class> resolvers)
resolvers - resolver classesCellDataResolverpublic List<Class> getTableSortComparators()
CellValueComparatorpublic void setTableSortComparators(List<Class> comparators)
comparators - comparator classesCellValueComparatorpublic CometConfiguration getDefaultCometConfiguration()
public PathPrefix getPathPrefixByCode(String code)
code - The code for which to find a PathPrefix item.public void beforeItemCreation(SessionContext ctx, ComposedType type, Item.ItemAttributeMap attributes) throws JaloBusinessException
ManagerbeforeItemCreation in class Managerctx - the currency session contexttype - the type of the item which will be createdattributes - the attribute values to be used for creationJaloBusinessException
This method does nothing and may be overridden.
CAUTION: This method will be called inside a transaction !!!
public void afterItemCreation(SessionContext ctx, ComposedType type, Item createdItem, Item.ItemAttributeMap attributes) throws JaloBusinessException
ManagerafterItemCreation in class Managerctx - the currency session contexttype - the type of the item which will be createdcreatedItem - the created itemJaloBusinessException
This method does nothing and may be overridden.
CAUTION: This method will be called inside a transaction !!!
@Deprecated public void createPreviewPageJob(Page page)
PagePreviewTools.createPreviewPageJob(Page) instead!page - The Page for which to create the previews@Deprecated public void createPreviewPageJob(Page page, CometConstants.AutoCometJob status, EnumerationValue enumvalue)
PagePreviewTools.createPreviewPageJob(Page, CometConstants.AutoCometJob, EnumerationValue)
instead!page - The Page for which to create the previewsstatus - The AutoCometJob's initial statusenumvalue - These Job will be, depending of the enum, deleted@Deprecated public void createPreviewPageJob(Page page, CometConstants.AutoCometJob status)
PagePreviewTools.createPreviewPageJob(Page, CometConstants.AutoCometJob) instead!page - The Page for which to create the previewsstatus - The AutoCometJob's initial statusprotected void notifyItemRemoval(SessionContext ctx, Item item)
ManagerManager.checkBeforeItemRemoval(SessionContext, Item) instead.
This method does nothing and may be overridden.
notifyItemRemoval in class Extensionctx - the currency session contextitem - the item which is going to be removedCopyright © 2017 SAP SE. All Rights Reserved.