de.uplanet.lucy.server.auxiliaries
Class ApplicationCacheWrapper

java.lang.Object
  extended by de.uplanet.lucy.server.auxiliaries.ApplicationCacheWrapper

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

This class is to be used in Velocity only.

Version:
$Revision: 75161 $

Constructor Summary
ApplicationCacheWrapper()
           
 
Method Summary
 java.util.List<ApplicationInfo> getAllApplications()
          Get a list of all applications the current user has access to.
 java.util.Comparator<ApplicationInfo> getAppInfoNameComparator(java.lang.String p_strLang)
           
 ApplicationInfo getApplication(java.lang.String p_strAppGuid)
          Get the application with the given unique identifier.
 java.util.List<ApplicationInfo> getApplicationsWithTemplate(java.lang.String p_strTemplateGuid)
          Get a list of all application with the given template to which the current user has access to.
 java.util.List<ApplicationInfo> getApplicationsWithTemplates(java.util.Collection<java.lang.String> p_templates)
          Get a list of all application with the given templates to which the current user has access to.
 DataGroupInfo getDataGroup(java.lang.String p_strDgGuid)
          Get the datagroup with the given unique identifier.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationCacheWrapper

public ApplicationCacheWrapper()
Method Detail

getAllApplications

public java.util.List<ApplicationInfo> getAllApplications()
Get a list of all applications the current user has access to.

Parameters:
p_conn - The database connection to be used.

getApplicationsWithTemplate

public java.util.List<ApplicationInfo> getApplicationsWithTemplate(java.lang.String p_strTemplateGuid)
Get a list of all application with the given template to which the current user has access to.

Parameters:
p_strTemplateGuid - The template GUID.

getApplicationsWithTemplates

public java.util.List<ApplicationInfo> getApplicationsWithTemplates(java.util.Collection<java.lang.String> p_templates)
Get a list of all application with the given templates to which the current user has access to.

Parameters:
p_templates - A collection of template GUIDs.

getApplication

public ApplicationInfo getApplication(java.lang.String p_strAppGuid)
Get the application with the given unique identifier.

Note: This method checks if the current user has access permissions to the requested application.

Parameters:
p_strAppGuid - The application's unque identifer.
Returns:
The application info, or null.

getDataGroup

public DataGroupInfo getDataGroup(java.lang.String p_strDgGuid)
Get the datagroup with the given unique identifier.

Note: This method checks if the current user has access permissions to the requested application.

Parameters:
p_strDgGuid - The datagroups unqiue identifer.
Returns:
The datagroup info, or null.

getAppInfoNameComparator

public java.util.Comparator<ApplicationInfo> getAppInfoNameComparator(java.lang.String p_strLang)
Parameters:
p_strLang - The language used for sorting the application names.


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