Class ObjectFactory
java.lang.Object
de.uplanet.lucy.server.auxiliaries.ObjectFactory
@VelocityVariable("Factory")
@VelocityCallable("instance")
public final class ObjectFactory
extends Object
This class is solely intended to create or access objects
 without having them preallocated in the Velocity context.
 
NOTE: Database connections and session objects are intentionally required in the methods' parameter lists to make their usage explicit in the Velocity script files.
- 
Constructor SummaryConstructorsConstructorDescriptionObjectFactory(de.uplanet.lucy.server.scripting.velocity.callables.IInternalObjectFactory p_internalObjectFactory) 
- 
Method SummaryModifier and TypeMethodDescriptionde.uplanet.util.filter.IFilter<?>createFilter(String p_strFilterClass) Create a filter.de.uplanet.util.filter.IFilter<?>createFilter(String p_strFilterClass, Object p_param) Create a filter with a single construction parameter.de.uplanet.lucy.server.auxiliaries.AuthProxyDeprecated.de.uplanet.lucy.server.auxiliaries.AuthProxygetAuthProxy(de.uplanet.jdbc.JdbcConnection p_conn) Create anAuthProxyinstance.de.uplanet.lucy.server.auxiliaries.net.HttpRequestCreate aHttpRequestinstance.Get the license util callable.de.uplanet.lucy.server.kahab.NagResultFor internal use only.de.uplanet.lucy.server.auxiliaries.NewsAgentProxygetNewsAgent(de.uplanet.jdbc.JdbcConnection p_conn) getNumberByDateAggregator(String p_strMode, TimeZone p_tz) Create a helper object for aggregating time values.Create a helper object for aggregating floating point numbers.Create a helper object for aggregating integer numbers.getNumberByStringAggregator(String p_strMode) Create a helper object for aggregating strings.de.uplanet.lucy.server.auxiliaries.portlet.VelocityPortletGridManagergetPortletGridManager(de.uplanet.jdbc.JdbcConnection p_conn, String p_strGridId, String p_strUserGuid, String p_strLang) Get a portlet grid manager for the given user.de.uplanet.lucy.server.auxiliaries.portlet.VelocityPortletGridManagergetPortletGridManagerForDefaultUser(de.uplanet.jdbc.JdbcConnection p_conn, String p_strGridId, String p_strLang) Get a portlet grid manager for the default user.de.uplanet.lucy.server.auxiliaries.portlet.VelocityPortletManagergetPortletManager(de.uplanet.lucy.server.engine.http.IWebProcessingContext p_ctx, de.uplanet.lucy.server.businesslogic.rtappservices.IWebDataCollection p_dataCollection, String p_strGridId, String p_strUserGuid, String p_strLang) Get a portlet manager for the given user.de.uplanet.lucy.server.auxiliaries.portlet.VelocityPortletManagergetPortletManagerForDefaultUser(de.uplanet.lucy.server.engine.http.IWebProcessingContext p_ctx, de.uplanet.lucy.server.businesslogic.rtappservices.IWebDataCollection p_dataCollection, String p_strGridId, String p_strLang) Get a portlet manager for the default user.de.uplanet.lucy.server.auxiliaries.portlet.VelocityPortletsGet the portlet util callable.Returns release track from server.de.uplanet.lucy.server.auxiliaries.calendar.RFC5545Utilde.uplanet.lucy.server.usermanager.IUsergetUserFromGuid(de.uplanet.jdbc.JdbcConnection p_conn, String p_strGuid) Get a user from the database.de.uplanet.lucy.server.usermanager.IUsergetUserFromId(de.uplanet.jdbc.JdbcConnection p_conn, int p_iUserId) Get a user from the database.de.uplanet.lucy.server.usermanager.IUsergetUserFromLoginName(de.uplanet.jdbc.JdbcConnection p_conn, String p_strLoginName, String p_strLoginDomain) Get a user from the database.de.uplanet.lucy.server.usermanager.IUsergetUserFromQualifiedLoginName(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQualifiedLoginName) Get a user from the database.de.uplanet.lucy.server.profile.IUserProfilegetUserProfile(de.uplanet.jdbc.JdbcConnection p_conn, String p_strUserId, int p_iCacheUsage) booleanhasPortalAdminPermission(de.uplanet.lucy.server.engine.http.IWebProcessingContext p_ctx, de.uplanet.lucy.server.businesslogic.rtappservices.IWebDataCollection p_dataCollection, String p_strGridId) 
- 
Constructor Details- 
ObjectFactorypublic ObjectFactory(de.uplanet.lucy.server.scripting.velocity.callables.IInternalObjectFactory p_internalObjectFactory) 
 
- 
- 
Method Details- 
createFilterCreate a filter.- Parameters:
- p_strFilterClass- The fully qualified name of a class that implements- IFilter, and has a public default constructor.
- Returns:
- A new filter object.
- Throws:
- Exception- If an error occurred.
 
- 
createFilterpublic de.uplanet.util.filter.IFilter<?> createFilter(String p_strFilterClass, Object p_param) throws Exception Create a filter with a single construction parameter.- Parameters:
- p_strFilterClass- The fully qualified name of a class that implements- IFilter, and has a public default constructor.
- p_param- a construction parameter for the filter.
- Returns:
- A new filter object.
- Throws:
- Exception- If an error occurred.
 
- 
getUserProfilepublic de.uplanet.lucy.server.profile.IUserProfile getUserProfile(de.uplanet.jdbc.JdbcConnection p_conn, String p_strUserId, int p_iCacheUsage) - See Also:
- 
- UserProfile
 
 
- 
getPortletUtilpublic de.uplanet.lucy.server.auxiliaries.portlet.VelocityPortlets getPortletUtil()Get the portlet util callable.- Returns:
- The portlet util callable.
 
- 
getLicUtilGet the license util callable.- Returns:
- The license util callable.
 
- 
getNagpublic de.uplanet.lucy.server.kahab.NagResult getNag(de.uplanet.lucy.server.engine.http.IWebProcessingContext p_ctx, String p_strLang) For internal use only.- Parameters:
- p_ctx- The current processing context.
- p_strLang- The language identifier.
- Returns:
- The nag result.
 
- 
getPortletManagerForDefaultUserpublic de.uplanet.lucy.server.auxiliaries.portlet.VelocityPortletManager getPortletManagerForDefaultUser(de.uplanet.lucy.server.engine.http.IWebProcessingContext p_ctx, de.uplanet.lucy.server.businesslogic.rtappservices.IWebDataCollection p_dataCollection, String p_strGridId, String p_strLang) Get a portlet manager for the default user.- Parameters:
- p_ctx- The current processing context.
- p_strGridId- The grid-ID/portlet container-GUID.
- p_strLang- The language identifier.
- Returns:
- A portlet manager.
 
- 
getPortletManagerpublic de.uplanet.lucy.server.auxiliaries.portlet.VelocityPortletManager getPortletManager(de.uplanet.lucy.server.engine.http.IWebProcessingContext p_ctx, de.uplanet.lucy.server.businesslogic.rtappservices.IWebDataCollection p_dataCollection, String p_strGridId, String p_strUserGuid, String p_strLang) Get a portlet manager for the given user.- Parameters:
- p_ctx- The current processing context.
- p_strGridId- The grid-ID/portlet container-GUID.
- p_strUserGuid- The user for whom the portlet manager should be created.
- p_strLang- The language identifier.
- Returns:
- A portlet manager.
 
- 
hasPortalAdminPermissionpublic boolean hasPortalAdminPermission(de.uplanet.lucy.server.engine.http.IWebProcessingContext p_ctx, de.uplanet.lucy.server.businesslogic.rtappservices.IWebDataCollection p_dataCollection, String p_strGridId) 
- 
getPortletGridManagerForDefaultUserpublic de.uplanet.lucy.server.auxiliaries.portlet.VelocityPortletGridManager getPortletGridManagerForDefaultUser(de.uplanet.jdbc.JdbcConnection p_conn, String p_strGridId, String p_strLang) Get a portlet grid manager for the default user.- Parameters:
- p_conn- The database connection to be used.
- p_strGridId- The grid-ID/portal container-GUID.
- p_strLang- The language identifier.
- Returns:
- A portlet grid manager.
 
- 
getPortletGridManagerpublic de.uplanet.lucy.server.auxiliaries.portlet.VelocityPortletGridManager getPortletGridManager(de.uplanet.jdbc.JdbcConnection p_conn, String p_strGridId, String p_strUserGuid, String p_strLang) Get a portlet grid manager for the given user.- Parameters:
- p_conn- The database connection to be used.
- p_strGridId- The grid-ID/portal container-GUID.
- p_strUserGuid- The user for whom the portlet grid manager should be created.
- p_strLang- The language identifier.
- Returns:
- A portlet grid manager.
 
- 
getNewsAgentpublic de.uplanet.lucy.server.auxiliaries.NewsAgentProxy getNewsAgent(de.uplanet.jdbc.JdbcConnection p_conn) - Returns:
- A news agent (proxy) instance.
- See Also:
- 
- NewsAgentProxy
 
 
- 
getAuthProxypublic de.uplanet.lucy.server.auxiliaries.AuthProxy getAuthProxy(de.uplanet.jdbc.JdbcConnection p_conn) Create anAuthProxyinstance.- Returns:
- The authentication proxy.
 
- 
getAuthProxyDeprecated.UsegetAuthProxy(JdbcConnection)instead.
- 
getHttpRequestpublic de.uplanet.lucy.server.auxiliaries.net.HttpRequest getHttpRequest()Create aHttpRequestinstance.- Returns:
- A HTTP request object.
 
- 
getRFC5545Utilpublic de.uplanet.lucy.server.auxiliaries.calendar.RFC5545Util getRFC5545Util()- Returns:
- A RFC 5545 utility.
- Since:
- Intrexx version 5.2.
 
- 
getUserFromIdpublic de.uplanet.lucy.server.usermanager.IUser getUserFromId(de.uplanet.jdbc.JdbcConnection p_conn, int p_iUserId) Get a user from the database.- Returns:
- The user with the specified integer id, or nullif the user was not found in the database.
 
- 
getUserFromGuidpublic de.uplanet.lucy.server.usermanager.IUser getUserFromGuid(de.uplanet.jdbc.JdbcConnection p_conn, String p_strGuid) Get a user from the database.- Returns:
- The user with the specified unique identifier, or nullif the user was not found in the database.
 
- 
getUserFromLoginNamepublic de.uplanet.lucy.server.usermanager.IUser getUserFromLoginName(de.uplanet.jdbc.JdbcConnection p_conn, String p_strLoginName, String p_strLoginDomain) Get a user from the database.- Returns:
- The user with the specified login name and domain, or
    nullif the user was not found in the database.
 
- 
getUserFromQualifiedLoginNamepublic de.uplanet.lucy.server.usermanager.IUser getUserFromQualifiedLoginName(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQualifiedLoginName) Get a user from the database.- Returns:
- The user with the specified qualified login name, or
    nullif the user was not found in the database.
 
- 
getNumberByStringAggregatorCreate a helper object for aggregating strings.The following aggregation modes are supported: - caseSensitiveCategory: categories are treated case-sensitive
- caseInsensitiveCategory: categories are treated case-insensitive
 - Parameters:
- p_strMode- The mode used for aggregation.
- Returns:
- An aggregator object.
 
- 
getNumberByDateAggregatorCreate a helper object for aggregating time values.The following aggregation modes are supported: - year: by year
- month: by month
- day: by day
- hour: by hour
- minute: by minute
- second: by second
- millisecond: (should normally not be used)
- quarter: by quarter
- week: by start of the week
 - Parameters:
- p_strMode- The mode used for aggregation.
- p_tz- The time zone.
- Returns:
- An aggregator object.
 
- 
getNumberByLongAggregatorCreate a helper object for aggregating integer numbers.- Returns:
- An aggregator object.
 
- 
getNumberByDoubleAggregatorCreate a helper object for aggregating floating point numbers.- Returns:
- An aggregator object.
 
- 
getReleaseTrackReturns release track from server.- Returns:
- silent or steady
 
 
- 
getAuthProxy(JdbcConnection)instead.