|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.eng.spagobi.commons.utilities.SpagoBIUtilities
it.eng.spagobi.commons.utilities.GeneralUtilities
public class GeneralUtilities
Contains some SpagoBI's general utilities.
Field Summary | |
---|---|
static int |
MAX_DEFAULT_TEMPLATE_SIZE
|
static java.lang.String |
SPAGOBI_HOST
|
Constructor Summary | |
---|---|
GeneralUtilities()
|
Method Summary | |
---|---|
static it.eng.spago.security.IEngUserProfile |
createNewUserProfile(java.lang.String userId)
Creates a new user profile, given his identifier. |
static java.lang.String |
getLovMapResult(java.util.Map lovs)
Gets the lov map result. |
static java.lang.String |
getLovResult(java.lang.String lovLabel)
Gets the lov result. |
static java.lang.String |
getLovResult(java.lang.String lovLabel,
it.eng.spago.security.IEngUserProfile profile)
Gets the lov result. |
static java.lang.String |
getSpagoBIProfileBaseUrl(java.lang.String userId)
Returns the complete HTTP URL and puts it into a string. |
static java.lang.String |
replaceInternationalizedMessages(java.lang.String message)
Substitutes the substrings with sintax "${code,bundle}" or "${code}" (in the second case bundle is assumed to be the default value "messages") with the correspondent internationalized messages in the input String. |
static void |
subsituteBIObjectParametersLovProfileAttributes(BIObject obj,
it.eng.spago.base.SessionContainer session)
Subsitute bi object parameters lov profile attributes. |
Methods inherited from class it.eng.spagobi.commons.utilities.SpagoBIUtilities |
---|
checkForSystemProperty, cleanString, decode, deleteContentDir, deleteDir, encode, findAttributeValues, flushFromInputStreamToOutputStream, fromListToString, getAllProfileAttributes, getByteArrayFromInputStream, getCurrentLocale, getDefaultLocale, getLocaleDateFormat, getLocalIPAddressAsString, getRelativeFileNames, getServerDateFormat, getSpagoAdapterHttpUrl, getSpagoBiContext, getSpagoBiDashboardServlet, getSpagoBiHost, getTemplateMaxSize, isErrorHandlerContainingOnlyValidationError, main, quote, replace, substituteParametersInString, substituteProfileAttributesInString, substituteProfileAttributesInString, substituteQuotesIntoString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MAX_DEFAULT_TEMPLATE_SIZE
public static java.lang.String SPAGOBI_HOST
Constructor Detail |
---|
public GeneralUtilities()
Method Detail |
---|
public static java.lang.String replaceInternationalizedMessages(java.lang.String message)
PortletUtilities.getMessage(key, bundle)
.
message
- The string to be modified
public static void subsituteBIObjectParametersLovProfileAttributes(BIObject obj, it.eng.spago.base.SessionContainer session) throws java.lang.Exception, it.eng.spago.error.EMFInternalError
obj
- the objsession
- the session
java.lang.Exception
- the exception
it.eng.spago.error.EMFInternalError
- the EMF internal errorpublic static java.lang.String getLovMapResult(java.util.Map lovs)
lovs
- the lovs
public static java.lang.String getLovResult(java.lang.String lovLabel) throws java.lang.Exception
lovLabel
- the lov label
java.lang.Exception
- the exceptionpublic static java.lang.String getLovResult(java.lang.String lovLabel, it.eng.spago.security.IEngUserProfile profile) throws java.lang.Exception
lovLabel
- the lov labelprofile
- the profile
java.lang.Exception
- the exceptionpublic static it.eng.spago.security.IEngUserProfile createNewUserProfile(java.lang.String userId) throws java.lang.Exception
userId
- The user identifier
java.lang.Exception
- the exceptionpublic static java.lang.String getSpagoBIProfileBaseUrl(java.lang.String userId)
userId
- the user id
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |