public class MetaInformationManager extends Manager
MetaInformationManager mm = jaloSession.getMetaInformationManager();
// example: store session count
Long count = (Long)mm.getProperty( "sessionCount");
mm.setProperty( "sessionCount" , new Long( count.longValue() + 1 );
| Modifier and Type | Class and Description |
|---|---|
protected static class |
MetaInformationManager.MetaInformationManagerSerializableDTO |
Manager.GenericManagerSingletonCreator, Manager.ManagerSingletonCreator| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BEAN_NAME |
static java.lang.String |
HMC_RESOURCES |
static java.lang.String |
LICENCE |
static java.lang.String |
SYSTEM_NAME |
static java.lang.String |
SYSTEM_PK |
| Constructor and Description |
|---|
MetaInformationManager() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkBeforeItemRemoval(SessionContext ctx,
Item item)
Superclass method overridden to avoid call to EJB layer
|
static MetaInformationManager |
getInstance() |
java.lang.Object |
getProperty(java.lang.String name)
The value of a global property.
|
java.util.Set |
getPropertyNames()
All global property names.
|
java.lang.Class |
getRemoteManagerClass() |
HybrisResourceBundle |
getResourceBundle(java.lang.String basename,
java.util.Locale locale)
Returns
HybrisResourceBundle instance according to the given Locale. |
protected void |
notifyItemRemoval(SessionContext ctx,
Item item)
Superclass method overridden to avoid call to EJB layer
|
java.lang.Object |
removeProperty(java.lang.String name)
Removes a global property.
|
java.lang.Object |
setProperty(java.lang.String name,
java.lang.Object value)
Sets a global property.
|
void |
setResourceBundle(java.lang.String basename,
HybrisResourceBundle bundle)
Sets a
HybrisResourceBundle instance as a global property. |
java.lang.Object |
writeReplace() |
afterItemCreation, beforeItemCreation, destroy, extractNonRequiredRemoteFromItem, extractRequiredRemoteFromItem, getAllValuesSessionContext, getAttribute, getAttributeMap, getFirstItemByAttribute, getFirstItemByAttribute, getRemote, getSession, getSingletonManagerInstance, getTenant, getTransientObject, getTransientObjectMap, init, setAttribute, setTenant, setTransientObject, wrappublic static final java.lang.String BEAN_NAME
public static final java.lang.String SYSTEM_PK
public static final java.lang.String SYSTEM_NAME
public static final java.lang.String LICENCE
public static final java.lang.String HMC_RESOURCES
public static MetaInformationManager getInstance()
public java.lang.Class getRemoteManagerClass()
getRemoteManagerClass in class Managerprotected void checkBeforeItemRemoval(SessionContext ctx, Item item) throws ConsistencyCheckException
checkBeforeItemRemoval in class Managerctx - the current session contextitem - the item which should be removedConsistencyCheckException - thrown to abort removal due to consistency errorsprotected void notifyItemRemoval(SessionContext ctx, Item item)
notifyItemRemoval in class Managerctx - the currency session contextitem - the item which is going to be removedpublic java.util.Set getPropertyNames()
public java.lang.Object setProperty(java.lang.String name,
java.lang.Object value)
name - value - null if it has not been set before.public java.lang.Object getProperty(java.lang.String name)
name - public java.lang.Object removeProperty(java.lang.String name)
name - null if it has not been set beforepublic void setResourceBundle(java.lang.String basename,
HybrisResourceBundle bundle)
HybrisResourceBundle instance as a global property.basename - a String that is part of the key which the bundle will be stored under (can be name of your application
e.g."MyWebAppplication").bundle - the HybrisResourceBundle object to be set.public HybrisResourceBundle getResourceBundle(java.lang.String basename, java.util.Locale locale)
HybrisResourceBundle instance according to the given Locale. If no bundle is
found for the specified locale, the method looks up bundles for the next lesser specialized locales ( if
Locale("de","CH") not found, lookup for Locale("de") ).basename - key the bundles are stored under.locale - a java.util.Locale object specifing the bundle.HybrisResourceBundle or null if no corresponding bundle was found.public java.lang.Object writeReplace()
throws java.io.ObjectStreamException
writeReplace in class Managerjava.io.ObjectStreamExceptionCopyright © 2018 SAP SE. All Rights Reserved.