Class AccessStep


  • public class AccessStep
    extends CommonStep
    step defining access glue
    • Field Detail

      • CONTEXT_IDENTIFIER

        public static final java.lang.String CONTEXT_IDENTIFIER
        See Also:
        Constant Field Values
      • INGEST_CONTRACT_IDENTIFIER

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

      • AccessStep

        public AccessStep​(World world)
    • Method Detail

      • facetmetadata_contains_values_count

        @Then("^le r\u00e9sultat pour la facet (.*) contient (\\d+) valeurs (.*)$")
        public void facetmetadata_contains_values_count​(java.lang.String facetName,
                                                        int count,
                                                        java.lang.String value)
                                                 throws java.lang.Throwable
        Check facet bucket value count
        Parameters:
        facetName - facet name
        count - bucket count
        value - bucket value
        Throws:
        java.lang.Throwable - when not valid
      • facetmetadata_does_not_contains_value

        @Then("^le r\u00e9sultat pour la facet (.*) ne contient pas la valeur (.*)$")
        public void facetmetadata_does_not_contains_value​(java.lang.String facetName,
                                                          java.lang.String value)
                                                   throws java.lang.Throwable
        Check facet does not contains bucket for value
        Parameters:
        facetName - facet name
        value - value
        Throws:
        java.lang.Throwable - when not valid
      • metadata_are

        @Then("^les metadonn\u00e9es sont$")
        public void metadata_are​(cucumber.api.DataTable dataTable)
                          throws java.lang.Throwable
        check if the metadata are valid.
        Parameters:
        dataTable - dataTable
        Throws:
        java.lang.Throwable
      • metadata_are_for_particular_result

        @Then("^les metadonn\u00e9es pour le r\u00e9sultat (\\d+)$")
        public void metadata_are_for_particular_result​(int resultNumber,
                                                       cucumber.api.DataTable dataTable)
                                                throws java.lang.Throwable
        check if the metadata are valid.
        Parameters:
        dataTable - dataTable
        resultNumber - resultNumber
        Throws:
        java.lang.Throwable
      • upload_contract_ingest_with_noeud

        @When("^j\'importe le contrat d\'entr\u00e9e avec le noeud de rattachement dont le titre est (.*)")
        public void upload_contract_ingest_with_noeud​(java.lang.String title)
                                               throws java.lang.Throwable
        Upload contract with noeud
        Parameters:
        title -
        Throws:
        java.io.IOException
        java.lang.Throwable
      • number_of_result_are

        @Then("^le nombre de r\u00e9sultat est (\\d+)$")
        public void number_of_result_are​(int numberOfResult)
        check if the number of result is OK
        Parameters:
        numberOfResult - number of result.
      • results_contains_key_value

        @Then("^tous les r\u00e9sultats contiennent la propri\u00e9t\u00e9 \"([^\"]*)\" dont la valeur est \"([^\"]*)\"$")
        public void results_contains_key_value​(java.lang.String fieldKey,
                                               java.lang.String fieldValue)
      • the_status_of_the_select_result

        @Then("^le statut de select r\u00e9sultat est (.*)$")
        public void the_status_of_the_select_result​(java.lang.String status)
                                             throws java.lang.Throwable
        check if the status of the select result is unauthorized
        Parameters:
        status -
        Throws:
        java.lang.Throwable
      • the_description_message_of_the_select_result

        @Then("^le message d\'erreur renvoy\u00e9 est (.*)$")
        public void the_description_message_of_the_select_result​(java.lang.String message)
                                                          throws java.lang.Throwable
        check if the description message of the select result is correct
        Parameters:
        message -
        Throws:
        java.lang.Throwable
      • the_status_of_the_request

        @Then("^le statut de la requete est (.*)$")
        public void the_status_of_the_request​(java.lang.String status)
                                       throws java.lang.Throwable
        check if the status of the select result is unauthorized
        Parameters:
        status -
        Throws:
        java.lang.Throwable
      • the_status_of_the_update_result

        @Then("^le statut de update r\u00e9sultat est (.*)$")
        public void the_status_of_the_update_result​(java.lang.String status)
                                             throws java.lang.Throwable
        check if the status of the update result is unauthorized
        Parameters:
        status -
        Throws:
        java.lang.Throwable
      • i_use_the_following_file_query

        @When("^j\'utilise le fichier de requ\u00eate suivant (.*)$")
        public void i_use_the_following_file_query​(java.lang.String queryFilename)
                                            throws java.lang.Throwable
        define a query from a file to reuse it after
        Parameters:
        queryFilename - name of the file containing the query
        Throws:
        java.lang.Throwable
      • i_use_the_following_parameter_query_with_values

        @When("^j\'utilise dans la requ\u00eate le param\u00e8tre (.*) avec la valeur (.*)$")
        public void i_use_the_following_parameter_query_with_values​(java.lang.String parameter,
                                                                    java.lang.String value)
                                                             throws java.lang.Throwable
        replace in the loaded query the given parameter by the given value
        Parameters:
        parameter - parameter name in the query
        value - the valeur to replace the parameter
        Throws:
        java.lang.Throwable
      • i_use_the_following_parameter_query_with_an_id

        @When("^j\'utilise dans la requ\u00eate le param\u00e8tre (.*) avec l\'id$")
        public void i_use_the_following_parameter_query_with_an_id​(java.lang.String parameter)
                                                            throws java.lang.Throwable
        replace in the loaded query the given parameter by an id previously retrieved
        Parameters:
        parameter - parameter name in the query
        Throws:
        java.lang.Throwable
      • i_use_the_following_unit_guid_for_title

        @When("^j\'utilise dans la requ\u00eate le GUID de l\'unit\u00e9 archivistique pour le titre (.*)$")
        public void i_use_the_following_unit_guid_for_title​(java.lang.String title)
                                                     throws java.lang.Throwable
        replace in the loaded query the string {{guid}} by the guid of the first unit found for given title
        Parameters:
        title - title of the unit
        Throws:
        java.lang.Throwable
      • i_use_the_following_query

        @When("^j\'utilise la requ\u00eate suivante$")
        public void i_use_the_following_query​(java.lang.String query)
                                       throws java.lang.Throwable
        define a query to reuse it after
        Parameters:
        query -
        Throws:
        java.lang.Throwable
      • saveOperationId

        @Then("^je nomme l\'identifiant de l\'op\u00e9ration (.*)$")
        public void saveOperationId​(java.lang.String operationIdName)
                             throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • search_archive_unit

        @When("^je recherche les unit\u00e9s archivistiques$")
        public void search_archive_unit()
                                 throws java.lang.Throwable
        search an archive unit according to the query define before
        Throws:
        java.lang.Throwable
      • search_archive_unit

        @When("^je recherche les unit\u00e9s archivistiques pour trouver l\'unite (.*)$")
        public void search_archive_unit​(java.lang.String originatingSystemId)
                                 throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • search_one_archive_unit

        @When("^je recherche une unit\u00e9 archivistique et je recup\u00e8re son id$")
        public void search_one_archive_unit()
                                     throws java.lang.Throwable
        search an archive unit according to the query define before
        Throws:
        java.lang.Throwable - throw
      • search_archive_units_with_inherited_rules

        @When("^je recherche les unit\u00e9s archivistiques avec leurs r\u00e8gles de gestion h\u00e9rit\u00e9es$")
        public void search_archive_units_with_inherited_rules()
                                                       throws java.lang.Throwable
        search an archive unit with inherited rules
        Throws:
        java.lang.Throwable
      • metadata_are_for_particular_result

        @When("^je s\u00e9lectionne la cat\u00e9gorie (.*) pour l\'unit\u00e9 (.*)$")
        public void metadata_are_for_particular_result​(java.lang.String category,
                                                       java.lang.String unitTitle)
                                                throws java.lang.Throwable
        Select unit rule category
        Throws:
        java.lang.Throwable
      • rule_category_rules_and_properties_count_check

        @Then("^la cat\u00e9gorie contient (\\d+) r\u00e8gles et (\\d+) propri\u00e9t\u00e9s h\u00e9rit\u00e9es$")
        public void rule_category_rules_and_properties_count_check​(int nbRules,
                                                                   int nbProperties)
                                                            throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • search_object_groups

        @When("^je recherche les groupes d\'objets$")
        public void search_object_groups()
                                  throws java.lang.Throwable
        search an object groups according to the query define before
        Throws:
        java.lang.Throwable
      • check_rule_metadata

        @Then("^la cat\u00e9gorie contient une r\u00e8gle (.*) h\u00e9rit\u00e9e depuis l\'unit\u00e9 (.*) avec pour m\u00e9tadonn\u00e9es$")
        public void check_rule_metadata​(java.lang.String ruleId,
                                        java.lang.String unitTitle,
                                        cucumber.api.DataTable dataTable)
                                 throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • check_property_metadata

        @Then("^la cat\u00e9gorie contient une propri\u00e9t\u00e9 (.*) h\u00e9rit\u00e9e depuis l\'unit\u00e9 (.*) avec pour m\u00e9tadonn\u00e9es$")
        public void check_property_metadata​(java.lang.String propertyName,
                                            java.lang.String unitTitle,
                                            cucumber.api.DataTable dataTable)
                                     throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • json_metadata_are_for_particular_result

        @Then("^les m\u00e9tadonn\u00e9es de gestion correspondent au fichier json (.+)$")
        public void json_metadata_are_for_particular_result​(java.lang.String filename)
                                                     throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • check_unit_inherited_rules_json

        @Then("^les r\u00e8gles h\u00e9rit\u00e9s de l\'unit\u00e9 (.*) correspondent au fichier json (.*)$")
        public void check_unit_inherited_rules_json​(java.lang.String unitTitle,
                                                    java.lang.String filename)
                                             throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • search_one_object_group

        @When("^je recherche une unit\u00e9 archivistique ayant un groupe d\'objets et je recup\u00e8re son id et son objet$")
        public void search_one_object_group()
                                     throws java.lang.Throwable
        search an archive unit according to the query define before
        Throws:
        java.lang.Throwable
      • update_archive_unit

        @When("^je modifie les unit\u00e9s archivistiques$")
        public void update_archive_unit()
                                 throws java.lang.Throwable
        update an archive unit according to the query define before
        Throws:
        java.lang.Throwable
      • update_archive_unit_with_query

        @When("^je modifie l\'unit\u00e9 archivistique avec la requete$")
        public void update_archive_unit_with_query​(java.lang.String query)
                                            throws java.lang.Throwable
        update an archive unit according to the query define before
        Throws:
        java.lang.Throwable
      • search_archive_unit_object_group

        @When("^je recherche les groupes d\'objets des unit\u00e9s archivistiques$")
        public void search_archive_unit_object_group()
                                              throws java.lang.Throwable
        Search an archive unit and retrieve object groups according to the query define before. Step 1 : request search unit with #object in projection. Step 2 : on each unit search object group.
        Throws:
        java.lang.Throwable
      • search_archive_unit_object_group

        @When("^je recherche les groupes d\'objets de l\'unit\u00e9 archivistique dont le titre est (.*)$")
        public void search_archive_unit_object_group​(java.lang.String title)
                                              throws java.lang.Throwable
        Search an archive unit and retrieve object groups according to the query define before. Search object group with archive unit Id
        Throws:
        java.lang.Throwable
      • search_logbook_operation

        @When("^je recherche les journaux d\'op\u00e9ration$")
        public void search_logbook_operation()
                                      throws java.lang.Throwable
        search logbook operations according to the query define before
        Throws:
        java.lang.Throwable
      • i_import_or_check_the_file_for_the_admin_collection

        @When("^(?:je |j\')(.*) le fichier nomm\u00e9 (.*) (?:pour|dans) le r\u00e9f\u00e9rentiel (.*)$")
        public void i_import_or_check_the_file_for_the_admin_collection​(java.lang.String action,
                                                                        java.lang.String filename,
                                                                        java.lang.String collection)
                                                                 throws java.lang.Throwable
        Import or Check an admin referential file
        Parameters:
        action - the action we want to execute : "vérifie" for check / "importe" for import
        filename - name of the file to import or check
        collection - name of the collection
        Throws:
        java.lang.Throwable
      • search_in_admin_collection

        @When("^je recherche les donn\u00e9es dans le r\u00e9f\u00e9rentiel (.*)$")
        public void search_in_admin_collection​(java.lang.String collection)
                                        throws java.lang.Throwable
        Search in admin collection according to the query define before
        Parameters:
        collection - name of the collection
        Throws:
        java.lang.Throwable
      • start_elimination_analysis

        @When("^je lance une analyse d\'\u00e9limination avec pour date le (.*) qui se termine avec le statut (.*)$")
        public void start_elimination_analysis​(java.lang.String analysisDate,
                                               java.lang.String status)
                                        throws java.lang.Throwable
        elimination analysis
        Throws:
        java.lang.Throwable
      • start_elimination_action

        @When("^je lance une \u00e9limination d\u00e9finitive avec pour date le (.*) qui se termine avec le statut (.*)$")
        public void start_elimination_action​(java.lang.String deleteDate,
                                             java.lang.String status)
                                      throws java.lang.Throwable
        elimination action
        Throws:
        java.lang.Throwable
      • linked_check_traceability

        @When("^je lance la v\u00e9rification des journaux de s\u00e9curisation$")
        public void linked_check_traceability()
                                       throws VitamException
        Throws:
        VitamException
      • wait_old_ingest_for_lfc_traceability

        @When("^que l\'ingest date d\'au moins (\\d+) secondes$")
        public void wait_old_ingest_for_lfc_traceability​(int duration)
      • reclassification

        @When("^je lance l\'op\u00e9ration de reclassification$")
        public void reclassification()
                              throws java.lang.Exception
        Throws:
        java.lang.Exception