<?xml version="1.0"?>
<OBJECTS name="AdminPortal">

    <NODE   name="dynamic_content_form_client"  factory="Participant">
        <INHERITS   factory="Named" nodename="dynamic_content_form"/>
        
        <DECORATOR id="auth" factory="MetaComponent" component="AdminPortalAuthDecorator"   priv="TL_AccessAdminPortal"/>
    </NODE>
    
    <NODE name="NavBarSkinConfig::ADMIN_PORTAL" factory="Participant"   class="oneit.servlets.forms.ErrorReportConfig">
        <format item="LI_A_Selected_Menu.level0.section.entry |
                      LI_A_Selected_Menu.level0.article.entry"><![CDATA[${BracklineSeparator:<span class="brack-line"></span>}<li class="${selected:active}"><a ${selected:onclick="return false;"} class="${position} ${attrib:Additional CSS Class}" href="${link}" ${isTarget:target="?"}><span class="${attrib:Menu Icon CSS}"></span>${divsOpen}${attrib:Menu Title|title}${divsClose}</a></li>]]></format>
    </NODE>
    
    <NODE name="AdminPortalAuthDecorator"   factory="Participant" class="oneit.servlets.utils.decorator.AuthenticatorDecorator">
        <AUTHENTICATOR factory="Participant" class="oneit.security.SecurityAuthenticator">
            <PRIVILEGE      factory="Parameter" param="priv"/>
            <FAILED_URL     factory="String"    value="RestrictedAccess.jsp"/>
            <NO_USER_URL    factory="String"    value="extensions/adminportal/sign_in.jsp"/>
        </AUTHENTICATOR>
    </NODE>
    
    <NODE name="dynamic_content_form::ADMIN_PORTAL"     factory="Participant">
        <FORM   name="*.changeAssessmentCriteria"       factory="Participant"   class="performa.form.ChangeAssessmentCriteriaFP"/>
        <FORM   name="*.saveJob"                        factory="Participant"   class="performa.form.SaveJobFP"/>
        <FORM   name="*.saveRequirementTemplate"        factory="Participant"   class="performa.form.SaveRequirementsTemplateFP"/>
        <FORM   name="*.saveCultureTemplate"            factory="Participant"   class="performa.form.SaveCultureTemplateFP"/>
        <FORM   name="*.loadJobFromTemplate"            factory="Participant"   class="performa.form.LoadJobFromTemplateFP"/>
        <FORM   name="*.loadRequirementsFromTemplate"   factory="Participant"   class="performa.form.LoadRequirementsFromTemplateFP"/>
        <FORM   name="*.loadCultureFromTemplate"        factory="Participant"   class="performa.form.LoadCultureFromTemplateFP"/>
    </NODE>
    
    <NODE name="job_assessment_criteria_add_jsp" factory="Participant">
        <INHERITS factory="Named"   nodename="CoreORMAdminNoPriv"/>
    </NODE>
    
    <NODE name="signin_jsp" factory="Participant">
        <INHERITS factory="Named"   nodename="CoreORMAdminNoPriv"/>
        <FORM   name="*.login"                  factory="Participant"   class="performa.form.UserLoginFP">
            <NODE name="loginFailureMessage" factory="String" value="Invalid password, please re-check your login details  ... "/>
            <NODE name="onSuccessURL" factory="String" value="../../AdminPortal-Home.htm"/>
            <PARSER name="username" factory="Participant" class="oneit.utils.parsers.StringParser">
                <NODE name="nonExistErrorMessage" factory="String" value="Please enter a value for user name"/>
            </PARSER>
            <PARSER name="password" factory="Participant" class="oneit.utils.parsers.StringParser">
                <NODE name="nonExistErrorMessage" factory="String" value="Please enter a value for password"/>
            </PARSER>
        </FORM>
    </NODE>
    
    <NODE name="ORMErrorConfig::ADMIN_PORTAL" factory="Participant" class="oneit.servlets.forms.ErrorReportConfig">
        <format item="field.*.error.pageHeader_performa_errorPrefix">
            <![CDATA[<div class="error-message message-common"><img src="${contextRoot}/images/error-alert.png" class="alert-icon" /><span class="message-txt" style="font-weight: bold">${translateLabel:Errors_Occurred:Errors occurred, please correct them and try again}</span><br/>]]>
        </format>
        <format item="field.*.error.pageHeader_performa_errorText"><![CDATA[<br/><span class="message-txt">?</span>]]></format>
        <format item="field.*.error.pageHeader_performa_errorSuffix"><![CDATA[</div>]]></format>
        <format item="form.*.pageHeader_notifyPrefix"><![CDATA[<div class="success-message message-common"><img src="images/success-alert.png" class="alert-icon" /><span class="message-txt">]]></format>
        <format item="form.*.pageHeader_notifySuffix"><![CDATA[</span></div>]]></format>
    </NODE>
</OBJECTS>
