de.uplanet.lucy.server.appservice
Class ApplicationWalker

java.lang.Object
  extended by de.uplanet.lucy.server.appservice.ApplicationWalker

@VelocityCallable(value="singleton")
public final class ApplicationWalker
extends java.lang.Object

Version:
$Revision: 78138 $

Constructor Summary
ApplicationWalker()
           
 
Method Summary
 java.util.List<DataGroupInfo> getChildDataGroups(de.uplanet.jdbc.JdbcConnection p_conn, java.lang.String p_strParentDgGuid)
           
 java.util.List<DataGroupInfo> getChildDataGroups(java.lang.String p_strParentDgGuid)
           
 DataGroupInfo getDataGroupInfo(java.lang.String p_strDgGuid)
           
 DataGroupInfo getDataGroupInfoBySysident(java.lang.String p_strAppGuid, java.lang.String p_strSysIdent)
          Returns DatagroupInfo of a data group with the given application-guid and the given sysident.
 DataGroupInfoNameComparator getDataGroupInfoNameComparator()
           
 java.util.List<DataGroupInfo> getDatagroupsFromApplication(de.uplanet.jdbc.JdbcConnection p_conn, java.lang.String p_strAppGuid)
          Deprecated.  
 java.util.List<DataGroupInfo> getDatagroupsFromApplication(java.lang.String p_strAppGuid)
          returns a flat list of DgInfo objects for a given application id.
 FieldInfo getFieldInfoBySysident(java.lang.String p_strDataGroupGuid, java.lang.String p_strSysIdent)
          Returns the FieldInfo-Object of datafield with the given DataGroup-guid and the given sysident.
 java.util.List<AwFieldInfo> getFieldListWithGivenDgGuid(de.uplanet.lucy.server.session.ISession p_sess, java.lang.String p_strDatagroupGuid)
          returns a list of FieldInfo objects that belong to the datagroup defined by a datagroup guid
 java.util.List<AwFieldInfo> getFieldListWithGivenDgGuidList(de.uplanet.lucy.server.session.ISession p_sess, java.util.List<java.lang.String> p_listDgGuids)
          returns a list of FieldInfo objects that belong to the datagroups defined by a datagroup guid list
 java.util.Map<java.lang.String,AwFieldInfo> getFieldMapWithGivenDgGuid(de.uplanet.lucy.server.session.ISession p_sess, java.lang.String p_strGuid)
          Method getFieldMapWithGivenDgGuid.
 java.util.Map<java.lang.String,java.util.List<AwFieldInfo>> getFieldMapWithGivenDgGuidList(de.uplanet.lucy.server.session.ISession p_sess, java.util.List<java.lang.String> p_listDgGuids)
          returns a list of FieldInfo objects that belong to the datagroups defined by a datagroup guid list
 java.lang.String getFieldNameBySysident(java.lang.String p_strDataGroupGuid, java.lang.String p_strSysIdent)
          Returns the physical field name of datafield with the given DataGroup-guid and the given sysident.
 java.util.List<AwDgInfo> getFlatDatagroupList(de.uplanet.lucy.server.session.ISession p_sess, java.lang.String p_strAppGuid)
          returns a flat list of DgInfo objects for a given application id.
 java.util.List<AwDgInfo> getFlatDatagroupList(de.uplanet.jdbc.JdbcConnection p_conn, java.lang.String p_strLang, java.lang.String p_strAppGuid, java.util.List<java.lang.String> p_sysIdent)
          Deprecated.  
 java.util.List<AwDgInfo> getFlatDatagroupList(java.lang.String p_strLang, java.lang.String p_strAppGuid, java.util.List<java.lang.String> p_sysIdents)
          Returns a flat list of DgInfo objects for a given application id and a List of system identifiers.
 AwInfoComparator getInfoNameComparator()
           
 PageInfo getPageInfo(de.uplanet.jdbc.JdbcConnection p_conn, java.lang.String p_strGuid)
           
 PageInfo getPageInfo(java.lang.String p_strGuid)
          This method returns the PageInfo for the given page guid.
 java.lang.String getParentDatagroupGuid(de.uplanet.lucy.server.session.ISession p_sess, java.lang.String p_strDgGuid)
          This method returns the parent datagroup id to the given datagroup.
 java.lang.String getTableNameBySysident(de.uplanet.jdbc.JdbcConnection p_conn, java.lang.String p_strAppGuid, java.lang.String p_strSysIdent)
          Deprecated.  
 java.lang.String getTableNameBySysident(java.lang.String p_strAppGuid, java.lang.String p_strSysIdent)
          Returns the physical table name of a data group with the given application-guid and the given sysident.
 java.lang.String translateUpType2String(de.uplanet.lucy.types.UP_TYPE p_type)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationWalker

public ApplicationWalker()
Method Detail

getTableNameBySysident

public java.lang.String getTableNameBySysident(java.lang.String p_strAppGuid,
                                               java.lang.String p_strSysIdent)
Returns the physical table name of a data group with the given application-guid and the given sysident.

Parameters:
p_strAppGuid - The GUID of the application
p_strSysIdent - The sysident of the data group.
Returns:
The physical table name of the data group.

getTableNameBySysident

@Deprecated
public java.lang.String getTableNameBySysident(de.uplanet.jdbc.JdbcConnection p_conn,
                                                          java.lang.String p_strAppGuid,
                                                          java.lang.String p_strSysIdent)
Deprecated. 


getDataGroupInfoBySysident

public DataGroupInfo getDataGroupInfoBySysident(java.lang.String p_strAppGuid,
                                                java.lang.String p_strSysIdent)
Returns DatagroupInfo of a data group with the given application-guid and the given sysident.

Parameters:
p_strAppGuid - The Guid of the application
p_strSysIdent - The sysident of the data group
Returns:
the DataGroupInfo-Object of the data group

getFieldNameBySysident

public java.lang.String getFieldNameBySysident(java.lang.String p_strDataGroupGuid,
                                               java.lang.String p_strSysIdent)
Returns the physical field name of datafield with the given DataGroup-guid and the given sysident.

Parameters:
p_strDataGroupGuid - The Guid of the DataGroup
p_strSysIdent - The sysident of the Field
Returns:
the physical field name

getFieldInfoBySysident

public FieldInfo getFieldInfoBySysident(java.lang.String p_strDataGroupGuid,
                                        java.lang.String p_strSysIdent)
Returns the FieldInfo-Object of datafield with the given DataGroup-guid and the given sysident.

Parameters:
p_strDataGroupGuid - The Guid of the DataGroup
p_strSysIdent - The sysident of the Field
Returns:
the FieldInfo of the field if present, else null

translateUpType2String

public java.lang.String translateUpType2String(de.uplanet.lucy.types.UP_TYPE p_type)

getDatagroupsFromApplication

public java.util.List<DataGroupInfo> getDatagroupsFromApplication(java.lang.String p_strAppGuid)
returns a flat list of DgInfo objects for a given application id.

Parameters:
p_strAppGuid - The Application GUID.
Returns:
List of DataGroupInfo objects

getDatagroupsFromApplication

@Deprecated
public java.util.List<DataGroupInfo> getDatagroupsFromApplication(de.uplanet.jdbc.JdbcConnection p_conn,
                                                                             java.lang.String p_strAppGuid)
Deprecated. 


getFlatDatagroupList

public java.util.List<AwDgInfo> getFlatDatagroupList(de.uplanet.lucy.server.session.ISession p_sess,
                                                     java.lang.String p_strAppGuid)
                                              throws java.sql.SQLException,
                                                     de.uplanet.jdbc.sqlhelper.SqlHelperException
returns a flat list of DgInfo objects for a given application id.

Parameters:
p_sess - The session to get information from.
p_strAppGuid - an application GUID
Returns:
List of DgInfo objects
Throws:
{@link - java.sql.SQLException}
java.sql.SQLException
de.uplanet.jdbc.sqlhelper.SqlHelperException

getFlatDatagroupList

public java.util.List<AwDgInfo> getFlatDatagroupList(java.lang.String p_strLang,
                                                     java.lang.String p_strAppGuid,
                                                     java.util.List<java.lang.String> p_sysIdents)
Returns a flat list of DgInfo objects for a given application id and a List of system identifiers.

Parameters:
p_strLang - The default language of the user.
p_strAppGuid - The application GUID.
p_sysIdents - A List of system identifiers.
Returns:
List of AwDgInfo objects.

getFlatDatagroupList

@Deprecated
public java.util.List<AwDgInfo> getFlatDatagroupList(de.uplanet.jdbc.JdbcConnection p_conn,
                                                                java.lang.String p_strLang,
                                                                java.lang.String p_strAppGuid,
                                                                java.util.List<java.lang.String> p_sysIdent)
Deprecated. 


getInfoNameComparator

public AwInfoComparator getInfoNameComparator()
Returns:
Comparator for sorting AwInfo objects by name.

getDataGroupInfoNameComparator

public DataGroupInfoNameComparator getDataGroupInfoNameComparator()
Returns:
Comparator for sorting AwInfo objects by name.

getDataGroupInfo

public DataGroupInfo getDataGroupInfo(java.lang.String p_strDgGuid)
Parameters:
p_strDgGuid -
Returns:
DataGroupInfo of the given datagroup guid.

getChildDataGroups

public java.util.List<DataGroupInfo> getChildDataGroups(java.lang.String p_strParentDgGuid)
Parameters:
p_strParentDgGuid -
Returns:
A list of DataGroupInfo objects.

getChildDataGroups

public java.util.List<DataGroupInfo> getChildDataGroups(de.uplanet.jdbc.JdbcConnection p_conn,
                                                        java.lang.String p_strParentDgGuid)

getFieldMapWithGivenDgGuid

public java.util.Map<java.lang.String,AwFieldInfo> getFieldMapWithGivenDgGuid(de.uplanet.lucy.server.session.ISession p_sess,
                                                                              java.lang.String p_strGuid)
                                                                       throws java.sql.SQLException,
                                                                              de.uplanet.jdbc.sqlhelper.SqlHelperException
Method getFieldMapWithGivenDgGuid.

Parameters:
p_sess - The session to get information from.
p_strGuid - a datagroup guid
Returns:
Map containing <guid, FieldInfo>
Throws:
{@link - java.sql.SQLException}
java.sql.SQLException
de.uplanet.jdbc.sqlhelper.SqlHelperException

getFieldListWithGivenDgGuid

public java.util.List<AwFieldInfo> getFieldListWithGivenDgGuid(de.uplanet.lucy.server.session.ISession p_sess,
                                                               java.lang.String p_strDatagroupGuid)
                                                        throws java.sql.SQLException,
                                                               de.uplanet.jdbc.sqlhelper.SqlHelperException
returns a list of FieldInfo objects that belong to the datagroup defined by a datagroup guid

Parameters:
p_sess - The session to get information from.
p_strDatagroupGuid - a datagroup guid
Returns:
List of FieldInfo objects
Throws:
java.sql.SQLException
de.uplanet.jdbc.sqlhelper.SqlHelperException

getFieldMapWithGivenDgGuidList

public java.util.Map<java.lang.String,java.util.List<AwFieldInfo>> getFieldMapWithGivenDgGuidList(de.uplanet.lucy.server.session.ISession p_sess,
                                                                                                  java.util.List<java.lang.String> p_listDgGuids)
                                                                                           throws java.sql.SQLException,
                                                                                                  de.uplanet.jdbc.sqlhelper.SqlHelperException
returns a list of FieldInfo objects that belong to the datagroups defined by a datagroup guid list

Parameters:
p_sess - The session to get information from.
p_listDgGuids - a list of datagroup guids
Throws:
java.sql.SQLException
de.uplanet.jdbc.sqlhelper.SqlHelperException

getFieldListWithGivenDgGuidList

public java.util.List<AwFieldInfo> getFieldListWithGivenDgGuidList(de.uplanet.lucy.server.session.ISession p_sess,
                                                                   java.util.List<java.lang.String> p_listDgGuids)
                                                            throws java.sql.SQLException,
                                                                   de.uplanet.jdbc.sqlhelper.SqlHelperException
returns a list of FieldInfo objects that belong to the datagroups defined by a datagroup guid list

Parameters:
p_sess - The session to get information from.
p_listDgGuids - a list of datagroup guids
Returns:
List of FieldInfo objects
Throws:
{@link - java.sql.SQLException}
java.sql.SQLException
de.uplanet.jdbc.sqlhelper.SqlHelperException

getParentDatagroupGuid

public java.lang.String getParentDatagroupGuid(de.uplanet.lucy.server.session.ISession p_sess,
                                               java.lang.String p_strDgGuid)
                                        throws de.uplanet.lucy.server.businesslogic.BlException
This method returns the parent datagroup id to the given datagroup.

Parameters:
p_sess - The session to get information from.
p_strDgGuid - guid of child datagroup
Returns:
String the guid of the parent datagroup or null if no parent datagroup exists
Throws:
a - BlException
de.uplanet.lucy.server.businesslogic.BlException

getPageInfo

public PageInfo getPageInfo(java.lang.String p_strGuid)
                     throws java.lang.Exception
This method returns the PageInfo for the given page guid.

Parameters:
p_strGuid - The guid of the page.
Returns:
PageInfo object of this page.
Throws:
a - BlException
java.lang.Exception

getPageInfo

public PageInfo getPageInfo(de.uplanet.jdbc.JdbcConnection p_conn,
                            java.lang.String p_strGuid)
                     throws java.lang.Exception
Throws:
java.lang.Exception


Last updated: 2011-01-27
Copyright 2000-2010 United Planet. All Rights Reserved.