Package org.javlo.context
Class GlobalContext
- java.lang.Object
-
- org.javlo.context.GlobalContext
-
- All Implemented Interfaces:
Serializable
,IPrintInfo
- Direct Known Subclasses:
TestGlobalContext
public class GlobalContext extends Object implements Serializable, IPrintInfo
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GlobalContext.FrontCacheBean
-
Field Summary
Fields Modifier and Type Field Description static String
ACCESS_DATE_FORMAT
String
GLOBAL_ERROR
static String
LICENCE_BASE
static String
LICENCE_BASE_PLUS
static String
LICENCE_CORPORATE
static String
LICENCE_FREE
static String
LICENCE_FREE_PLUS
protected static Logger
logger
create a static logger.static String
PAGE_TOKEN_PARAM
static String
POP_HOST_PARAM
static String
POP_PASSWORD_PARAM
static String
POP_PORT_PARAM
static String
POP_SSL
static String
POP_USER_PARAM
protected ConfigurationProperties
properties
Object
RELEASE_CACHE
static String
SCREENSHOT_FILE_NAME
StaticConfig
staticConfig
static String
USERS_FOLDER
-
Constructor Summary
Constructors Constructor Description GlobalContext(String contextKey)
-
Method Summary
-
-
-
Field Detail
-
GLOBAL_ERROR
public String GLOBAL_ERROR
-
PAGE_TOKEN_PARAM
public static final String PAGE_TOKEN_PARAM
- See Also:
- Constant Field Values
-
SCREENSHOT_FILE_NAME
public static final String SCREENSHOT_FILE_NAME
- See Also:
- Constant Field Values
-
POP_HOST_PARAM
public static final String POP_HOST_PARAM
- See Also:
- Constant Field Values
-
POP_PORT_PARAM
public static final String POP_PORT_PARAM
- See Also:
- Constant Field Values
-
POP_USER_PARAM
public static final String POP_USER_PARAM
- See Also:
- Constant Field Values
-
POP_PASSWORD_PARAM
public static final String POP_PASSWORD_PARAM
- See Also:
- Constant Field Values
-
POP_SSL
public static final String POP_SSL
- See Also:
- Constant Field Values
-
logger
protected static Logger logger
create a static logger.
-
LICENCE_BASE
public static final String LICENCE_BASE
- See Also:
- Constant Field Values
-
LICENCE_BASE_PLUS
public static final String LICENCE_BASE_PLUS
- See Also:
- Constant Field Values
-
LICENCE_CORPORATE
public static final String LICENCE_CORPORATE
- See Also:
- Constant Field Values
-
USERS_FOLDER
public static final String USERS_FOLDER
- See Also:
- Constant Field Values
-
properties
protected final ConfigurationProperties properties
-
staticConfig
public StaticConfig staticConfig
-
LICENCE_FREE
public static final String LICENCE_FREE
- See Also:
- Constant Field Values
-
LICENCE_FREE_PLUS
public static final String LICENCE_FREE_PLUS
- See Also:
- Constant Field Values
-
ACCESS_DATE_FORMAT
public static final String ACCESS_DATE_FORMAT
- See Also:
- Constant Field Values
-
RELEASE_CACHE
public final Object RELEASE_CACHE
-
-
Constructor Detail
-
GlobalContext
public GlobalContext(String contextKey)
-
-
Method Detail
-
main
public static void main(String[] args)
-
getInstanceId
public String getInstanceId()
-
getDefaultContext
public static GlobalContext getDefaultContext(javax.servlet.http.HttpSession session) throws IOException
- Throws:
IOException
-
getMasterContext
public static GlobalContext getMasterContext(javax.servlet.http.HttpSession session) throws IOException
- Throws:
IOException
-
getMasterContext
public GlobalContext getMasterContext(ContentContext ctx) throws IOException
- Throws:
IOException
-
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)
-
getInstance
public static GlobalContext getInstance(javax.servlet.http.HttpSession session, String contextKey) throws IOException
- Throws:
IOException
-
getInstance
public static GlobalContext getInstance(javax.servlet.ServletContext application, StaticConfig staticConfig, File configFile) throws IOException
- Throws:
IOException
-
getRealInstance
public static GlobalContext getRealInstance(javax.servlet.http.HttpSession session, String contextKey) throws IOException
- Throws:
IOException
-
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)
-
addSpecialAccessCode
public void addSpecialAccessCode(ElementaryURLHelper.Code code)
-
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)
-
finalize
protected void finalize() throws Throwable
-
getAdministrator
public String getAdministrator()
-
getAdministratorEmail
public String getAdministratorEmail()
-
getAliasOf
public String getAliasOf()
-
isAliasActive
public boolean isAliasActive()
-
setAliasActive
public void setAliasActive(boolean aliasActive)
-
setMainContext
public void setMainContext(GlobalContext mainContext)
-
getMainContextOrContext
public GlobalContext getMainContextOrContext()
-
getMainContext
public GlobalContext getMainContext()
-
getSubContexts
public List<GlobalContext> getSubContexts()
-
addSubContext
public void addSubContext(GlobalContext globalContext)
-
getAllValue
public String getAllValue()
-
hasComponent
public boolean hasComponent(String className)
-
hasComponent
public boolean hasComponent(Class clazz)
-
getContextKey
public String getContextKey()
-
getContextMainKey
public String getContextMainKey()
-
getCountry
public String getCountry()
-
getNoPopupDomainRAW
public String getNoPopupDomainRAW()
-
setNoPopupDomainRAW
public void setNoPopupDomainRAW(String domains)
-
getCountUser
public int getCountUser()
-
getCreationDate
public Date getCreationDate()
-
removeData
public void removeData(String key)
-
removeData
public void removeData(Collection<Object> keys)
-
getDataWidthKeyPrefix
public Map<String,String> getDataWidthKeyPrefix(String prefix)
get data with specified prefix- Parameters:
prefix
-- Returns:
-
getDataKeys
public Collection<Object> getDataKeys()
-
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()
-
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()
-
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)
-
getAdminUserFactory
public AdminUserFactory getAdminUserFactory(javax.servlet.http.HttpSession session) throws SecurityException, NoSuchMethodException, ClassNotFoundException, IllegalArgumentException, InstantiationException, IllegalAccessException, InvocationTargetException
-
getAdminUserFactoryClassName
public String getAdminUserFactoryClassName()
-
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()
-
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()
-
getHomePageLink
public String getHomePageLink(ContentContext ctx) throws Exception
- Throws:
Exception
-
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()
-
getPageIfExist
public MenuElement getPageIfExist(ContentContext ctx, String url, boolean useURLCreator) throws Exception
- Throws:
Exception
-
getPathPrefix
public String getPathPrefix()
-
setProxyPathPrefix
public void setProxyPathPrefix(String prefix)
set a special path prefix needed by proxy.
-
getProxyPathPrefix
public String getProxyPathPrefix()
-
getPublishDate
public Date getPublishDate() throws ParseException
- Throws:
ParseException
-
getPublishDateLabel
public String getPublishDateLabel()
-
getRank
public int getRank()
-
getRAWContentLanguages
public String getRAWContentLanguages()
-
getRAWEncodings
public String getRAWEncodings()
-
getRAWLanguages
public String getRAWLanguages()
-
getServletContext
public javax.servlet.ServletContext getServletContext()
-
getShortDateFormat
public String getShortDateFormat()
-
getStaticConfig
public StaticConfig getStaticConfig()
-
getRAWTags
public String getRAWTags()
-
setRAWTags
public void setRAWTags(String tags)
-
getTemplateData
public TemplateData getTemplateData()
-
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
-
getTimeTravelerContext
public TimeTravelerContext getTimeTravelerContext()
-
resetURLFactory
public void resetURLFactory()
-
getURLFactory
public IURLFactory getURLFactory(ContentContext ctx)
-
getURLFactoryClass
public String getURLFactoryClass()
-
getUserFactory
public IUserFactory getUserFactory(javax.servlet.http.HttpSession session) throws SecurityException, NoSuchMethodException, ClassNotFoundException, IllegalArgumentException, InstantiationException, IllegalAccessException, InvocationTargetException
-
getUserFactoryClassName
public String getUserFactoryClassName()
-
initDataFile
public Properties initDataFile()
-
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()
-
isSpacialAccessCode
public boolean isSpacialAccessCode(ElementaryURLHelper.Code code)
-
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)
-
getAllCacheName
protected Collection<String> getAllCacheName()
-
releaseAllCache
public void releaseAllCache()
-
reload
public void reload()
-
loadExternalProperties
public void loadExternalProperties(String raw) throws IOException
- Throws:
IOException
-
removeTag
public void removeTag(String tag)
-
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)
-
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
-
-
setAutoSwitchToDefaultLanguage
public void setAutoSwitchToDefaultLanguage(boolean value)
-
setAutoSwitchToFirstLanguage
public void setAutoSwitchToFirstLanguage(boolean value)
-
setChangeLicence
public void setChangeLicence(boolean changeLicence)
-
setChangeMenu
public void setChangeMenu(boolean changeMenu)
-
setContextKey
public void setContextKey(String contextKey)
-
setCountry
public void setCountry(String country)
-
setCSSInline
public void setCSSInline(boolean cssInline)
-
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)
-
setMailing
public void setMailing(boolean changeMenu)
-
setMailingReport
public void setMailingReport(String report)
-
setMailingSenders
public void setMailingSenders(String sender)
-
setMailingSubject
public void setMailingSubject(String subject)
-
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)
-
setTimeTravelerContext
public void setTimeTravelerContext(TimeTravelerContext timeContext)
-
setURLFactory
public void setURLFactory(String className) throws InstantiationException, IllegalAccessException, ClassNotFoundException
-
setUserFactoryClassName
public void setUserFactoryClassName(String userFactoryName)
-
setUserManagement
public void setUserManagement(boolean userManagement)
-
setView
public void setView(boolean view)
-
setViewBar
public void setViewBar(boolean viewBar)
-
setVirtualPaternity
public void setVirtualPaternity(boolean changeLicence)
-
setVisible
public void setVisible(boolean visible)
-
getTemplatePluginConfig
public String getTemplatePluginConfig()
-
setTemplatePlugin
public void setTemplatePlugin(Collection<String> top)
-
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)
-
writeInstanceInfo
public void writeInstanceInfo(ContentContext ctx, PrintStream out) throws Exception
- Throws:
Exception
-
writeInfo
public void writeInfo(javax.servlet.http.HttpSession session, PrintStream out)
-
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)
-
storeRedirectUrlList
public void storeRedirectUrlList()
-
getRedirectUrlMap
public Properties getRedirectUrlMap()
-
get404UrlMap
public Properties get404UrlMap()
-
resetRedirectUrlMap
public void resetRedirectUrlMap()
-
reset404UrlMap
public void reset404UrlMap()
-
add404Url
public void add404Url(ContentContext ctx, String url)
-
hide404Url
public void hide404Url(ContentContext ctx, String url)
-
delete404Url
public void delete404Url(ContentContext ctx, String url)
-
delRedirectUrl
public void delRedirectUrl(ContentContext ctx, String url)
-
convertOldURL
public MenuElement convertOldURL(ContentContext ctx, String url) throws Exception
- Throws:
Exception
-
storeUrl
public void storeUrl(ContentContext ctx, String url, String pageId) throws Exception
- Throws:
Exception
-
printInfo
public void printInfo(ContentContext ctx, PrintStream out)
- Specified by:
printInfo
in interfaceIPrintInfo
-
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()
-
getSpecialConfig
public SpecialConfigBean getSpecialConfig()
-
touch
public void touch()
-
getCount
public int getCount()
-
getLogList
public LogContainer getLogList()
-
isSiteLog
public boolean isSiteLog()
-
setSiteLog
public void setSiteLog(boolean siteLog)
-
getSiteLogFile
protected File getSiteLogFile()
-
getScreenshotFile
public File getScreenshotFile(ContentContext ctx)
-
isScreenshot
public boolean isScreenshot(ContentContext ctx)
-
getScreenshortUrl
public String getScreenshortUrl(ContentContext ctx)
-
getAllTaxonomy
public TaxonomyServiceAgregation getAllTaxonomy(ContentContext ctx) throws IOException
- Throws:
IOException
-
getTaxonomy
public TaxonomyService getTaxonomy(ContentContext ctx)
-
getLatestTicketNotificaitonTime
public Calendar getLatestTicketNotificaitonTime()
-
setLatestTicketNotificaitonTime
public void setLatestTicketNotificaitonTime(Calendar latestTicketNotificaitonTime)
-
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()
-
-