palio
Class Instance

java.lang.Object
  extended by palio.Instance

public final class Instance
extends java.lang.Object

Author:
Krzysztof Synowiec

Field Summary
static java.lang.String DESIGNER_OMEA
           
static int FEATURE
           
static int FEATURE_CODE
           
static java.lang.String HTML
           
static int MEDIA
           
static int MIME_TYPE
           
static int OBJECT
           
static int PAGE
           
static int PRIV
           
static int PRIV_NAME
           
 SerialExecutor QueueSessions
           
static int REGION
           
static int REGION_NAME
           
static int ROLE
           
static int ROLE_NAME
           
static java.lang.String SCHEDULER
           
static int SESSION
           
static int TREE_TYPE
           
static int USER
           
static int USER_NAME
           
static java.util.Map<java.lang.String,UserMessages> userInformation
           
 
Method Summary
 void addClusterServer(java.lang.String host, int port)
           
 void addConnector(java.lang.String name, Connector connector)
           
 void addCookieSession(javax.servlet.http.HttpServletResponse response, PSession session)
           
 void addInstanceCookie(javax.servlet.http.HttpServletResponse response, java.lang.String cookieName, java.lang.String cookieValue)
          Adds instance related cookie to given request.
 void addInstanceListener(InstanceListener listener)
           
 void addToCache(int elemType, java.lang.Object elem, java.lang.Long ID)
           
 void addToCache(int elemType, java.lang.Object elem, java.lang.Long ID, java.lang.String name)
           
 void addToCache(int elemType, java.lang.Object elem, java.lang.String name)
           
 void addUniqueID(java.lang.Long uid)
           
 void asynchronicRun(java.lang.String title, java.lang.Runnable target)
           
 boolean cacheCode()
           
 boolean cacheFeature()
           
 boolean cacheMedia()
           
 boolean cacheRole()
           
 boolean cacheUser()
           
 void checkSessions()
           
 boolean checkUniqueID(java.lang.Long uid)
           
 void checkUsers()
           
 void clear()
           
 void clear(int elemType, java.util.Collection<java.lang.Long> IDs)
           
 void clear(int elemType, java.lang.Long ID)
           
 void clear(int elemType, java.lang.String name)
           
 void clearPFeatures()
           
 void clearPrivsToRolesHierarchy()
           
 void clearThreadResources()
           
 void close()
           
 java.util.LinkedList<PSession> getActiveSessions()
           
 java.lang.String getAdminPassword(java.lang.String login)
           
 PFeature getCachedFeature(java.lang.Long ID)
           
 PPage getCachedPage(java.lang.Long ID)
           
 PRole getCachedRole(java.lang.Long ID)
           
 PSession getCachedSession(java.lang.Long ID)
           
 PUser getCachedUser(java.lang.Long userID)
           
 int getCacheSize(int elemType)
           
 Cluster getCluster()
           
 int getCompatible()
           
 java.lang.String getConfig(java.lang.String property)
           
 Connector getConnector(java.lang.String name)
           
 java.util.Map<java.lang.String,Connector> getConnectors()
           
 java.lang.String getCookieName()
           
 java.lang.String getCookieSession(java.lang.Object sessionID)
           
 java.lang.String getCookieSessionID()
           
 java.lang.String getCookieSessionKey()
           
 java.lang.String getCurrencyDecimal()
           
 int getCurrencyScale()
           
 java.lang.String getCurrencyThousand()
           
static Current getCurrent()
           
 int getCurrentClients()
           
 int getCurrentSessions()
           
 java.lang.String getDatabaseVersion()
           
 SQLConnectable getDataConnector()
           
 java.text.DateFormat getDateFormat()
           
 java.lang.String getDefaultPageCode()
           
 java.lang.Long getDefaultPageID()
           
 ElementByCodeCache getElementByCodeCache()
           
 PFeature getFeature(java.lang.Long ID)
           
 PFeature getFeature(java.lang.String code)
           
 java.util.List<java.lang.Long> getFeatureHierarchy(java.lang.Long featureID)
           
 jpalio.features.FeatureManager getFeatureManager()
           
 GroovyEngine getGroovyEngine()
           
 java.lang.String getHTTPHeadersQuery()
           
 java.lang.String getInstanceCookie(javax.servlet.http.HttpServletRequest request, java.lang.String cookieName)
          Gets a value of instance related cookie
 InstanceType getInstanceType()
           
 PalioListener getListener(java.lang.String name)
           
 java.util.Set<java.lang.String> getListenerNames()
           
 java.util.TreeMap<java.lang.String,PalioListener> getListeners()
           
 java.util.Locale getLocale()
           
 org.apache.log4j.Logger getLogger(java.lang.String name)
           
 int getMaxClients()
           
 int getMaxSessions()
           
 PMedia getMedia(java.lang.Long ID)
           
 java.security.MessageDigest getMessageDigest()
          Returns new instance of MessageDigest object.
 PMimeType getMimeType(java.lang.Long ID)
           
 Module getModule(java.lang.String name)
           
<C extends Module>
C
getModule(java.lang.String name, java.lang.Class<C> clazz)
           
 ModuleManager getModuleManager()
           
 java.lang.String getName()
           
 PObject getObject(java.lang.Long ID)
           
 PPage getPage(java.lang.Long ID)
           
 PalioConnectable getPalioConnector()
           
 PBuffer getPBuffer()
           
 java.util.Collection getPPrivs()
           
 PPriv getPriv(java.lang.Long ID)
           
 PPriv getPriv(java.lang.String name)
           
 java.util.List<java.lang.Long> getPrivRolesHierarchy(java.lang.Long privID)
           
 java.util.Collection getPUsers()
           
 PRegion getRegion(java.lang.Long ID)
           
 PRegion getRegion(java.lang.String name)
           
 java.util.Map<java.lang.String,java.lang.String> getRequestHeaders()
          Zwraca tylko nazwy nagłówków zapisanych w instance config
 PRole getRole(java.lang.Long ID)
           
 PRole getRole(java.lang.String name)
           
 java.util.List<java.lang.Long> getRoleHierarchy(java.lang.Long roleID)
           
 ScriptGenerationConfiguration getScriptGenerationConfiguration()
          ScriptGenerationConfiguration should be fulfilled before switching instance to DATABASE state.
 PSession getSession(java.lang.Long ID)
           
 PSession getSession(java.lang.Long ID, java.lang.String sessionKey)
           
 java.lang.Long getSessionMaxDuration()
           
 long getSessionMaxDurationInMillis()
           
 java.lang.Long getSessionTimeout()
           
 long getSessionTimeoutInMillis()
           
 java.lang.String getSID()
           
<T> T
getSingletonInstance(java.lang.Class<T> singletonClass)
          Returns an Instance singleton object for given class.
 InstanceLifeCycleState getState()
           
 java.util.HashMap<java.lang.String,java.lang.String> getStickyParamDefaultValues()
           
 java.util.LinkedList<java.lang.String> getStickyParams()
           
 java.lang.String getStringDateFormat()
           
 java.util.TimeZone getTimeZone()
           
 PTreeType getTreeType(java.lang.Long ID)
           
 long getUniqueID()
           
 PUser getUser(java.lang.Long userID)
           
 PUser getUser(java.lang.String name)
           
 torn.omea.framework.core.OmeaContext getVersionerSource()
           
 java.util.List<WebServiceData> getWebServicesData()
           
 boolean hasWebsiteDefined(java.lang.String website)
           
 boolean includeUrlContext()
           
 void invokeListeners(InstanceEvent event)
           
 boolean isAdminUser(java.lang.String login, java.lang.String password)
           
 boolean isConnectorExist(java.lang.String name)
           
 boolean isEnabled(java.lang.String website)
           
 boolean isPageStatistic()
           
 boolean isRedirectHTML()
           
 boolean isRegistered()
          Deprecated. użyj getState() aby sprawdzić w jakim stanie jest instancja
 boolean isRestrictExceptions()
           
 boolean isSessionActivityLog()
           
 boolean isSessionCookies()
           
 boolean isSessionCookiesLongTerm()
           
 boolean isSessionStaticIP()
           
 boolean isSessionStoreRegion()
           
 boolean isSessionUrl()
           
 boolean isSessionWriteParams()
           
 boolean isShared()
           
 boolean isStateMinimumAt(InstanceLifeCycleState minimum)
           
 boolean logBadPasswords()
           
 PSession login(java.lang.String userName, java.lang.String password, java.lang.String clientIP, java.util.Map<java.lang.String,java.lang.String> headers, PSession session)
           
 PSession login(java.lang.String userName, java.lang.String password, java.lang.String clientIP, java.util.Map<java.lang.String,java.lang.String> headers, PSession session, java.lang.Long region)
           
 java.lang.String mediaHost()
           
 int mediaSecure()
           
 void preLoadCode()
           
 void preLoadMedia()
           
 void preLoadSessions()
           
 void putSessionFromPreLoad(java.lang.Object[] row, java.util.Map<java.lang.String,java.lang.String> headers, java.util.HashMap<java.lang.String,java.lang.Object> params)
           
 void rebuildPrivsToRolesHierarchy()
           
 void registerAdmin(java.lang.String login, java.lang.String password)
           
 void registerVersionSource(torn.omea.framework.core.OmeaContext source)
           
 void releaseCapacity()
           
 void removeConnector(java.lang.String name)
           
 void removeCookieSession(javax.servlet.http.HttpServletResponse response, javax.servlet.http.Cookie[] cookies, java.lang.String cookieSessionName)
           
 void removeCookieSession(javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request, java.lang.Long sessionID)
           
 java.lang.String removeInstanceCookie(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String cookieName)
          Removes instance related cookie and returns its current value
 void removeInstanceListener(InstanceListener listener)
           
 void removeUniqueID(java.lang.Long uid)
           
 void reserveCapacity()
           
 java.lang.String runHost()
           
 int runSecure()
           
 void setConfig(java.lang.String property, java.lang.String value)
           
static void setCurrent(Current current)
           
 void setDefaultPageID(java.lang.Long defaultPage)
           
 void setListener(java.lang.String name, java.util.Properties params)
           
 void setupCluster(int port, java.lang.String password)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HTML

public static final java.lang.String HTML
See Also:
Constant Field Values

SCHEDULER

public static final java.lang.String SCHEDULER
See Also:
Constant Field Values

DESIGNER_OMEA

public static final java.lang.String DESIGNER_OMEA
See Also:
Constant Field Values

userInformation

public static final java.util.Map<java.lang.String,UserMessages> userInformation

PAGE

public static final int PAGE
See Also:
Constant Field Values

OBJECT

public static final int OBJECT
See Also:
Constant Field Values

MEDIA

public static final int MEDIA
See Also:
Constant Field Values

MIME_TYPE

public static final int MIME_TYPE
See Also:
Constant Field Values

ROLE

public static final int ROLE
See Also:
Constant Field Values

ROLE_NAME

public static final int ROLE_NAME
See Also:
Constant Field Values

PRIV

public static final int PRIV
See Also:
Constant Field Values

PRIV_NAME

public static final int PRIV_NAME
See Also:
Constant Field Values

REGION

public static final int REGION
See Also:
Constant Field Values

REGION_NAME

public static final int REGION_NAME
See Also:
Constant Field Values

USER

public static final int USER
See Also:
Constant Field Values

USER_NAME

public static final int USER_NAME
See Also:
Constant Field Values

SESSION

public static final int SESSION
See Also:
Constant Field Values

TREE_TYPE

public static final int TREE_TYPE
See Also:
Constant Field Values

FEATURE

public static final int FEATURE
See Also:
Constant Field Values

FEATURE_CODE

public static final int FEATURE_CODE
See Also:
Constant Field Values

QueueSessions

public final SerialExecutor QueueSessions
Method Detail

getCurrent

public static Current getCurrent()

setCurrent

public static void setCurrent(Current current)

isRestrictExceptions

public boolean isRestrictExceptions()

getScriptGenerationConfiguration

public ScriptGenerationConfiguration getScriptGenerationConfiguration()
ScriptGenerationConfiguration should be fulfilled before switching instance to DATABASE state.

Returns:
configuration used by script generators, you can select which tables should be skipped during autoupdate process

isRegistered

@Deprecated
public boolean isRegistered()
Deprecated. użyj getState() aby sprawdzić w jakim stanie jest instancja

Metoda mówi, czy instancja została już prawidłowo (bezbłędnie) zainicjowana.

Returns:
true jeśli instancja uruchomiła się prawidłowo (bezbłędnie) lub false jeżeli instancja wciąż jest uruchamiana lub wystąpiły błędy w trakcie inicjalizacji.

getState

public InstanceLifeCycleState getState()

isStateMinimumAt

public boolean isStateMinimumAt(InstanceLifeCycleState minimum)

getInstanceType

public InstanceType getInstanceType()

getElementByCodeCache

public ElementByCodeCache getElementByCodeCache()

getName

public final java.lang.String getName()

getSID

public final java.lang.String getSID()

getMessageDigest

public final java.security.MessageDigest getMessageDigest()
Returns new instance of MessageDigest object. A digest alghoritm from this Instance configuration is used. If an algorithm is not specified, MD5 is used. If NoSuchAlgorithmException is thrown while getting an instance of message digest, method returns null.


getLocale

public final java.util.Locale getLocale()

getTimeZone

public final java.util.TimeZone getTimeZone()

getStringDateFormat

public final java.lang.String getStringDateFormat()

getDateFormat

public final java.text.DateFormat getDateFormat()

getCurrencyThousand

public final java.lang.String getCurrencyThousand()

getCurrencyDecimal

public final java.lang.String getCurrencyDecimal()

getCurrencyScale

public final int getCurrencyScale()

isSessionCookies

public final boolean isSessionCookies()

isSessionCookiesLongTerm

public final boolean isSessionCookiesLongTerm()

isSessionUrl

public final boolean isSessionUrl()

getCookieName

public final java.lang.String getCookieName()

getCookieSession

public java.lang.String getCookieSession(java.lang.Object sessionID)

addCookieSession

public void addCookieSession(javax.servlet.http.HttpServletResponse response,
                             PSession session)

removeCookieSession

public void removeCookieSession(javax.servlet.http.HttpServletResponse response,
                                javax.servlet.http.Cookie[] cookies,
                                java.lang.String cookieSessionName)

removeCookieSession

public void removeCookieSession(javax.servlet.http.HttpServletResponse response,
                                javax.servlet.http.HttpServletRequest request,
                                java.lang.Long sessionID)

addInstanceCookie

public void addInstanceCookie(javax.servlet.http.HttpServletResponse response,
                              java.lang.String cookieName,
                              java.lang.String cookieValue)
Adds instance related cookie to given request. Real cookie name is set using instance specific prefix.

Parameters:
response - Response
cookieName - Cookie name (without prefix)
cookieValue - Cookie value

getInstanceCookie

public java.lang.String getInstanceCookie(javax.servlet.http.HttpServletRequest request,
                                          java.lang.String cookieName)
Gets a value of instance related cookie

Parameters:
request - Request
cookieName - Cookie name (without prefix)

removeInstanceCookie

public java.lang.String removeInstanceCookie(javax.servlet.http.HttpServletRequest request,
                                             javax.servlet.http.HttpServletResponse response,
                                             java.lang.String cookieName)
Removes instance related cookie and returns its current value

Parameters:
request - Request
response - Response
cookieName - Cookie name (without prefix)

getCookieSessionID

public java.lang.String getCookieSessionID()

getCookieSessionKey

public java.lang.String getCookieSessionKey()

logBadPasswords

public boolean logBadPasswords()

isSessionActivityLog

public final boolean isSessionActivityLog()

isSessionWriteParams

public final boolean isSessionWriteParams()

isSessionStaticIP

public final boolean isSessionStaticIP()

getRequestHeaders

public final java.util.Map<java.lang.String,java.lang.String> getRequestHeaders()
Zwraca tylko nazwy nagłówków zapisanych w instance config


getHTTPHeadersQuery

public final java.lang.String getHTTPHeadersQuery()

getMaxClients

public int getMaxClients()

getCurrentClients

public int getCurrentClients()

getMaxSessions

public int getMaxSessions()

getCurrentSessions

public int getCurrentSessions()

getWebServicesData

public java.util.List<WebServiceData> getWebServicesData()

reserveCapacity

public void reserveCapacity()
                     throws palio.PalioException
Throws:
palio.PalioException

releaseCapacity

public void releaseCapacity()

isEnabled

public boolean isEnabled(java.lang.String website)

hasWebsiteDefined

public boolean hasWebsiteDefined(java.lang.String website)

cacheMedia

public final boolean cacheMedia()

cacheCode

public final boolean cacheCode()

cacheFeature

public final boolean cacheFeature()

cacheRole

public final boolean cacheRole()

cacheUser

public final boolean cacheUser()

runSecure

public final int runSecure()

runHost

public final java.lang.String runHost()

mediaSecure

public final int mediaSecure()

mediaHost

public final java.lang.String mediaHost()

isRedirectHTML

public boolean isRedirectHTML()

includeUrlContext

public boolean includeUrlContext()

getStickyParams

public java.util.LinkedList<java.lang.String> getStickyParams()

getStickyParamDefaultValues

public java.util.HashMap<java.lang.String,java.lang.String> getStickyParamDefaultValues()

getModule

public final Module getModule(java.lang.String name)
                       throws palio.PalioException
Throws:
palio.PalioException

getModule

public final <C extends Module> C getModule(java.lang.String name,
                                            java.lang.Class<C> clazz)
                                 throws palio.PalioException
Throws:
palio.PalioException

getListenerNames

public final java.util.Set<java.lang.String> getListenerNames()

getListener

public final PalioListener getListener(java.lang.String name)

setListener

public final void setListener(java.lang.String name,
                              java.util.Properties params)
                       throws palio.PalioException
Throws:
palio.PalioException

getModuleManager

public ModuleManager getModuleManager()

getListeners

public final java.util.TreeMap<java.lang.String,PalioListener> getListeners()

getPalioConnector

public final PalioConnectable getPalioConnector()

getDataConnector

public final SQLConnectable getDataConnector()

isConnectorExist

public final boolean isConnectorExist(java.lang.String name)

getConnector

public final Connector getConnector(java.lang.String name)

removeConnector

public final void removeConnector(java.lang.String name)

addConnector

public final void addConnector(java.lang.String name,
                               Connector connector)

getConnectors

public final java.util.Map<java.lang.String,Connector> getConnectors()

getPBuffer

public PBuffer getPBuffer()

getConfig

public final java.lang.String getConfig(java.lang.String property)

setConfig

public final void setConfig(java.lang.String property,
                            java.lang.String value)

getDefaultPageID

public final java.lang.Long getDefaultPageID()

getDefaultPageCode

public final java.lang.String getDefaultPageCode()
                                          throws palio.PalioException
Throws:
palio.PalioException

setDefaultPageID

public final void setDefaultPageID(java.lang.Long defaultPage)
                            throws palio.PalioException
Throws:
palio.PalioException

isPageStatistic

public final boolean isPageStatistic()

getPage

public final PPage getPage(java.lang.Long ID)
                    throws palio.PalioException
Throws:
palio.PalioException

getCachedPage

public final PPage getCachedPage(java.lang.Long ID)

getTreeType

public final PTreeType getTreeType(java.lang.Long ID)
                            throws palio.PalioException
Throws:
palio.PalioException

getObject

public final PObject getObject(java.lang.Long ID)
                        throws palio.PalioException
Throws:
palio.PalioException

getMedia

public final PMedia getMedia(java.lang.Long ID)
                      throws palio.PalioException
Throws:
palio.PalioException

getMimeType

public final PMimeType getMimeType(java.lang.Long ID)
                            throws palio.PalioException
Throws:
palio.PalioException

getRole

public final PRole getRole(java.lang.Long ID)
                    throws palio.PalioException
Throws:
palio.PalioException

getCachedRole

public final PRole getCachedRole(java.lang.Long ID)

getRole

public final PRole getRole(java.lang.String name)
                    throws palio.PalioException
Throws:
palio.PalioException

getFeature

public final PFeature getFeature(java.lang.Long ID)
                          throws palio.PalioException
Throws:
palio.PalioException

getCachedFeature

public final PFeature getCachedFeature(java.lang.Long ID)

getFeature

public final PFeature getFeature(java.lang.String code)
                          throws palio.PalioException
Throws:
palio.PalioException

getPriv

public final PPriv getPriv(java.lang.Long ID)
                    throws palio.PalioException
Throws:
palio.PalioException

getPriv

public final PPriv getPriv(java.lang.String name)
                    throws palio.PalioException
Throws:
palio.PalioException

getRegion

public final PRegion getRegion(java.lang.Long ID)
                        throws palio.PalioException
Throws:
palio.PalioException

getRegion

public final PRegion getRegion(java.lang.String name)
                        throws palio.PalioException
Throws:
palio.PalioException

getUser

public final PUser getUser(java.lang.Long userID)
                    throws palio.PalioException
Throws:
palio.PalioException

getCachedUser

public final PUser getCachedUser(java.lang.Long userID)

getUser

public final PUser getUser(java.lang.String name)
                    throws palio.PalioException
Throws:
palio.PalioException

getSession

public final PSession getSession(java.lang.Long ID)
                          throws palio.PalioException
Throws:
palio.PalioException

getSession

public final PSession getSession(java.lang.Long ID,
                                 java.lang.String sessionKey)

getCachedSession

public final PSession getCachedSession(java.lang.Long ID)

putSessionFromPreLoad

public final void putSessionFromPreLoad(java.lang.Object[] row,
                                        java.util.Map<java.lang.String,java.lang.String> headers,
                                        java.util.HashMap<java.lang.String,java.lang.Object> params)
                                 throws palio.PalioException
Throws:
palio.PalioException

isShared

public final boolean isShared()

addToCache

public void addToCache(int elemType,
                       java.lang.Object elem,
                       java.lang.Long ID,
                       java.lang.String name)
                throws palio.PalioException
Throws:
palio.PalioException

addToCache

public void addToCache(int elemType,
                       java.lang.Object elem,
                       java.lang.Long ID)
                throws palio.PalioException
Throws:
palio.PalioException

addToCache

public void addToCache(int elemType,
                       java.lang.Object elem,
                       java.lang.String name)
                throws palio.PalioException
Throws:
palio.PalioException

getActiveSessions

public final java.util.LinkedList<PSession> getActiveSessions()

getSessionTimeoutInMillis

public long getSessionTimeoutInMillis()

getSessionTimeout

public java.lang.Long getSessionTimeout()

getSessionMaxDuration

public java.lang.Long getSessionMaxDuration()

isSessionStoreRegion

public boolean isSessionStoreRegion()

getSessionMaxDurationInMillis

public long getSessionMaxDurationInMillis()

getCacheSize

public final int getCacheSize(int elemType)

close

public final void close()

clear

public final void clear()

clearPFeatures

public void clearPFeatures()

clearThreadResources

public void clearThreadResources()

clear

public final void clear(int elemType,
                        java.lang.String name)

clear

public final void clear(int elemType,
                        java.lang.Long ID)

clear

public final void clear(int elemType,
                        java.util.Collection<java.lang.Long> IDs)

login

public final PSession login(java.lang.String userName,
                            java.lang.String password,
                            java.lang.String clientIP,
                            java.util.Map<java.lang.String,java.lang.String> headers,
                            PSession session)
                     throws palio.PalioException
Throws:
palio.PalioException

login

public final PSession login(java.lang.String userName,
                            java.lang.String password,
                            java.lang.String clientIP,
                            java.util.Map<java.lang.String,java.lang.String> headers,
                            PSession session,
                            java.lang.Long region)
                     throws palio.PalioException
Throws:
palio.PalioException

checkSessions

public void checkSessions()
                   throws palio.PalioException
Throws:
palio.PalioException

checkUsers

public void checkUsers()

getFeatureManager

public jpalio.features.FeatureManager getFeatureManager()

asynchronicRun

public void asynchronicRun(java.lang.String title,
                           java.lang.Runnable target)

rebuildPrivsToRolesHierarchy

public void rebuildPrivsToRolesHierarchy()
                                  throws palio.PalioException
Throws:
palio.PalioException

clearPrivsToRolesHierarchy

public void clearPrivsToRolesHierarchy()

getPrivRolesHierarchy

public java.util.List<java.lang.Long> getPrivRolesHierarchy(java.lang.Long privID)
                                                     throws palio.PalioException
Throws:
palio.PalioException

getPPrivs

public java.util.Collection getPPrivs()

getPUsers

public java.util.Collection getPUsers()
                               throws palio.PalioException
Throws:
palio.PalioException

getRoleHierarchy

public java.util.List<java.lang.Long> getRoleHierarchy(java.lang.Long roleID)
                                                throws palio.PalioException
Throws:
palio.PalioException

getFeatureHierarchy

public java.util.List<java.lang.Long> getFeatureHierarchy(java.lang.Long featureID)
                                                   throws palio.PalioException
Throws:
palio.PalioException

preLoadSessions

public void preLoadSessions()

preLoadCode

public void preLoadCode()
                 throws palio.PalioException
Throws:
palio.PalioException

preLoadMedia

public void preLoadMedia()
                  throws palio.PalioException
Throws:
palio.PalioException

getDatabaseVersion

public java.lang.String getDatabaseVersion()

getCompatible

public int getCompatible()

registerAdmin

public void registerAdmin(java.lang.String login,
                          java.lang.String password)

getAdminPassword

public java.lang.String getAdminPassword(java.lang.String login)

isAdminUser

public boolean isAdminUser(java.lang.String login,
                           java.lang.String password)

registerVersionSource

public void registerVersionSource(torn.omea.framework.core.OmeaContext source)

getVersionerSource

public torn.omea.framework.core.OmeaContext getVersionerSource()

setupCluster

public void setupCluster(int port,
                         java.lang.String password)

addClusterServer

public void addClusterServer(java.lang.String host,
                             int port)

getCluster

public Cluster getCluster()
Returns:
null if cluster not configured

getLogger

public org.apache.log4j.Logger getLogger(java.lang.String name)

getGroovyEngine

public GroovyEngine getGroovyEngine()

addInstanceListener

public void addInstanceListener(InstanceListener listener)

removeInstanceListener

public void removeInstanceListener(InstanceListener listener)

invokeListeners

public void invokeListeners(InstanceEvent event)

addUniqueID

public void addUniqueID(java.lang.Long uid)

removeUniqueID

public void removeUniqueID(java.lang.Long uid)

getUniqueID

public long getUniqueID()

checkUniqueID

public boolean checkUniqueID(java.lang.Long uid)

getSingletonInstance

public <T> T getSingletonInstance(java.lang.Class<T> singletonClass)
Returns an Instance singleton object for given class. InstanceSingletonsFactory will be used to created an object of given class. This class must have a constructor with one parameter of Instance type.

Parameters:
singletonClass - Singleton class
See Also:
SingletonsManager