public class AmetysXSLTHelper extends AmetysXSLTHelper implements LogEnabled
Modifier and Type | Field and Description |
---|---|
protected static AmetysObjectResolver |
_ametysObjectResolver
The Ametys object resolver
|
protected static Context |
_context
The avalon context
|
protected static ContentTypeExtensionPoint |
_cTypeExtensionPoint
The content types extension point
|
protected static Logger |
_logger
The logger
|
protected static TagProviderExtensionPoint |
_tagProviderExtPt
The tags provider
|
_currentUserProvider, _groupManager, _i18nUtils, _userHelper, _userManager, _versionHandler
Constructor and Description |
---|
AmetysXSLTHelper() |
Modifier and Type | Method and Description |
---|---|
private static String |
_getMetadata(CompositeMetadata cm,
String metadataName) |
static Node |
contentAttachments()
|
private static Node |
contentAttachments(Content content)
|
static Node |
contentAttachments(String contentId)
|
static String |
contentMetadata(String contentId,
String metadataName)
Get the metadata of a content
|
static NodeList |
contentMixinTypes(String contentId)
Get the mixins of a content
|
static NodeList |
contentTags()
Returns all tags of the current content.
|
static NodeList |
contentTypes(String contentId)
Get the content types of a content
|
static NodeList |
contentTypeTags(String contentTypeId)
Returns all tags of a content type
|
void |
contextualize(Context context) |
void |
enableLogging(Logger logger) |
void |
service(ServiceManager manager) |
static String |
tagDescription(String siteName,
String tagName,
String lang)
Get the description of a tag
|
static String |
tagLabel(String siteName,
String tagName,
String lang)
Get the label of a tag
|
static String |
tagParent(String siteName,
String tagName)
Get the name of the parent of a tag.
|
static String |
tagPath(String siteName,
String tagName)
Get the path of a tag.
|
static String |
tagVisibility(String siteName,
String tagName)
Get the visibility of a tag
|
absoluteUriPrefix, absoluteUriPrefix, config, escapeJS, getAbsoluteUriPrefix, getUriPrefix, getWorkspaceName, getWorkspacePrefix, groups, groups, isDeveloperMode, requestParameter, splitText, splitText, translate, translate, uriPrefix, uriPrefix, urlEncode, user, versions, workspaceName, workspacePrefix, workspaceTheme, workspaceThemeURL
protected static AmetysObjectResolver _ametysObjectResolver
protected static ContentTypeExtensionPoint _cTypeExtensionPoint
protected static TagProviderExtensionPoint _tagProviderExtPt
public AmetysXSLTHelper()
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
contextualize
in class AmetysXSLTHelper
ContextException
public void enableLogging(Logger logger)
enableLogging
in interface LogEnabled
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
service
in class AmetysXSLTHelper
ServiceException
public static NodeList contentTypes(String contentId)
contentId
- The content idpublic static NodeList contentMixinTypes(String contentId)
contentId
- The content idpublic static String contentMetadata(String contentId, String metadataName)
contentId
- The content idmetadataName
- The metadata name (/ for composite)private static String _getMetadata(CompositeMetadata cm, String metadataName)
public static Node contentAttachments()
Resource
s.public static Node contentAttachments(String contentId)
contentId
- the content ID.Resource
s.private static Node contentAttachments(Content content)
content
- the content.Resource
s.public static NodeList contentTags()
public static String tagParent(String siteName, String tagName)
siteName
- the site nametagName
- the tag's namepublic static String tagPath(String siteName, String tagName)
siteName
- The site nametagName
- The unique tag's namepublic static String tagLabel(String siteName, String tagName, String lang)
siteName
- the current sitetagName
- the name of the taglang
- the lang (if i18n tag)public static String tagDescription(String siteName, String tagName, String lang)
siteName
- the current sitetagName
- the name of the taglang
- the lang (if i18n tag)public static String tagVisibility(String siteName, String tagName)
siteName
- the current sitetagName
- the name of the tagpublic static NodeList contentTypeTags(String contentTypeId)
contentTypeId
- The id of the content type