public class ServicelayerManager extends GeneratedServicelayerManager implements JaloSessionListener
Extension.RestrictedLanguagesProvider, Extension.RightsProviderManager.GenericManagerSingletonCreator, Manager.ManagerSingletonCreator| Modifier and Type | Field and Description |
|---|---|
protected static OneToManyHandler<SavedValues> |
ITEMSAVEDVALUESRELATIONSAVEDVALUESHANDLER
for hmc legacy
OneToManyHandler for handling 1:n SAVEDVALUES's relation attributes from 'many' side. |
DEFAULT_INITIAL_ATTRIBUTES| Constructor and Description |
|---|
ServicelayerManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterItemCreation(SessionContext ctx,
ComposedType type,
Item createdItem,
Item.ItemAttributeMap attributes)
This method will be called after an item was created.
|
void |
afterSessionAttributeChange(JaloSession session,
String attributeName,
Object value)
Notify if the extension manager if the session attributes was changed
|
void |
afterSessionCreation(JaloSession session)
Notifies the extension manager if a session was just created.
|
void |
afterSessionUserChange(JaloSession session,
User previous)
Notifies the extension manager if the current session user was changed
|
void |
beforeSessionClose(JaloSession session)
Notifies the extension manager if a session will be closed.
|
void |
createEssentialData(Map<String,String> params,
JspContext jspc) |
Set<Language> |
getAllLanguages()
Returns all existing Language objects for the given JaloSession.
Note: This set will be cached and rebuild per request. |
Set<Language> |
getAllReadableLanguages()
Returns a Set containing all 'readable languages' for the current user as configured in its user profile.
|
Set<Language> |
getAllWritableLanguages()
Returns a Set containing all 'writable languages' for the current user as configured in its user profile.
|
static ServicelayerManager |
getInstance() |
String |
getName() |
UserProfile |
getOrCreateUserProfile()
Gets the user profile of the current user.
|
Set<SavedValues> |
getSavedValues(Item item)
Getter of the
Item.savedValues attribute. |
<T extends HybrisEnumValue> |
getServiceLayerEnumerationValue(String enumerationCode,
String valueCode) |
List<String> |
getSessionArtNamesFilter() |
UserProfile |
getUserprofile(SessionContext ctx,
User item)
Generated method - Getter of the
User.userprofile attribute. |
UserProfile |
getUserprofile(User item)
Generated method - Getter of the
User.userprofile attribute. |
void |
init()
called once for each tenant, so this method fits best to perform some initialization stuff
|
protected boolean |
isEventActiveAttribute(String attributeName) |
protected void |
notifyAttributesChanged() |
void |
notifyClusterAboutTenantInitialization(Tenant tenant) |
void |
notifyInitializationEnd(Map<String,String> params,
JspContext ctx) |
void |
notifyInitializationStart(Map<String,String> params,
JspContext ctx) |
protected void |
notifyItemRemoval(SessionContext ctx,
Item item)
TODO improve API doc Is called just before a item is being removed.
|
void |
notifyTenantRestart(Tenant tenant) |
void |
publishEvent(AbstractEvent event) |
void |
setUserprofile(SessionContext ctx,
User item,
UserProfile value)
Generated method - Setter of the
User.userprofile attribute. |
void |
setUserprofile(User item,
UserProfile value)
Generated method - Setter of the
User.userprofile attribute. |
createAbstractContactInfo, createAbstractContactInfo, createAddress, createAddress, createAdvancePaymentInfo, createAdvancePaymentInfo, createAtomicType, createAtomicType, createAttributeDescriptor, createAttributeDescriptor, createBruteForceLoginAttempts, createBruteForceLoginAttempts, createBruteForceLoginDisabledAudit, createBruteForceLoginDisabledAudit, createCart, createCart, createCartEntry, createCartEntry, createCollectionType, createCollectionType, createComposedType, createComposedType, createConfigAttributeDescriptor, createConfigAttributeDescriptor, createConfigProxyItem, createConfigProxyItem, createConfigProxyMetaType, createConfigProxyMetaType, createCountry, createCountry, createCreditCardPaymentInfo, createCreditCardPaymentInfo, createCurrency, createCurrency, createCustomer, createCustomer, createDebitPaymentInfo, createDebitPaymentInfo, createDeliveryMode, createDeliveryMode, createDerivedMedia, createDerivedMedia, createDiscount, createDiscount, createEmployee, createEmployee, createEnumerationMetaType, createEnumerationMetaType, createEnumerationValue, createEnumerationValue, createExpressionAttributeDescriptor, createExpressionAttributeDescriptor, createGenericItem, createGenericItem, createGenericTestItem, createGenericTestItem, createIndexTestItem, createIndexTestItem, createInMemoryCart, createInMemoryCart, createInMemoryCartEntry, createInMemoryCartEntry, createInvoicePaymentInfo, createInvoicePaymentInfo, createLanguage, createLanguage, createLink, createLink, createMapType, createMapType, createMedia, createMedia, createMediaContainer, createMediaContainer, createMediaContext, createMediaContext, createMediaFolder, createMediaFolder, createMediaFormat, createMediaFormat, createMediaFormatMapping, createMediaFormatMapping, createOrder, createOrder, createOrderEntry, createOrderEntry, createPaymentInfo, createPaymentInfo, createPaymentMode, createPaymentMode, createPhoneContactInfo, createPhoneContactInfo, createProduct, createProduct, createProductMediaLink, createProductMediaLink, createQuote, createQuote, createQuoteEntry, createQuoteEntry, createRegion, createRegion, createRelationDescriptor, createRelationDescriptor, createRelationMetaType, createRelationMetaType, createSavedQuery, createSavedQuery, createSavedValueEntry, createSavedValueEntry, createSavedValues, createSavedValues, createSearchRestriction, createSearchRestriction, createStoredHttpSession, createStoredHttpSession, createSystemSetupAudit, createSystemSetupAudit, createTax, createTax, createTestEmployee, createTestEmployee, createTestItem, createTestItem, createTestItemType2, createTestItemType2, createTestItemType3, createTestItemType3, createTestUserGroup, createTestUserGroup, createTitle, createTitle, createUnit, createUnit, createUser, createUser, createUserGroup, createUserGroup, createUserPasswordChangeAudit, createUserPasswordChangeAudit, createUserProfile, createUserProfile, createUserRight, createUserRight, createViewAttributeDescriptor, createViewAttributeDescriptor, createViewType, createViewType, getDefaultAttributeModescheckBeforeItemRemoval, createProjectData, createSampleData, getCreatorDescription, getCreatorName, getCreatorParameterDefault, getCreatorParameterNames, getCreatorParameterPossibleValues, getRemote, isCreatorDisabled, onFirstSessionCreation, writeReplacebeforeItemCreation, destroy, getAllValuesSessionContext, getAttribute, getAttributeMap, getFirstItemByAttribute, getFirstItemByAttribute, getRemoteManagerClass, getSession, getSingletonManagerInstance, getTenant, getTransientObject, getTransientObjectMap, setAttribute, setTenant, setTransientObject, unwrap, unwrap, wrapprotected static final OneToManyHandler<SavedValues> ITEMSAVEDVALUESRELATIONSAVEDVALUESHANDLER
OneToManyHandler for handling 1:n SAVEDVALUES's relation attributes from 'many' side.public void init()
Managerpublic String getName()
getName in class GeneratedServicelayerManagerpublic static ServicelayerManager getInstance()
protected void notifyAttributesChanged()
protected void notifyItemRemoval(SessionContext ctx, Item item)
ManagerManager.checkBeforeItemRemoval(SessionContext, Item) instead.
This method does nothing and may be overridden.
notifyItemRemoval in class Extensionctx - the currency session contextitem - the item which is going to be removedpublic void afterItemCreation(SessionContext ctx, ComposedType type, Item createdItem, Item.ItemAttributeMap attributes) throws JaloBusinessException
ManagerafterItemCreation in class Managerctx - the currency session contexttype - the type of the item which will be createdcreatedItem - the created itemJaloBusinessException
This method does nothing and may be overridden.
CAUTION: This method will be called inside a transaction !!!
public void createEssentialData(Map<String,String> params, JspContext jspc)
createEssentialData in class Extensionpublic void afterSessionCreation(JaloSession session)
JaloSessionListenerafterSessionCreation in interface JaloSessionListenersession - new sessionJaloSession.createInstance(java.util.Map , Class )public void afterSessionUserChange(JaloSession session, User previous)
JaloSessionListenerafterSessionUserChange in interface JaloSessionListenersession - current sessionprevious - previous userJaloSession.setUser(User )public void afterSessionAttributeChange(JaloSession session, String attributeName, Object value)
JaloSessionListenerafterSessionAttributeChange in interface JaloSessionListenersession - current sessionattributeName - name of changed attributevalue - new valueprotected boolean isEventActiveAttribute(String attributeName)
public void beforeSessionClose(JaloSession session)
JaloSessionListenerbeforeSessionClose in interface JaloSessionListenersession - current sessionJaloSession.close()public void notifyTenantRestart(Tenant tenant)
public void notifyInitializationEnd(Map<String,String> params, JspContext ctx) throws Exception
notifyInitializationEnd in class ExtensionExceptionpublic void notifyInitializationStart(Map<String,String> params, JspContext ctx) throws Exception
notifyInitializationStart in class ExtensionExceptionpublic List<String> getSessionArtNamesFilter()
public Set<SavedValues> getSavedValues(Item item)
Item.savedValues attribute.public UserProfile getOrCreateUserProfile()
public Set<Language> getAllWritableLanguages()
public Set<Language> getAllReadableLanguages()
public Set<Language> getAllLanguages()
public UserProfile getUserprofile(User item)
User.userprofile attribute.public UserProfile getUserprofile(SessionContext ctx, User item)
User.userprofile attribute.public void setUserprofile(SessionContext ctx, User item, UserProfile value)
User.userprofile attribute.value - the userprofilepublic void setUserprofile(User item, UserProfile value)
User.userprofile attribute.value - the userprofilepublic void notifyClusterAboutTenantInitialization(Tenant tenant)
public void publishEvent(AbstractEvent event)
public <T extends HybrisEnumValue> T getServiceLayerEnumerationValue(String enumerationCode, String valueCode)
Copyright © 2017 SAP SE. All Rights Reserved.