Package org.ametys.plugins.linkdirectory
Class LinkDirectoryXSLTHelper
- java.lang.Object
-
- org.ametys.core.util.AmetysXSLTHelper
-
- org.ametys.cms.transformation.xslt.AmetysXSLTHelper
-
- org.ametys.web.transformation.xslt.AmetysXSLTHelper
-
- org.ametys.plugins.linkdirectory.LinkDirectoryXSLTHelper
-
- All Implemented Interfaces:
Contextualizable
,LogEnabled
,Serviceable
public class LinkDirectoryXSLTHelper extends AmetysXSLTHelper
XSLT Helper with link directory specificity
-
-
Field Summary
Fields Modifier and Type Field Description private static LinkDirectoryColorsComponent
_linkDirectoryColorsComponent
-
Fields inherited from class org.ametys.cms.transformation.xslt.AmetysXSLTHelper
_ametysObjectResolver, _contentHelper, _context, _cTypeExtensionPoint, _logger, _sourceResolver, _tagProviderExtPt
-
Fields inherited from class org.ametys.core.util.AmetysXSLTHelper
_currentUserProvider, _groupManager, _i18nUtils, _jsonUtils, _LOGGER, _rightManager, _userHelper, _versionHandler
-
-
Constructor Summary
Constructors Constructor Description LinkDirectoryXSLTHelper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MapElement
getColors()
Get all the colors for the current sitestatic MapElement
getColors(String siteName)
Get all the colors for a sitestatic String
getDefaultColorIndex()
Get the default color index for the current sitestatic String
getDefaultColorIndex(String siteName)
Get the default color index for a sitevoid
service(ServiceManager manager)
-
Methods inherited from class org.ametys.web.transformation.xslt.AmetysXSLTHelper
absoluteSiteUriPrefix, absoluteSiteUriPrefix, absoluteUriPrefix, accessibleReferencedPages, breadcrumb, contentViewParameter, contentViewParameters, findContentsIdsByTag, findContentsIdsByTag, findPagesIdsByTag, findPagesIdsByTag, hasRightOnPage, hasRightOnPage, isCacheable, isEditionMode, lang, lang, pageExists, pageHasRestrictedAccess, pageHasRestrictedAccess, pageId, pageIsVisible, pageIsVisible, pageLongTitle, pageLongTitle, pageMetadata, pageMetadata, pagePath, pagePath, pageSiteName, pageTitle, pageTitle, pagination, pluginImageBase64, pluginResourceURL, referencedPages, renderingContext, resourceByPath, resourcesById, resourcesByPath, serviceParameter, serviceParameter, serviceParameters, serviceViewParameter, serviceViewParameters, site, site, sitemap, sitemap, sitemap, sitemap, siteParameter, siteParameter, siteUriPrefix, skin, skinBoundedImageURL, skinImageBase64, skinImageURL, skinResources, skinURL, template, templateParameter, templateParameter, templateParameters, templateURL, uriPrefix, urlPreview, userByMail, zone, zoneItemId, zoneItemParameter, zoneItemParameter, zoneItemParameters, zoneItemParameters, zoneParameter, zoneParameter, zoneParameter, zoneParameters, zoneParameters
-
Methods inherited from class org.ametys.cms.transformation.xslt.AmetysXSLTHelper
_contentTags, _getNodeValues, contentAttachments, contentAttachments, contentAttribute, contentAttribute, contentMetadata, contentMetadata, contentMixinTypes, contentTags, contentTags, contentTypes, contentTypeTags, contextualize, enableLogging, getContentView, getContentView, getContentView, getContentView, getContentView, hasValue, isReferenceTableContent, setCurrentContent, setCurrentContent, tagDescription, tagLabel, tagParent, tagPath, tagVisibility
-
Methods inherited from class org.ametys.core.util.AmetysXSLTHelper
absoluteUriPrefix, config, escapeJS, getAbsoluteUriPrefix, getUriPrefix, getValueFromJsonObject, getWorkspaceName, getWorkspacePrefix, groups, groups, groups, hasRight, isDeveloperMode, requestParameter, splitText, splitText, translate, translate, uriPrefix, user, user, user, userByMail, versions, workspaceName, workspacePrefix, workspaceTheme, workspaceThemeURL
-
-
-
-
Field Detail
-
_linkDirectoryColorsComponent
private static LinkDirectoryColorsComponent _linkDirectoryColorsComponent
-
-
Constructor Detail
-
LinkDirectoryXSLTHelper
public LinkDirectoryXSLTHelper()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classAmetysXSLTHelper
- Throws:
ServiceException
-
getColors
public static MapElement getColors()
Get all the colors for the current site- Returns:
- all colors available for the current site
-
getColors
public static MapElement getColors(String siteName)
Get all the colors for a site- Parameters:
siteName
- site to check- Returns:
- all colors available for this site
-
getDefaultColorIndex
public static String getDefaultColorIndex()
Get the default color index for the current site- Returns:
- the default color index for the current site
-
getDefaultColorIndex
public static String getDefaultColorIndex(String siteName)
Get the default color index for a site- Parameters:
siteName
- site to check- Returns:
- the default color index for this site
-
-