com.sage.orion.sdata.servlet.swtservice
Class LandingPageResourceKind

java.lang.Object
  extended by com.sage.orion.sdata.servlet.JDBCResourceKind
      extended by com.sage.orion.sdata.servlet.swtservice.UIDefinitionResourceKind
          extended by com.sage.orion.sdata.servlet.swtservice.LandingPageResourceKind
All Implemented Interfaces:
ResourceKind

public class LandingPageResourceKind
extends UIDefinitionResourceKind

The class is responsible for handling the landing page requests.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.sage.orion.sdata.servlet.JDBCResourceKind
JDBCResourceKind.HTTPMethodsAuthorizator, JDBCResourceKind.ResourceAuthorizator, JDBCResourceKind.ResourceDataAuthorizator
 
Field Summary
 
Fields inherited from class com.sage.orion.sdata.servlet.JDBCResourceKind
ADD, ALTER_TABLE, AND, CLOSE_BRACE, COMMA, CONSTRAINT, DEFAULT, DEFAULT_LANGUAGE_CODE, DELETE_FROM, DROP, DROP_TABLE, FROM, NOT_NULL, OPEN_BRACE, PRIMARY_KEY, SELECT, UICONTENT_SQL_SELECT_STMT, VARCHAR_50, WHERE
 
Constructor Summary
LandingPageResourceKind(ApplicationContext context, ConnectionPool connectionPool, java.lang.String authToken)
          Constructor.
 
Method Summary
protected  org.w3c.dom.Document getFileAsNormalizedDOM(java.io.File inputFilePath, boolean useLock)
           Gets the specified input file's contents as a normalized DOM document, and if specified, locking the file in a shared ("for reading") manner while getting that content.
 
Methods inherited from class com.sage.orion.sdata.servlet.swtservice.UIDefinitionResourceKind
canGetOnData, canPutOnData, doGet, doPut, doSchema, doTemplate, getAllFields, getCalculateFieldValue, getName, getPrimaryKey, getTableName, isUserSpecificResource, parseFile, supportDelete, supportGet, supportPost, supportPut
 
Methods inherited from class com.sage.orion.sdata.servlet.JDBCResourceKind
addCompanyIDField, addRecordsForAllCompanies, buildUserFilter, canDelete, canDeleteOnData, canGet, canPost, canPostOnData, canPut, createPreparedEntryGetStatement, doDelete, doPost, fillResultSetResourceElement, findUIContentTextValueInDB, focusOnResultSet, freeConnection, getApplicationContext, getAuthToken, getCaseInsensitiveColumns, getColumnNamesFromList, getCompanyIDField, getCompanyIDForFilter, getConnection, getCurrentRequest, getCurrentUser, getCustomizedQuery, getDatabaseType, getDefaultFeedCount, getFieldData, getFieldSchemaIdentity, getFieldSchemaName, getFieldSchemaType, getIncludeColumns, getInstance, getKeyValueForKeyName, getMaxFeedCount, getOrderByClause, getOrderByClauseForKeyField, getPreparedStatement, getQueryStringForParam, getResourceKindFieldsCount, getResultRecordAndCreateResponse, getSchema, getTemplate, getTransText, getUserIDField, getUserIDForFilter, handleRequest, maintainTable, moveRecordPointerToKeyInURL, requiresCompanyIdInjection, requiresSignon, requiresUserIdInjection, shutdown, splitKeyIntoSegments, splitResourceSelectorKeyIntoSegments
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LandingPageResourceKind

public LandingPageResourceKind(ApplicationContext context,
                               ConnectionPool connectionPool,
                               java.lang.String authToken)
Constructor.

Parameters:
context - SData application context
connectionPool - connectionPool of the underline DB
authToken - the authentication token
Method Detail

getFileAsNormalizedDOM

protected org.w3c.dom.Document getFileAsNormalizedDOM(java.io.File inputFilePath,
                                                      boolean useLock)

Gets the specified input file's contents as a normalized DOM document, and if specified, locking the file in a shared ("for reading") manner while getting that content.

NOTE: This method does not return null - it throws an exception if it encounters a problem.

Overrides:
getFileAsNormalizedDOM in class UIDefinitionResourceKind
Parameters:
inputFilePath - The File object representing the path to input file.
useLock - Whether or not to lock the file (in a shared manner) during the parse.
Returns:
The specified input file's contents as a normalized DOM document


Copyright © 2011 Sage Software, Inc. All rights reserved.