|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.infoglue.deliver.controllers.kernel.impl.simple.BasicTemplateController
This is the most basic template controller supplying the templates using it with methods to fetch contents, structure and other suff needed for a site. Mostly this class just acts as a delegator to other more specialized classes.
| Field Summary | |
static java.lang.String |
META_INFO_BINDING_NAME
|
static java.lang.String |
NAV_TITLE_ATTRIBUTE_NAME
|
static java.lang.String |
TEMPLATE_ATTRIBUTE_NAME
|
static java.lang.String |
TITLE_ATTRIBUTE_NAME
|
| Constructor Summary | |
BasicTemplateController(DatabaseWrapper databaseWrapper,
InfoGluePrincipal infoGluePrincipal)
The constructor for the templateController. |
|
| Method Summary | |
void |
addToContext(java.lang.String name,
java.lang.Object object)
Add objects to be used in subsequent parsing like getParsedContentAttribute, include, etc |
void |
closeTransaction()
Commit transactions so far so a different call can be made which otherwise gets a deadlock. |
java.lang.String |
decoratePage(java.lang.String page)
|
java.lang.String |
getArchiveBaseUrl(java.lang.Integer contentId,
java.lang.String assetKey)
This method deliveres a String with the URL to the base path of the directory resulting from an unpacking of a uploaded zip-digitalAsset. |
java.lang.String |
getArchiveBaseUrl(java.lang.String contentBindningName,
int index,
java.lang.String assetKey)
This method deliveres a String with the URL to the base path of the directory resulting from an unpacking of a uploaded zip-digitalAsset. |
java.lang.String |
getArchiveBaseUrl(java.lang.String contentBindningName,
java.lang.String assetKey)
This method deliveres a String with the URL to the base path of the directory resulting from an unpacking of a uploaded zip-digitalAsset. |
java.util.Vector |
getArchiveEntries(java.lang.Integer contentId,
java.lang.String assetKey)
|
java.lang.Integer |
getAssetFileSize(java.lang.Integer contentId)
|
java.lang.Integer |
getAssetFileSize(java.lang.Integer contentId,
java.lang.String assetKey)
|
java.lang.Integer |
getAssetFileSize(java.lang.String contentBindningName,
int index)
|
java.lang.Integer |
getAssetFileSize(java.lang.String contentBindningName,
java.lang.String assetKey)
|
java.util.Collection |
getAssetKeys(java.lang.Integer contentId)
This method deliveres a list of strings which represents all assetKeys for a content. |
java.util.Collection |
getAssetKeys(java.lang.String contentBindningName)
This method deliveres a list of strings which represents all assetKeys for a content. |
java.lang.String |
getAssetThumbnailUrl(InfoGluePrincipal principal,
java.lang.String assetKey,
java.lang.Integer languageId,
java.lang.Integer siteNodeId,
boolean useLanguageFallback,
int width,
int height)
This method deliveres a String with the URL to the digital asset asked for. |
java.lang.String |
getAssetThumbnailUrl(java.lang.Integer contentId,
int width,
int height)
This method deliveres a String with the URL to the thumbnail for the digital asset asked for. |
java.lang.String |
getAssetThumbnailUrl(java.lang.Integer contentId,
java.lang.String assetKey,
int width,
int height)
This method deliveres a String with the URL to the thumbnail for the digital asset asked for. |
java.lang.String |
getAssetThumbnailUrl(java.lang.String contentBindningName,
int width,
int height)
This method deliveres a String with the URL to the thumbnail of the digital asset asked for. |
java.lang.String |
getAssetThumbnailUrl(java.lang.String contentBindningName,
java.lang.String assetKey,
int width,
int height)
This method deliveres a String with the URL to the thumbnail of the digital asset asked for. |
java.lang.String |
getAssetUrl(InfoGluePrincipal principal,
java.lang.String assetKey,
java.lang.Integer languageId,
java.lang.Integer siteNodeId,
boolean useLanguageFallback)
This method deliveres a String with the URL to the digital asset asked for. |
java.lang.String |
getAssetUrl(java.lang.Integer contentId)
This method deliveres a String with the URL to the digital asset asked for. |
java.lang.String |
getAssetUrl(java.lang.Integer contentId,
java.lang.String assetKey)
This method deliveres a String with the URL to the digital asset asked for. |
java.lang.String |
getAssetUrl(java.lang.String contentBindningName)
This method deliveres a String with the URL to the digital asset asked for. |
java.lang.String |
getAssetUrl(java.lang.String contentBindningName,
int index)
This method deliveres a String with the URL to the digital asset asked for. |
java.lang.String |
getAssetUrl(java.lang.String contentBindningName,
java.lang.String assetKey)
This method deliveres a String with the URL to the digital asset asked for. |
java.util.List |
getAvailableLanguages()
This method returns a list of all languages available on the current site/repository. |
ContentVO |
getBoundContent(java.lang.String structureBindningName)
The method returns a single ContentVO-objects that is the bound content of named binding. |
java.util.List |
getBoundContents(java.lang.String structureBindningName)
The method returns a list of ContentVO-objects that is the bound content of named binding. |
java.util.List |
getBoundFolderContents(java.lang.Integer siteNodeId,
java.lang.String structureBindningName,
boolean searchRecursive,
java.lang.String sortAttribute,
java.lang.String sortOrder)
The method returns a list of ContentVO-objects that is children to the bound content of named binding on the siteNode sent in. |
java.util.List |
getBoundFolderContents(java.lang.String structureBindningName,
boolean searchRecursive,
java.lang.String sortAttribute,
java.lang.String sortOrder)
The method returns a list of ContentVO-objects that is children to the bound content of named binding. |
WebPage |
getBoundPage(java.lang.String structureBindningName,
int position)
The method returns a list of WebPage-objects that is the bound sitenodes of named binding. |
java.util.List |
getBoundPages(java.lang.Integer siteNodeId,
java.lang.String structureBindningName)
This methods get a list of bound pages with the structureBindningName sent in which resides on the siteNodeId sent in. |
java.util.List |
getBoundPages(java.lang.String structureBindningName)
|
BrowserBean |
getBrowserBean()
Getter for the browserBean which supplies information about the users browser, OS and other stuff. |
ChartHelper |
getChartHelper()
This method gets the math utility. |
java.util.Collection |
getChildContents(java.lang.Integer contentId,
boolean includeFolders)
This method gets the children of a content. |
java.util.List |
getChildContents(java.lang.Integer contentId,
boolean searchRecursive,
java.lang.String sortAttribute,
java.lang.String sortOrder)
The method returns a list of ContentVO-objects that is children to the bound content sent in. |
java.util.List |
getChildContents(java.lang.Integer contentId,
boolean searchRecursive,
java.lang.String sortAttribute,
java.lang.String sortOrder,
boolean includeFolders)
The method returns a list of ContentVO-objects that is children to the bound content sent in. |
java.util.List |
getChildPages()
The method returns a list of WebPage-objects that is the children of the current siteNode. |
java.util.List |
getChildPages(java.lang.Integer siteNodeId)
The method returns a list of WebPage-objects that is the children of the given siteNode. |
java.util.List |
getChildPages(java.lang.Integer siteNodeId,
java.lang.String sortAttribute,
java.lang.String sortOrder)
The method returns a list of WebPage-objects that is the children of the given siteNode. |
java.util.List |
getChildPages(java.lang.String structureBindingName)
The method returns a list of WebPage-objects that is the children of the given siteNode. |
ColorHelper |
getColorHelper()
This method gets the color utility. |
ComponentLogic |
getComponentLogic()
This method gets a component logic helper object. |
ContentVO |
getContent()
Getter for the current content |
ContentVO |
getContent(java.lang.Integer contentId)
Getter for the current content |
java.lang.String |
getContentAttribute(ContentVersionVO version,
java.lang.String attributeName)
Finds an attribute on the provided ContentVersion. |
java.lang.String |
getContentAttribute(java.lang.Integer contentId,
java.lang.Integer languageId,
java.lang.String attributeName)
This method deliveres a String with the content-attribute asked for in the language asked for. |
java.lang.String |
getContentAttribute(java.lang.Integer contentId,
java.lang.Integer languageId,
java.lang.String attributeName,
boolean clean)
This method is just a dummy method used to ensure that we can ensure to not get a decorated attribute value if OnSiteEdit is on. |
java.lang.String |
getContentAttribute(java.lang.Integer contentId,
java.lang.String attributeName)
This method deliveres a String with the content-attribute asked for. |
java.lang.String |
getContentAttribute(java.lang.Integer contentId,
java.lang.String attributeName,
boolean clean)
This method is just a dummy method used to ensure that we can ensure to not get a decorated attribute value if OnSiteEdit is on. |
java.lang.String |
getContentAttribute(java.lang.String attributeName)
This method deliveres a String with the content-attribute asked for if it exists in the content defined in the url-parameter contentId. |
java.lang.String |
getContentAttribute(java.lang.String attributeName,
boolean clean)
This method is just a dummy method used to ensure that we can ensure to not get a decorated attribute value if OnSiteEdit is on. |
java.lang.String |
getContentAttribute(java.lang.String contentBindningName,
java.lang.String attributeName)
This method deliveres a String with the content-attribute asked for. |
java.lang.String |
getContentAttribute(java.lang.String contentBindningName,
java.lang.String attributeName,
boolean clean)
This method is just a dummy method used to ensure that we can ensure to not get a decorated attribute value if OnSiteEdit is on. |
java.lang.String |
getContentAttributeAsImageUrl(java.lang.Integer contentId,
java.lang.String attributeName,
int canvasWidth,
int canvasHeight,
int textStartPosX,
int textStartPosY,
int textWidth,
int textHeight,
java.lang.String fontName,
int fontStyle,
int fontSize,
java.awt.Color foregroundColor,
java.awt.Color backgroundColor)
|
java.lang.String |
getContentAttributeAsImageUrl(java.lang.Integer contentId,
java.lang.String attributeName,
int canvasWidth,
int canvasHeight,
int textStartPosX,
int textStartPosY,
int textWidth,
int textHeight,
java.lang.String fontName,
int fontStyle,
int fontSize,
java.awt.Color foregroundColor,
java.awt.Color backgroundColor,
java.lang.String backgroundImageUrl)
|
java.lang.String |
getContentAttributeAsImageUrl(java.lang.Integer contentId,
java.lang.String attributeName,
int canvasWidth,
int canvasHeight,
int textStartPosX,
int textStartPosY,
int textWidth,
int textHeight,
java.lang.String fontName,
int fontStyle,
int fontSize,
java.lang.String foregroundColor,
java.lang.String backgroundColor)
|
java.lang.String |
getContentAttributeAsImageUrl(java.lang.String contentBindningName,
java.lang.String attributeName,
int canvasWidth,
int canvasHeight)
This method deliveres a String with the content-attribute asked for generated as a gif-file. |
java.lang.String |
getContentAttributeAsImageUrl(java.lang.String contentBindningName,
java.lang.String attributeName,
int canvasWidth,
int canvasHeight,
int textStartPosX,
int textStartPosY,
int textWidth,
int textHeight,
java.lang.String fontName,
int fontStyle,
int fontSize,
java.awt.Color foregroundColor,
java.awt.Color backgroundColor)
|
java.lang.String |
getContentAttributeAsImageUrl(java.lang.String contentBindningName,
java.lang.String attributeName,
int canvasWidth,
int canvasHeight,
int textStartPosX,
int textStartPosY,
int textWidth,
int textHeight,
java.lang.String fontName,
int fontStyle,
int fontSize,
java.awt.Color foregroundColor,
java.awt.Color backgroundColor,
java.lang.String backgroundImageUrl)
|
java.lang.String |
getContentAttributeAsImageUrl(java.lang.String contentBindningName,
java.lang.String attributeName,
int canvasWidth,
int canvasHeight,
int textStartPosX,
int textStartPosY,
int textWidth,
int textHeight,
java.lang.String fontName,
int fontStyle,
int fontSize,
java.lang.String foregroundColor,
java.lang.String backgroundColor)
|
java.lang.String |
getContentAttributeAsImageUrl(java.lang.String contentBindningName,
java.lang.String attributeName,
int canvasWidth,
int canvasHeight,
int textStartPosX,
int textStartPosY,
int textWidth,
int textHeight,
java.lang.String fontName,
int fontStyle,
int fontSize,
java.lang.String foregroundColor,
java.lang.String backgroundColor,
java.lang.String backgroundImageUrl)
|
java.lang.String |
getContentAttributeAsPDFUrl(java.lang.Integer contentId,
java.lang.String attributeName)
This method uses the content-attribute to generate a pdf-file. |
java.lang.String |
getContentAttributeAsPDFUrl(java.lang.String contentBindningName,
java.lang.String attributeName)
This method uses the content-attribute to generate a pdf-file. |
java.util.Map |
getContentAttributes(java.lang.Integer contentId)
This method delivers a map with all unparsed content attributes |
java.util.List |
getContentAttributes(java.lang.String schemaValue)
This method returns a list of elements/attributes based on the contentType sent in. |
java.lang.String |
getContentAttributeUsingLanguageFallback(java.lang.Integer contentId,
java.lang.String attributeName,
boolean disableEditOnSight)
This method deliveres a String with the content-attribute asked for in the language asked for. |
java.lang.Integer |
getContentId()
Getter for the contentId |
java.lang.Integer |
getContentId(java.lang.Integer siteNodeId,
java.lang.String contentBindningName)
Getter for bound contentId for a binding on a special siteNode |
java.lang.Integer |
getContentId(java.lang.String contentBindningName)
Getter for bound contentId for a binding |
java.util.Collection |
getContentTypeDefinitionAssetKeys(java.lang.String schemaValue)
This method deliveres a list of strings which represents all assetKeys defined for a contentTypeDefinition. |
ContentTypeDefinitionVO |
getContentTypeDefinitionVO(java.lang.Integer contentId)
The method returns the ContentTypeVO-objects of the given contentId. |
ContentTypeDefinitionVO |
getContentTypeDefinitionVO(java.lang.String name)
The method returns the ContentTypeVO-object with the given name. |
ContentVersionVO |
getContentVersion(java.lang.Integer contentId)
Getter for the most recent contentVersion on a content |
ContentVersionVO |
getContentVersion(java.lang.Integer contentId,
java.lang.Integer languageId,
boolean useLanguageFallback)
Getter for the most recent contentVersion on a content |
java.util.List |
getContentVersionsByCategory(java.lang.Integer categoryId,
java.lang.String attributeName)
This method gets the content related to a category |
java.lang.String |
getCurrentPagePath()
This method constructs a string representing the path to the page with respect to where in the structure the page is. |
java.lang.String |
getCurrentPageUrl()
This method deliveres a new url pointing to the same address as now but in the language corresponding to the code sent in. |
org.exolab.castor.jdo.Database |
getDatabase()
Gets the transaction the controller should work within. |
DeliveryContext |
getDeliveryContext()
|
java.lang.String |
getDigitalAssetBaseUrl()
This method returns the base url for the digital assets. |
java.lang.String |
getEncodedUrl(java.lang.String s,
java.lang.String enc)
|
FontHelper |
getFontHelper()
This method gets the color utility. |
java.util.List |
getFormAttributes(java.lang.Integer contentId,
java.lang.String attributeName)
This method returns a list of form elements/attributes based on the schema sent in. |
java.util.List |
getFormAttributes(java.lang.String contentBindningName,
java.lang.String attributeName)
This method returns a list of form elements/attributes based on the schema sent in. |
FormHelper |
getFormHelper()
This method gets the form utility. |
java.lang.Object |
getFromContext(java.lang.String name)
Gets objects from the context |
boolean |
getHasLocalizedVersion(java.lang.Integer contentId)
This method return true if a localized version with the current language exist |
boolean |
getHasPrincipalGroup(InfoGluePrincipal infoGluePrincipal,
java.lang.String groupName)
|
boolean |
getHasPrincipalRole(InfoGluePrincipal infoGluePrincipal,
java.lang.String roleName)
|
boolean |
getHasUserContentAccess(java.lang.Integer contentId)
This method return true if the user logged in has access to the content sent in. |
boolean |
getHasUserContentAccess(java.lang.Integer contentId,
java.lang.String action)
This method return true if the user logged in has access to do the action on the content sent in. |
boolean |
getHasUserPageAccess(java.lang.Integer siteNodeId)
This method return true if the user logged in has access to the siteNode sent in. |
boolean |
getHasUserPageWriteAccess(java.lang.Integer siteNodeId)
This method return true if the user logged in has access to the siteNode sent in. |
HttpHelper |
getHTTPHelper()
This method gets the math utility. |
javax.servlet.http.HttpServletRequest |
getHttpServletRequest()
Getter for request-object |
InfoGlueWebServices |
getInfoGlueWebServiceHelper()
This method gets the webservice utility which has special api:s to call the infoglue system. |
java.lang.String |
getInlineAssetUrl(java.lang.Integer contentId,
java.lang.String assetKey)
This method deliveres a String with the URL to the digital asset asked for. |
java.lang.String |
getInlineAssetUrl(java.lang.String assetKey)
This method deliveres a String with the URL to the digital asset asked for. |
boolean |
getIsCurrentSiteNode(java.lang.Integer siteNodeId)
This method helps us find out if the current site node is the same as the one sent in. |
boolean |
getIsEditOnSightDisabled()
This method returns true if the page in question (ie sitenode) has page-caching disabled. |
boolean |
getIsPageCacheDisabled()
This method returns true if the if the page in question (ie sitenode) has page-caching disabled. |
boolean |
getIsPageProtected()
This method returns true if the page in question (ie sitenode) has it's protected property enabled. |
boolean |
getIsParentToCurrent(java.lang.Integer siteNodeId)
This method helps us find out if the current site node is the same or a child to the sent in one. |
LanguageVO |
getLanguage(java.lang.Integer languageId)
This method supplies a method to get the locale of the language currently in use. |
LanguageVO |
getLanguage(java.lang.String languageCode)
This method supplies a method to get the locale of the language currently in use. |
java.util.Locale |
getLanguageCode(java.lang.Integer languageId)
This method supplies a method to get the locale of the language sent in. |
java.lang.Integer |
getLanguageId()
Getter for the languageId |
java.util.Locale |
getLocale()
This method supplies a method to get the locale of the language currently in use. |
java.util.List |
getLocalizedBoundPages(java.lang.String structureBindningName)
The method returns a list of WebPage-objects that is the bound sitenodes of named binding. |
java.util.List |
getMatchingContents(java.lang.String contentTypeDefinitionNamesString,
java.lang.String categoryConditionString,
boolean useLanguageFallback)
This method searches for all contents matching |
MathHelper |
getMathHelper()
This method gets the math utility. |
java.lang.Integer |
getMetaInformationContentId()
This method gets the meta information of the current sitenode. |
java.lang.Integer |
getMetaInformationContentId(java.lang.Integer siteNodeId)
This method gets the meta information of a particular sitenode. |
java.util.List |
getNodeAvailableLanguages()
This method returns a list of all languages available on the current sitenode. |
java.util.List |
getNodeAvailableLanguages(java.lang.Integer siteNodeId)
|
java.text.NumberFormat |
getNumberFormatHelper()
This method gets the NumberFormat instance with the proper locale. |
ObjectConverter |
getObjectConverter()
This method gets the object converter utility. |
java.lang.Object |
getObjectWithName(java.lang.String classname)
|
java.lang.String |
getPageBaseUrl(java.lang.String structureBindningName)
This method deliveres a String with the URL to the page asked for. |
java.lang.String |
getPageContentType()
This method returns the contenttype this page should return. |
java.lang.String |
getPageNavTitle(java.lang.Integer siteNodeId)
This method deliveres a String with the Navigation title the page asked for has. |
java.lang.String |
getPageNavTitle(java.lang.String structureBindningName)
This method deliveres a String with the Navigation title the page asked for has. |
java.lang.String |
getPageNavTitle(java.lang.String structureBindningName,
int index)
This method deliveres a String with the Navigation title the page asked for has. |
java.lang.String |
getPageTitle()
This method deliveres a String with the Navigation title the page the user are on has. |
java.lang.String |
getPageUrl(java.lang.Integer siteNodeId,
java.lang.Integer languageId,
java.lang.Integer contentId)
This method deliveres a new url pointing to the same address as now but with new parameters. |
java.lang.String |
getPageUrl(java.lang.String structureBindningName)
This method deliveres a String with the URL to the page asked for. |
java.lang.String |
getPageUrl(java.lang.String structureBindningName,
java.lang.Integer contentId)
This method deliveres a String with the URL to the page asked for. |
java.lang.String |
getPageUrl(java.lang.String structureBindningName,
int position,
java.lang.Integer contentId)
This method deliveres a String with the URL to the page asked for. |
java.lang.String |
getPageUrl(WebPage webpage,
java.lang.Integer contentId)
This method just gets a new URL but with the given contentId in it. |
java.lang.String |
getPageUrlAfterLanguageChange(java.lang.String languageCode)
This method deliveres a new url pointing to the same address as now but in the language corresponding to the code sent in. |
java.lang.String |
getPageUrlOnPosition(java.lang.String structureBindningName,
int position)
This method deliveres a String with the URL to the page asked for. |
SiteNodeVO |
getParentSiteNode(java.lang.Integer siteNodeId)
This method returns the parent siteNode to the given siteNode. |
java.lang.String |
getParsedContentAttribute(java.lang.Integer contentId,
java.lang.String attributeName)
This method deliveres a String with the content-attribute asked for after it has been parsed and all special tags have been converted. |
java.lang.String |
getParsedContentAttribute(java.lang.Integer contentId,
java.lang.String attributeName,
boolean clean)
This method is just a dummy method used to ensure that we can ensure to not get a decorated attribute value if OnSiteEdit is on. |
java.lang.String |
getParsedContentAttribute(java.lang.String attributeName)
This method deliveres a String with the content-attribute asked for after it has been parsed and all special tags have been converted. |
java.lang.String |
getParsedContentAttribute(java.lang.String attributeName,
boolean clean)
This method is just a dummy method used to ensure that we can ensure to not get a decorated attribute value if OnSiteEdit is on. |
java.lang.String |
getParsedContentAttribute(java.lang.String contentBindningName,
java.lang.String attributeName)
This method deliveres a String with the content-attribute asked for after it has been parsed and all special tags have been converted. |
java.lang.String |
getParsedContentAttribute(java.lang.String contentBindningName,
java.lang.String attributeName,
boolean clean)
This method is just a dummy method used to ensure that we can ensure to not get a decorated attribute value if OnSiteEdit is on. |
java.util.Map |
getParsedContentAttributes(java.lang.Integer contentId)
This method delivers a map with all parsed content attributes |
InfoGluePrincipal |
getPrincipal()
Returns the logged in user - that is the one currently looking at the page |
InfoGluePrincipal |
getPrincipal(java.lang.String userName)
This method returns the InfoGlue Principal requested |
java.util.List |
getPrincipalGroupCategories(InfoGluePrincipal infoGluePrincipal,
java.lang.String groupName,
java.lang.String propertyName)
Getting all categories assigned to a property for a Role - used for personalisation. |
java.util.List |
getPrincipalGroupCategories(java.lang.String groupName,
java.lang.String propertyName)
Getting all categories assigned to a property for a Role - used for personalisation. |
java.util.List |
getPrincipalGroupRelatedContents(InfoGluePrincipal infoGluePrincipal,
java.lang.String groupName,
java.lang.String propertyName)
Getting all related contents for the current Principals group - used for personalisation. |
java.util.List |
getPrincipalGroupRelatedContents(java.lang.String groupName,
java.lang.String propertyName)
Getting all related contents for the current Principals group - used for personalisation. |
java.util.List |
getPrincipalGroupRelatedPages(InfoGluePrincipal infoGluePrincipal,
java.lang.String groupName,
java.lang.String propertyName)
Getting related pages for a Principals group - used for personalisation. |
java.util.List |
getPrincipalGroupRelatedPages(java.lang.String groupName,
java.lang.String propertyName)
Getting related pages for a Principals group - used for personalisation. |
java.util.Map |
getPrincipalPropertyHashValues(InfoGluePrincipal infoGluePrincipal,
java.lang.String propertyName)
Getting a property for a Principal - used for personalisation. |
java.util.Map |
getPrincipalPropertyHashValues(InfoGluePrincipal infoGluePrincipal,
java.lang.String propertyName,
boolean escapeSpecialCharacters)
Getting a property for a Principal - used for personalisation. |
java.util.Map |
getPrincipalPropertyHashValues(java.lang.String propertyName)
Getting a property for the current Principal - used for personalisation. |
java.util.Map |
getPrincipalPropertyHashValues(java.lang.String propertyName,
boolean escapeSpecialCharacters)
Getting a property for the current Principal - used for personalisation. |
java.lang.String |
getPrincipalPropertyValue(InfoGluePrincipal infoGluePrincipal,
java.lang.String propertyName)
Getting a property for the current Principal - used for personalisation. |
java.lang.String |
getPrincipalPropertyValue(InfoGluePrincipal infoGluePrincipal,
java.lang.String propertyName,
boolean escapeSpecialCharacters)
Getting a property for a Principal - used for personalisation. |
java.lang.String |
getPrincipalPropertyValue(InfoGluePrincipal infoGluePrincipal,
java.lang.String propertyName,
boolean escapeSpecialCharacters,
boolean findLargestValue)
Getting a property for a Principal - used for personalisation. |
java.lang.String |
getPrincipalPropertyValue(java.lang.String propertyName)
Getting a property for the current Principal - used for personalisation. |
java.lang.String |
getPrincipalPropertyValue(java.lang.String propertyName,
boolean escapeSpecialCharacters)
Getting a property for the current Principal - used for personalisation. |
java.lang.String |
getPrincipalPropertyValue(java.lang.String propertyName,
boolean escapeSpecialCharacters,
boolean findLargestValue)
Getting a property for the current Principal - used for personalisation. |
java.util.List |
getPrincipalRoleCategories(InfoGluePrincipal infoGluePrincipal,
java.lang.String roleName,
java.lang.String propertyName)
Getting all categories assigned to a property for a Group - used for personalisation. |
java.util.List |
getPrincipalRoleCategories(java.lang.String roleName,
java.lang.String propertyName)
Getting all categories assigned to a property for a Group - used for personalisation. |
java.util.List |
getPrincipalRoleRelatedContents(InfoGluePrincipal infoGluePrincipal,
java.lang.String roleName,
java.lang.String propertyName)
Getting all related contents for the current Principals role - used for personalisation. |
java.util.List |
getPrincipalRoleRelatedContents(java.lang.String roleName,
java.lang.String propertyName)
Getting all related contents for the current Principals role - used for personalisation. |
java.util.List |
getPrincipalRoleRelatedPages(InfoGluePrincipal infoGluePrincipal,
java.lang.String roleName,
java.lang.String propertyName)
Getting related pages for a Principals role - used for personalisation. |
java.util.List |
getPrincipalRoleRelatedPages(java.lang.String roleName,
java.lang.String propertyName)
Getting related pages for a Principals role - used for personalisation. |
java.util.List |
getRelatedContents(InfoGluePrincipal infogluePrincipal,
java.lang.String attributeName)
This method gets a List of related contents defined in a principal property as an xml-definition. |
java.util.List |
getRelatedContents(java.lang.Integer contentId,
java.lang.String attributeName)
This method gets a List of related contents defined in an attribute as an xml-definition. |
java.util.List |
getRelatedContents(java.lang.String attributeName)
This method gets a List of related contents defined in an attribute as an xml-definition. |
java.util.List |
getRelatedContents(java.lang.String bindingName,
java.lang.String attributeName)
This method gets a List of related contents defined in an attribute as an xml-definition. |
java.util.List |
getRelatedContentsByQualifyer(java.lang.String qualifyerXML)
This method gets a List of related contents defined in an attribute as an xml-definition. |
java.util.List |
getRelatedPages(InfoGluePrincipal infogluePrincipal,
java.lang.String attributeName)
This method gets a List of related contents defined in an attribute as an xml-definition. |
java.util.List |
getRelatedPages(java.lang.Integer contentId,
java.lang.String attributeName)
This method gets a List of related contents defined in an attribute as an xml-definition. |
java.util.List |
getRelatedPages(java.lang.String attributeName)
This method gets a List of related siteNodes defined in an attribute as an xml-definition. |
java.util.List |
getRelatedPages(java.lang.String bindingName,
java.lang.String attributeName)
This method gets a List of related contents defined in an attribute as an xml-definition. |
java.lang.String |
getRepositoryBaseUrl()
This method returns the base url for the digital assets. |
java.util.Enumeration |
getRequestParamenterNames()
Getter for request-parameters |
java.lang.String |
getRequestParameter(java.lang.String parameterName)
Getter for request-parameter |
java.lang.String[] |
getRequestParameterValues(java.lang.String parameterName)
Getter for request-parameters |
SiteNodeVO |
getSiteNode(java.lang.Integer siteNodeId)
This method fetches the given siteNode |
java.lang.Integer |
getSiteNodeId()
Getter for the siteNodeId |
java.lang.Integer |
getSiteNodeId(java.lang.String structureBindningName)
Getter for the siteNodeId on a specific bound page |
java.lang.String |
getStringAsImageUrl(java.lang.String text,
int canvasWidth,
int canvasHeight,
int textStartPosX,
int textStartPosY,
int textWidth,
int textHeight,
java.lang.String fontName,
int fontStyle,
int fontSize,
java.awt.Color foregroundColor,
java.awt.Color backgroundColor)
|
java.lang.String |
getStringAsImageUrl(java.lang.String text,
int canvasWidth,
int canvasHeight,
int textStartPosX,
int textStartPosY,
int textWidth,
int textHeight,
java.lang.String fontName,
int fontStyle,
int fontSize,
java.awt.Color foregroundColor,
java.awt.Color backgroundColor,
java.lang.String backgroundImageUrl)
|
java.lang.String |
getStringAsImageUrl(java.lang.String text,
int canvasWidth,
int canvasHeight,
int textStartPosX,
int textStartPosY,
int textWidth,
int textHeight,
java.lang.String fontName,
int fontStyle,
int fontSize,
java.lang.String foregroundColor,
java.lang.String backgroundColor)
This method deliveres a String with the content-attribute asked for generated as a png-file. |
java.lang.String |
getStringAsImageUrl(java.lang.String text,
int canvasWidth,
int canvasHeight,
int textStartPosX,
int textStartPosY,
int textWidth,
int textHeight,
java.lang.String fontName,
int fontStyle,
int fontSize,
java.lang.String foregroundColor,
java.lang.String backgroundColor,
java.lang.String backGroundImageUrl)
|
java.lang.String |
getTemplateAttributeName()
Getter for the template attribute name. |
TemplateController |
getTemplateController(java.lang.Integer siteNodeId,
java.lang.Integer languageId,
java.lang.Integer contentId,
javax.servlet.http.HttpServletRequest request,
InfoGluePrincipal infoGluePrincipal,
DeliveryContext deliveryContext)
|
TemplateController |
getTemplateController(java.lang.Integer siteNodeId,
java.lang.Integer languageId,
java.lang.Integer contentId,
InfoGluePrincipal infoGluePrincipal,
DeliveryContext deliveryContext)
This method should be much more sophisticated later and include a check to see if there is a digital asset uploaded which is more specialized and can be used to act as serverside logic to the template. |
boolean |
getThreatFoldersAsContents()
|
java.lang.String |
getUrlContent(java.lang.String url)
This method fetches a given URL contents. |
java.lang.String |
getUrlContent(java.lang.String url,
boolean includeRequest)
This method fetches a given URL contents. |
java.lang.String |
getUrlContent(java.lang.String url,
boolean includeRequest,
java.lang.String encoding)
This method fetches a given URL contents. |
java.lang.String |
getUrlContent(java.lang.String url,
java.lang.String encoding)
This method fetches a given URL contents. |
WebServiceHelper |
getWebServiceHelper()
This method gets the webservice utility. |
VisualFormatter |
getVisualFormatter()
This method gets the formatter object that helps with formatting of data. |
java.util.List |
getWorkflowCurrentSteps(java.lang.String workflowId)
This method returns the list of hsitorical steps for a workflow instance. |
java.util.List |
getWorkflowHistoricalSteps(java.lang.String workflowId)
This method returns the list of hsitorical steps for a workflow instance. |
java.util.List |
getWorkflowSteps(java.lang.String workflowId)
This method returns the full list of steps for a workflow. |
java.lang.String |
include(java.lang.String contentBindningName,
java.lang.String attributeName)
This method allows the current template to include another template which is also rendered in the current context as if it were a part. |
java.lang.String |
include(java.lang.String contentBindningName,
java.lang.String attributeName,
boolean cacheInclude)
|
java.lang.String |
include(java.lang.String contentBindningName,
java.lang.String attributeName,
boolean cacheInclude,
java.lang.String cName,
java.lang.Object cObject)
This method allows the current template to include another template which is also rendered in the current context as if it were a part. |
boolean |
isPersistedContext()
|
java.lang.String |
renderString(java.lang.String template)
This method allows a user to get any string rendered as a template. |
java.lang.String |
replace(java.lang.String originalString,
java.lang.String expressionToReplace,
java.lang.String newString)
This method lets a user substitute a string located in the page by a regular expression with another string. |
java.lang.String |
replace(java.lang.String originalString,
java.lang.String substring,
java.lang.String stringToReplace,
java.lang.String newString)
This method lets a user substitute a string located in the page by a regular expression with another string. |
void |
setBrowserBean(BrowserBean browserBean)
Setter for the bean which contains information about the users browser. |
void |
setComponentLogic(ComponentLogic componentLogic)
This method gets a component logic helper object. |
void |
setDeliveryContext(DeliveryContext deliveryContext)
|
void |
setDeliveryControllers(NodeDeliveryController nodeDeliveryController,
ContentDeliveryController contentDeliveryController,
IntegrationDeliveryController integrationDeliveryController)
Setting to enable us to set initialized versions of the Node and Content delivery Controllers. |
void |
setHttpRequest(javax.servlet.http.HttpServletRequest request)
Setter for the template to get all the parameters from the user. |
void |
setPersistedContext(boolean persistedContext)
If set to true, the current templateLogicContext will be passed to any new templateControllers from this point. |
void |
setStandardRequestParameters(java.lang.Integer siteNodeId,
java.lang.Integer languageId,
java.lang.Integer contentId)
Setter for the template to get all the parameters from the user. |
void |
setThreatFoldersAsContents(boolean threatFoldersAsContents)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String META_INFO_BINDING_NAME
public static final java.lang.String TEMPLATE_ATTRIBUTE_NAME
public static final java.lang.String TITLE_ATTRIBUTE_NAME
public static final java.lang.String NAV_TITLE_ATTRIBUTE_NAME
| Constructor Detail |
public BasicTemplateController(DatabaseWrapper databaseWrapper,
InfoGluePrincipal infoGluePrincipal)
| Method Detail |
public org.exolab.castor.jdo.Database getDatabase()
throws SystemException
getDatabase in interface TemplateControllerSystemException
public void closeTransaction()
throws SystemException
SystemException
public void addToContext(java.lang.String name,
java.lang.Object object)
addToContext in interface TemplateControllerpublic java.lang.Object getFromContext(java.lang.String name)
public void setStandardRequestParameters(java.lang.Integer siteNodeId,
java.lang.Integer languageId,
java.lang.Integer contentId)
setStandardRequestParameters in interface TemplateControllerpublic void setHttpRequest(javax.servlet.http.HttpServletRequest request)
setHttpRequest in interface TemplateControllerpublic void setBrowserBean(BrowserBean browserBean)
setBrowserBean in interface TemplateControllerpublic java.lang.String getTemplateAttributeName()
getTemplateAttributeName in interface TemplateControllerpublic java.lang.Integer getSiteNodeId()
getSiteNodeId in interface TemplateControllerpublic java.lang.Integer getLanguageId()
getLanguageId in interface TemplateControllerpublic java.lang.Integer getContentId()
getContentId in interface TemplateControllerpublic ComponentLogic getComponentLogic()
getComponentLogic in interface TemplateControllerpublic void setComponentLogic(ComponentLogic componentLogic)
setComponentLogic in interface TemplateControllerpublic VisualFormatter getVisualFormatter()
getVisualFormatter in interface TemplateControllerpublic ColorHelper getColorHelper()
getColorHelper in interface TemplateControllerpublic FormHelper getFormHelper()
public FontHelper getFontHelper()
getFontHelper in interface TemplateControllerpublic MathHelper getMathHelper()
getMathHelper in interface TemplateControllerpublic HttpHelper getHTTPHelper()
public ChartHelper getChartHelper()
getChartHelper in interface TemplateControllerpublic WebServiceHelper getWebServiceHelper()
getWebServiceHelper in interface TemplateControllerpublic InfoGlueWebServices getInfoGlueWebServiceHelper()
public java.text.NumberFormat getNumberFormatHelper()
throws SystemException
getNumberFormatHelper in interface TemplateControllerSystemExceptionpublic ObjectConverter getObjectConverter()
getObjectConverter in interface TemplateControllerpublic java.util.Map getContentAttributes(java.lang.Integer contentId)
public java.util.Map getParsedContentAttributes(java.lang.Integer contentId)
public ContentVO getContent()
getContent in interface TemplateControllerpublic ContentVO getContent(java.lang.Integer contentId)
getContent in interface TemplateControllerpublic ContentVersionVO getContentVersion(java.lang.Integer contentId)
getContentVersion in interface TemplateController
public ContentVersionVO getContentVersion(java.lang.Integer contentId,
java.lang.Integer languageId,
boolean useLanguageFallback)
getContentVersion in interface TemplateControllerpublic InfoGluePrincipal getPrincipal()
getPrincipal in interface TemplateControllerpublic InfoGluePrincipal getPrincipal(java.lang.String userName)
getPrincipal in interface TemplateControlleruserName - public java.lang.String getPrincipalPropertyValue(java.lang.String propertyName)
getPrincipalPropertyValue in interface TemplateControllerpublic java.util.Map getPrincipalPropertyHashValues(java.lang.String propertyName)
getPrincipalPropertyHashValues in interface TemplateController
public java.lang.String getPrincipalPropertyValue(InfoGluePrincipal infoGluePrincipal,
java.lang.String propertyName)
getPrincipalPropertyValue in interface TemplateController
public java.util.Map getPrincipalPropertyHashValues(InfoGluePrincipal infoGluePrincipal,
java.lang.String propertyName)
getPrincipalPropertyHashValues in interface TemplateController
public java.lang.String getPrincipalPropertyValue(InfoGluePrincipal infoGluePrincipal,
java.lang.String propertyName,
boolean escapeSpecialCharacters)
getPrincipalPropertyValue in interface TemplateController
public java.lang.String getPrincipalPropertyValue(InfoGluePrincipal infoGluePrincipal,
java.lang.String propertyName,
boolean escapeSpecialCharacters,
boolean findLargestValue)
public java.lang.String getPrincipalPropertyValue(java.lang.String propertyName,
boolean escapeSpecialCharacters)
getPrincipalPropertyValue in interface TemplateController
public java.lang.String getPrincipalPropertyValue(java.lang.String propertyName,
boolean escapeSpecialCharacters,
boolean findLargestValue)
public java.util.Map getPrincipalPropertyHashValues(InfoGluePrincipal infoGluePrincipal,
java.lang.String propertyName,
boolean escapeSpecialCharacters)
getPrincipalPropertyHashValues in interface TemplateController
public java.util.Map getPrincipalPropertyHashValues(java.lang.String propertyName,
boolean escapeSpecialCharacters)
getPrincipalPropertyHashValues in interface TemplateController
public boolean getHasPrincipalGroup(InfoGluePrincipal infoGluePrincipal,
java.lang.String groupName)
public java.util.List getPrincipalGroupRelatedContents(java.lang.String groupName,
java.lang.String propertyName)
public java.util.List getPrincipalGroupRelatedContents(InfoGluePrincipal infoGluePrincipal,
java.lang.String groupName,
java.lang.String propertyName)
public java.util.List getPrincipalGroupRelatedPages(java.lang.String groupName,
java.lang.String propertyName)
public java.util.List getPrincipalGroupRelatedPages(InfoGluePrincipal infoGluePrincipal,
java.lang.String groupName,
java.lang.String propertyName)
public java.util.List getPrincipalGroupCategories(java.lang.String groupName,
java.lang.String propertyName)
public java.util.List getPrincipalGroupCategories(InfoGluePrincipal infoGluePrincipal,
java.lang.String groupName,
java.lang.String propertyName)
public boolean getHasPrincipalRole(InfoGluePrincipal infoGluePrincipal,
java.lang.String roleName)
public java.util.List getPrincipalRoleRelatedContents(java.lang.String roleName,
java.lang.String propertyName)
public java.util.List getPrincipalRoleRelatedContents(InfoGluePrincipal infoGluePrincipal,
java.lang.String roleName,
java.lang.String propertyName)
public java.util.List getPrincipalRoleRelatedPages(java.lang.String roleName,
java.lang.String propertyName)
public java.util.List getPrincipalRoleRelatedPages(InfoGluePrincipal infoGluePrincipal,
java.lang.String roleName,
java.lang.String propertyName)
public java.util.List getPrincipalRoleCategories(java.lang.String roleName,
java.lang.String propertyName)
public java.util.List getPrincipalRoleCategories(InfoGluePrincipal infoGluePrincipal,
java.lang.String roleName,
java.lang.String propertyName)
public javax.servlet.http.HttpServletRequest getHttpServletRequest()
getHttpServletRequest in interface TemplateControllerpublic java.util.Enumeration getRequestParamenterNames()
getRequestParamenterNames in interface TemplateControllerpublic java.lang.String getRequestParameter(java.lang.String parameterName)
getRequestParameter in interface TemplateControllerpublic java.lang.String[] getRequestParameterValues(java.lang.String parameterName)
getRequestParameterValues in interface TemplateControllerpublic BrowserBean getBrowserBean()
getBrowserBean in interface TemplateController
public void setDeliveryControllers(NodeDeliveryController nodeDeliveryController,
ContentDeliveryController contentDeliveryController,
IntegrationDeliveryController integrationDeliveryController)
setDeliveryControllers in interface TemplateController
public java.lang.String getContentAttribute(java.lang.String contentBindningName,
java.lang.String attributeName,
boolean clean)
getContentAttribute in interface TemplateController
public java.lang.String getContentAttribute(java.lang.String attributeName,
boolean clean)
getContentAttribute in interface TemplateController
public java.lang.String getContentAttribute(java.lang.Integer contentId,
java.lang.String attributeName,
boolean clean)
getContentAttribute in interface TemplateController
public java.lang.String getContentAttribute(java.lang.Integer contentId,
java.lang.Integer languageId,
java.lang.String attributeName,
boolean clean)
getContentAttribute in interface TemplateControllerpublic java.lang.String getContentAttribute(java.lang.String attributeName)
getContentAttribute in interface TemplateController
public java.lang.String getContentAttribute(java.lang.String contentBindningName,
java.lang.String attributeName)
getContentAttribute in interface TemplateController
public java.lang.String getContentAttribute(java.lang.Integer contentId,
java.lang.String attributeName)
getContentAttribute in interface TemplateController
public java.lang.String getContentAttribute(java.lang.Integer contentId,
java.lang.Integer languageId,
java.lang.String attributeName)
getContentAttribute in interface TemplateController
public java.lang.String getContentAttribute(ContentVersionVO version,
java.lang.String attributeName)
public java.lang.String getContentAttributeUsingLanguageFallback(java.lang.Integer contentId,
java.lang.String attributeName,
boolean disableEditOnSight)
public java.lang.String getParsedContentAttribute(java.lang.String attributeName)
getParsedContentAttribute in interface TemplateController
public java.lang.String getParsedContentAttribute(java.lang.String contentBindningName,
java.lang.String attributeName)
getParsedContentAttribute in interface TemplateController
public java.lang.String getParsedContentAttribute(java.lang.Integer contentId,
java.lang.String attributeName)
getParsedContentAttribute in interface TemplateController
public java.lang.String getParsedContentAttribute(java.lang.String attributeName,
boolean clean)
getParsedContentAttribute in interface TemplateController
public java.lang.String getParsedContentAttribute(java.lang.String contentBindningName,
java.lang.String attributeName,
boolean clean)
getParsedContentAttribute in interface TemplateController
public java.lang.String getParsedContentAttribute(java.lang.Integer contentId,
java.lang.String attributeName,
boolean clean)
getParsedContentAttribute in interface TemplateControllerpublic java.util.Collection getAssetKeys(java.lang.String contentBindningName)
getAssetKeys in interface TemplateControllerpublic java.util.Collection getAssetKeys(java.lang.Integer contentId)
getAssetKeys in interface TemplateControllerpublic java.util.Collection getContentTypeDefinitionAssetKeys(java.lang.String schemaValue)
public java.lang.String getAssetThumbnailUrl(java.lang.Integer contentId,
int width,
int height)
getAssetThumbnailUrl in interface TemplateController
public java.lang.String getAssetThumbnailUrl(java.lang.Integer contentId,
java.lang.String assetKey,
int width,
int height)
getAssetThumbnailUrl in interface TemplateController
public java.lang.String getAssetThumbnailUrl(java.lang.String contentBindningName,
int width,
int height)
getAssetThumbnailUrl in interface TemplateController
public java.lang.String getAssetThumbnailUrl(java.lang.String contentBindningName,
java.lang.String assetKey,
int width,
int height)
getAssetThumbnailUrl in interface TemplateControllerpublic java.lang.String getAssetUrl(java.lang.String contentBindningName)
getAssetUrl in interface TemplateController
public java.lang.String getEncodedUrl(java.lang.String s,
java.lang.String enc)
getEncodedUrl in interface TemplateControllerpublic java.lang.String getAssetUrl(java.lang.Integer contentId)
getAssetUrl in interface TemplateController
public java.lang.String getAssetUrl(java.lang.Integer contentId,
java.lang.String assetKey)
getAssetUrl in interface TemplateController
public java.lang.String getAssetUrl(java.lang.String contentBindningName,
int index)
getAssetUrl in interface TemplateController
public java.lang.String getAssetUrl(java.lang.String contentBindningName,
java.lang.String assetKey)
getAssetUrl in interface TemplateController
public java.lang.String getAssetUrl(InfoGluePrincipal principal,
java.lang.String assetKey,
java.lang.Integer languageId,
java.lang.Integer siteNodeId,
boolean useLanguageFallback)
public java.lang.String getAssetThumbnailUrl(InfoGluePrincipal principal,
java.lang.String assetKey,
java.lang.Integer languageId,
java.lang.Integer siteNodeId,
boolean useLanguageFallback,
int width,
int height)
public java.lang.String getInlineAssetUrl(java.lang.String assetKey)
getInlineAssetUrl in interface TemplateController
public java.lang.String getInlineAssetUrl(java.lang.Integer contentId,
java.lang.String assetKey)
public java.lang.Integer getAssetFileSize(java.lang.Integer contentId)
getAssetFileSize in interface TemplateController
public java.lang.Integer getAssetFileSize(java.lang.Integer contentId,
java.lang.String assetKey)
getAssetFileSize in interface TemplateController
public java.lang.Integer getAssetFileSize(java.lang.String contentBindningName,
int index)
getAssetFileSize in interface TemplateController
public java.lang.Integer getAssetFileSize(java.lang.String contentBindningName,
java.lang.String assetKey)
getAssetFileSize in interface TemplateControllerpublic java.util.List getRelatedContentsByQualifyer(java.lang.String qualifyerXML)
getRelatedContentsByQualifyer in interface TemplateControllerpublic java.util.List getRelatedContents(java.lang.String attributeName)
getRelatedContents in interface TemplateController
public java.util.List getRelatedContents(java.lang.String bindingName,
java.lang.String attributeName)
getRelatedContents in interface TemplateController
public java.util.List getRelatedContents(java.lang.Integer contentId,
java.lang.String attributeName)
getRelatedContents in interface TemplateController
public java.util.List getRelatedContents(InfoGluePrincipal infogluePrincipal,
java.lang.String attributeName)
public java.util.List getRelatedPages(java.lang.String attributeName)
getRelatedPages in interface TemplateController
public java.util.List getRelatedPages(java.lang.String bindingName,
java.lang.String attributeName)
getRelatedPages in interface TemplateController
public java.util.List getRelatedPages(java.lang.Integer contentId,
java.lang.String attributeName)
getRelatedPages in interface TemplateController
public java.util.List getRelatedPages(InfoGluePrincipal infogluePrincipal,
java.lang.String attributeName)
public java.lang.String getArchiveBaseUrl(java.lang.String contentBindningName,
java.lang.String assetKey)
getArchiveBaseUrl in interface TemplateController
public java.lang.String getArchiveBaseUrl(java.lang.Integer contentId,
java.lang.String assetKey)
getArchiveBaseUrl in interface TemplateController
public java.util.Vector getArchiveEntries(java.lang.Integer contentId,
java.lang.String assetKey)
getArchiveEntries in interface TemplateController
public java.lang.String getArchiveBaseUrl(java.lang.String contentBindningName,
int index,
java.lang.String assetKey)
getArchiveBaseUrl in interface TemplateController
public java.lang.String getContentAttributeAsPDFUrl(java.lang.String contentBindningName,
java.lang.String attributeName)
getContentAttributeAsPDFUrl in interface TemplateController
public java.lang.String getContentAttributeAsPDFUrl(java.lang.Integer contentId,
java.lang.String attributeName)
public java.lang.String getContentAttributeAsImageUrl(java.lang.String contentBindningName,
java.lang.String attributeName,
int canvasWidth,
int canvasHeight)
getContentAttributeAsImageUrl in interface TemplateController
public java.lang.String getContentAttributeAsImageUrl(java.lang.String contentBindningName,
java.lang.String attributeName,
int canvasWidth,
int canvasHeight,
int textStartPosX,
int textStartPosY,
int textWidth,
int textHeight,
java.lang.String fontName,
int fontStyle,
int fontSize,
java.lang.String foregroundColor,
java.lang.String backgroundColor)
getContentAttributeAsImageUrl in interface TemplateController
public java.lang.String getContentAttributeAsImageUrl(java.lang.String contentBindningName,
java.lang.String attributeName,
int canvasWidth,
int canvasHeight,
int textStartPosX,
int textStartPosY,
int textWidth,
int textHeight,
java.lang.String fontName,
int fontStyle,
int fontSize,
java.lang.String foregroundColor,
java.lang.String backgroundColor,
java.lang.String backgroundImageUrl)
getContentAttributeAsImageUrl in interface TemplateController
public java.lang.String getContentAttributeAsImageUrl(java.lang.Integer contentId,
java.lang.String attributeName,
int canvasWidth,
int canvasHeight,
int textStartPosX,
int textStartPosY,
int textWidth,
int textHeight,
java.lang.String fontName,
int fontStyle,
int fontSize,
java.lang.String foregroundColor,
java.lang.String backgroundColor)
getContentAttributeAsImageUrl in interface TemplateController
public java.lang.String getContentAttributeAsImageUrl(java.lang.String contentBindningName,
java.lang.String attributeName,
int canvasWidth,
int canvasHeight,
int textStartPosX,
int textStartPosY,
int textWidth,
int textHeight,
java.lang.String fontName,
int fontStyle,
int fontSize,
java.awt.Color foregroundColor,
java.awt.Color backgroundColor)
getContentAttributeAsImageUrl in interface TemplateController
public java.lang.String getContentAttributeAsImageUrl(java.lang.String contentBindningName,
java.lang.String attributeName,
int canvasWidth,
int canvasHeight,
int textStartPosX,
int textStartPosY,
int textWidth,
int textHeight,
java.lang.String fontName,
int fontStyle,
int fontSize,
java.awt.Color foregroundColor,
java.awt.Color backgroundColor,
java.lang.String backgroundImageUrl)
getContentAttributeAsImageUrl in interface TemplateController
public java.lang.String getContentAttributeAsImageUrl(java.lang.Integer contentId,
java.lang.String attributeName,
int canvasWidth,
int canvasHeight,
int textStartPosX,
int textStartPosY,
int textWidth,
int textHeight,
java.lang.String fontName,
int fontStyle,
int fontSize,
java.awt.Color foregroundColor,
java.awt.Color backgroundColor)
getContentAttributeAsImageUrl in interface TemplateController
public java.lang.String getContentAttributeAsImageUrl(java.lang.Integer contentId,
java.lang.String attributeName,
int canvasWidth,
int canvasHeight,
int textStartPosX,
int textStartPosY,
int textWidth,
int textHeight,
java.lang.String fontName,
int fontStyle,
int fontSize,
java.awt.Color foregroundColor,
java.awt.Color backgroundColor,
java.lang.String backgroundImageUrl)
getContentAttributeAsImageUrl in interface TemplateControllerpublic java.util.List getContentAttributes(java.lang.String schemaValue)
public java.lang.String getStringAsImageUrl(java.lang.String text,
int canvasWidth,
int canvasHeight,
int textStartPosX,
int textStartPosY,
int textWidth,
int textHeight,
java.lang.String fontName,
int fontStyle,
int fontSize,
java.lang.String foregroundColor,
java.lang.String backgroundColor)
getStringAsImageUrl in interface TemplateController
public java.lang.String getStringAsImageUrl(java.lang.String text,
int canvasWidth,
int canvasHeight,
int textStartPosX,
int textStartPosY,
int textWidth,
int textHeight,
java.lang.String fontName,
int fontStyle,
int fontSize,
java.lang.String foregroundColor,
java.lang.String backgroundColor,
java.lang.String backGroundImageUrl)
public java.lang.String getStringAsImageUrl(java.lang.String text,
int canvasWidth,
int canvasHeight,
int textStartPosX,
int textStartPosY,
int textWidth,
int textHeight,
java.lang.String fontName,
int fontStyle,
int fontSize,
java.awt.Color foregroundColor,
java.awt.Color backgroundColor)
getStringAsImageUrl in interface TemplateController
public java.lang.String getStringAsImageUrl(java.lang.String text,
int canvasWidth,
int canvasHeight,
int textStartPosX,
int textStartPosY,
int textWidth,
int textHeight,
java.lang.String fontName,
int fontStyle,
int fontSize,
java.awt.Color foregroundColor,
java.awt.Color backgroundColor,
java.lang.String backgroundImageUrl)
public java.lang.String getDigitalAssetBaseUrl()
throws java.lang.Exception
getDigitalAssetBaseUrl in interface TemplateControllerjava.lang.Exception
public java.lang.String getRepositoryBaseUrl()
throws java.lang.Exception
getRepositoryBaseUrl in interface TemplateControllerjava.lang.Exceptionpublic java.lang.String getPageUrl(java.lang.String structureBindningName)
getPageUrl in interface TemplateController
public java.lang.String getPageUrl(WebPage webpage,
java.lang.Integer contentId)
getPageUrl in interface TemplateControllerpublic java.lang.String getPageBaseUrl(java.lang.String structureBindningName)
getPageBaseUrl in interface TemplateControllerpublic SiteNodeVO getSiteNode(java.lang.Integer siteNodeId)
public java.lang.Integer getSiteNodeId(java.lang.String structureBindningName)
getSiteNodeId in interface TemplateControllerpublic java.lang.Integer getContentId(java.lang.String contentBindningName)
getContentId in interface TemplateControllerpublic java.lang.Integer getMetaInformationContentId()
public java.lang.Integer getMetaInformationContentId(java.lang.Integer siteNodeId)
public java.util.Collection getChildContents(java.lang.Integer contentId,
boolean includeFolders)
getChildContents in interface TemplateController
public java.lang.Integer getContentId(java.lang.Integer siteNodeId,
java.lang.String contentBindningName)
getContentId in interface TemplateController
public java.util.List getContentVersionsByCategory(java.lang.Integer categoryId,
java.lang.String attributeName)
getContentVersionsByCategory in interface TemplateControllercategoryId - The id of the CategoryattributeName - The ContentTypeDefinition attribute name of the Category relationship.
public java.util.List getMatchingContents(java.lang.String contentTypeDefinitionNamesString,
java.lang.String categoryConditionString,
boolean useLanguageFallback)
getMatchingContents in interface TemplateController
public java.lang.String getPageUrl(java.lang.String structureBindningName,
java.lang.Integer contentId)
getPageUrl in interface TemplateController
public java.lang.String getPageUrlOnPosition(java.lang.String structureBindningName,
int position)
getPageUrlOnPosition in interface TemplateController
public java.lang.String getPageUrl(java.lang.String structureBindningName,
int position,
java.lang.Integer contentId)
getPageUrl in interface TemplateControllerpublic java.lang.String getCurrentPageUrl()
getCurrentPageUrl in interface TemplateController
public java.lang.String getPageUrl(java.lang.Integer siteNodeId,
java.lang.Integer languageId,
java.lang.Integer contentId)
getPageUrl in interface TemplateControllerpublic java.lang.String getCurrentPagePath()
getCurrentPagePath in interface TemplateControllerpublic SiteNodeVO getParentSiteNode(java.lang.Integer siteNodeId)
getParentSiteNode in interface TemplateControllerpublic java.lang.String getPageUrlAfterLanguageChange(java.lang.String languageCode)
getPageUrlAfterLanguageChange in interface TemplateControllerpublic java.lang.String getPageTitle()
getPageTitle in interface TemplateControllerpublic java.lang.String getPageNavTitle(java.lang.String structureBindningName)
getPageNavTitle in interface TemplateControllerpublic java.lang.String getPageNavTitle(java.lang.Integer siteNodeId)
getPageNavTitle in interface TemplateController
public java.lang.String getPageNavTitle(java.lang.String structureBindningName,
int index)
getPageNavTitle in interface TemplateControllerpublic boolean getIsPageCacheDisabled()
getIsPageCacheDisabled in interface TemplateControllerpublic java.lang.String getPageContentType()
getPageContentType in interface TemplateControllerpublic boolean getIsPageProtected()
getIsPageProtected in interface TemplateControllerpublic boolean getIsEditOnSightDisabled()
getIsEditOnSightDisabled in interface TemplateControllerpublic java.util.List getAvailableLanguages()
getAvailableLanguages in interface TemplateControllerpublic java.util.List getNodeAvailableLanguages()
getNodeAvailableLanguages in interface TemplateControllerpublic java.util.List getNodeAvailableLanguages(java.lang.Integer siteNodeId)
getNodeAvailableLanguages in interface TemplateControllerpublic java.util.List getChildPages()
getChildPages in interface TemplateControllerpublic java.util.List getChildPages(java.lang.String structureBindingName)
getChildPages in interface TemplateControllerpublic java.util.List getChildPages(java.lang.Integer siteNodeId)
getChildPages in interface TemplateController
public java.util.List getChildPages(java.lang.Integer siteNodeId,
java.lang.String sortAttribute,
java.lang.String sortOrder)
public java.util.List getBoundPages(java.lang.String structureBindningName)
getBoundPages in interface TemplateController
public java.util.List getBoundPages(java.lang.Integer siteNodeId,
java.lang.String structureBindningName)
getBoundPages in interface TemplateControllerpublic java.util.List getLocalizedBoundPages(java.lang.String structureBindningName)
getLocalizedBoundPages in interface TemplateControllerpublic ContentVO getBoundContent(java.lang.String structureBindningName)
getBoundContent in interface TemplateControllerpublic java.util.List getBoundContents(java.lang.String structureBindningName)
getBoundContents in interface TemplateController
public java.util.List getBoundFolderContents(java.lang.String structureBindningName,
boolean searchRecursive,
java.lang.String sortAttribute,
java.lang.String sortOrder)
getBoundFolderContents in interface TemplateController
public java.util.List getBoundFolderContents(java.lang.Integer siteNodeId,
java.lang.String structureBindningName,
boolean searchRecursive,
java.lang.String sortAttribute,
java.lang.String sortOrder)
getBoundFolderContents in interface TemplateController
public java.util.List getChildContents(java.lang.Integer contentId,
boolean searchRecursive,
java.lang.String sortAttribute,
java.lang.String sortOrder)
getChildContents in interface TemplateController
public java.util.List getChildContents(java.lang.Integer contentId,
boolean searchRecursive,
java.lang.String sortAttribute,
java.lang.String sortOrder,
boolean includeFolders)
getChildContents in interface TemplateControllerpublic ContentTypeDefinitionVO getContentTypeDefinitionVO(java.lang.Integer contentId)
getContentTypeDefinitionVO in interface TemplateControllerpublic ContentTypeDefinitionVO getContentTypeDefinitionVO(java.lang.String name)
public WebPage getBoundPage(java.lang.String structureBindningName,
int position)
getBoundPage in interface TemplateControllerpublic java.lang.String renderString(java.lang.String template)
renderString in interface TemplateController
public java.lang.String include(java.lang.String contentBindningName,
java.lang.String attributeName)
include in interface TemplateController
public java.lang.String include(java.lang.String contentBindningName,
java.lang.String attributeName,
boolean cacheInclude)
include in interface TemplateController
public java.lang.String include(java.lang.String contentBindningName,
java.lang.String attributeName,
boolean cacheInclude,
java.lang.String cName,
java.lang.Object cObject)
include in interface TemplateControllerpublic java.lang.String getUrlContent(java.lang.String url)
getUrlContent in interface TemplateController
public java.lang.String getUrlContent(java.lang.String url,
boolean includeRequest)
getUrlContent in interface TemplateController
public java.lang.String getUrlContent(java.lang.String url,
java.lang.String encoding)
getUrlContent in interface TemplateController
public java.lang.String getUrlContent(java.lang.String url,
boolean includeRequest,
java.lang.String encoding)
getUrlContent in interface TemplateControllerpublic java.lang.Object getObjectWithName(java.lang.String classname)
getObjectWithName in interface TemplateController
public java.lang.String replace(java.lang.String originalString,
java.lang.String expressionToReplace,
java.lang.String newString)
replace in interface TemplateController
public java.lang.String replace(java.lang.String originalString,
java.lang.String substring,
java.lang.String stringToReplace,
java.lang.String newString)
replace in interface TemplateControllerpublic boolean getIsCurrentSiteNode(java.lang.Integer siteNodeId)
getIsCurrentSiteNode in interface TemplateControllerpublic boolean getIsParentToCurrent(java.lang.Integer siteNodeId)
getIsParentToCurrent in interface TemplateControllerpublic boolean getHasLocalizedVersion(java.lang.Integer contentId)
getHasLocalizedVersion in interface TemplateControllerpublic boolean getHasUserPageAccess(java.lang.Integer siteNodeId)
getHasUserPageAccess in interface TemplateControllerpublic boolean getHasUserContentAccess(java.lang.Integer contentId)
public boolean getHasUserContentAccess(java.lang.Integer contentId,
java.lang.String action)
public boolean getHasUserPageWriteAccess(java.lang.Integer siteNodeId)
getHasUserPageWriteAccess in interface TemplateController
public java.util.List getFormAttributes(java.lang.String contentBindningName,
java.lang.String attributeName)
getFormAttributes in interface TemplateController
public java.util.List getFormAttributes(java.lang.Integer contentId,
java.lang.String attributeName)
getFormAttributes in interface TemplateControllerpublic java.util.List getWorkflowSteps(java.lang.String workflowId)
public java.util.List getWorkflowHistoricalSteps(java.lang.String workflowId)
public java.util.List getWorkflowCurrentSteps(java.lang.String workflowId)
public LanguageVO getLanguage(java.lang.Integer languageId)
throws java.lang.Exception
java.lang.Exception
public LanguageVO getLanguage(java.lang.String languageCode)
throws java.lang.Exception
java.lang.Exception
public java.util.Locale getLanguageCode(java.lang.Integer languageId)
throws SystemException
getLanguageCode in interface TemplateControllerSystemException
public java.util.Locale getLocale()
throws SystemException
getLocale in interface TemplateControllerSystemException
public TemplateController getTemplateController(java.lang.Integer siteNodeId,
java.lang.Integer languageId,
java.lang.Integer contentId,
InfoGluePrincipal infoGluePrincipal,
DeliveryContext deliveryContext)
throws SystemException,
java.lang.Exception
getTemplateController in interface TemplateControllerSystemException
java.lang.Exception
public TemplateController getTemplateController(java.lang.Integer siteNodeId,
java.lang.Integer languageId,
java.lang.Integer contentId,
javax.servlet.http.HttpServletRequest request,
InfoGluePrincipal infoGluePrincipal,
DeliveryContext deliveryContext)
throws SystemException,
java.lang.Exception
getTemplateController in interface TemplateControllerSystemException
java.lang.Exceptionpublic java.lang.String decoratePage(java.lang.String page)
decoratePage in interface TemplateControllerpublic DeliveryContext getDeliveryContext()
getDeliveryContext in interface TemplateControllerpublic void setDeliveryContext(DeliveryContext deliveryContext)
setDeliveryContext in interface TemplateControllerpublic boolean isPersistedContext()
public void setPersistedContext(boolean persistedContext)
persistedContext - public boolean getThreatFoldersAsContents()
getThreatFoldersAsContents in interface TemplateControllerpublic void setThreatFoldersAsContents(boolean threatFoldersAsContents)
setThreatFoldersAsContents in interface TemplateController
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||