Class Portal
- java.lang.Object
-
- de.uplanet.lucy.server.auxiliaries.Portal
-
@VelocityVariable("Portal") @VelocityCallable("instance") public final class Portal extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringSYSPROP_DISABLE_DEPRECATED_EDITOR"de.uplanet.lucy.server.portal.disableDeprecatedEditor".static StringSYSPROP_MEDIASIZE_DEBUG"de.uplanet.lucy.server.mediaSize.debug".
-
Constructor Summary
Constructors Constructor Description Portal(org.springframework.context.ApplicationContext p_appCtx)Standard constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intgetActiveSessionCount()Get the number of active sessions.StringgetAnonymousUserGuid()Get the anonymous user's unique identifier.intgetAnonymousUserOnlineCount()Get the number of sessions of the anonymous user.org.springframework.context.ApplicationContextgetApplicationContext()Get the portal's Spring application context.VCVersionInfogetApplicationVersionInformation(String p_strApplicationGuid)Get the semantic version information of an application.List<String>getAvailableTimeZoneIDs()Get a list of available time zone IDs.StringgetDefaultMenuGuid(String p_strLayout)Get the GUID of the default menu of the given layout.intgetFirstDayOfWeek()Deprecated.UseVCLocales.getDefaultLocale()instead.intgetIntrexxShareVersion()Get the Intrexx Share version.intgetIntrexxVersionInt()Get the Intrexx version as an integer (e.g.StringgetIntrexxVersionStr()Get the Intrexx version as a string (e.g.StringgetLanguage()Get the portal's language.List<String>getLanguages()Get the languages that are supported by this portal.VCVersionInfogetLayoutVersionInformation(String p_strLayoutDirectoryName)Get the semantic version information of a layout.List<String>getLoginDomains()Get a list of available login domains.List<IUser>getMyBuddies(de.uplanet.jdbc.JdbcConnection p_conn, String p_strName, String p_strUserGuid)StringgetName()Get the portal name (server/). intgetNonAnonymousActiveSessionCount()Get the number of non-anonymous active sessions.NowValueHoldergetNow()Get a value holder for the current date and time.VelocityOrgStructureWrappergetOrgStructure()Get the portal's organizational structure.de.uplanet.lucy.server.polling.IPollingServicegetPollingService()Get the polling service.StringgetPortalName()Get the portal's display name.intgetProcessId()Get the process id (PID) of the running portal server.TimeZonegetTimeZone()Get the portal's default time zone.List<String>getUsersOnline(boolean p_bIncudeAnonymousUsers)Get a list that contains the unique identifiers of users that are online.VCVersionInfogetWorkflowVersionInformation(String p_strWorkflowGuid)Get the semantic version information of a workflow.booleanisChatEnabled()Test if chat is enabled globally.booleanisChatEnabled(String p_strUserId)Test if chat is enabled for the given user.booleanisCssCompressionEnabled()Deprecated.Since Intrexx 9.0.booleanisDemo()booleanisDeprecatedEditorDisabled()booleanisIntrexxShareAvailable()Check if Intrexx Share is available in the current portal.booleanisJsCompressionEnabled()Deprecated.Since Intrexx 9.0.booleanisMediaSizeDebugEnabled()booleanisMobileDevicesSupported()Flag indicating if mobile devices are supported.booleanisNfr()booleanisPushState()booleanisSilentModeEnabled()Flag indicating if silent mode is enabled.booleanisSingleTenantMode()Flag indicating if single tenant mode is enabled.booleanisTestOrDevelopmentSystem()booleanisUserOnline(String p_strUserId)Test if the specified user is online, i.e.booleanisYellowFadeEnabled()Flag indicating if yellow fade is enabled.List<IUser>listNonAnonymousUsersOnline()Get a list of all non-anonymous users that are online.List<IUser>listNonAnonymousUsersOnline(IFilter<IUser> p_filter)Get a list of all non-anonymous users that are online.VelocityOrgStructureWrapperreadOrgStructure()Read the portal's organizational structure from database.doubleuserActivity(String p_strUserId)
-
-
-
Field Detail
-
SYSPROP_DISABLE_DEPRECATED_EDITOR
@SystemProperty(defaultValue="true") public static final String SYSPROP_DISABLE_DEPRECATED_EDITOR
"de.uplanet.lucy.server.portal.disableDeprecatedEditor".- See Also:
- Constant Field Values
-
SYSPROP_MEDIASIZE_DEBUG
@SystemProperty(defaultValue="true") public static final String SYSPROP_MEDIASIZE_DEBUG
"de.uplanet.lucy.server.mediaSize.debug".- See Also:
- Constant Field Values
-
-
Method Detail
-
getApplicationContext
public org.springframework.context.ApplicationContext getApplicationContext()
Get the portal's Spring application context.- Returns:
- The Spring application context.
-
getProcessId
public int getProcessId()
Get the process id (PID) of the running portal server.- Returns:
- The process id.
-
getNow
public NowValueHolder getNow()
Get a value holder for the current date and time.- Returns:
- The value holder.
-
getPortalName
public String getPortalName()
Get the portal's display name.- Returns:
- The portal's display name.
-
getName
public String getName()
Get the portal name (server/). - Returns:
- The portal name.
-
isMobileDevicesSupported
public boolean isMobileDevicesSupported()
Flag indicating if mobile devices are supported.- Returns:
trueif mobile devices are supported, orfalseotherwise.
-
isYellowFadeEnabled
public boolean isYellowFadeEnabled()
Flag indicating if yellow fade is enabled.- Returns:
trueif yellow fade is enabled, orfalseotherwise.
-
isSilentModeEnabled
public boolean isSilentModeEnabled()
Flag indicating if silent mode is enabled.- Returns:
trueif silent mode is enabled, orfalseotherwise.
-
isSingleTenantMode
public boolean isSingleTenantMode()
Flag indicating if single tenant mode is enabled.- Returns:
truesingle tenant mode is enabled, orfalseotherwise.
-
getDefaultMenuGuid
public String getDefaultMenuGuid(String p_strLayout) throws Exception
Get the GUID of the default menu of the given layout.- Parameters:
p_strLayout- The directory name of the layout.- Returns:
- The GUID of the default menu top-level group.
- Throws:
Exception
-
isDemo
public boolean isDemo()
- Returns:
trueif the portal runs in demo mode, orfalseotherwise.
-
isDeprecatedEditorDisabled
public boolean isDeprecatedEditorDisabled()
- Returns:
trueif deprecated editors are disabled, orfalseotherwise.
-
isMediaSizeDebugEnabled
public boolean isMediaSizeDebugEnabled()
- Returns:
trueif media size debugging is enabled, orfalseotherwise.
-
isPushState
public boolean isPushState()
- Returns:
trueif the portal supports HTML push state, orfalseotherwise.
-
getLanguage
public String getLanguage()
Get the portal's language.- Returns:
- The portal's language.
-
getLanguages
public List<String> getLanguages()
Get the languages that are supported by this portal.- Returns:
- A list of supported languages.
-
getLoginDomains
public List<String> getLoginDomains()
Get a list of available login domains.- Returns:
- An array containing the available login domains.
-
getTimeZone
public TimeZone getTimeZone()
Get the portal's default time zone.- Returns:
- The default time zone.
-
getAvailableTimeZoneIDs
public List<String> getAvailableTimeZoneIDs()
Get a list of available time zone IDs.- Returns:
- The list of available time zone IDs.
-
getFirstDayOfWeek
@Deprecated public int getFirstDayOfWeek()
Deprecated.UseVCLocales.getDefaultLocale()instead.Get the portal's default first-day-of-week.- Returns:
- The portal's default first-day-of-week.
-
getActiveSessionCount
public int getActiveSessionCount()
Get the number of active sessions.- Returns:
- The number of active sessions.
-
getNonAnonymousActiveSessionCount
public int getNonAnonymousActiveSessionCount()
Get the number of non-anonymous active sessions.- Returns:
- The number of active sessions.
-
getAnonymousUserGuid
public String getAnonymousUserGuid()
Get the anonymous user's unique identifier.- Returns:
- The anonymous user's unique identifier, or
nullif it could not be determined.
-
userActivity
public double userActivity(String p_strUserId)
- Parameters:
p_strUserId- The user's unique identifier.- Returns:
- A value that indicates the user's activity.
-
isUserOnline
public boolean isUserOnline(String p_strUserId)
Test if the specified user is online, i.e. if she has an associated session.- Parameters:
p_strUserId- The user's unique identifier.- Returns:
trueif the user is online,falseotherwise.
-
getUsersOnline
public List<String> getUsersOnline(boolean p_bIncudeAnonymousUsers)
Get a list that contains the unique identifiers of users that are online.- Parameters:
p_bIncudeAnonymousUsers-trueif anonymous sessions should be included in the resulting array,falseotherwise.- Returns:
- A list that contains the unique identifiers of users that are online.
-
getAnonymousUserOnlineCount
public int getAnonymousUserOnlineCount()
Get the number of sessions of the anonymous user.- Returns:
- The number of anonymous user sessions.
-
listNonAnonymousUsersOnline
public List<IUser> listNonAnonymousUsersOnline()
Get a list of all non-anonymous users that are online.- Returns:
- A list of all non-anonymous users that are online.
-
listNonAnonymousUsersOnline
public List<IUser> listNonAnonymousUsersOnline(IFilter<IUser> p_filter)
Get a list of all non-anonymous users that are online.Note: filters can be created e.g. using the
ObjectFactory.- Parameters:
p_filter- A filter to be applied.- Returns:
- A list of all non-anonymous users that are online.
-
getPollingService
public de.uplanet.lucy.server.polling.IPollingService getPollingService()
Get the polling service.- Returns:
- The polling service.
- Since:
- Intrexx version 6.0.
-
getOrgStructure
public VelocityOrgStructureWrapper getOrgStructure()
Get the portal's organizational structure.This method utilizes the org structure cache and thus generally offers better performance than
readOrgStructure().- Returns:
- The portal's organizational structure.
- See Also:
readOrgStructure()
-
readOrgStructure
public VelocityOrgStructureWrapper readOrgStructure() throws SQLException
Read the portal's organizational structure from database.This method reads the organizational structure directly from the database. So it reflects the most recent changes, but at the expense of performance.
- Returns:
- The portal's organizational structure.
- Throws:
SQLException- If a database error occurred.- See Also:
getOrgStructure()
-
isChatEnabled
public boolean isChatEnabled()
Test if chat is enabled globally.- Returns:
trueif chat is globally enabled, orfalseotherwise.
-
isChatEnabled
public boolean isChatEnabled(String p_strUserId)
Test if chat is enabled for the given user.- Parameters:
p_strUserId- The user's unique identifier.- Returns:
trueif chat is enabled for the given user, orfalseotherwise.
-
getMyBuddies
public List<IUser> getMyBuddies(de.uplanet.jdbc.JdbcConnection p_conn, String p_strName, String p_strUserGuid)
-
isJsCompressionEnabled
@Deprecated public boolean isJsCompressionEnabled()
Deprecated.Since Intrexx 9.0.
-
isCssCompressionEnabled
@Deprecated public boolean isCssCompressionEnabled()
Deprecated.Since Intrexx 9.0.
-
isTestOrDevelopmentSystem
public boolean isTestOrDevelopmentSystem()
- Returns:
trueif the portal is licensed as a test or development system, orfalseotherwise.
-
isNfr
public boolean isNfr()
- Returns:
trueif the portal is licensed as a NFR system, orfalseotherwise.
-
getIntrexxVersionInt
public int getIntrexxVersionInt()
Get the Intrexx version as an integer (e.g. 5200).- Returns:
- The Intrexx version as an integer.
-
getIntrexxVersionStr
public String getIntrexxVersionStr()
Get the Intrexx version as a string (e.g. 5.20).- Returns:
- The Intrexx version as a string.
-
isIntrexxShareAvailable
public boolean isIntrexxShareAvailable()
Check if Intrexx Share is available in the current portal.- Returns:
trueif Intrexx Share is available, orfalseotherwise.
-
getIntrexxShareVersion
public int getIntrexxShareVersion()
Get the Intrexx Share version.- Returns:
- The Intrexx Share version, or
-1if Intrexx Share is notavailable.
-
getApplicationVersionInformation
public VCVersionInfo getApplicationVersionInformation(String p_strApplicationGuid)
Get the semantic version information of an application.- Parameters:
p_strApplicationGuid- The application GUID.- Returns:
- The semantic version information or
nullif no semantic version information exists.
-
getWorkflowVersionInformation
public VCVersionInfo getWorkflowVersionInformation(String p_strWorkflowGuid)
Get the semantic version information of a workflow.- Parameters:
p_strWorkflowGuid- The workflow GUID.- Returns:
- The semantic version information or
nullif no semantic version information exists.
-
getLayoutVersionInformation
public VCVersionInfo getLayoutVersionInformation(String p_strLayoutDirectoryName)
Get the semantic version information of a layout.- Parameters:
p_strLayoutDirectoryName- The layout directory name.- Returns:
- The semantic version information or
nullif no semantic version information exists.
-
-