|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use DataStore | |
org.cofax | CoFax is a web application framework that provides for the parsing of templates with data sources ranging from databases, to XML. |
org.cofax.cms |
Uses of DataStore in org.cofax |
Subclasses of DataStore in org.cofax | |
class |
DummyDataStore
Provides an empty data store for use if no database connectivity is desired. |
class |
OracleDataStore
Provides database connectivity to an Oracle RDBMS for Cofax. |
class |
SqlDataStore
Provides SQL database connectivity for Cofax. |
Methods in org.cofax with parameters of type DataStore | |
abstract void |
Redirection.init(DataStore db,
java.lang.String dataStoreName)
To be ran once before using the redirection class. |
abstract void |
TemplateProcessor.setDb(DataStore inDb)
|
void |
WysiwygTemplate.setDb(DataStore inDb)
|
void |
OracleRedirection.init(DataStore db,
java.lang.String dataStoreName)
To be ran once before using the redirection class. |
void |
OracleRedirection.getRedirectDefaultSection(DataStore db,
java.lang.String tag,
java.util.HashMap publicationSection,
java.util.HashMap publicationRollOverTime)
Returns a set of content by publication = tag value (inquirer => front_page; inquirer => 5). |
void |
OracleRedirection.getRedirectMonthDay(DataStore db,
java.lang.String tag,
java.util.HashMap monthInNumber,
java.util.HashMap dayInNumber)
|
void |
SqlRedirection.init(DataStore db,
java.lang.String dataStoreName)
To be ran once before using the redirection class. |
void |
SqlRedirection.getRedirectDefaultSection(DataStore db,
java.lang.String tag,
java.util.HashMap publicationSection,
java.util.HashMap publicationRollOverTime)
Returns a set of content by publication = tag value (inquirer => front_page; inquirer => 5). |
void |
SqlRedirection.getRedirectMonthDay(DataStore db,
java.lang.String tag,
java.util.HashMap monthInNumber,
java.util.HashMap dayInNumber)
|
void |
DummyRedirection.init(DataStore db,
java.lang.String dataStoreName)
To be ran once before using the redirection class. |
Uses of DataStore in org.cofax.cms |
Methods in org.cofax.cms that return DataStore | |
static DataStore |
CofaxToolsServlet.connect()
Creates a database connection to be passed through all CofaxTools classes. |
Methods in org.cofax.cms with parameters of type DataStore | |
static java.util.List |
CofaxToolsDbUtils.getPackageData(DataStore db,
java.util.HashMap ht,
java.lang.String tagStatement,
boolean init)
Returns an ArrayList of HashMap results from SQL query. |
static java.util.List |
CofaxToolsDbUtils.getPackageData(DataStore db,
java.util.HashMap ht,
java.lang.String tagStatement)
Returns an ArrayList of HashMap results from SQL query. |
static java.util.List |
CofaxToolsDbUtils.getPackageData(DataStore db,
java.lang.String tagStatement)
Returns an ArrayList of HashMap results from SQL query. |
static java.util.HashMap |
CofaxToolsDbUtils.getNameValuePackageHash(DataStore db,
java.lang.String tagStatement)
Returns a HashMap formatted name / value by one column wide SQl query by arrangment of getPackageData ArrayList results. |
static java.util.HashMap |
CofaxToolsDbUtils.getNameValuePackageHash(DataStore db,
java.util.HashMap ht,
java.lang.String tagStatement)
Returns a HashMap formatted name / value by one column wide SQl query by arrangment of getPackageData ArrayList results. |
static java.util.HashMap |
CofaxToolsDbUtils.getValueValuePackageHash(DataStore db,
java.lang.String tagStatement,
java.lang.String field1,
java.lang.String field2,
boolean init)
Returns a HashMap formatted value / value by two column wide SQl query through arrangement of ArrayList returned by getPackageData. |
static java.util.HashMap |
CofaxToolsDbUtils.getValueValuePackageHash(DataStore db,
java.lang.String tagStatement,
java.lang.String field1,
java.lang.String field2)
Returns a HashMap formatted value / value by two column wide SQl query through arrangement of ArrayList returned by getPackageData. |
static java.util.HashMap |
CofaxToolsDbUtils.getValueValuePackageHash(DataStore db,
java.util.HashMap ht,
java.lang.String tagStatement,
java.lang.String field1,
java.lang.String field2)
Returns a HashMap formatted value / value by two column wide SQl query through arrangement of ArrayList returned by getPackageData. |
static java.util.HashMap |
CofaxToolsDbUtils.getValueValuePackageHash(DataStore db,
java.util.HashMap ht,
java.lang.String tagStatement,
java.lang.String field1,
java.lang.String field2,
boolean init)
Returns a HashMap formatted value / value by two column wide SQl query through arrangement of ArrayList returned by getPackageData. |
static java.util.Vector |
CofaxToolsDbUtils.getPackageVector(DataStore db,
java.lang.String tagStatement)
Returns a Vector formatted one column wide SQl query through ArrayList results by getPackageData. |
static java.util.Vector |
CofaxToolsDbUtils.getPackageVector(DataStore db,
java.util.HashMap ht,
java.lang.String tagStatement)
Returns a Vector formatted one column wide SQl query through ArrayList results by getPackageData. |
static java.lang.String |
CofaxToolsDbUtils.fillTag(DataStore db,
java.lang.String tag)
Returns a package tag unfulfilled from memory |
static java.lang.String |
CofaxToolsNavigation.navigate(DataStore db,
java.lang.String NpathInfo,
java.lang.String NqueryString,
javax.servlet.http.HttpSession session,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Splits navigation and determines what portions of CofaxToolsUtil to utilize in order to fulfill users requests. |
static boolean |
CofaxToolsSecurity.checkPermissions(DataStore db,
javax.servlet.http.HttpSession session,
java.lang.String mode)
Runs current mode request against user permissions and determines if they are allowed to complete action. |
static java.lang.String |
CofaxToolsLogin.login(DataStore db,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpSession session,
java.lang.String login,
java.lang.String password)
Verify user information and populate the user (session) values if verification is true. |
static java.lang.String |
CofaxToolsUtil.getGroupTypesSelectID(DataStore db)
Produces an html select of all Group Types. |
static java.lang.String |
CofaxToolsUtil.getGroupTypesSelectID(DataStore db,
java.lang.String selected)
Produces an html select of all Group Types with parameter selected as the selected value. |
static java.lang.String |
CofaxToolsUtil.getGroupsSelectID(DataStore db,
javax.servlet.http.HttpSession session)
Produces an html select of all Groups. |
static java.lang.String |
CofaxToolsUtil.getGroupsSelectID(DataStore db,
java.lang.String selected,
javax.servlet.http.HttpSession session)
Produces an html select of all Groups with parameter selected as the selected value. |
static java.lang.String |
CofaxToolsUtil.getPublicationSelectID(DataStore db,
javax.servlet.http.HttpSession session,
java.lang.String name)
Produces an html select of all publications. |
static java.lang.String |
CofaxToolsUtil.getPublicationSelectID(DataStore db,
javax.servlet.http.HttpSession session,
java.lang.String selected,
java.lang.String name)
Produces an html select of all publications with parameter selected as the selected value. Produces only the publications a user is grouped to unless the user is a national admin, in which case produces all publications. |
static java.util.HashMap |
CofaxToolsUtil.getPubNamePubDescFromID(DataStore db,
java.lang.String pubID)
Returns a HashMap of pubDesc and pubName given a pubID. |
static java.lang.String |
CofaxToolsUtil.getUsersSelect(DataStore db,
javax.servlet.http.HttpSession session)
Produces an html select of all users. |
static java.lang.String |
CofaxToolsUtil.getUsersSelect(DataStore db,
javax.servlet.http.HttpSession session,
java.lang.String selected)
Produces an html select of all users with parameter selected selected. Produces only users that belong to the same group(s) as the current user, unless the current user is a national admin, in which case produces all users. |
static java.util.HashMap |
CofaxToolsUtil.getUserInfo(DataStore db,
java.lang.String userID)
Return contents of tblPermUser for a specific user in a HashMap. |
static java.util.Vector |
CofaxToolsUtil.getUserGroups(DataStore db,
java.lang.String userID)
Return all groups that a given user belongs to in a Vector. |
static java.util.HashMap |
CofaxToolsUtil.getGroups(DataStore db,
javax.servlet.http.HttpSession session)
Returns groupID & GroupName for all groups. |
static java.util.HashMap |
CofaxToolsUtil.getGroupsConverse(DataStore db)
Return GroupName & groupID for all groups. |
static java.util.HashMap |
CofaxToolsUtil.getGroupTypes(DataStore db)
Return all group types in a HashMap. |
static java.util.HashMap |
CofaxToolsUtil.getGroupInfo(DataStore db,
java.lang.String groupID)
Return group info for a specific group. |
static java.util.HashMap |
CofaxToolsUtil.getPublications(DataStore db)
Returns pub Desc / pub ID for all Publications. |
static java.util.HashMap |
CofaxToolsUtil.getGroupsPublications(DataStore db,
java.lang.String groupID)
Returns the publications associated with a group. |
static java.util.HashMap |
CofaxToolsUtil.getGroupsNonPublications(DataStore db,
java.lang.String groupID)
Returns the publications not associated with a group. |
static java.lang.String |
CofaxToolsUtil.getPubDescFromID(DataStore db,
java.lang.String pubID)
Returns pubDesc given pubID. |
static java.lang.String |
CofaxToolsUtil.getPubNameFromID(DataStore db,
java.lang.String pubID)
Returns pubName given pubID. |
static java.lang.String |
CofaxToolsUtil.getPubIDFromName(DataStore db,
java.lang.String pubName)
Returns pubID given pubName. |
static java.util.Vector |
CofaxToolsUtil.getGroupTypeIDs(DataStore db)
Return groupTypeID in a Vector. |
static java.util.Vector |
CofaxToolsUtil.getGroupTypeNames(DataStore db)
Return groupTypeName in a Vector. |
static java.util.ArrayList |
CofaxToolsUtil.getModes(DataStore db)
Return modes/ group types in a Vector of Hashes. |
static java.util.HashMap |
CofaxToolsUtil.getPublicationInfo(DataStore db,
java.lang.String pubID)
Returns a hash of all publication info by pub id. |
static java.lang.String |
CofaxToolsUtil.getSelectGroupType(DataStore db)
Returns a select of all group types with a group selected |
static java.lang.String |
CofaxToolsUtil.getSelectGroupType(DataStore db,
java.lang.String groupID)
Returns a select of all group types. |
static java.util.HashMap |
CofaxToolsUtil.getGroupTypeInfo(DataStore db,
java.lang.String groupTypeID)
Returns a select of all group types. |
static java.lang.String |
CofaxToolsUtil.getSelectArticleSection(DataStore db,
java.lang.String currentPubName,
java.lang.String name)
Returns a select of all article sections for a given publication with no selected value. |
static java.lang.String |
CofaxToolsUtil.getSelectArticleSection(DataStore db,
java.lang.String currentPubName,
java.lang.String name,
java.lang.String selected)
Returns a select of all article sections for a given publication with a selected value. |
static java.lang.String |
CofaxToolsUtil.getMappingCodesRankComboTable(DataStore db,
int howManyRows,
javax.servlet.http.HttpSession session)
Returns a combo box allowing user to set or delete mappings, sets selected values and mappings. |
static java.lang.String |
CofaxToolsUtil.getMappingCodesRankComboTable(DataStore db,
int howManyRows,
javax.servlet.http.HttpSession session,
java.util.HashMap sectionSelectRank)
Returns a combo box allowing user to set or delete mappings, sets selected values and mappings. |
static java.lang.String |
CofaxToolsUtil.getSelectCategoriesMultiplePublications(DataStore db,
javax.servlet.http.HttpSession session,
javax.servlet.http.HttpServletRequest req)
Returns a select of all sections from all publications a user is grouped to. |
static java.util.HashMap |
CofaxToolsUtil.getSelectMappingsMultiplePublications(DataStore db,
java.lang.String label,
javax.servlet.http.HttpSession session)
Returns a hash of all mappings from all publications a user is grouped to. |
static java.lang.String |
CofaxToolsUtil.searchArticles(DataStore db,
javax.servlet.http.HttpServletRequest req)
Returns a list of article name, mapping, etc after compiling DB request on fly. |
static void |
CofaxToolsUtil.setUserWorkingPubConfigElements(DataStore db,
javax.servlet.http.HttpSession session,
java.lang.String askingPub)
Sets the globals that we will need when working with the current pub for http construction, FTP file transfer, etc. |
static java.util.HashMap |
CofaxToolsUtil.getArticleInfoByItemID(DataStore db,
java.lang.String itemID,
javax.servlet.http.HttpSession session)
Returns info needed to edit an article by itemID. |
static java.util.HashMap |
CofaxToolsUtil.getArticleMappingsAndRankByItemID(DataStore db,
java.lang.String itemID,
java.lang.String section,
java.lang.String pubName)
Returns mappings/ ranks associated with an article by itemID - Omits original rank! |
static java.util.List |
CofaxToolsUtil.getRelatedMultiMediaByItemID(DataStore db,
java.lang.String itemID)
Returns all MultiMedia info associated with an article by itemID. |
static java.util.List |
CofaxToolsUtil.getRelatedMultiMediaByMultiMediaID(DataStore db,
java.lang.String itemID)
Returns all MultiMedia info associated with a MultiMedia item by multiMediaID. |
static java.util.HashMap |
CofaxToolsUtil.getMultiMediaTypes(DataStore db)
Returns all MultiMedia types. |
static java.lang.String |
CofaxToolsUtil.getSelectArticleType(DataStore db,
java.lang.String currentPubName,
java.lang.String label)
Returns a select of article types for a given publication with no selected value. |
static java.lang.String |
CofaxToolsUtil.getSelectArticleType(DataStore db,
java.lang.String currentPubName,
java.lang.String label,
java.lang.String selected)
Returns a select of article types for a given publication with a selected value. |
static java.lang.String |
CofaxToolsUtil.getSelectArticleTypeCategory(DataStore db,
java.lang.String label)
Returns a select of article type categories with no selected value. |
static java.lang.String |
CofaxToolsUtil.getSelectArticleTypeCategory(DataStore db,
java.lang.String label,
java.lang.String selected)
Returns a select of article type categories with a selected value. |
static java.lang.String |
CofaxToolsUtil.getSelectSection(DataStore db,
java.lang.String currentPubName,
java.lang.String label)
Returns a select of section types for a given publication with no selected value. |
static java.lang.String |
CofaxToolsUtil.getSelectSection(DataStore db,
java.lang.String pubName,
java.lang.String label,
java.lang.String selected)
Returns a select of section types for a given publication with a selected value. |
static java.util.HashMap |
CofaxToolsUtil.getSectionInfoByMappingCode(DataStore db,
java.lang.String sectionMappingCode)
Returns a hash of all values associated with a section mapping code. |
static java.util.HashMap |
CofaxToolsUtil.getArticletypeInfoByID(DataStore db,
java.lang.String articleTypeID)
Returns info associated with an article type by articletypeID. |
static java.lang.String |
CofaxToolsUtil.setUserInfo(DataStore db,
javax.servlet.http.HttpServletRequest req)
Updates or inserts info into the user table and associated tables as appropriate. |
static java.lang.String |
CofaxToolsUtil.setGroupInfo(DataStore db,
javax.servlet.http.HttpServletRequest req)
Updates or inserts info into the group table. |
static java.lang.String |
CofaxToolsUtil.setGroupTypeInfo(DataStore db,
javax.servlet.http.HttpServletRequest req)
Updates or inserts info into the group type table. |
static java.lang.String |
CofaxToolsUtil.setPublicationInfo(DataStore db,
javax.servlet.http.HttpServletRequest req)
Updates or inserts info into the publication and publication config tables. |
static java.lang.String |
CofaxToolsUtil.getOrderSectionComboBox(DataStore db,
java.lang.String publication,
javax.servlet.http.HttpSession session,
javax.servlet.http.HttpServletRequest req,
java.lang.String numPreOrders)
Returns a comboBox to order sections by. |
static java.lang.String |
CofaxToolsUtil.getOrderSectionComboBox(DataStore db,
java.lang.String publication,
javax.servlet.http.HttpSession session,
javax.servlet.http.HttpServletRequest req,
java.util.HashMap temp,
java.lang.String numPreOrders)
Returns a comboBox to order sections by. |
static java.lang.String |
CofaxToolsUtil.setOrderSection(DataStore db,
javax.servlet.http.HttpServletRequest req)
Updates or inserts info into the articleOrder and creates new stories if needed. |
static java.lang.String |
CofaxToolsUtil.getSecurityCheckboxTable(DataStore db)
Returns a checkbox table for security settings. |
static java.lang.String |
CofaxToolsUtil.setSecurity(DataStore db,
javax.servlet.http.HttpServletRequest req)
Updates security info into the securities table table. |
static java.lang.String |
CofaxToolsUtil.setArticleType(DataStore db,
javax.servlet.http.HttpServletRequest req)
Updates article types into the article types table. |
static java.lang.String |
CofaxToolsUtil.setSection(DataStore db,
javax.servlet.http.HttpServletRequest req)
Updates sections into the section table. |
static java.lang.String |
CofaxToolsUtil.getMultiMediaComboBox(DataStore db,
java.util.List l,
java.lang.String pubDate,
javax.servlet.http.HttpSession session,
java.lang.String storyItemID)
returns a MultiMedia comboBox associated with an article by itemID. |
static java.lang.String |
CofaxToolsUtil.setArticle(DataStore db,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpSession session)
Updates or inserts an article, attached MultiMedia, and related links |
static java.lang.String |
CofaxToolsUtil.getRelatedLinksComboBox(DataStore db)
Return comboBox of related links |
static java.lang.String |
CofaxToolsUtil.getRelatedLinksComboBox(DataStore db,
java.lang.String itemID)
Return comboBox of related links by an itemID |
static java.lang.String |
CofaxToolsUtil.saveSearch(DataStore db,
javax.servlet.http.HttpSession session,
javax.servlet.http.HttpServletRequest req)
Saves a search for articles (URL string) to the database for later access |
static java.lang.String |
CofaxToolsUtil.getSelectSavedSearches(DataStore db,
javax.servlet.http.HttpSession session)
Returns a user's saved searches from the database |
static boolean |
CofaxToolsUtil.resetServlet(DataStore db)
Replicates CofaxToolsServlet init function so server does not have to be restarted on change of config file. |
static java.lang.String |
CofaxToolsUtil.getMappingCodeBySectionPublication(DataStore db,
java.util.HashMap ht)
Returns a mapping code when given a hash of section name and pubname. |
static java.lang.String |
CofaxToolsUtil.getItemIDFromNameSectionDate(DataStore db,
java.util.HashMap ht)
Returns an itemid when given a hash of section name and section date. |
static java.util.List |
CofaxToolsUtil.getSelectMappingsMultiplePublicationsArrayList(DataStore db,
java.lang.String label,
javax.servlet.http.HttpSession session)
Returns a hash of all mappings from all publications a user is grouped to. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |