Class HibernateContentQueryModuleDescriptor
- java.lang.Object
-
- com.atlassian.plugin.descriptors.AbstractModuleDescriptor<HibernateContentQueryFactory>
-
- com.atlassian.confluence.content.persistence.hibernate.HibernateContentQueryModuleDescriptor
-
- All Implemented Interfaces:
PluginModuleFactory<HibernateContentQueryFactory>
,com.atlassian.plugin.ModuleDescriptor<HibernateContentQueryFactory>
,com.atlassian.plugin.Resourced
,com.atlassian.plugin.ScopeAware
,com.atlassian.plugin.StateAware
public class HibernateContentQueryModuleDescriptor extends com.atlassian.plugin.descriptors.AbstractModuleDescriptor<HibernateContentQueryFactory> implements PluginModuleFactory<HibernateContentQueryFactory>
Module descriptor to allow plugins to provide custom queries for looking up pluggable content. The aim is to provide an abstraction between making a query and the raw Hibernate implementation of that query, without having to come up with Yet Another Query Language.
-
-
Constructor Summary
Constructors Constructor Description HibernateContentQueryModuleDescriptor(com.atlassian.plugin.module.ModuleFactory moduleFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HibernateContentQueryFactory
createModule()
void
disabled()
void
enabled()
HibernateContentQueryFactory
getModule()
String
getQueryName()
void
init(@NonNull com.atlassian.plugin.Plugin plugin, @NonNull org.dom4j.Element element)
String
toString()
-
Methods inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
assertModuleClassImplements, checkPermissions, destroy, equals, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getModuleClassName, getName, getParams, getPlugin, getPluginKey, getRequiredPermissions, getResourceDescriptor, getResourceDescriptors, getResourceLocation, getScopeKey, hashCode, isBroken, isEnabled, isEnabledByDefault, isSystemModule, loadClass, provideValidationRules, satisfiesMinJavaVersion, setBroken, setPlugin
-
-
-
-
Method Detail
-
init
public void init(@NonNull com.atlassian.plugin.Plugin plugin, @NonNull org.dom4j.Element element) throws com.atlassian.plugin.PluginParseException
- Specified by:
init
in interfacecom.atlassian.plugin.ModuleDescriptor<HibernateContentQueryFactory>
- Overrides:
init
in classcom.atlassian.plugin.descriptors.AbstractModuleDescriptor<HibernateContentQueryFactory>
- Throws:
com.atlassian.plugin.PluginParseException
-
enabled
public void enabled()
- Specified by:
enabled
in interfacecom.atlassian.plugin.StateAware
- Overrides:
enabled
in classcom.atlassian.plugin.descriptors.AbstractModuleDescriptor<HibernateContentQueryFactory>
-
disabled
public void disabled()
- Specified by:
disabled
in interfacecom.atlassian.plugin.StateAware
- Overrides:
disabled
in classcom.atlassian.plugin.descriptors.AbstractModuleDescriptor<HibernateContentQueryFactory>
-
getModule
public HibernateContentQueryFactory getModule()
- Specified by:
getModule
in interfacecom.atlassian.plugin.ModuleDescriptor<HibernateContentQueryFactory>
- Specified by:
getModule
in classcom.atlassian.plugin.descriptors.AbstractModuleDescriptor<HibernateContentQueryFactory>
-
createModule
public HibernateContentQueryFactory createModule()
- Specified by:
createModule
in interfacePluginModuleFactory<HibernateContentQueryFactory>
-
getQueryName
public String getQueryName()
-
toString
public String toString()
- Overrides:
toString
in classcom.atlassian.plugin.descriptors.AbstractModuleDescriptor<HibernateContentQueryFactory>
-
-