Class EditExtractionNodeManager
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.ametys.plugins.extraction.edition.EditExtractionNodeManager
-
- All Implemented Interfaces:
Component
,LogEnabled
,Serviceable
public class EditExtractionNodeManager extends AbstractLogEnabled implements Component, Serviceable
Extraction node edition manager
-
-
Field Summary
Fields Modifier and Type Field Description private ContentTypeExtensionPoint
_contentTypeExtensionPoint
private GetQueryFromJSONHelper
_getQueryFromJSONHelper
private I18nUtils
_i18nUtils
private JSONUtils
_jsonUtils
private QueryBuilder
_queryBuilder
private AmetysObjectResolver
_resolver
private ThesaurusDAO
_thesaurusDAO
static String
ROLE
The Avalon role name
-
Constructor Summary
Constructors Constructor Description EditExtractionNodeManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
getMicroThesaurii(String thesaurusId)
Retrieves microthesaurii for the given thesaurusMap<String,Object>
getNodeEditionConfiguration()
Retrieves configuration for extraction node editionList<String>
getSavedQueryContentTypes(String savedQueryId)
Retrieves content types configured on the given saved queryvoid
service(ServiceManager serviceManager)
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Field Detail
-
_thesaurusDAO
private ThesaurusDAO _thesaurusDAO
-
_resolver
private AmetysObjectResolver _resolver
-
_jsonUtils
private JSONUtils _jsonUtils
-
_getQueryFromJSONHelper
private GetQueryFromJSONHelper _getQueryFromJSONHelper
-
_queryBuilder
private QueryBuilder _queryBuilder
-
_i18nUtils
private I18nUtils _i18nUtils
-
_contentTypeExtensionPoint
private ContentTypeExtensionPoint _contentTypeExtensionPoint
-
-
Constructor Detail
-
EditExtractionNodeManager
public EditExtractionNodeManager()
-
-
Method Detail
-
service
public void service(ServiceManager serviceManager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
getNodeEditionConfiguration
public Map<String,Object> getNodeEditionConfiguration()
Retrieves configuration for extraction node edition- Returns:
- A map containing information about what is needed to create/edit an extraction node
-
getMicroThesaurii
public Map<String,Object> getMicroThesaurii(String thesaurusId)
Retrieves microthesaurii for the given thesaurus- Parameters:
thesaurusId
- identifier of the thesaurus- Returns:
- A map containing microthesaurii of the thesaurus
-
getSavedQueryContentTypes
public List<String> getSavedQueryContentTypes(String savedQueryId)
Retrieves content types configured on the given saved query- Parameters:
savedQueryId
- saved query identifier- Returns:
- A list containing the content types
-
-