Class GlobalContext

    • Constructor Detail

      • GlobalContext

        public GlobalContext​(String contextKey)
    • Method Detail

      • main

        public static void main​(String[] args)
      • getInstanceId

        public String getInstanceId()
      • getSessionInstance

        public static GlobalContext getSessionInstance​(javax.servlet.http.HttpSession session)
      • isDefinedByHost

        public boolean isDefinedByHost()
      • setDefinedByHost

        public void setDefinedByHost​(boolean define)
      • getMainInstance

        public static GlobalContext getMainInstance​(javax.servlet.http.HttpServletRequest request)
      • getInstance

        public static GlobalContext getInstance​(javax.servlet.http.HttpServletRequest request)
      • getSessionContext

        public static GlobalContext getSessionContext​(javax.servlet.http.HttpSession session)
      • getSessionContextKey

        public static String getSessionContextKey​(javax.servlet.http.HttpSession session)
      • reset404File

        public void reset404File()
      • initExternalService

        public void initExternalService​(ContentContext ctx)
      • destroy

        public void destroy()
      • activePopThread

        public void activePopThread()
      • haveContext

        public static boolean haveContext​(javax.servlet.http.HttpServletRequest request)
        check if there are at least one context
        Parameters:
        request -
        Returns:
      • isExist

        public static boolean isExist​(javax.servlet.http.HttpServletRequest request,
                                      String contextKey)
                               throws IOException
        Throws:
        IOException
      • getAccountSize

        public long getAccountSize()
      • getAccountSizeLabel

        public String getAccountSizeLabel()
      • addPrincipal

        public void addPrincipal​(User principal)
      • addTag

        public void addTag​(String tag)
      • addTemplate

        public void addTemplate​(String templateId)
      • removeTemplate

        public void removeTemplate​(String templateId)
      • cleanFolder

        public void cleanFolder()
      • delete

        public void delete​(javax.servlet.ServletContext application)
      • eventLogin

        public void eventLogin​(String userName)
      • getAdministrator

        public String getAdministrator()
      • getAdministratorEmail

        public String getAdministratorEmail()
      • getAdminUserRoles

        public Set<String> getAdminUserRoles()
      • getAliasOf

        public String getAliasOf()
      • isAliasActive

        public boolean isAliasActive()
      • setAliasActive

        public void setAliasActive​(boolean aliasActive)
      • setMainContext

        public void setMainContext​(GlobalContext mainContext)
      • getMainContextOrContext

        public GlobalContext getMainContextOrContext()
      • addSubContext

        public void addSubContext​(GlobalContext globalContext)
      • getAllValue

        public String getAllValue()
      • getAttributesKeys

        public Set<Object> getAttributesKeys()
      • getEternalCache

        public ICache getEternalCache​(String cacheName)
      • getMapCache

        public ICache getMapCache​(String cacheName)
      • getComponents

        public List<String> getComponents()
      • hasComponent

        public boolean hasComponent​(String className)
      • hasComponent

        public boolean hasComponent​(Class clazz)
      • getUsersAccess

        public List<String> getUsersAccess()
      • getContentLanguages

        public Set<String> getContentLanguages()
      • getContextKey

        public String getContextKey()
      • getContextMainKey

        public String getContextMainKey()
      • getCountry

        public String getCountry()
      • getNoPopupDomainRAW

        public String getNoPopupDomainRAW()
      • setNoPopupDomainRAW

        public void setNoPopupDomainRAW​(String domains)
      • getNoPopupDomain

        public Set<String> getNoPopupDomain()
      • getCountUser

        public int getCountUser()
      • getCreationDate

        public Date getCreationDate()
      • removeData

        public void removeData​(String key)
      • getDataWidthKeyPrefix

        public Map<String,​String> getDataWidthKeyPrefix​(String prefix)
        get data with specified prefix
        Parameters:
        prefix -
        Returns:
      • cleanDataAccess

        public void cleanDataAccess()
      • deletedDateFromKeyPrefix

        public boolean deletedDateFromKeyPrefix​(String prefix)
        delete a group of data with the prefix of the key.
        Parameters:
        prefix -
        Returns:
        true if one or more items was deleted.
      • renameKeys

        public int renameKeys​(String oldPrefix,
                              String newPrefix)
        rename keys in data map
        Parameters:
        oldPrefix -
        newPrefix -
        Returns:
        number of renamed keys
      • getDataFolder

        public String getDataFolder()
      • getBackupDirectory

        public String getBackupDirectory()
      • getCalendarFolder

        public String getCalendarFolder()
      • getSharedDataFolder

        public String getSharedDataFolder​(javax.servlet.http.HttpSession session)
                                   throws IOException
        Throws:
        IOException
      • getDataBaseFolder

        public File getDataBaseFolder()
      • getExternComponentFolder

        public String getExternComponentFolder()
      • getExternComponents

        public List<File> getExternComponents()
      • getStaticFolder

        public String getStaticFolder()
      • getDBDriver

        public String getDBDriver()
      • getDBLogin

        public String getDBLogin()
      • getDBPassword

        public String getDBPassword()
      • getDBResourceName

        public String getDBResourceName()
      • getDBURL

        public String getDBURL()
      • getDefaultEncoding

        public String getDefaultEncoding()
      • getDefaultImageFilter

        public String getDefaultImageFilter()
      • getDefaultLanguage

        public String getDefaultLanguage()
      • getDefaultLanguages

        public Set<String> getDefaultLanguages()
      • getDefaultLanguagesRAW

        public String getDefaultLanguagesRAW()
      • getDefaultTemplate

        public String getDefaultTemplate()
      • getDMZServerInter

        public URL getDMZServerInter()
      • getDMZServerIntra

        public URL getDMZServerIntra()
      • getDefaultEditLanguage

        public String getDefaultEditLanguage()
      • getEditLanguage

        public String getEditLanguage​(javax.servlet.http.HttpSession session)
      • getAdminUserFactoryClassName

        public String getAdminUserFactoryClassName()
      • getEncodings

        public Set<String> getEncodings()
      • getFistPassword

        public String getFistPassword()
      • getPlatformType

        public String getPlatformType()
      • setPlatformType

        public void setPlatformType​(String type)
      • isOpenPlatform

        public boolean isOpenPlatform()
      • isPageTrash

        public boolean isPageTrash()
      • isComponentsFiltered

        public boolean isComponentsFiltered()
      • getCookiesTypes

        public List<String> getCookiesTypes()
      • setCookiesTypes

        public void setCookiesTypes​(List<String> types)
      • isCookies

        public boolean isCookies()
      • setCookies

        public void setCookies​(boolean cook)
      • getCookiesPolicyUrl

        public String getCookiesPolicyUrl()
      • setCookiesPolicyUrl

        public void setCookiesPolicyUrl​(String url)
      • setComponentsFiltered

        public void setComponentsFiltered​(boolean filtered)
      • isMailingPlatform

        public boolean isMailingPlatform()
      • isWebPlatform

        public boolean isWebPlatform()
      • getFolder

        public String getFolder()
        return the data context folder name.
        Returns:
      • getFullDateFormat

        public String getFullDateFormat()
      • getGlobalTitle

        public String getGlobalTitle()
      • getOwnerName

        public String getOwnerName()
      • getOwnerContact

        public String getOwnerContact()
      • setOwnerContact

        public void setOwnerContact​(String contact)
      • setOwnerName

        public void setOwnerName​(String name)
      • getOwnerFacebook

        public String getOwnerFacebook()
      • setOwnerFacebook

        public void setOwnerFacebook​(String name)
      • getOwnerTwitter

        public String getOwnerTwitter()
      • setOwnerTwitter

        public void setOwnerTwitter​(String name)
      • getOwnerLinkedin

        public String getOwnerLinkedin()
      • setOwnerLinkedin

        public void setOwnerLinkedin​(String name)
      • getOwnerInstagram

        public String getOwnerInstagram()
      • setOwnerInstagram

        public void setOwnerInstagram​(String name)
      • getOwnerAddress

        public String getOwnerAddress()
      • getOwnerAddressHtml

        public String getOwnerAddressHtml()
      • setOwnerAddress

        public void setOwnerAddress​(String add)
      • setOwnerPostcode

        public void setOwnerPostcode​(String postcode)
      • getOwnerPostcode

        public String getOwnerPostcode()
      • setOwnerCity

        public void setOwnerCity​(String city)
      • getOwnerCity

        public String getOwnerCity()
      • getOwnerNumber

        public String getOwnerNumber()
      • setOwnerNumber

        public void setOwnerNumber​(String num)
      • getOwnerPhone

        public String getOwnerPhone()
      • setOwnerPhone

        public void setOwnerPhone​(String phone)
      • getOwnerEmail

        public String getOwnerEmail()
      • setOwnerEmail

        public void setOwnerEmail​(String email)
      • getGoogleAnalyticsUACCT

        public String getGoogleAnalyticsUACCT()
      • getHelpURL

        public String getHelpURL()
      • getMainHelpURL

        public String getMainHelpURL()
      • setMainHelpURL

        public void setMainHelpURL​(String helpURL)
      • getPrivateHelpURL

        public String getPrivateHelpURL()
        return help url with specific information over the site.
        Returns:
      • getHomePage

        public String getHomePage()
      • getHTMLDefinition

        public String getHTMLDefinition​(String key,
                                        String defaultValue)
      • getImageViewFilter

        public List<String> getImageViewFilter()
      • getLanguages

        public Set<String> getLanguages()
      • getDefaultCurrency

        public String getDefaultCurrency()
      • getDefaultCurrencySymbol

        public String getDefaultCurrencySymbol()
      • getLatestLoginDate

        public Date getLatestLoginDate()
      • getLatestUser

        public String getLatestUser()
      • getLicence

        public String getLicence()
      • getContentIntegrity

        public String getContentIntegrity()
      • getIntegrityDefinition

        public IntegrityBean getIntegrityDefinition()
      • setContentIntegrity

        public void setContentIntegrity​(String value)
      • getLogo

        public File getLogo()
      • getLook

        public String getLook()
      • getMailingReport

        public String getMailingReport()
      • getMailingSenders

        public String getMailingSenders()
      • getMailFrom

        public String getMailFrom()
      • getMailingStartTime

        public Date getMailingStartTime()
      • getMailingSubject

        public String getMailingSubject()
      • getMediumDateFormat

        public String getMediumDateFormat()
      • getPathPrefix

        public String getPathPrefix()
      • setProxyPathPrefix

        public void setProxyPathPrefix​(String prefix)
        set a special path prefix needed by proxy.
      • getProxyPathPrefix

        public String getProxyPathPrefix()
      • getPublishDateLabel

        public String getPublishDateLabel()
      • getRank

        public int getRank()
      • getRAWContentLanguages

        public String getRAWContentLanguages()
      • getRAWEncodings

        public String getRAWEncodings()
      • getRAWLanguages

        public String getRAWLanguages()
      • getResourceId

        public String getResourceId​(String path)
      • getResourcePath

        public String getResourcePath​(String id)
      • getServletContext

        public javax.servlet.ServletContext getServletContext()
      • getShortDateFormat

        public String getShortDateFormat()
      • getRAWTags

        public String getRAWTags()
      • setRAWTags

        public void setRAWTags​(String tags)
      • getTemplatesNames

        public List<String> getTemplatesNames()
      • getTimeAttributes

        public Map<Object,​Object> getTimeAttributes()
        time attribute, it's key,value stay in the map a specific time (default 5 mintues)
        Returns:
        unmodifiable map
      • getTimeAttribute

        public Object getTimeAttribute​(String key)
      • resetURLFactory

        public void resetURLFactory()
      • getURLFactoryClass

        public String getURLFactoryClass()
      • getUserFactoryClassName

        public String getUserFactoryClassName()
      • getUserRoles

        public Set<String> getUserRoles()
      • getVisibleContentLanguages

        public Set<String> getVisibleContentLanguages()
      • getVisibleLanguages

        public Set<String> getVisibleLanguages()
      • isAdminManagement

        public boolean isAdminManagement()
      • isAutoSwitchToDefaultLanguage

        public boolean isAutoSwitchToDefaultLanguage()
      • isChangeLicence

        public boolean isChangeLicence()
      • isChangeMenu

        public boolean isChangeMenu()
      • isCreation

        public boolean isCreation()
      • isCSSInline

        public boolean isCSSInline()
      • isDownloadContent

        public boolean isDownloadContent()
      • isDynamic

        public boolean isDynamic()
      • isEasy

        public boolean isEasy()
      • isWizz

        public boolean isWizz()
      • isEditable

        public boolean isEditable()
      • isExtendMenu

        public boolean isExtendMenu()
      • isFirstImage

        public boolean isFirstImage()
      • isHelpLink

        public boolean isHelpLink()
      • isImagePreview

        public boolean isImagePreview()
      • isImportable

        public boolean isImportable()
      • isInstantMessaging

        public boolean isInstantMessaging()
      • isLightMenu

        public boolean isLightMenu()
      • isMailing

        public boolean isMailing()
      • isNewPageVisible

        public boolean isNewPageVisible()
      • isOpenExternalLinkAsPopup

        public boolean isOpenExternalLinkAsPopup()
      • isOnlyCreatorModify

        public boolean isOnlyCreatorModify()
        if return true only the creator of the component can modify it.
        Returns:
      • isCollaborativeMode

        public boolean isCollaborativeMode()
        display the creator of component in the page.
        Returns:
      • isOpenExternalLinkAsPopup

        public boolean isOpenExternalLinkAsPopup​(String url)
      • isOpenFileAsPopup

        public boolean isOpenFileAsPopup()
      • isPageStructure

        public boolean isPageStructure()
      • isPortail

        public boolean isPortail()
      • isPrivatePage

        public boolean isPrivatePage()
      • isRightOnPage

        public boolean isRightOnPage()
      • isTags

        public boolean isTags()
      • isTemplateFilter

        public boolean isTemplateFilter()
      • isURIAlias

        public boolean isURIAlias()
      • isUserManagement

        public boolean isUserManagement()
      • isView

        public boolean isView()
      • isViewBar

        public boolean isViewBar()
      • isVirtualPaternity

        public boolean isVirtualPaternity()
      • isVisible

        public boolean isVisible()
      • logout

        public void logout​(Principal principal)
      • releaseAllCache

        public void releaseAllCache()
      • reload

        public void reload()
      • removeTag

        public void removeTag​(String tag)
      • renameDataKey

        public void renameDataKey​(String oldKeyPrefix,
                                  String newKeyPrefix)
      • resetAdmimUserFactory

        public void resetAdmimUserFactory()
      • resetUserFactory

        public void resetUserFactory()
      • save

        public void save()
      • sendMailToAdministrator

        public void sendMailToAdministrator​(String subjet,
                                            String body)
                                     throws javax.mail.MessagingException
        Throws:
        javax.mail.MessagingException
      • setAdministrator

        public void setAdministrator​(String admin)
      • setAdminManagement

        public void setAdminManagement​(boolean adminManagement)
      • setAdminUserRoles

        public void setAdminUserRoles​(Set<String> roles)
      • setAliasOf

        public void setAliasOf​(String alias)
      • setAliasURI

        public void setAliasURI​(Properties aliasURI)
      • setAllValues

        public void setAllValues​(String content)
        set a properties file content for change all values
        Parameters:
        content -
      • setAttribute

        public void setAttribute​(String key,
                                 Object att)
      • setAutoSwitchToDefaultLanguage

        public void setAutoSwitchToDefaultLanguage​(boolean value)
      • setAutoSwitchToFirstLanguage

        public void setAutoSwitchToFirstLanguage​(boolean value)
      • setChangeLicence

        public void setChangeLicence​(boolean changeLicence)
      • setChangeMenu

        public void setChangeMenu​(boolean changeMenu)
      • setComponents

        public void setComponents​(List<String> components)
      • setModules

        public void setModules​(List<String> modules)
      • setUsersAccess

        public void setUsersAccess​(List<String> users)
      • setContextKey

        public void setContextKey​(String contextKey)
      • setCountry

        public void setCountry​(String country)
      • setCSSInline

        public void setCSSInline​(boolean cssInline)
      • setData

        public void setData​(String key,
                            String value)
      • setDefaultEncoding

        public void setDefaultEncoding​(String encoding)
      • setDefaultLanguages

        public void setDefaultLanguages​(String lg)
      • setDefaultTemplate

        public void setDefaultTemplate​(String template)
      • setDMZServerInter

        public void setDMZServerInter​(String dmzServer)
      • setDMZServerIntra

        public void setDMZServerIntra​(String dmzServer)
      • setDownloadContent

        public void setDownloadContent​(boolean downloadContent)
      • setDynamic

        public void setDynamic​(boolean dynamic)
      • setEasy

        public void setEasy​(boolean easy)
      • setWizz

        public void setWizz​(boolean wizz)
      • setEditable

        public void setEditable​(boolean editable)
      • setEditLanguage

        public void setEditLanguage​(String language)
      • setAdminUserFactoryClassName

        public void setAdminUserFactoryClassName​(String userFactoryName)
      • setExtendMenu

        public void setExtendMenu​(boolean extendMenu)
      • setFirstPassword

        public void setFirstPassword​(String password)
      • setFolder

        public void setFolder​(String folder)
      • setFullDateFormat

        public void setFullDateFormat​(String format)
      • setGlobalTitle

        public void setGlobalTitle​(String password)
      • setGoogleAnalyticsUACCT

        public void setGoogleAnalyticsUACCT​(String uacct)
      • setGoogleApiKey

        public void setGoogleApiKey​(String key)
      • setHelpLink

        public void setHelpLink​(boolean helpLink)
      • setHelpURL

        public void setHelpURL​(String helpURL)
      • setPrivateHelpURL

        public void setPrivateHelpURL​(String helpURL)
      • setHomePage

        public void setHomePage​(String homepage)
      • setImagePreview

        public void setImagePreview​(boolean imagePreview)
      • setImageViewFilter

        public void setImageViewFilter​(String filters)
      • setImportable

        public void setImportable​(boolean importable)
      • setInstantMessaging

        public void setInstantMessaging​(boolean im)
      • setLicence

        public void setLicence​(String licence)
      • setLightMenu

        public void setLightMenu​(boolean lightMenu)
      • setLook

        public void setLook​(String look)
      • setMacros

        public void setMacros​(List<String> macros)
      • setMailing

        public void setMailing​(boolean changeMenu)
      • setMailingReport

        public void setMailingReport​(String report)
      • setMailingSenders

        public void setMailingSenders​(String sender)
      • setMailingSubject

        public void setMailingSubject​(String subject)
      • setMailingTemplates

        public void setMailingTemplates​(List<String> components)
      • setMediumDateFormat

        public void setMediumDateFormat​(String format)
      • setNewPageVisible

        public void setNewPageVisible​(boolean visible)
      • setOneVote

        public void setOneVote​(int value)
      • setOpenExernalLinkAsPopup

        public void setOpenExernalLinkAsPopup​(boolean ipPopup)
      • setOnlyCreatorModify

        public void setOnlyCreatorModify​(boolean creatorModif)
      • setCollaborativeMode

        public void setCollaborativeMode​(boolean display)
      • setOpenFileAsPopup

        public void setOpenFileAsPopup​(boolean ipPopup)
      • setPageStructure

        public void setPageStructure​(boolean pageStructure)
      • setPassword

        public void setPassword​(String password)
      • setPathPrefix

        public void setPathPrefix​(String pathPrefix)
      • setPortail

        public void setPortail​(boolean changeMenu)
      • setPrivatePage

        public void setPrivatePage​(boolean privatePage)
      • setPublishDate

        public void setPublishDate​(Date publishDate)
      • setLatestPublisher

        public void setLatestPublisher​(String userName)
      • getLatestPublisher

        public String getLatestPublisher()
      • setRAWContentLanguages

        public void setRAWContentLanguages​(String languages)
      • setRAWEncodings

        public void setRAWEncodings​(String encodings)
      • setRAWLanguages

        public void setRAWLanguages​(String languages)
      • setRightOnPage

        public void setRightOnPage​(boolean rightOnPage)
      • setShortDateFormat

        public void setShortDateFormat​(String format)
      • setTags

        public void setTags​(boolean inTags)
      • setTemplateData

        public void setTemplateData​(TemplateData inTemplateData)
      • setTemplateFilter

        public void setTemplateFilter​(boolean templateFilter)
      • setTemplatesNames

        public void setTemplatesNames​(List<String> components)
      • setTimeAttribute

        public void setTimeAttribute​(String key,
                                     Object att)
      • setTimeAttribute

        public void setTimeAttribute​(String key,
                                     Object att,
                                     int timeInSecond)
      • setTimeTravelerContext

        public void setTimeTravelerContext​(TimeTravelerContext timeContext)
      • setUserFactoryClassName

        public void setUserFactoryClassName​(String userFactoryName)
      • setUserManagement

        public void setUserManagement​(boolean userManagement)
      • setUserRoles

        public void setUserRoles​(Set<String> roles)
      • setView

        public void setView​(boolean view)
      • setViewBar

        public void setViewBar​(boolean viewBar)
      • setVirtualPaternity

        public void setVirtualPaternity​(boolean changeLicence)
      • setVisible

        public void setVisible​(boolean visible)
      • getTemplatePlugin

        public List<String> getTemplatePlugin()
      • getTemplatePluginConfig

        public String getTemplatePluginConfig()
      • setTemplatePluginConfig

        public void setTemplatePluginConfig​(String config)
      • getBlockPassword

        public String getBlockPassword()
      • getBlockPreviewPassword

        public String getBlockPreviewPassword()
      • getForcedHost

        public String getForcedHost()
      • setForcedHost

        public void setForcedHost​(String host)
      • setBlockPassword

        public void setBlockPassword​(String pwd)
      • isPreviewMode

        public boolean isPreviewMode()
        if true, there are two version of content : preview and view.
        Returns:
      • isMaster

        public boolean isMaster()
      • setPreviewMode

        public void setPreviewMode​(boolean preview)
      • getSessionAttribute

        public Object getSessionAttribute​(javax.servlet.http.HttpSession session,
                                          String key)
      • setSessionAttribute

        public void setSessionAttribute​(javax.servlet.http.HttpSession session,
                                        String key,
                                        Object value)
      • writeInfo

        public void writeInfo​(javax.servlet.http.HttpSession session,
                              PrintStream out)
      • createOneTimeToken

        public String createOneTimeToken​(String token)
      • getOneTimeToken

        public String getOneTimeToken​(String token)
      • getLatestTokenForPage

        public String getLatestTokenForPage​(String pageName)
      • getNewTokenForPage

        public String getNewTokenForPage​(String pageName)
      • getPageToken

        public String getPageToken​(String token)
      • convertOneTimeToken

        public String convertOneTimeToken​(String token)
      • getChangePasswordToken

        public String getChangePasswordToken​(String user)
      • getChangePasswordTokenUser

        public String getChangePasswordTokenUser​(String token,
                                                 boolean remove)
      • getLockImportTemplate

        public Object getLockImportTemplate()
      • getLockLoadContent

        public Object getLockLoadContent()
      • setApplication

        public void setApplication​(javax.servlet.ServletContext application)
      • setConfig

        public void setConfig​(Map config)
      • getEditTemplateMode

        public String getEditTemplateMode()
        mode of the edit template, can be used in template renderer for include special css or js. preview css is : edit_preview_[mode].css
        Returns:
      • setEditTemplateMode

        public void setEditTemplateMode​(String mode)
      • getActivationKey

        public String getActivationKey()
      • setActivationKey

        public void setActivationKey​(String value)
      • getFirstLoadVersion

        public Integer getFirstLoadVersion()
      • setStopUndo

        public void setStopUndo​(boolean stopUndo)
      • isStopUndo

        public boolean isStopUndo()
      • getLatestUndoVersion

        public Integer getLatestUndoVersion()
      • setLatestUndoVersion

        public void setLatestUndoVersion​(Integer latestUndoVersion)
      • getSourceContextKey

        public String getSourceContextKey()
        get the main context (same if no alias defined)
        Returns:
      • setSourceContextKey

        public void setSourceContextKey​(String sourceContextKey)
      • isReversedLink

        public boolean isReversedLink()
      • setReversedLink

        public void setReversedLink​(boolean rl)
      • addForcedContent

        public void addForcedContent​(String key,
                                     String content)
      • getForcedContent

        public String getForcedContent​(String key)
      • storeRedirectUrlList

        public void storeRedirectUrlList()
      • getRedirectUrlMap

        public Properties getRedirectUrlMap()
      • resetRedirectUrlMap

        public void resetRedirectUrlMap()
      • reset404UrlMap

        public void reset404UrlMap()
      • getUserFolder

        public String getUserFolder​(User user)
      • getI18nLock

        public Object getI18nLock()
      • clearTransformShortURL

        public void clearTransformShortURL()
      • getTransformShortURL

        public String getTransformShortURL​(String shortURL)
        get the long url of a short url
        Parameters:
        shortURL -
        Returns:
      • setTransformShortURL

        public String setTransformShortURL​(String longURL,
                                           String filter,
                                           String newName)
        create a short url with a long URL
        Parameters:
        longURL -
        newName - propose a new name for the file
        Returns:
      • getUnsubscribeLink

        public String getUnsubscribeLink()
      • setUnsubscribeLink

        public void setUnsubscribeLink​(String link)
      • getPOPHost

        public String getPOPHost()
      • setPOPHost

        public void setPOPHost​(String host)
      • getPOPPassword

        public String getPOPPassword()
      • setPOPPassword

        public void setPOPPassword​(String pwd)
      • getPOPUser

        public String getPOPUser()
      • setPOPUser

        public void setPOPUser​(String user)
      • getPOPPort

        public int getPOPPort()
      • setPOPPort

        public void setPOPPort​(String port)
      • setPOPSsl

        public void setPOPSsl​(boolean ssl)
      • isPOPSsl

        public boolean isPOPSsl()
      • getSMTPHost

        public String getSMTPHost()
      • setSMTPHost

        public void setSMTPHost​(String host)
      • getSMTPPassword

        public String getSMTPPassword()
      • setSMTPPassword

        public void setSMTPPassword​(String pwd)
      • getSMTPPort

        public String getSMTPPort()
      • setSMTPPort

        public void setSMTPPort​(String port)
      • getSMTPUser

        public String getSMTPUser()
      • setSMTPUser

        public void setSMTPUser​(String user)
      • getDKIMDomain

        public String getDKIMDomain()
      • getDKIMBean

        public DKIMBean getDKIMBean()
      • setDKIMDomain

        public void setDKIMDomain​(String domain)
      • getDKIMSelector

        public String getDKIMSelector()
      • setDKIMSelector

        public void setDKIMSelector​(String selector)
      • getSpecialConfigFile

        public File getSpecialConfigFile()
      • isForcedHttps

        public boolean isForcedHttps()
      • setForcedHttps

        public void setForcedHttps​(boolean https)
      • isBackupThread

        public boolean isBackupThread()
      • setBackupThread

        public void setBackupThread​(boolean backup)
      • setMetaBloc

        public void setMetaBloc​(String bloc)
      • setHeaderBloc

        public void setHeaderBloc​(String bloc)
      • setFooterBloc

        public void setFooterBloc​(String bloc)
      • getMetaBloc

        public String getMetaBloc()
      • getHeaderBloc

        public String getHeaderBloc()
      • getFooterBloc

        public String getFooterBloc()
      • touch

        public void touch()
      • getCount

        public int getCount()
      • isSiteLog

        public boolean isSiteLog()
      • setSiteLog

        public void setSiteLog​(boolean siteLog)
      • getSiteLogFile

        protected File getSiteLogFile()
      • log

        public final void log​(String level,
                              String group,
                              String text,
                              boolean store)
      • addSharedObject

        public String addSharedObject​(Object obj)
      • getSharedObject

        public Object getSharedObject​(String key)
      • getLatestTicketNotificaitonTime

        public Calendar getLatestTicketNotificaitonTime()
      • setLatestTicketNotificaitonTime

        public void setLatestTicketNotificaitonTime​(Calendar latestTicketNotificaitonTime)
      • getQuietArea

        public List<String> getQuietArea()
      • setQuitArea

        public void setQuitArea​(List<String> quietArea)
      • getPageScreenshotFile

        public File getPageScreenshotFile​(String pageName)
      • createEmailToken

        public String createEmailToken​(String email)
      • getEmailFromToken

        public String getEmailFromToken​(String token)
      • getGlobalError

        public String getGlobalError()
      • isSiteLogStack

        public boolean isSiteLogStack()
      • setSiteLogStack

        public void setSiteLogStack​(boolean siteLogStack)
      • isBusinessTicket

        public boolean isBusinessTicket()
      • getEcomConfig

        public EcomConfig getEcomConfig()
      • getCanonicalHost

        public String getCanonicalHost()
      • getSecurityCsp

        public String getSecurityCsp()
      • setSecurityCsp

        public void setSecurityCsp​(String csp)
      • getLocaleCountry

        public String getLocaleCountry()
      • getHost

        public Boolean getHost()
        return true, if this globalContext was loaded from host in place of context (uri)
        Returns:
      • setHost

        public void setHost​(boolean host,
                            String name)
      • isHost

        public boolean isHost()
      • getHostName

        public String getHostName()