<?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 add, edit and delete queries by going to <menuchoice><guimenu>Advanced Configuration</guimenu><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>
      <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 <guilabel>Add Query</guilabel> form by clicking <guibutton>Add Query</guibutton> 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="100mm" scalefit="1" />
           </imageobject>
        </mediaobject>
      </step>
      <step>
        <para>
     Enter a query name into the <guilabel>Query Name</guilabel> field.
    </para>
      </step>
      <step>
        <para>
     Select the query type from the drop-down <guilabel>Query Type</guilabel> menu.
     <itemizedlist>
            <listitem>
              <para>
        <guilabel>xPath</guilabel> (XML Path Language) is a language for selecting nodes. For example, <filename>/jcr:root/Documents/Live</filename>.
       </para>
            </listitem>
            <listitem>
              <para>
        <guilabel>SQL</guilabel> (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 <guilabel>Enable Cache Results</guilabel> 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="4mm" scalefit="1"/>
            </imageobject>
            <textobject>
               <phrase>green plus</phrase>
            </textobject>
          </inlinemediaobject>.
    </para>
      </step>
      <step>
        <para>
     Click <guibutton>Save</guibutton> 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="4mm" scalefit="1"/>
            </imageobject>
            <textobject>
               <phrase>pencil</phrase>
            </textobject>
          </inlinemediaobject>
      corresponding to the query you want to edit. The <guilabel>Edit Query</guilabel> form will appear.
    </para>
      </step>
      <step>
        <para>
     Edit the properties of the selected query.
    </para>
      </step>
      <step>
        <para>
     Click <guibutton>Save</guibutton> 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="4mm" scalefit="1"/>
            </imageobject>
            <textobject>
               <phrase>trash can</phrase>
            </textobject>
          </inlinemediaobject>
      corresponding to the query you want to delete.
    </para>
      </step>
      <step>
        <para>
     Click <guibutton>OK</guibutton> in the confirmation message to accept your deletion, or <guibutton>Cancel</guibutton> 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 you to manage all script codes in the <emphasis role="bold">&PRODUCT;</emphasis> and <emphasis role="bold"> Browser Content </emphasis> system by going 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>

      <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 <guibutton>Add</guibutton> in the <emphasis role="bold">Manage Script</emphasis> page 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="100mm" scalefit="1" />
           </imageobject>
        </mediaobject>
      </step>
      <step>
        <para>
     Enter a value for the <guilabel>Script Content</guilabel> field.
    </para>
      </step>
      <step>
        <para>
     Enter a script name for the <guilabel>Script Name</guilabel> field that must be unique and not contain special characters, such as !,@,#,$,%,&amp;,*,(,).
    </para>
      </step>
      <step>
        <para>
     Click <guibutton>Save</guibutton> 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>
      Click 
     <inlinemediaobject>
            <imageobject>
              <imagedata fileref="images/editicon4.png" format="PNG" width="4mm" scalefit="1"/>
            </imageobject>
            <textobject>
               <phrase>pencil</phrase>
            </textobject>
          </inlinemediaobject>
      corresponding to the script that you want to edit in the <guilabel>ECM Scripts</guilabel> tab. The <guilabel>Add/Edit script</guilabel> form will appear.
    </para>
        <mediaobject>
          <imageobject role="html">
            <imagedata  align="center" fileref="images/addeditscriptsform.png" format="PNG"/>
          </imageobject>
            <imageobject role="fo">
            <imagedata  align="center" fileref="images/addeditscriptsform.png" format="PNG" scalefit="1" width="100mm"/>
          </imageobject>
        </mediaobject>
      </step>
      <step>
        <para>
     Edit the properties in this form.
    </para>
      </step>
      <step>
        <para>
     Click <guibutton>Save</guibutton> 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>
     Click <inlinemediaobject>
            <imageobject>
              <imagedata fileref="images/trashicon.png" format="PNG" width="4mm" scalefit="1"/>
            </imageobject>
            <textobject>
               <phrase>trash can</phrase>
            </textobject>
          </inlinemediaobject> on the script that you want to delete in the <guilabel>ECM Scripts</guilabel> tab.
    </para>
      </step>
      <step>
        <para>
     Click <guibutton>OK</guibutton> in the confirmation message to accept your deletion, or <guibutton>Cancel</guibutton> 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 <emphasis role="bold">&PRODUCT;</emphasis>.
  </para>
    <procedure>
      <step>
        <para>
     Select <menuchoice><guimenu>Advanced Configuration</guimenu><guimenuitem>Create 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" scalefit="1" />
           </imageobject>
        </mediaobject>
      </step>
      <step>
        <para>
     Click <guibutton>Add</guibutton> to open the <guilabel>Action Type</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="100mm" scalefit="1" />
           </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 <guilabel>is Action Move</guilabel> option. The action will have the <emphasis>exo:move</emphasis> property or not.
    </para>
      </step>
      <step>
        <para>
     Select an "execute" for the <guilabel>Execute</guilabel> field.
    </para>
      </step>
      <step>
        <para>
     Click <inlinemediaobject>
            <imageobject>
              <imagedata fileref="images/blueplusicon.png" format="PNG" width="4mm" scalefit="1"/>
            </imageobject>
            <textobject>
               <phrase>plus</phrase>
            </textobject>
          </inlinemediaobject>
         next to <guilabel>Variables</guilabel> field to add more values for the action.</para>
		 <itemizedlist>
		 <listitem>
       <para> Click
            <inlinemediaobject>
            <imageobject>
              <imagedata fileref="images/trashicon.png" format="PNG" width="4mm" scalefit="1"/>
            </imageobject>
            <textobject>
               <phrase>trash can</phrase>
            </textobject>
          </inlinemediaobject> to delete a value.
    </para>
	</listitem>
	</itemizedlist>
      </step>
      <step>
        <para>
     Click <guibutton>Save</guibutton> 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 <guilabel>Content Administration</guilabel> 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 <menuchoice><guimenu>Advanced Configuration</guimenu><guimenuitem>Manage Locks</guimenuitem></menuchoice> on the <guilabel>Manage ECM Main Functions</guilabel> pane on the left. The locked nodes will be listed in 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" scalefit="1" />
           </imageobject>
        </mediaobject>
      </step>
      <step>
        <para>
     Click
     <inlinemediaobject>
            <imageobject>
              <imagedata fileref="images/unlockicon.png" format="PNG" width="4mm" scalefit="1"/>
            </imageobject>
            <textobject>
               <phrase>open lock</phrase>
            </textobject>
          </inlinemediaobject>
      corresponding to nodes which need to be unlocked in the <guilabel>Locked Node</guilabel> tab in the right pane. 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 <guilabel>Manage Lock</guilabel> tab.
    </para>
      </step>
      <step>
        <para>
     Select the group on the <guilabel>Select Group</guilabel> pane and the corresponding membership on the <guilabel>Select Membership</guilabel> pane. The selected group will be listed in the <guilabel>Groups Or Users</guilabel> column.
	 </para>
    <itemizedlist>
	<listitem>
	      <para>
     Click
     <inlinemediaobject>
            <imageobject>
              <imagedata fileref="images/trashicon.png" format="PNG" width="4mm" scalefit="1"/>
            </imageobject>
            <textobject>
               <phrase>trash can</phrase>
            </textobject>
          </inlinemediaobject> corresponding to the group which you want to remove from the "Unlock" permission list, except 2 groups: <filename>*:/platform/administrator</filename> and <literal>root</literal>.
    </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" scalefit="1" />
           </imageobject>
        </mediaobject>
    </listitem>
    </itemizedlist>
      </step>
    </procedure>
  </section>

</section>
