Class ElasticsearchAccessFunctionalAdmin

    • Field Detail

      • MAPPING_FORMAT_FILE

        public static final java.lang.String MAPPING_FORMAT_FILE
        See Also:
        Constant Field Values
      • MAPPING_RULE_FILE

        public static final java.lang.String MAPPING_RULE_FILE
        See Also:
        Constant Field Values
      • MAPPING_INGESTCONTRACT_FILE

        public static final java.lang.String MAPPING_INGESTCONTRACT_FILE
        See Also:
        Constant Field Values
      • MAPPING_ACCESSCONTRACT_FILE

        public static final java.lang.String MAPPING_ACCESSCONTRACT_FILE
        See Also:
        Constant Field Values
      • MAPPING_MANAGEMENTCONTRACT_FILE

        public static final java.lang.String MAPPING_MANAGEMENTCONTRACT_FILE
        See Also:
        Constant Field Values
      • MAPPING_AGENCIES_FILE

        public static final java.lang.String MAPPING_AGENCIES_FILE
        See Also:
        Constant Field Values
      • MAPPING_PROFILE_FILE

        public static final java.lang.String MAPPING_PROFILE_FILE
        See Also:
        Constant Field Values
      • MAPPING_CONTEXT_FILE

        public static final java.lang.String MAPPING_CONTEXT_FILE
        See Also:
        Constant Field Values
      • MAPPING_SECURITY_PROFILE_FILE

        public static final java.lang.String MAPPING_SECURITY_PROFILE_FILE
        See Also:
        Constant Field Values
      • MAPPING_ARCHIVE_UNIT_PROFILE_FILE

        public static final java.lang.String MAPPING_ARCHIVE_UNIT_PROFILE_FILE
        See Also:
        Constant Field Values
      • MAPPING_ONTOLOGY_FILE

        public static final java.lang.String MAPPING_ONTOLOGY_FILE
        See Also:
        Constant Field Values
      • MAPPING_ACCESSION_REGISTER_SYMBOLICS_FILE

        public static final java.lang.String MAPPING_ACCESSION_REGISTER_SYMBOLICS_FILE
        See Also:
        Constant Field Values
      • MAPPING_ACCESSION_REGISTER_SUMMARY_FILE

        public static final java.lang.String MAPPING_ACCESSION_REGISTER_SUMMARY_FILE
        See Also:
        Constant Field Values
      • MAPPING_ACCESSION_REGISTER_DETAIL_FILE

        public static final java.lang.String MAPPING_ACCESSION_REGISTER_DETAIL_FILE
        See Also:
        Constant Field Values
      • MAPPING_GRIFFIN_FILE

        public static final java.lang.String MAPPING_GRIFFIN_FILE
        See Also:
        Constant Field Values
      • MAPPING_PRESERVATION_SCENARIO_FILE

        public static final java.lang.String MAPPING_PRESERVATION_SCENARIO_FILE
        See Also:
        Constant Field Values
    • Constructor Detail

      • ElasticsearchAccessFunctionalAdmin

        public ElasticsearchAccessFunctionalAdmin​(java.lang.String clusterName,
                                                  java.util.List<ElasticsearchNode> nodes)
                                           throws VitamException,
                                                  java.io.IOException
        Parameters:
        clusterName -
        nodes -
        Throws:
        VitamException
        java.io.IOException
    • Method Detail

      • addIndex

        public final java.util.Map<java.lang.String,​java.lang.String> addIndex​(FunctionalAdminCollections collection)
        Add a type to an index
        Parameters:
        collection -
        Returns:
        key aliasName value indexName or empty
      • search

        protected final org.elasticsearch.action.search.SearchResponse search​(FunctionalAdminCollections collection,
                                                                              org.elasticsearch.index.query.QueryBuilder query,
                                                                              org.elasticsearch.index.query.QueryBuilder filter)
                                                                       throws ReferentialException,
                                                                              BadRequestException
        Parameters:
        collection -
        query - as in DSL mode "{ "fieldname" : "value" }" "{ "match" : { "fieldname" : "value" } }" "{ "ids" : { " values" : [list of id] } }"
        filter -
        Returns:
        a structure as ResultInterface
        Throws:
        ReferentialException
        BadRequestException
      • ensureIndex

        public static void ensureIndex()
        Methods adding Indexes