Class UserXSLTHelper
java.lang.Object
org.ametys.core.util.AmetysXSLTHelper
org.ametys.cms.transformation.xslt.AmetysXSLTHelper
org.ametys.web.transformation.xslt.AmetysXSLTHelper
org.ametys.plugins.userdirectory.transformation.xslt.UserXSLTHelper
- All Implemented Interfaces:
Contextualizable
,LogEnabled
,Serviceable
Helper component to be used from XSL stylesheets.
-
Field Summary
Modifier and TypeFieldDescriptionprotected static SynchronizableContentsCollectionDAO
The DAO for synchronizable contents collectionsprotected static UserDirectoryHelper
The user directory helperprotected static UserDirectoryPageResolver
The resolver for user directory pagesFields inherited from class org.ametys.cms.transformation.xslt.AmetysXSLTHelper
_ametysObjectResolver, _contentHelper, _context, _cTypeExtensionPoint, _logger, _richTextHelper, _tagProviderExtPt
Fields inherited from class org.ametys.core.util.AmetysXSLTHelper
_currentUserProvider, _groupManager, _i18nUtils, _jsonUtils, _LOGGER, _rightManager, _sourceResolver, _userHelper, _userManager, _versionHandler
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getCurrentUserContent
(String lang) Gets the id of the content of the current connected userstatic String
getCurrentUserPage
(String lang) Gets the id of the page of the current userstatic String
getUserContent
(String lang, String userIdentity) Gets the id of the content of the given userstatic String
getUserPage
(String contentId) Gets the id of the page of the user contentstatic String
getUserPage
(String contentId, String siteName) Gets the id of the page of the user contentvoid
service
(ServiceManager manager) Methods inherited from class org.ametys.web.transformation.xslt.AmetysXSLTHelper
absoluteSiteUriPrefix, absoluteSiteUriPrefix, absoluteUriPrefix, accessibleReferencedPages, breadcrumb, contentViewParameter, contentViewParameters, findContentsIdsByTag, findContentsIdsByTag, findPagesIdsByTag, findPagesIdsByTag, findPagesIdsByTag, findPagesIdsByTag, hasReadAccessOnPage, hasRightOnPage, hasRightOnPage, isCacheable, isCaptchaRequired, isCaptchaRequired, isEditionMode, lang, lang, pageExists, pageHasRestrictedAccess, pageHasRestrictedAccess, pageId, pageIsVisible, pageIsVisible, pageLongTitle, pageLongTitle, pageMetadata, pageMetadata, pagePath, pagePath, pageSiteName, pageTitle, pageTitle, pageType, pageUrl, pageUrlType, pagination, pluginResourceURL, referencedPages, renderingContext, resourceByPath, resourcesById, resourcesByPath, serviceParameter, serviceParameter, serviceParameters, serviceViewParameter, serviceViewParameters, site, site, siteLanguages, siteLanguages, sitemap, sitemap, sitemap, sitemap, sitemap, sitemap, sitemap, sitemap, siteParameter, siteParameter, siteUriPrefix, skin, skinBoundedImageURL, skinImageBase64, skinImageBase64, skinImageURL, skinResources, skinURL, template, templateParameter, templateParameter, templateParameters, templateURL, uriPrefix, urlPreview, userByMail, zone, zoneItemId, zoneItemParameter, zoneItemParameter, zoneItemParameters, zoneItemParameters, zoneItemPosition, zoneParameter, zoneParameter, zoneParameter, zoneParameters, zoneParameters
Methods inherited from class org.ametys.cms.transformation.xslt.AmetysXSLTHelper
_contentTags, _getNodeValues, _getNodeValues, contentAttachments, contentAttachments, contentAttribute, contentAttribute, contentExcerpt, contentMetadata, contentMetadata, contentMixinTypes, contentTags, contentTags, contentTypes, contentTypeTags, contextualize, enableLogging, getContentView, getContentView, getContentView, getContentView, getContentView, hasValue, isReferenceTableContent, setCurrentContent, setCurrentContent, tagColor, tagDescription, tagLabel, tagParent, tagPath, tagVisibility
Methods inherited from class org.ametys.core.util.AmetysXSLTHelper
_getResourceBase64, absoluteUriPrefix, config, escapeJS, escapeURLforCSS, getAbsoluteUriPrefix, getUriPrefix, getValueFromJsonObject, getWorkspaceName, getWorkspacePrefix, groups, groups, groups, hasRight, isDeveloperMode, isPluginEnabled, pluginImageBase64, requestParameter, splitText, splitText, translate, translate, translate, uriPrefix, user, user, user, userByMail, versions, workspaceName, workspacePrefix, workspaceTheme, workspaceThemeURL
-
Field Details
-
_synchronizableContentsCollectionDAO
The DAO for synchronizable contents collections -
_userDirectoryPageResolver
The resolver for user directory pages -
_userDirectoryHelper
The user directory helper
-
-
Constructor Details
-
UserXSLTHelper
public UserXSLTHelper()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classAmetysXSLTHelper
- Throws:
ServiceException
-
getUserContent
Gets the id of the content of the given user- Parameters:
lang
- the content languageuserIdentity
- The user to get content (such as login#population)- Returns:
- the id of the content of the given user
-
getCurrentUserContent
Gets the id of the content of the current connected user- Parameters:
lang
- the content language- Returns:
- the id of the content of the current connected user
-
getCurrentUserPage
Gets the id of the page of the current user- Parameters:
lang
- The language- Returns:
- the id of the page of the user content or null if not found
-
getUserPage
Gets the id of the page of the user content- Parameters:
contentId
- The user content id- Returns:
- the id of the page of the user content
-
getUserPage
Gets the id of the page of the user content- Parameters:
contentId
- The user content idsiteName
- the site name- Returns:
- the id of the page of the user content
-