| org.theospi.portfolio.presentation.model.impl.PresentationManagerImpl
Method Summary | |
protected boolean | artifactExists(Id artifactId) | protected String | buildLayoutRef(String siteId, String contextId, ContentResource resource) | protected List<Id> | buildPresList(Collection presentationAuthzs) | protected String | buildRef(String siteId, String contextId, ContentResource resource) | public boolean | checkFormConsumption(Id formId) | public boolean | checkStyleConsumption(Id styleId) | public void | cleanupTool(Id toolId) | protected void | clearLocks(Id id) | protected void | convertPortfolioTemplates(List templates) | protected void | convertPortfolios(List portfolios) | public PresentationTemplate | copyTemplate(Id templateId) | protected PresentationTemplate | copyTemplate(Id templateId, String toContext, boolean checkAuthz, boolean rename) | protected Id | copyTemplateFile(ContentCollection templateParent, Id oldFileId, Hashtable fileMap) | public void | createComment(PresentationComment comment) | public void | createComment(PresentationComment comment, boolean checkAuthz, boolean updateDates) | public Document | createDocument(Presentation presentation) | protected Element | createElementNode(String name, String value) | protected PresentationItemDefinition | createFreeFormItemDef(PresentationTemplate template) | protected PresentationTemplate | createFreeFormTemplate(Id rendererId) | protected Element | createNavigationElement(PresentationPage page) | protected Id | createResource(String resourceLocation, String name, String description, String type) | public void | deleteArtifactReference(Id artifactId) | protected void | deleteComments(Id presentationId) | protected void | deleteLogs(Id presentationId) | public void | deletePresentation(Id id) | public void | deletePresentation(Id id, boolean checkAuthz) | public void | deletePresentationComment(PresentationComment comment) | public void | deletePresentationItem(Id id) | public void | deletePresentationItemDefinition(Id id) | public void | deletePresentationLayout(Id id) | protected void | deletePresentationPages(Id presentationId) | public boolean | deletePresentationTemplate(Id id) | protected void | deleteResource(Id qualifierId, Id resourceId) | public void | deleteTemplateFileRef(Id refId) | public void | deleteUnusedItemDefinition(PresentationTemplate template) | public void | deleteUnusedItemDefinition(Id itemDefId) | protected void | deleteViewers(Id presId) | public Collection | findAllGlobalLayouts() | public Collection | findGlobalTemplates() | public Collection | findLayoutsByOwner(Agent owner, String siteId) | public Collection | findLogsByPresID(Id presID) | public Collection | findMyGlobalLayouts() | public Collection | findPresentationsByOwner(Agent owner) | public Collection | findPresentationsByOwner(Agent owner, String toolId) | public Collection | findPresentationsByTool(Id id) | public Collection | findPresentationsByViewer(Agent viewer) | public Collection | findPresentationsByViewer(Agent viewer, String toolId) | public Collection | findPresentationsByViewer(Agent viewer, String toolId, boolean showHidden) | public Collection | findPublishedLayouts(String siteId) | public Collection | findPublishedTemplates() | public Collection | findPublishedTemplates(String siteId) | protected Collection | findPublishedTemplatesBySite(String siteId) | public Collection | findTemplatesByOwner(Agent owner, String siteId) | public Collection | findTemplatesByOwner(Agent owner) | protected String | findUniqueFileName(String id, String name) | protected StructuredArtifactDefinitionBean | findUsableFormDef(List formDefs, int caseSwitch, String siteId) | protected void | fixupRegions(PresentationPage page) | public AgentManager | getAgentManager() | public Collection | getAllPresentationLayouts() | public Collection | getAllPresentationTemplates() | public Collection | getAllPresentationsForWarehouse() | public ArtifactFinderManager | getArtifactFinderManager() | public AuthenticationManager | getAuthnManager() | public AuthorizationFacade | getAuthzManager() | public ContentHostingService | getContentHosting() | public List | getCreatorComments(Agent creator, CommentSortBy sortBy) | public List | getCreatorComments(Agent creator, String toolId, CommentSortBy sortBy) | public List | getDefinedLayouts() | protected WritableObjectHome | getFileHome() | protected Element | getFileRefAsXml(Presentation presentation, TemplateFileRef fileRef) | public PresentationPage | getFirstPresentationPage(Id presentationId) | public Id | getFreeFormTemplateId() | public List | getGlobalSiteTypes() | public List | getGlobalSites() | public HomeFactory | getHomeFactory() | public IdManager | getIdManager() | public String | getImportFolderName() | public List | getInitializedServices() | public Presentation | getLightweightPresentation(Id id) | public LockManager | getLockManager() | public Node | getNode(Id artifactId) | public Node | getNode(Reference ref, Presentation presentation) | public Node | getNode(Id nodeId, Presentation presentation) | public Node | getNode(Id artifactId, PresentationLayout layout) | protected Node | getNode(Node node, Presentation presentation) | protected Node | getNode(Node node, PresentationLayout layout) | public Node | getNode(Reference ref) | public List | getOwnerComments(Agent owner, CommentSortBy sortBy) | public List | getOwnerComments(Agent owner, CommentSortBy sortBy, boolean excludeOwner) | public List | getOwnerComments(Agent owner, String toolId, CommentSortBy sortBy) | public List | getOwnerComments(Agent owner, String toolId, CommentSortBy sortBy, boolean excludeOwner) | protected List | getPortfoliosForConversion() | public Presentation | getPresentation(Id id, String secretExportKey) | public Presentation | getPresentation(Id id) | public PresentationComment | getPresentationComment(Id id) | public List | getPresentationComments(Id presentationId, Agent viewer) | public PresentationItem | getPresentationItem(Id id) | protected Artifact | getPresentationItem(String type, Id itemId, Presentation presentation) | public PresentationItemDefinition | getPresentationItemDefinition(Id id) | public Collection | getPresentationItems(Id artifactId) | public PresentationLayout | getPresentationLayout(Id id) | public Document | getPresentationLayoutAsXml(Presentation presentation, String pageId) | protected Document | getPresentationLayoutAsXml(Id pageId) | public PresentationPage | getPresentationPage(Id id) | public PresentationPage | getPresentationPage(Id presentationId, int pageIndex) | protected Element | getPresentationPageAsXml(PresentationPage page) | protected Document | getPresentationPageLayoutAsXml(PresentationPage page) | public List | getPresentationPagesByPresentation(Id presentationId) | protected List | getPresentationPagesByStyle(Id styleId) | public Document | getPresentationPreviewLayoutAsXml(Presentation presentation, String pageId) Create an xml document represenation of the requested page from the
presentation passed in. | public PresentationTemplate | getPresentationTemplate(Id id) | public Collection | getPresentationsBasedOnTemplateFileRef(Id artifactId) | protected List | getPresentationsByStyle(Id styleId) | public SecurityService | getSecurityService() | public StructuredArtifactDefinitionManager | getStructuredArtifactDefinitionManager() | public String | getTempPresDownloadDir() | protected ContentCollectionEdit | getTemplateFileDir(String origName) This gets the directory in which the import places files into. | public TemplateFileRef | getTemplateFileRef(Id refId) | protected List | getTemplatesForConversion() | protected ContentCollection | getUserCollection() | public WorksiteManager | getWorksiteManager() | protected void | handleChildren(PresentationTemplate oldTemplate, ContentCollection templateParent, Hashtable fileMap) | public void | importResources(String fromContext, String toContext, List resourceIds) | public void | init() | protected void | initFreeFormTemplate() | protected void | initGlobalLayouts() | public boolean | isAutoDdl() | public boolean | isGlobal() | public boolean | isPortfolioPropertyFormConversion() | public Collection | loadArtifactsForItemDef(PresentationItemDefinition itemDef, Agent agent) | protected ByteArrayOutputStream | loadResource(String name) | protected void | lockLayoutFiles(PresentationLayout layout) | protected void | lockStyleFiles(Style style) | protected void | lockTemplateFiles(PresentationTemplate template) locks all the files associated with this template. | protected Element | outputTypedContent(String type, String value, Presentation presentation, String contentType) | public String | packageForDownload(Map params, OutputStream out) | protected String | packagePresentationForExport(Id presentationId, OutputStream out) | public String | packageTemplateForExport(Id templateId, OutputStream os) | protected String | packageTemplateForExportInternal(Id templateId, OutputStream os) | protected PresentationLayout | processDefinedLayout(PresentationLayoutWrapper wrapper) | protected void | processFile(Node node, Hashtable fileMap) | protected PresentationTemplate | processTemplate(ZipInputStream zis) | protected void | processTemplateFile(ZipEntry currentEntry, ZipInputStream zis, Hashtable fileMap, ContentCollection fileParent) | protected void | processTemplateForm(ZipEntry currentEntry, ZipInputStream zis, Map formMap, Id worksite) | public void | reassignOwner(PresentationTemplate templateId) | protected boolean | resourceExists(String returned) | public void | setAgentManager(AgentManager agentManager) | public void | setArtifactFinderManager(ArtifactFinderManager artifactFinderManager) | public void | setAuthnManager(AuthenticationManager authnManager) | public void | setAuthzManager(AuthorizationFacade authzManager) | public void | setAutoDdl(boolean autoDdl) | public void | setContentHosting(ContentHostingService contentHosting) | public void | setDefinedLayouts(List definedLayouts) | public void | setFileHome(WritableObjectHome fileHome) | public void | setGlobalSiteTypes(List globalSiteTypes) | public void | setGlobalSites(List globalSites) | public void | setHomeFactory(HomeFactory homeFactory) | public void | setIdManager(IdManager idManager) | public void | setImportFolderName(String importFolderName) | public void | setInitializedServices(List initializedServices) | public void | setLockManager(LockManager lockManager) | public void | setPortfolioPropertyFormConversion(boolean portfolioPropertyFormConversion) | public void | setSecurityService(SecurityService securityService) | public void | setStructuredArtifactDefinitionManager(StructuredArtifactDefinitionManager structuredArtifactDefinitionManager) | public void | setTempPresDownloadDir(String tempPresDownloadDir) | public void | setWorksiteManager(WorksiteManager worksiteManager) | protected void | setupPresItemDefinition(Presentation presentation) | protected void | storeFileInZip(ZipOutputStream zos, InputStream in, String entryName) | protected void | storeFormInZip(ZipOutputStream zos, ReadableObjectHome home) | public PresentationLayout | storeLayout(PresentationLayout layout) | public PresentationLayout | storeLayout(PresentationLayout layout, boolean checkAuthz) | public Presentation | storePresentation(Presentation presentation, boolean checkAuthz, boolean updateDates) saves or updates a presentation and any associated presentention_items. | public Presentation | storePresentation(Presentation presentation) | public void | storePresentationLog(PresentationLog log) | protected void | storePresentationPages(List pages, Id presentationId) | public PresentationTemplate | storeTemplate(PresentationTemplate template) | protected PresentationTemplate | storeTemplate(PresentationTemplate template, boolean checkAuthz) | public PresentationTemplate | storeTemplate(PresentationTemplate template, boolean checkAuthz, boolean updateDates) | protected void | storeTemplateFile(ZipOutputStream zos, Id fileId, List existingEntries) | protected boolean | substituteFileId(StringBuffer sb, Id oldId, Id newId) | protected void | substituteIds(Hashtable fileMap) | protected void | switchUser(Agent owner) | public void | updateItemDefintion(PresentationItemDefinition itemDef) | protected void | updateLayout(PresentationLayoutWrapper wrapper, PresentationLayout layout) | public void | updatePresentationComment(PresentationComment comment) | protected Id | updateResource(Id qualifierId, Id resourceId, String resourceLocation) | public void | updateTemplateFileRef(TemplateFileRef ref) | public PresentationTemplate | uploadTemplate(String templateFileName, String toContext, InputStream zipFileStream) | protected PresentationTemplate | uploadTemplate(String templateFileName, String toContext, InputStream zipFileStream, boolean checkAuthz) | public void | viewingPresentation(Presentation presentation) |
artifactExists | protected boolean artifactExists(Id artifactId)(Code) | | |
checkFormConsumption | public boolean checkFormConsumption(Id formId)(Code) | | |
checkStyleConsumption | public boolean checkStyleConsumption(Id styleId)(Code) | | |
cleanupTool | public void cleanupTool(Id toolId)(Code) | | |
clearLocks | protected void clearLocks(Id id)(Code) | | remove all the locks associated with this template
|
convertPortfolioTemplates | protected void convertPortfolioTemplates(List templates)(Code) | | Parameters: templates - A list of PresentationTemplate objects |
convertPortfolios | protected void convertPortfolios(List portfolios)(Code) | | Parameters: portfolios - A list of Presentation objects |
deleteArtifactReference | public void deleteArtifactReference(Id artifactId)(Code) | | |
deleteComments | protected void deleteComments(Id presentationId) throws HibernateException(Code) | | |
deleteLogs | protected void deleteLogs(Id presentationId) throws HibernateException(Code) | | |
deletePresentation | public void deletePresentation(Id id)(Code) | | |
deletePresentation | public void deletePresentation(Id id, boolean checkAuthz)(Code) | | |
deletePresentationItem | public void deletePresentationItem(Id id)(Code) | | |
deletePresentationItemDefinition | public void deletePresentationItemDefinition(Id id)(Code) | | |
deletePresentationLayout | public void deletePresentationLayout(Id id)(Code) | | |
deletePresentationPages | protected void deletePresentationPages(Id presentationId) throws HibernateException(Code) | | |
deletePresentationTemplate | public boolean deletePresentationTemplate(Id id)(Code) | | |
deleteResource | protected void deleteResource(Id qualifierId, Id resourceId)(Code) | | |
deleteTemplateFileRef | public void deleteTemplateFileRef(Id refId)(Code) | | |
deleteUnusedItemDefinition | public void deleteUnusedItemDefinition(Id itemDefId)(Code) | | |
deleteViewers | protected void deleteViewers(Id presId)(Code) | | |
findUsableFormDef | protected StructuredArtifactDefinitionBean findUsableFormDef(List formDefs, int caseSwitch, String siteId)(Code) | | Parameters: formDefs - A List of StructuredArtifactDefinitionBean objects to search through Parameters: caseSwitch - 0 for global published, 1 for site published, 2 for any in site Parameters: siteId - The id of site to search in The StructuredArtifactDefinitionBean object that was found, null of none found |
getAllPresentationTemplates | public Collection getAllPresentationTemplates()(Code) | | |
getAllPresentationsForWarehouse | public Collection getAllPresentationsForWarehouse()(Code) | | |
getDefinedLayouts | public List getDefinedLayouts()(Code) | | |
getFreeFormTemplateId | public Id getFreeFormTemplateId()(Code) | | |
getGlobalSiteTypes | public List getGlobalSiteTypes()(Code) | | |
getImportFolderName | public String getImportFolderName()(Code) | | |
getInitializedServices | public List getInitializedServices()(Code) | | |
getPortfoliosForConversion | protected List getPortfoliosForConversion()(Code) | | |
getPresentationComments | public List getPresentationComments(Id presentationId, Agent viewer)(Code) | | |
getPresentationLayoutAsXml | protected Document getPresentationLayoutAsXml(Id pageId)(Code) | | |
getPresentationPagesByPresentation | public List getPresentationPagesByPresentation(Id presentationId)(Code) | | |
getPresentationPagesByStyle | protected List getPresentationPagesByStyle(Id styleId)(Code) | | |
getPresentationPreviewLayoutAsXml | public Document getPresentationPreviewLayoutAsXml(Presentation presentation, String pageId)(Code) | | Create an xml document represenation of the requested page from the
presentation passed in.
Parameters: presentation - Parameters: pageId - xml representation of the requested page or null |
getPresentationsBasedOnTemplateFileRef | public Collection getPresentationsBasedOnTemplateFileRef(Id artifactId)(Code) | | |
getPresentationsByStyle | protected List getPresentationsByStyle(Id styleId)(Code) | | |
getTempPresDownloadDir | public String getTempPresDownloadDir()(Code) | | |
getTemplatesForConversion | protected List getTemplatesForConversion()(Code) | | |
initFreeFormTemplate | protected void initFreeFormTemplate()(Code) | | |
initGlobalLayouts | protected void initGlobalLayouts()(Code) | | |
isAutoDdl | public boolean isAutoDdl()(Code) | | |
isGlobal | public boolean isGlobal()(Code) | | |
isPortfolioPropertyFormConversion | public boolean isPortfolioPropertyFormConversion()(Code) | | |
lockStyleFiles | protected void lockStyleFiles(Style style)(Code) | | |
lockTemplateFiles | protected void lockTemplateFiles(PresentationTemplate template)(Code) | | locks all the files associated with this template.
Parameters: template - |
setAutoDdl | public void setAutoDdl(boolean autoDdl)(Code) | | |
setDefinedLayouts | public void setDefinedLayouts(List definedLayouts)(Code) | | |
setGlobalSiteTypes | public void setGlobalSiteTypes(List globalSiteTypes)(Code) | | |
setGlobalSites | public void setGlobalSites(List globalSites)(Code) | | |
setImportFolderName | public void setImportFolderName(String importFolderName)(Code) | | |
setInitializedServices | public void setInitializedServices(List initializedServices)(Code) | | |
setPortfolioPropertyFormConversion | public void setPortfolioPropertyFormConversion(boolean portfolioPropertyFormConversion)(Code) | | |
setTempPresDownloadDir | public void setTempPresDownloadDir(String tempPresDownloadDir)(Code) | | |
setupPresItemDefinition | protected void setupPresItemDefinition(Presentation presentation)(Code) | | |
storePresentation | public Presentation storePresentation(Presentation presentation, boolean checkAuthz, boolean updateDates)(Code) | | saves or updates a presentation and any associated presentention_items.
This method does not persist the viewer list, for that use addViewer(), or deleteViewer()
Parameters: presentation - |
storePresentationPages | protected void storePresentationPages(List pages, Id presentationId)(Code) | | |
updateResource | protected Id updateResource(Id qualifierId, Id resourceId, String resourceLocation)(Code) | | |
|
|