public final class CmsInheritanceGroupUtils
extends java.lang.Object
限定符和类型 | 方法和说明 |
---|---|
static CmsResource |
getInheritanceGroupContentByName(CmsObject cms,
java.lang.String name)
Finds the inheritance group content with a given internal name.
|
static java.util.Set<java.lang.String> |
getNamesOfGroupsContainingResource(CmsObject cms,
CmsResource inheritanceConfig,
CmsResource target)
Parses an inheritance group configuration C and returns the names of inheritance groups in C in which a given resource
is defined as a new element.
|
public static CmsResource getInheritanceGroupContentByName(CmsObject cms, java.lang.String name) throws CmsException
Currently this is implemented as a property search, which may be potentially slow.
cms
- the current CMS contextname
- the name to searchCmsException
- if something goes wrongpublic static java.util.Set<java.lang.String> getNamesOfGroupsContainingResource(CmsObject cms, CmsResource inheritanceConfig, CmsResource target) throws CmsException
cms
- the current CMS contextinheritanceConfig
- the inheritance configuration resourcetarget
- the resource to search in the inheritance configurationCmsException
- if something goes wrong