|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.designer.domino.xsp.api.util.XPagesDataUtil
public class XPagesDataUtil
A utility class that allows users to obtain information about design elements in a Domino Database.
Field Summary | |
---|---|
protected static java.lang.String |
CONNECTION_ENUM_TYPE
|
protected static java.lang.String |
DFLT_LOCAL_CONNVIEW
|
protected static int |
DFLT_LOCAL_SERVERCOL
|
protected static int |
DFLT_REMOTE_SERVERCOL
|
protected static java.lang.String |
DFLT_SERVER_CONNVIEW
|
static java.lang.String |
LOCAL_CLIENT
A string representing a local server. |
static java.lang.String |
LOCAL_CLIENT_SERVER
The string value used to represent a local server programatically |
Constructor Summary | |
---|---|
XPagesDataUtil()
|
Method Summary | |
---|---|
static java.util.List<FacesDefinition> |
getAllDataSourcesFromRegistry(FacesRegistry registry)
Given the FacesRegistry this method will return the definition of all tags that may be used as data sources. |
static java.util.Map<java.lang.String,java.lang.Object> |
getChildrenForComplexProperty(DataNode panelNode,
java.lang.String property,
FacesRegistry registry)
|
static java.util.List<FacesDefinition> |
getChildrenForComplexProperty(FacesRegistry registry,
java.lang.String namespace,
java.lang.String localName,
java.lang.String property)
|
static java.util.List<java.lang.String> |
getDatabaseForms(java.lang.String server,
java.lang.String database,
boolean lastAlias)
Returns a list of form names for the Domino Forms found in the specified database. |
static StringLookup |
getDatabaseViews(java.lang.String server,
java.lang.String database)
Returns a lookup of view names for the given database and server |
static java.util.Map<java.lang.String,XPagesKey> |
getDataContextsFromRegistry(FacesRegistry registry,
DesignerProject project)
|
static java.util.Map<java.lang.String,XPagesKey> |
getDataSourcesFromRegistry(FacesRegistry registry)
|
static java.util.List<FacesDefinition> |
getDocumentDataSources(FacesRegistry registry)
Returns a list of data sources that support document data. |
static java.lang.String |
getKeyForXspDefinition(org.w3c.dom.Element elem,
FacesRegistry registry)
Returns a proposed var name for the given data source element (e.g. |
static java.lang.String[] |
getServerAndDbNameFromString(java.lang.String bangedName)
Parses the server name and db name from the given string |
static java.lang.String |
getServerName(java.lang.String server)
Returns the usable server name. |
protected static java.lang.String |
getServerView(java.lang.String server)
|
protected static int |
getServerViewCol(java.lang.String server)
|
protected static lotus.domino.Session |
getSession()
|
static boolean |
getViewColAddStatus(lotus.domino.ViewColumn viewCol)
This function checks if the viewColumns in Domino have autogenerated values. |
static java.lang.String[][] |
getViewColumns(java.lang.String server,
java.lang.String database,
java.lang.String viewName)
Returns an two dimensional array that contains the names of the columns in a given view. |
static java.util.List<FacesDefinition> |
getViewPanelDataSources(FacesRegistry registry)
Given the FacesRegistry this method will return the definition of all tags that provide view data. |
static java.util.Map<java.lang.String,XPagesKey> |
getXPagesKeysFromRegistry(FacesRegistry registry,
java.lang.String nsURI,
java.lang.String tagName,
java.lang.String prop)
|
protected static boolean |
isLocalClient(java.lang.String server)
|
static java.lang.String[] |
sortDataSourcesWithDominoFirst(java.util.Map<java.lang.String,XPagesKey> dataSources)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String LOCAL_CLIENT
public static final java.lang.String LOCAL_CLIENT_SERVER
protected static final java.lang.String DFLT_LOCAL_CONNVIEW
protected static final int DFLT_LOCAL_SERVERCOL
protected static final java.lang.String DFLT_SERVER_CONNVIEW
protected static final int DFLT_REMOTE_SERVERCOL
protected static final java.lang.String CONNECTION_ENUM_TYPE
Constructor Detail |
---|
public XPagesDataUtil()
Method Detail |
---|
public static java.util.List<FacesDefinition> getAllDataSourcesFromRegistry(FacesRegistry registry)
registry
- the FacesRegistry for the current application
public static java.util.List<FacesDefinition> getViewPanelDataSources(FacesRegistry registry)
registry
- the FacesRegistry for the current application
TabularDataSource
public static java.util.Map<java.lang.String,java.lang.Object> getChildrenForComplexProperty(DataNode panelNode, java.lang.String property, FacesRegistry registry)
panelNode
- parent data nodeproperty
- parent data node's complex propertyregistry
- xsp registry
public static java.util.List<FacesDefinition> getChildrenForComplexProperty(FacesRegistry registry, java.lang.String namespace, java.lang.String localName, java.lang.String property)
registry
- faces registrynamespace
- of the node which children to be readlocalName
- of the node which children to be readproperty
- name of the complex property e.g. "data" or "dataContext" of
the "xp:view" and "xp:panel"
public static java.util.List<java.lang.String> getDatabaseForms(java.lang.String server, java.lang.String database, boolean lastAlias) throws com.ibm.designer.domino.xsp.dominoutils.DominoImportException
server
- database
- lastAlias
- - if true return the last alias of the form. If false return the
display name of the form.
com.ibm.designer.domino.xsp.dominoutils.DominoImportException
public static StringLookup getDatabaseViews(java.lang.String server, java.lang.String database) throws com.ibm.designer.domino.xsp.dominoutils.DominoImportException
server
- the server namedatabase
- the database name
com.ibm.designer.domino.xsp.dominoutils.DominoImportException
public static java.util.Map<java.lang.String,XPagesKey> getDataContextsFromRegistry(FacesRegistry registry, DesignerProject project)
registry
- faces regitry
public static java.util.Map<java.lang.String,XPagesKey> getDataSourcesFromRegistry(FacesRegistry registry)
registry
- faces regitry
public static java.util.List<FacesDefinition> getDocumentDataSources(FacesRegistry registry)
registry
- an instance of the FacesRegistry
DocDataSource
public static java.lang.String getKeyForXspDefinition(org.w3c.dom.Element elem, FacesRegistry registry)
elem
- registry
-
public static java.lang.String[] getServerAndDbNameFromString(java.lang.String bangedName)
bangedName
-
public static java.lang.String getServerName(java.lang.String server)
protected static java.lang.String getServerView(java.lang.String server)
protected static int getServerViewCol(java.lang.String server)
protected static lotus.domino.Session getSession() throws java.lang.Throwable
java.lang.Throwable
public static boolean getViewColAddStatus(lotus.domino.ViewColumn viewCol)
public static java.lang.String[][] getViewColumns(java.lang.String server, java.lang.String database, java.lang.String viewName) throws com.ibm.designer.domino.xsp.dominoutils.DominoImportException
server
- database
- viewName
-
com.ibm.designer.domino.xsp.dominoutils.DominoImportException
public static java.util.Map<java.lang.String,XPagesKey> getXPagesKeysFromRegistry(FacesRegistry registry, java.lang.String nsURI, java.lang.String tagName, java.lang.String prop)
registry
- faces registrynsURI
- namespace uri for the parent definitiontagName
- tag name of the parent definitonprop
- name of the complex property of the parent definiton
public static java.lang.String[] sortDataSourcesWithDominoFirst(java.util.Map<java.lang.String,XPagesKey> dataSources)
protected static boolean isLocalClient(java.lang.String server)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |