<?xml version='1.0' encoding='UTF-8'?>
<!-- This document was created with Syntext Serna Free. -->
<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % BOOK_ENTITIES SYSTEM "../../../User_Guide.ent">
%BOOK_ENTITIES;
]>
<section id="sect-User_Guide-Advanced_Configuration">
  <title>Advanced Configuration</title>
  <section id="sect-User_Guide-Advanced_Configuration-Manage_Queries">
    <title>Manage queries</title>
    <para>
   The function enables you to manage queries. It allows adding, editing and deleting queries.
  </para>
    <para>
   Go to <emphasis role="bold"> Advanced Configuration --> Manage Queries.</emphasis>
  </para>
    <mediaobject>
       <imageobject role="html">
          <imagedata fileref="images/managequeriestable.png" format="PNG" align="center"/>
       </imageobject>
       <imageobject role="fo">
          <imagedata fileref="images/managequeriestable.png" format="PNG" align="center" width="150mm" />
       </imageobject>
    </mediaobject>
      <citetitle>
	<para xml:id="proc-User_Guide-Manage_Queries-Add_a_new_query"><emphasis role="bold">Add a new query</emphasis></para>
    </citetitle>
      <procedure>
      <step>
        <para>
     Open the <emphasis role="bold">Add Query</emphasis> form by clicking the <emphasis role="bold">Add Query</emphasis> button in the <emphasis role="bold">Manage Queries</emphasis> page.
    </para>
        <mediaobject>
           <imageobject role="html">
              <imagedata fileref="images/addqueryform.png" format="PNG" align="center"/>
           </imageobject>
           <imageobject role="fo">
              <imagedata fileref="images/addqueryform.png" format="PNG" align="center" width="150mm" />
           </imageobject>
        </mediaobject>
      </step>
      <step>
        <para>
     Enter a query name into the <emphasis role="bold">Query Name</emphasis> field.
    </para>
      </step>
      <step>
        <para>
     Select the query type from the drop-down <emphasis role="bold">Query Type</emphasis> menu.
     <itemizedlist>
            <listitem>
              <para>
        <emphasis role="bold">xpath</emphasis> (XML Path Language) is a language for selecting nodes. For example, <filename>/jcr:root/Documents/Live</filename>.
       </para>
            </listitem>
            <listitem>
              <para>
        <emphasis role="bold">SQL</emphasis> (Structured Query Language) is a database computer language.
       </para>
            </listitem>
          </itemizedlist>
    </para>
      </step>
      <step>
        <para>
     Enter the statement for the query that must be unique.
    </para>
      </step>
      <step>
        <para>
     Check or uncheck the <emphasis role="bold">Enable Cache Results</emphasis> option. If you tick this checkbox, for the first time you use this query to search, the result will be cached. For the second time you search using this query, it will show the cached results. After 45 minutes, the cache will be removed.
    </para>
    <para>
     For example, you have the query <literal>Test</literal> with statement <literal>//element (*, nt:file)</literal>. In the File Explorer, you have a <filename>nt:file</filename> document named <filename>File1</filename>. When you execute the query <literal>Test</literal>, only document <filename>File1</filename> will be shown. After that, create a <filename>nt:file</filename> document named <filename>File2</filename> and execute query <literal>Test</literal>, only document <filename>File2</filename> document will be listed. After 45 minutes, the cache will be removed. When you execute the query <literal>Test</literal>, the documents <filename>File1</filename> and <filename>File2</filename> will be listed.
    </para>
      </step>
      <step>
        <para>
     Select permissions for a group that can use this query by clicking 
     <inlinemediaobject>
            <imageobject>
              <imagedata fileref="images/pluspermissionbutton.png" format="PNG" width="8mm"/>
            </imageobject>
            <textobject>
               <phrase>green plus</phrase>
            </textobject>
          </inlinemediaobject>.
    </para>
      </step>
      <step>
        <para>
     Click <emphasis role="bold">Save</emphasis> to finish adding a new query.
    </para>
      </step>
    </procedure>
      <citetitle>
	<para xml:id="proc-User_Guide-Manage_Queries-Edit_a_query"><emphasis role="bold">Edit a query</emphasis></para>
    </citetitle>
      <procedure>
      <step>
        <para>
     Click
     <inlinemediaobject>
            <imageobject>
              <imagedata fileref="images/editicon4.png" format="PNG" width="6mm"/>
            </imageobject>
            <textobject>
               <phrase>pencil</phrase>
            </textobject>
          </inlinemediaobject>
      corresponding to the query you want to edit. The <emphasis role="bold">Edit Query</emphasis> form will appear.
    </para>
      </step>
      <step>
        <para>
     Edit the properties of the selected query.
    </para>
      </step>
      <step>
        <para>
     Click <emphasis role="bold">Save</emphasis> to accept all changes.
    </para>
      </step>
    </procedure>
      <citetitle>
	<para xml:id="proc-User_Guide-Manage_Queries-Delete_a_query"><emphasis role="bold">Delete a query</emphasis></para>
    </citetitle>
      <procedure>
      <step>
        <para>
     Click 
     <inlinemediaobject>
            <imageobject>
              <imagedata fileref="images/trashicon.png" format="PNG" width="5mm"/>
            </imageobject>
            <textobject>
               <phrase>trash can</phrase>
            </textobject>
          </inlinemediaobject>
      corresponding to the query you want to delete. A confirmation message will appear.
    </para>
      </step>
      <step>
        <para>
     Click <emphasis role="bold">OK</emphasis> to accept deleting this query, or <emphasis role="bold">Cancel</emphasis> to discard this action.
    </para>
      </step>
    </procedure>
  </section>
  <section id="sect-User_Guide-Advanced_Configuration-Manage_Scripts">
    <title>Manage Scripts</title>
    <para>
   The function enables users to manage all script codes in the <emphasis role="bold">&PRODUCT;</emphasis> and<emphasis role="bold"> Browser Content </emphasis>system.
  </para>
    <para>
   Go to <emphasis role="bold">Advanced Configuration --> Manage Scripts.</emphasis>
  </para>
    <mediaobject>
       <imageobject role="html">
          <imagedata fileref="images/managescriptsform.png" format="PNG" align="center"/>
       </imageobject>
       <imageobject role="fo">
          <imagedata fileref="images/managescriptsform.png" format="PNG" align="center" width="150mm" />
       </imageobject>
    </mediaobject>

      <citetitle>
	<para xml:id="proc-User_Guide-Manage_Scripts-Add_a_new_script_in_ECM"><emphasis role="bold">Add a new script in ECM</emphasis></para>
      </citetitle>
    <procedure>
      <step>
        <para>
     Click the <emphasis role="bold">Add</emphasis> button in the <emphasis role="bold">Manage Script</emphasis> page to open the <emphasis role="bold">Add/Edit Script</emphasis> form.
    </para>
        <mediaobject>
           <imageobject role="html">
              <imagedata fileref="images/ecmaddeditscriptsform.png" format="PNG" align="center"/>
           </imageobject>
           <imageobject role="fo">
              <imagedata fileref="images/ecmaddeditscriptsform.png" format="PNG" align="center" width="150mm" />
           </imageobject>
        </mediaobject>
      </step>
      <step>
        <para>
     Enter a value for the <emphasis role="bold">Script Content</emphasis> field.
    </para>
      </step>
      <step>
        <para>
     Enter a script name for the <emphasis role="bold">Script Name</emphasis> field.
     <itemizedlist>
            <listitem>
              <para>
        The script name must be unique
       </para>
            </listitem>
            <listitem>
              <para>
        The name must not contain special characters, such as !,@,#,$,%,&amp;,*,(,).
       </para>
            </listitem>
          </itemizedlist>
    </para>
      </step>
      <step>
        <para>
     Click <emphasis role="bold">Save</emphasis> to accept adding the new script.
    </para>
      </step>
    </procedure>
      <citetitle>
	<para xml:id="proc-User_Guide-Manage_Scripts-Edit_an_ECM_script"><emphasis role="bold">Edit an ECM script</emphasis></para>
      </citetitle>
    <procedure>
      <step>
        <para>
     In the <emphasis role="bold">ECM Scripts</emphasis> tab, click 
     <inlinemediaobject>
            <imageobject>
              <imagedata fileref="images/editicon4.png" format="PNG" width="6mm"/>
            </imageobject>
            <textobject>
               <phrase>pencil</phrase>
            </textobject>
          </inlinemediaobject>
      corresponding to the script that you want to edit. The <emphasis role="bold">Add/Edit script</emphasis> form will appear.
    </para>
        <mediaobject>
          <imageobject>
            <imagedata  align="center" fileref="images/addeditscriptsform.png" format="PNG"/>
          </imageobject>
        </mediaobject>
      </step>
      <step>
        <para>
     Edit the properties in this form.
    </para>
      </step>
      <step>
        <para>
     Click <emphasis role="bold">Save</emphasis> to save all changes.
    </para>
      </step>
    </procedure>
      <citetitle>
	      <para xml:id="proc-User_Guide-Manage_Scripts-Delete_an_ECM_script"><emphasis role="bold">Delete an ECM script</emphasis></para>
      </citetitle>
    <procedure>
      <step>
        <para>
     In the <emphasis role="bold">ECM Scripts</emphasis> tab, click <inlinemediaobject>
            <imageobject>
              <imagedata fileref="images/trashicon.png" format="PNG" width="5mm"/>
            </imageobject>
            <textobject>
               <phrase>trash can</phrase>
            </textobject>
          </inlinemediaobject> on the script that you want to delete. A confirmation message will appear.
    </para>
      </step>
      <step>
        <para>
     Click <emphasis role="bold">OK</emphasis> to accept your deletion, or <emphasis role="bold">Cancel</emphasis> to discard this action.
    </para>
      </step>
    </procedure>
    </section>
    <section id="sect-User_Guide-Advanced_Configuration-Create_Action_Types">
    <title>Create an action type</title>
    <para>
   This function allows you to manage all action nodes in the <emphasis role="bold">&PRODUCT;</emphasis>.
  </para>
    <procedure>
      <step>
        <para>
     Select <emphasis role="bold">Advanced Configuration --> Create Action Type.</emphasis>
    </para>
        <mediaobject>
           <imageobject role="html">
              <imagedata fileref="images/createactiontypetab.png" format="PNG" align="center"/>
           </imageobject>
           <imageobject role="fo">
              <imagedata fileref="images/createactiontypetab.png" format="PNG" align="center" width="150mm" />
           </imageobject>
        </mediaobject>
      </step>
      <step>
        <para>
     Click the <emphasis role="bold">Add</emphasis> button to open the <emphasis role="bold">Action Type</emphasis> form.
    </para>
        <mediaobject>
           <imageobject role="html">
              <imagedata fileref="images/createactiontypeform.png" format="PNG" align="center"/>
           </imageobject>
           <imageobject role="fo">
              <imagedata fileref="images/createactiontypeform.png" format="PNG" align="center" width="150mm" />
           </imageobject>
        </mediaobject>
      </step>
      <step>
        <para>
     Select the action type.
    </para>
      </step>
      <step>
        <para>
     Input a name for the action.
    </para>
      </step>
      <step>
        <para>
     Check/uncheck the <emphasis role="bold">is Action Move</emphasis> option. The action will have exo:move property or not.
    </para>
      </step>
      <step>
        <para>
     Select an "execute" for the <emphasis role="bold">Execute</emphasis> field.
    </para>
      </step>
      <step>
        <para>
     Click <inlinemediaobject>
            <imageobject>
              <imagedata fileref="images/blueplusicon.png" format="PNG" width="7mm"/>
            </imageobject>
            <textobject>
               <phrase>plus</phrase>
            </textobject>
          </inlinemediaobject>
         next to <emphasis role="bold">Variables</emphasis> field to add more values for the action.</para>
       <para> Click
            <inlinemediaobject>
            <imageobject>
              <imagedata fileref="images/trashicon.png" format="PNG" width="5mm"/>
            </imageobject>
            <textobject>
               <phrase>trash can</phrase>
            </textobject>
          </inlinemediaobject> to delete a value.
    </para>
      </step>
      <step>
        <para>
     Click <emphasis role="bold">Save</emphasis> to accept adding a new action type.
    </para>
      </step>
    </procedure>
  </section>

  <section id="sect-User_Guide-Advanced_Configuration-Manage_Unlocks">
    <title>Manage locks</title>
    <para>
   All locked nodes are listed and managed by administrators in the <emphasis role="bold">Content Administration</emphasis> page. There are two ways that help administrators lock nodes: unlock nodes in the right-click menu in <emphasis role="bold">Sites Explorer</emphasis> or unlock nodes in the <emphasis role="bold">Content Administration</emphasis> page.
  </para>
      <citetitle>
   <para xml:id="proc-User_Guide-Manage_Unlocks-Unlock_Nodes"><emphasis role="bold">Unlock a node</emphasis></para>
      </citetitle>
    <procedure>
      <step>
        <para>
     Select <emphasis role="bold">Advanced Configuration --> Manage Locks</emphasis> on the <emphasis role="bold">Manage ECM Main Functions</emphasis> pane on the left. The locked nodes will be listed on the right pane.
    </para>
        <mediaobject>
           <imageobject role="html">
              <imagedata fileref="images/manageunlockstab.png" format="PNG" align="center"/>
           </imageobject>
           <imageobject role="fo">
              <imagedata fileref="images/manageunlockstab.png" format="PNG" align="center" width="150mm" />
           </imageobject>
        </mediaobject>
      </step>
      <step>
        <para>
     In the <emphasis role="bold">Locked Node</emphasis> tab on the right pane, administrators can unlock nodes by clicking 
     <inlinemediaobject>
            <imageobject>
              <imagedata fileref="images/unlockicon.png" format="PNG" width="8mm"/>
            </imageobject>
            <textobject>
               <phrase>open lock</phrase>
            </textobject>
          </inlinemediaobject>
      corresponding to nodes which need to be unlocked. The unlocked nodes will disappear from the locked nodes list.
    </para>
        <para>
     Administrators can manage and add the unlock permission for another group and users in the <emphasis role="bold">Manage Lock</emphasis> tab.
    </para>
      </step>
      <step>
        <para>
     Select the group on the <emphasis role="bold">Select Group</emphasis> pane and the corresponding membership on the <emphasis role="bold">Select Membership</emphasis> pane. The selected group will be listed in the <emphasis role="bold">Groups Or Users</emphasis> column. However, administrators can also click
     <inlinemediaobject>
            <imageobject>
              <imagedata fileref="images/blueplusicon.png" format="PNG" width="7mm"/>
            </imageobject>
            <textobject>
               <phrase>plus</phrase>
            </textobject>
          </inlinemediaobject> if you want to allow any users to unlock nodes.
    </para>
        <mediaobject>
           <imageobject role="html">
              <imagedata fileref="images/manageunlocksform.png" format="PNG" align="center"/>
           </imageobject>
           <imageobject role="fo">
              <imagedata fileref="images/manageunlocksform.png" format="PNG" align="center" width="150mm" />
           </imageobject>
        </mediaobject>
      </step>
      <step>
        <para>
     In case you, as an administrator, want to remove the "Unlock" permission of groups, click
     <inlinemediaobject>
            <imageobject>
              <imagedata fileref="images/trashicon.png" format="PNG" width="5mm"/>
            </imageobject>
            <textobject>
               <phrase>trash can</phrase>
            </textobject>
          </inlinemediaobject> corresponding to the group to remove them form the "Unlock" permission list, except the group <filename>*:/platform/administrator</filename> and <literal>root</literal>.
    </para>
      </step>
    </procedure>
  </section>

</section>
