<?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>
   This function enables you to manage queries. It allows adding, editing and deleting queries.
  </para>
    <para>
   Go to <menuchoice>
      <guimenu>Administration</guimenu>
      <guimenuitem>Advanced Configuration</guimenuitem>
      <guimenuitem>Manage Queries</guimenuitem>
   </menuchoice>.
  </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>
    <procedure id="proc-User_Guide-Manage_Queries-Add_a_new_query">
      <title>Add a new query</title>
      <step>
        <para>
            Open the <guilabel>Add Query</guilabel> form by clicking the <guibutton>Add Query</guibutton> button in the <guilabel>Manage Queries</guilabel> form.
         </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 for the <guilabel>Name</guilabel> field.
    </para>
      </step>
      <step>
        <para>
     Select the query type:
     </para>
     <variablelist>
        <varlistentry>
           <term>Xpath</term>
              <listitem>
              <para>
                 <emphasis>XML Path Language</emphasis> is a language for selecting nodes. For example, <filename>/jcr:root/Documents/Live</filename>.
                </para>
            </listitem>
        </varlistentry>
        <varlistentry>
           <term>SQL</term>
              <listitem>
              <para>
                 <emphasis>Structured Query Language</emphasis> is a database computer language.
                </para>
            </listitem>
        </varlistentry>
     </variablelist>
      </step>
      <step>
        <para>
     Enter the statement for query. The name of node type must be unique.
    </para>
      </step>
      <step>
        <para>
     Check or uncheck the <guilabel>Enable cache results</guilabel> option. If you tick this checkbox, for the fist 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 45minutes, the cache will be removed.
    </para>
    <example>
       <title></title>
         <itemizedlist>
               <listitem>
                  <para>
                     You have the query <literal>Test</literal> with the statement <literal>//element (*, nt:file)</literal>.
                  </para>
               </listitem>
               <listitem>
                  <para>
                     In the File Explorer, you have a <filename>nt:file</filename> document named <filename>File1</filename>.
                  </para>
               </listitem>
               <listitem>
                  <para>
                     When you execute the query <literal>Test</literal>, only the <filename>File1</filename> document will be shown.
                  </para>
               </listitem>
               <listitem>
                  <para>
                     You 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.
                  </para>
               </listitem>
               <listitem>
                  <para>
                     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>
               </listitem>
         </itemizedlist>
    </example>
      </step>
      <step>
        <para>
     Select permissions for a group that can use this query by clicking the <inlinemediaobject>
            <imageobject>
              <imagedata fileref="images/pluspermissionbutton.png" format="PNG" width="8mm"/>
            </imageobject>
            <textobject>
               <phrase>green plus</phrase>
            </textobject>
          </inlinemediaobject> icon.
    </para>
        <mediaobject>
           <imageobject role="html">
              <imagedata fileref="images/selectpermission.png" format="PNG" align="center"/>
           </imageobject>
           <imageobject role="fo">
              <imagedata fileref="images/selectpermission.png" format="PNG" align="center" width="146mm"/>
           </imageobject>
        </mediaobject>
      </step>
      <step>
        <para>
     Click <guilabel>Save</guilabel> to add the new query.
    </para>
      </step>
    </procedure>
    <procedure id="proc-User_Guide-Manage_Queries-Edit_a_query">
      <title>Edit a query</title>
      <step>
        <para>
     Click the <inlinemediaobject>
            <imageobject>
              <imagedata fileref="images/editicon4.png" format="PNG" width="6mm"/>
            </imageobject>
            <textobject>
               <phrase>pencil</phrase>
            </textobject>
          </inlinemediaobject>
      icon corresponding to the query you want to edit. The <guilabel>Edit Query</guilabel> form will appear:
    </para>
        <mediaobject>
           <imageobject role="html">
              <imagedata fileref="images/editqueryform.png" format="PNG" align="center"/>
           </imageobject>
           <imageobject role="fo">
              <imagedata fileref="images/editqueryform.png" format="PNG" align="center" width="150mm" />
           </imageobject>
        </mediaobject>
      </step>
      <step>
        <para>
     Edit the properties of the selected query.
    </para>
      </step>
      <step>
        <para>
     Click <guilabel>Save</guilabel> to submit any changes.
    </para>
      </step>
    </procedure>
    <procedure id="proc-User_Guide-Manage_Queries-Delete_a_query">
      <title>Delete a query</title>
      <step>
        <para>
     Click <inlinemediaobject>
            <imageobject>
              <imagedata fileref="images/trashicon.png" format="PNG" width="5mm"/>
            </imageobject>
            <textobject>
               <phrase>trash can</phrase>
            </textobject>
          </inlinemediaobject> icon corresponding to the query you want to delete. A confirmation message will appear.
    </para>
      </step>
      <step>
        <para>
     Click <guilabel>OK</guilabel> to accept deleting this query, or <guilabel>Cancel</guilabel> to discard the form.
    </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">ECM</emphasis> and <emphasis role="bold">Browser Content</emphasis> system.
  </para>
    <para>
   Go to <menuchoice>
      <guimenu>Group</guimenu>
      <guimenuitem>Administration</guimenuitem>
   </menuchoice> then go to <menuchoice>
      <guimenu>Advanced Configuration</guimenu>
      <guimenuitem>Manage Scripts</guimenuitem>
   </menuchoice>.
  </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>
   <table>
      <title>Manage Scripts Form</title>
         <tgroup cols="2">
            <thead>
               <row>
                  <entry>
                     Field
                  </entry>
                  <entry>
                     Details
                  </entry>
               </row>
            </thead>
            <tbody>
               <row>
                  <entry>
                     <guilabel>ECM Scripts</guilabel>
                  </entry>
                  <entry>
                     These scripts are used in <emphasis role="bold">&PRODUCT;</emphasis>.
                  </entry>
               </row>
               <row>
                  <entry>
                     <guilabel>BC Scripts</guilabel>
                  </entry>
                  <entry>
                     These scripts are used in <emphasis role="bold">Content Browser</emphasis>.
                  </entry>
               </row>
            </tbody>
         </tgroup>
   </table>
    <procedure id="proc-User_Guide-Manage_Scripts-Add_a_new_script_in_ECM">
      <title>Add a new script in ECM</title>
      <step>
        <para>
     Select the <guilabel>ECM Scripts</guilabel> tab in the <guilabel>Manage Scripts</guilabel> form.
    </para>
      </step>
      <step>
        <para>
     Click the <guilabel>Add</guilabel> button to open the <guilabel>Add/Edit script</guilabel> 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 <guilabel>Script content</guilabel> field.
    </para>
      </step>
      <step>
        <para>
     Enter a name in the <guilabel>Script name</guilabel> 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 <guilabel>Save</guilabel> to adding the new script.
    </para>
      </step>
    </procedure>
    <procedure id="proc-User_Guide-Manage_Scripts-Edit_an_ECM_script">
      <title>Edit an ECM script</title>
      <para>
    To edit an ECM script, do the following:
   </para>
      <step>
        <para>
     In the <guilabel>ECM Scripts</guilabel> tab, click the <inlinemediaobject>
            <imageobject>
              <imagedata fileref="images/editicon4.png" format="PNG" width="6mm"/>
            </imageobject>
            <textobject>
               <phrase>pencil</phrase>
            </textobject>
          </inlinemediaobject> icon that corresponds to the script that you want to edit. The <guilabel>Add/Edit script</guilabel> 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 <guilabel>Save</guilabel> to save all changes.
    </para>
      </step>
    </procedure>
    <procedure id="proc-User_Guide-Manage_Scripts-Delete_an_ECM_script">
      <title>Delete an ECM script</title>
      <para>
    To delete an ECM script, do the following:
   </para>
      <step>
        <para>
     In the <guilabel>ECM Scripts</guilabel> tab, click the <inlinemediaobject>
            <imageobject>
              <imagedata fileref="images/trashicon.png" format="PNG" width="5mm"/>
            </imageobject>
            <textobject>
               <phrase>trash can</phrase>
            </textobject>
          </inlinemediaobject> icon on the script that you want to delete. A confirmation message will appear.
    </para>
      </step>
      <step>
        <para>
     Click <guilabel>OK</guilabel> to delete this script or <guilabel>Cancel</guilabel> to discard this action.
    </para>
      </step>
    </procedure>
    <procedure id="proc-User_Guide-Manage_Scripts-Add_a_BC_script">
      <title>Add a BC script</title>
      <para>
    To add a BC script, do the following:
   </para>
      <step>
        <para>
     In the <guilabel>Manage Scripts</guilabel>, select the <guilabel>BC Scripts</guilabel> tab.
    </para>
    <mediaobject>
       <imageobject role="html">
          <imagedata fileref="images/bcscriptstab.png" format="PNG" align="center"/>
       </imageobject>
       <imageobject role="fo">
          <imagedata fileref="images/bcscriptstab.png" format="PNG" align="center" width="150mm" />
       </imageobject>
    </mediaobject>
      </step>
      <step>
        <para>
     Click <guilabel>Add</guilabel> to open the <guilabel>Add/Edit script</guilabel> form:
    </para>
        <mediaobject>
           <imageobject role="html">
              <imagedata fileref="images/bcaddeditscriptform.png" format="PNG" align="center"/>
           </imageobject>
           <imageobject role="fo">
              <imagedata fileref="images/bcaddeditscriptform.png" format="PNG" align="center" width="150mm" />
           </imageobject>
        </mediaobject>
      </step>
      <step>
        <para>
     Enter the script in the <guilabel>Script content</guilabel> field.
    </para>
      </step>
      <step>
        <para>
     Enter a name into the <guilabel>Name</guilabel> field.
    </para>
      </step>
      <step>
        <para>
     Click <guilabel>Save</guilabel> to finish adding the new script.
    </para>
      </step>
    </procedure>
    <procedure id="proc-User_Guide-Manage_Scripts-Edit_a_BC_script">
      <title>Edit a BC script</title>
      <para>
         To edit a BC script, do the following::
      </para>
      <step>
        <para>
            In the <guilabel>BC Script</guilabel> tab, click the <inlinemediaobject>
            <imageobject>
              <imagedata fileref="images/editicon4.png" format="PNG" width="6mm"/>
            </imageobject>
            <textobject>
               <phrase>pencil</phrase>
            </textobject>
          </inlinemediaobject> icon on a script that you want to edit.
         </para>
        <para>
           The <guilabel>Add/Edit script</guilabel> form will appear:
        </para>
        <mediaobject>
           <imageobject role="html">
              <imagedata fileref="images/bceditscriptform.png" format="PNG" align="center"/>
           </imageobject>
           <imageobject role="fo">
              <imagedata fileref="images/bceditscriptform.png" format="PNG" align="center" width="150mm" />
           </imageobject>
        </mediaobject>
      </step>
      <step>
        <para>
            Edit the properties as required.
         </para>
      </step>
      <step>
        <para>
         Click <guilabel>Save</guilabel> to accept all changes.
         </para>
      </step>
    </procedure>
    <procedure id="proc-User_Guide-Manage_Scripts-Delete_a_BC_script">
      <title>Delete a BC script</title>
      <para>
        To delete a BC script, do the following:
      </para>
      <step>
        <para>
         In the <guilabel>BC Scripts</guilabel> tab, click the <inlinemediaobject>
            <imageobject>
              <imagedata fileref="images/trashicon.png" format="PNG" width="5mm"/>
            </imageobject>
            <textobject>
               <phrase>trash can</phrase>
            </textobject>
          </inlinemediaobject> icon on the script you want to delete. A confirmation message appears.
         </para>
      </step>
      <step>
        <para>
            Click <guilabel>OK</guilabel> to delete this script or <guilabel>Cancel</guilabel> to discard this action.
         </para>
      </step>
    </procedure>
  </section>

  <section id="sect-User_Guide-Advanced_Configuration-Manage_Unlocks">
    <title>Manage Unlocks</title>
    <para>
      All locked nodes are listed and managed by administrators in the <guilabel>Administration page</guilabel>.
   </para>
   <para>
      There are two ways that administrators can unlock nodes:
   </para>
      <orderedlist>
         <listitem>
            <para>
               The <guilabel>unlock nodes</guilabel> in the right-click menu of Content Explorer.
            </para>
         </listitem>
         <listitem>
            <para>
               <guilabel>Manage Unlocks</guilabel> in the <guilabel>Administration page.</guilabel>
            </para>
         </listitem>
      </orderedlist>
    <procedure id="proc-User_Guide-Manage_Unlocks-Unlock_Nodes">
      <title>Manage Unlocks</title>
      <step>
        <para>
            Go to <menuchoice>
            <guimenu>Group</guimenu>
            <guimenuitem>Administration</guimenuitem>
            </menuchoice> on the navigation bar. Then go to <menuchoice>
        <guimenu>Advanced Configuration</guimenu>
        <guimenuitem>Manage Unlocks</guimenuitem>
         </menuchoice>.
         </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 <guilabel>Locked Node</guilabel> tab on the right panel, administrators can unlock nodes by clicking the <inlinemediaobject>
            <imageobject>
              <imagedata fileref="images/unlockicon.png" format="PNG" width="8mm"/>
            </imageobject>
            <textobject>
               <phrase>open lock</phrase>
            </textobject>
          </inlinemediaobject> icon that corresponds to nodes which need to be unlocked. The unlocked nodes will disappear from the locked node list.
    </para>
        <para>
     Administrators can manage and add the unlock permission for another group and users in the <guilabel>Manage Lock</guilabel> tab.
    </para>
      </step>
      <step>
        <para>
         Select the group on the left-hand <guilabel>Select group</guilabel> panel and the corresponding membership on the right-hand <guilabel>Select membership</guilabel> panel. The selected group will be listed in the <guilabel>Group and Users</guilabel> column. However, administrators can also click the <inlinemediaobject>
            <imageobject>
              <imagedata fileref="images/blueplusicon.png" format="PNG" width="7mm"/>
            </imageobject>
            <textobject>
               <phrase>plus</phrase>
            </textobject>
          </inlinemediaobject> icon if they 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>
     To remove the unlock permission of groups, click the <inlinemediaobject>
            <imageobject>
              <imagedata fileref="images/trashicon.png" format="PNG" width="5mm"/>
            </imageobject>
            <textobject>
               <phrase>trash can</phrase>
            </textobject>
          </inlinemediaobject> icon that corresponds to the group in order to remove them form the Unlock permission list except the group <filename>*:/platform/administrator</filename> and <literal>root</literal>.
    </para>
      </step>
    </procedure>
  </section>
  <section id="sect-User_Guide-Advanced_Configuration-Create_Action_Types">
    <title>Create Action Types</title>
    <para>
   This function allows managing of all action nodes in the <emphasis role="bold">&PRODUCT;</emphasis>.
  </para>
    <procedure id="proc-User_Guide-Create_Action_Types-Create_an_Action_Type">
      <title>Create an Action Type</title>
      <step>
        <para>
     Go to <menuchoice>
            <guimenu>Group</guimenu>
            <guimenuitem>Administration</guimenuitem>
            </menuchoice> on the navigation bar. Then go to <menuchoice>
        <guimenu>Advanced Configuration</guimenu>
        <guimenuitem>Create an Action Type</guimenuitem>
         </menuchoice>.
    </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 <guilabel>Add</guilabel> button to open the <guilabel>Action Type Form</guilabel> 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>
     Enter a name for the action.
    </para>
      </step>
      <step>
        <para>
     Check or uncheck the <guilabel>is Action Move</guilabel> option: the action will have the <parameter>exo:move</parameter> property or not depending on the status of this switch.
    </para>
      </step>
      <step>
        <para>
     Select an execute for the <guilabel>Execute</guilabel> field.
    </para>
        <mediaobject>
           <imageobject role="html">
              <imagedata fileref="images/createactiontypeexecuteform.png" format="PNG" align="center"/>
           </imageobject>
           <imageobject role="fo">
              <imagedata fileref="images/createactiontypeexecuteform.png" format="PNG" align="center" width="106mm" />
           </imageobject>
        </mediaobject>
      </step>
      <step>
        <para>
     The <guilabel>Variables</guilabel> field allows creating multi-values for action. If you want to add more values for action, click the <inlinemediaobject>
            <imageobject>
              <imagedata fileref="images/blueplusicon.png" format="PNG" width="7mm"/>
            </imageobject>
            <textobject>
               <phrase>plus</phrase>
            </textobject>
          </inlinemediaobject> icon. Alternatively, click the <inlinemediaobject>
            <imageobject>
              <imagedata fileref="images/trashicon.png" format="PNG" width="5mm"/>
            </imageobject>
            <textobject>
               <phrase>trash can</phrase>
            </textobject>
          </inlinemediaobject> icon to delete a value.
    </para>
      </step>
      <step>
        <para>
     Click <guilabel>Save</guilabel> to the new action type.
    </para>
      </step>
    </procedure>
  </section>
</section>