<?xml version="1.0" encoding="UTF-8"?>
<appParameters>

	<context-param>
		<debugLevel>info</debugLevel>
		<logFile>../../logs/servlet.log</logFile>
		<patternLayout>%d [%l] %-5p %c %x - %m%n</patternLayout>
		<App>com.navis.webaccess.controller.App</App>
		<FieldTweaker>com.navis.webaccess.V2.view.FieldTweaker</FieldTweaker>
		<com.navis.webaccess.dispatcher>Dispatcher</com.navis.webaccess.dispatcher>
		<com.navis.webaccess.homePage>http://www.gpa.com/</com.navis.webaccess.homePage>
		<com.navis.webaccess.adminHelpPage>/secure/AdminHelp.jsp</com.navis.webaccess.adminHelpPage>
		<com.navis.webaccess.userHelpPage>/secure/UserHelpIndex.jsp</com.navis.webaccess.userHelpPage>
		<com.navis.webaccess.bccEmail>payment@navis.com</com.navis.webaccess.bccEmail>
		<com.navis.webaccess.fromEmail>admin@navis.com</com.navis.webaccess.fromEmail>
		<com.navis.webaccess.templateText>Thank you for your payment</com.navis.webaccess.templateText>
		<com.navis.webaccess.mailHostName>pop.navis.com</com.navis.webaccess.mailHostName>
        <com.navis.webaccess.remoteHostType>EXPRESS</com.navis.webaccess.remoteHostType>
		<com.navis.webaccess.remoteHost>205.219.33.41</com.navis.webaccess.remoteHost>
		<com.navis.webaccess.userdb.purge.option>NO</com.navis.webaccess.userdb.purge.option>
		<com.navis.webaccess.userdb.purge.days>31</com.navis.webaccess.userdb.purge.days>
		<com.navis.webaccess.remoteHostPort>1528</com.navis.webaccess.remoteHostPort>
		<com.navis.navweb.https.port/>
		<com.navis.navweb.https.reports/>
		<!--  preGateWebDir are applicable to Version >= 3.8 . Added in 3.8 version-->
		<preGateWebDir>/secure/configure/pregate/</preGateWebDir>
		<clientName></clientName>
		<auditTrail></auditTrail>
        <!-- Value determines how many truck records are return on the Manage Trucks page when Show All is selected -->
        <maxTruckRecord>200</maxTruckRecord>
        <!-- Value determines how many records are returned on the query pages if Records Per Page is left blank. "ALL" keyword is used to return all records-->
        <recordsPerPage>ALL</recordsPerPage>
	    <gatePin>4</gatePin>
	</context-param>

	<locale>en</locale>
	<hostVersion>2.5</hostVersion>
	<dbType>ORACLE</dbType>

	<forms-list>
		<holdsForm type="AGRI">
			<workgroupid>AGRI</workgroupid>
			<equseColumn>AGRI_STATUS</equseColumn>
			<mainQuery>
				<select>1 "container.hold.select",
					eq_nbr "container.hold.eqnbr",
					line_id "container.agrihold.line",
					DECODE(agri_status,'',' ',agri_status) "container.agrihold.agrihold",
					(select max(notes) from holds h, hold_work_groups hwg
						where hwg.hldtp_id = h.hldtp_id
						  and hwg.wkgrp_id = 'AGRI'
						  and h.equse_gkey = equse.gkey) "container.agrihold.notes"
				</select>
				<from>equipment_uses equse, equipment eq</from>
				<where>equse.gkey=eq.equse_gkey</where>
				<group></group>
				<order>eq_nbr</order>
			</mainQuery>
			<inBoundVesselColumn></inBoundVesselColumn>
			<outBoundVesselColumn></outBoundVesselColumn>
		</holdsForm>
     <holdsForm type="LINEBL">
			<workgroupid>LINE</workgroupid>
			<equseColumn>LINE_STATUS</equseColumn>
			<mainQuery>
              <select>1 "container.hold.select",
                bl.NBR  "releasebybl.bl",
                bl.LINE_STATUS "container.linehold.linehold",
		        bl.LINE_ID  "releasebybl.line",
                bl.SHIP_ID  "releasebybl.vessel",
                bl.VOY_NBR "releasebybl.voyage"
              </select>
            <from>BILLS_OF_LADING bl</from>
            <where>bl.NBR is not null</where>
            <group></group>
            <order>bl.NBR desc</order>
            </mainQuery>
			<inBoundVesselColumn></inBoundVesselColumn>
			<outBoundVesselColumn></outBoundVesselColumn>
		</holdsForm>
	</forms-list>
	<product-options>
		<appointments-option>
            <!-- Valid type values: vbs, basic, visitBase
                 Default is visitBase. If tags are missing, default to visitBase -->
			<type>basic</type>
		</appointments-option>
	</product-options>
	<bookings enabled="true"/>
	<!--  customsApi tags are applicable to Version >= 3.7 . Added in 3.7 version-->
	<customsApi>
		<workgroupId>SALES</workgroupId>
		<xscanServiceOrderId>SALES-XSCAN</xscanServiceOrderId>
	</customsApi>

	<!--  schedulers tags are applicable to Version >= 3.7 . Added in 3.7 version-->
	<schedulers>
		<scheduler id="sms">
			<name>SmsScheduler</name>
			<description>Sends out SMS messages and e-mail copies</description>
			<smsoutxsd>/schema/smsout.xsd</smsoutxsd>
			<smsinxsd>/schema/smsin.xsd</smsinxsd>
			<shutdownport>5555</shutdownport>
			<logFile>../logs/SmsScheduler.log</logFile>
			<smsouttemplate>SmsOutTemplate.xml</smsouttemplate>
			<fromAddress>smstester@navis.com</fromAddress>
			<emailSubject>Testing SMS</emailSubject>
			<smtp authenticate="false">
				<server>smtp.navis.com</server>
				<smtpAccount/>
				<smtpPassword/>
			</smtp>
			<startCommand>java -cp .;../webapps/express/WEB-INF/classes;../webapps/express/WEB-INF/lib/navweb2.jar;../webapps/express/WEB-INF/lib/jdom-b7.jar;../webapps/express/WEB-INF/lib/activation.jar;../webapps/express/WEB-INF/lib/mail.jar;../webapps/express/WEB-INF/lib/log4j.jar;../webapps/express/WEB-INF/lib/util.jar com.navis.webaccess.presentation.scheduler.SmsScheduler ../webapps/express/WEB-INF/navweb_parameters.xml</startCommand>
			<stopCommand>java -cp .;../webapps/express/WEB-INF/classes com.navis.webaccess.presentation.scheduler.ShutdownScheduler localhost 5555</stopCommand>
			<uid>ucp</uid>
			<locale>en_US</locale>
			<smsOutReceiever>http://localhost:7777/express/servlet/smsoutreceiver</smsOutReceiever>
			<smsThreadPoolSize>3</smsThreadPoolSize>
			<schedulerTimeInterval>30</schedulerTimeInterval>
			<!-- Value in seconds-->
		</scheduler>
		<scheduler id="notification">
			<name>NotificationScheduler</name>
			<description>Builds SMS messages from notified events</description>
			<logFile>../logs/NotificationSmsScheduler.log</logFile>
			<shutdownport>5556</shutdownport>
			<startCommand>java -cp .;../webapps/express/WEB-INF/classes;../webapps/express/WEB-INF/lib/navweb2.jar;../webapps/express/WEB-INF/lib/jdom-b7.jar;../webapps/express/WEB-INF/lib/activation.jar;../webapps/express/WEB-INF/lib/mail.jar;../webapps/express/WEB-INF/lib/log4j.jar;../webapps/express/WEB-INF/lib/util.jar com.navis.webaccess.presentation.scheduler.SmsNotifyScheduler ../webapps/express/WEB-INF/navweb_parameters.xml</startCommand>
			<stopCommand>java -cp .;../webapps/express/WEB-INF/classes com.navis.webaccess.presentation.scheduler.ShutdownScheduler localhost 5556</stopCommand>
			<uid>PSP</uid>
			<locale>en_US</locale>
			<schedulerTimeInterval>100</schedulerTimeInterval>
			<!-- Value in seconds-->
		</scheduler>
		<!--
        <scheduler id="deviceListener">
            <name>Device Listener</name>
            <description>Receive messages and post sms request to Navis WA System.</description>
            <logFile>../logs/SmsDeviceListener.log</logFile>
            <shutdownport>5557</shutdownport>
            <startCommand>java -cp .;../webapps/express/WEB-INF/classes;../webapps/express/WEB-INF/lib/navweb.jar;../webapps/express/WEB-INF/lib/jdom-b7.jar;../webapps/express/WEB-INF/lib/activation.jar;../webapps/express/WEB-INF/lib/mail.jar;../webapps/express/WEB-INF/lib/log4j.jar;../webapps/express/WEB-INF/lib/util.jar com.navis.webaccess.scheduler.ui.sms.SmsDeviceListener ../webapps/express/WEB-INF/navweb_parameters.xml</startCommand>
            <stopCommand>java -cp .;../webapps/express/WEB-INF/classes com.navis.webaccess.sms.ui.scheduler.ShutdownScheduler localhost 5557</stopCommand>
            <smscNumber>12099042010</smscNumber>
            <portCom>COM1</portCom>
            <baudRate>9600</baudRate>
            <smsServicePoint>http://localhost:7777/express/servlet/sms</smsServicePoint>
            <smsDeviceTrialVersion>yes</smsDeviceTrialVersion>
            <schedulerTimeInterval>60</schedulerTimeInterval>
        </scheduler>
        -->
	</schedulers>

	<!--  ldapConfig tags are applicable to Version >= 3.7 . Added in 3.7 version-->
	<ldapConfig>
		<host>wadev</host>
		<port>389</port>
		<rootDN>cn=manager,dc=navis,dc=com</rootDN>
		<password>secret</password>
		<minConnections>4</minConnections>
		<maxConnections>10</maxConnections>
	</ldapConfig>

	<!--  hostApiConfig tags are applicable to Version >= 3.9 . Added in 3.9 version-->
	<hostApiConfig useThirdPartyHost="false">
		<hostURL>http://localhost:7777/servlet/hostApi</hostURL>
	</hostApiConfig>
	<!-- 3rd Party Host Configuration END-->

	<!--  security tags are applicable to Version >= 3.8 . Added in 3.8 version-->
	<security>
		<password>
		    <pattern>^(?=.*\W)(?=.*\w).{8,}$</pattern>
		    <patternMsg>Password must be min 8 characters and contain a punctuation character</patternMsg>
		</password>
		<option>
			<smtphost>smtp.navis.com</smtphost>
			<fromAddress>admin@navis.com</fromAddress>
		</option>
	</security>

	<admin>
		<security>
		    <pwdMaxAge>100</pwdMaxAge>
			<pwdMaxFailure>3</pwdMaxFailure>
			<pwdExpireWarning>30</pwdExpireWarning>
			<pwdReUse>No</pwdReUse>
			<pwdDispWarn>Yes</pwdDispWarn>
			<pwdHistory>6</pwdHistory>
		</security>
	</admin>

	<pwdSettingsReqd required="YES"/>
	<logRecordsReturned noOfRecords="100"/>

	<busapi>
		<url>http://express:7777/express/servlet/BusApi</url>
		<clients>
			<address>127.0.0.1</address>
			<address>localhost</address>
		</clients>
	</busapi>

	<!--  pregate tags are applicable to Version >= 3.8 . Added in 3.8 version-->
	<pregate>
	       <defaultLaneId>2</defaultLaneId>
	</pregate>
    <!-- Uncomment terminalVesselVisits tag for PHA -->
    <!-- <terminalVesselVisits>
        <mainTerminal>BCT</mainTerminal>
    </terminalVesselVisits> -->

    <appointments>
        <scheduler id="appointmentValidate">
			<name>AppointmentValidateScheduler</name>
			<description>Validate Appointments and update Gate Entry Mode value</description>
			<validateAppointments>com.navis.webaccess.business.api.AppointmentApi.validateAppointments</validateAppointments>
            <uid>ucp</uid>
			<locale>en_US</locale>
            <!-- 1800 = 30 mins = 60 * 30 -->
			<schedulerTimeInterval>1800</schedulerTimeInterval>
			<!-- Value in seconds-->
		</scheduler>
        <scheduler id="appointmentSummary">
			<name>AppointmentSummaryScheduler</name>
			<description>Sends summary of appointments based on trucking company alert preferences</description>
            <fromAddress>admin@navis.com</fromAddress>
			<emailSubject>Appointment Summary </emailSubject>
			<smtp authenticate="false">
				<server>smtp.navis.com</server>
				<smtpAccount/>
				<smtpPassword/>
			</smtp>
			<uid>ucp</uid>
			<locale>en_US</locale>
			<!-- Values in seconds-->
            <!-- Default time interval of 86400 = 24hrs = 60secs * 60mins * 24hrs -->
            <schedulerTimeInterval>86400</schedulerTimeInterval>
            <!-- Default startTime of 0 = midnight = 12am -->
            <schedulerStartTime>0</schedulerStartTime>
		</scheduler>
    </appointments>    
</appParameters>

