Class JaloConnection
- java.lang.Object
-
- de.hybris.platform.jalo.JaloConnection
-
public class JaloConnection extends java.lang.ObjectThe JaloConnection represents a connection to the system.
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.PropertiesANONYMOUS_LOGIN_PROPERTIESstatic java.lang.StringDEFAULT_SESSION_CLASSstatic java.lang.StringLOGHMCCHANGESstatic java.lang.StringSESSION_CLASS
-
Constructor Summary
Constructors Constructor Description JaloConnection()Deprecated.since agesJaloConnection(Tenant tenant)Used byAbstractTenant.doStartUp()exclusively - do not call directly!
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidcheckAndAddToSessionCache(JaloSession session)Deprecated.since 5.5.1 session management was changed and this method has no effectintcleanExpiredSessions()Deprecated.since 5.5.1 session management was changed and this method has no effectintcleanExpiredSessions(boolean force)Deprecated.since 5.5.1 session management was changed and this method always returns -1JaloSessioncreateAnonymousCustomerSession()Creates a session to the hybris platform system using a anonymous account.JaloSessioncreateAnonymousCustomerSession(java.lang.Class sessionClass)Creates a session to the hybris platform system using a anonymous account.JaloSessioncreateAnonymousCustomerSession(java.util.Map initialAttributes)JaloSessioncreateSession(User user)Creates a new session using a already known user.JaloSessioncreateSession(java.lang.String user, java.lang.String pwd)creates a session with the given username/pwdJaloSessioncreateSession(java.util.Map loginProperties)Creates a session with the given login information.JaloSessioncreateSession(java.util.Map loginProperties, java.lang.Class sessionClass)Creates a session with the given login information.JaloSessioncreateSession(java.util.Map loginProperties, java.lang.Class sessionClass, java.util.Map initialAttributes)Creates a session with the given login information.booleanequals(java.lang.Object object)Test for equality.protected java.util.CollectionfilterRemovedItems(java.lang.Object attributeValue)AccessManagergetAccessManager()Returns theAccessManagerand sets it into instance propertyaccessManager, preventing it from mutation while creating viaBeanFactory.getBean(String)or viaAccessManagerconstructor.java.util.Collection<JaloSession>getAllSessions()Deprecated.since 5.5.1 session management was changed and this method always returns empty collectionC2LManagergetC2LManager()Returns theC2LManagerand sets it into instance propertyc2lManager, preventing it from mutation while creating viaBeanFactory.getBean(String)or viaC2LManagerconstructor.protected java.util.Collection<ChangedItemAttributes>getCreatedItemAttributes(Item item, java.util.Map<java.lang.String,java.lang.Object> values)EnumerationManagergetEnumerationManager()Returns theEnumerationManagerand sets it into instance propertyenumerationManager, preventing it from mutation while creating viaBeanFactory.getBean(String)or viaEnumerationManagerconstructor.java.util.Collection<JaloSession>getExpiredSessions()Deprecated.since 5.5.1 session management was changed and this method always returns empty collectionExtensionManagergetExtensionManager()Returns theExtensionManagerand sets it into instance propertyextensionManager, preventing it from mutation while creating viaBeanFactory.getBean(String)or viaExtensionManagerconstructor.FlexibleSearchgetFlexibleSearch()Returns theFlexibleSearchand sets it into instance propertyflexibleSearch, preventing it from mutation while creating viaBeanFactory.getBean(String)or viaFlexibleSearchconstructor.static JaloConnectiongetInstance()java.util.List<JaloSessionListener>getJaloSessionListeners()java.util.Collection<JaloSessionListener>getJaloSessionListenersIncludingManagers()LinkManagergetLinkManager()Returns theLinkManagerand sets it into instance propertylinkManager, preventing it from mutation while creating viaBeanFactory.getBean(String)or viaLinkManagerconstructor.java.util.List<Manager>getManagers()MediaManagergetMediaManager()Returns theMediaManagerand sets it into instance propertymediaManager, preventing it from mutation while creating viaBeanFactory.getBean(String)or viaMediaManagerconstructor.MetaInformationManagergetMetaInformationManager()Returns theMetaInformationManagerand sets it into instance propertymetaInformationManager, preventing it from mutation while creating viaBeanFactory.getBean(String)or viaMetaInformationManagerconstructor.protected java.util.Collection<ChangedItemAttributes>getModifiedItemAttributes(Item item, java.util.Map<java.lang.String,java.lang.Object> previousValues, java.util.Map<java.lang.String,java.lang.Object> newValues)NumberSeriesManagergetNumberSeriesManager()Returns theNumberSeriesManagerand sets it into instance propertynumberSeriesManager, preventing it from mutation while creating viaBeanFactory.getBean(String)or viaNumberSeriesManagerconstructor.OrderManagergetOrderManager()Returns theOrderManagerand sets it into instance propertyorderManager, preventing it from mutation while creating viaBeanFactory.getBean(String)or viaOrderManagerconstructor.PasswordEncodergetPasswordEncoder(java.lang.String encoding)PasswordEncoderFactorygetPasswordEncoderFactory()Returns thePasswordEncoderFactoryand sets it into instance propertypasswordEncoderFactory, preventing it from mutation while creating viaBeanFactory.getBean(String)or viaPasswordEncoderFactoryImplconstructor.ProductManagergetProductManager()Returns theProductManagerand sets it into instance propertyproductManager, preventing it from mutation while creating viaBeanFactory.getBean(String)or viaProductManagerconstructor.protected java.util.Collection<ChangedItemAttributes>getRemovedItemAttributes(Item item)protected java.util.Collection<SavedValues>getSavedValues(SessionContext ctx, Item item, int start, int count)JaloSessiongetSession(java.lang.String sessionID)Deprecated.since 5.5.1 session management was changed and this method always returns current session or nulljava.lang.StringgetSystemName()Returns the SystemName.TenantgetTenant()TypeManagergetTypeManager()Returns theTypeManagerand sets it into instance propertytypeManager, preventing it from mutation while creating viaBeanFactory.getBean(String)or viaTypeManagerconstructor.UserManagergetUserManager()Returns theUserManagerand sets it into instance propertyuserManager, preventing it from mutation while creating viaBeanFactory.getBean(String)or viaUserManagerconstructor.protected java.lang.ClassguessSessionClass(java.util.Map props)inthashCode()Object is singleton, so default hash code can be used.protected booleanisLoggingEnabled(Item toLog)java.lang.BooleanisLogHMCChanges(SessionContext ctx, ComposedType item)booleanisSystemInitialized()this method tells if you may open a connection.SavedValueslogItemCreation(PK itemPk, java.util.Map values)Creates a newSavedValuesmarking a item creation.SavedValueslogItemCreation(Item item, java.util.Map values)Deprecated.since ages - uselogItemCreation(PK, Map)SavedValueslogItemModification(PK itemPk, java.util.Map<java.lang.String,java.lang.Object> values, java.util.Map<java.lang.String,java.lang.Object> previousValues, boolean detectRemovedValues)Creates a newSavedValuesmarking a item modification.SavedValueslogItemModification(Item item, java.util.Map<java.lang.String,java.lang.Object> values, java.util.Map<java.lang.String,java.lang.Object> previousValues, boolean detectRemovedValues)Deprecated.since ages - uselogItemModification(PK, Map, Map, boolean)insteadSavedValueslogItemRemoval(PK itemPk, boolean saveAttributes)Creates a newSavedValuesmarking a item removal.SavedValueslogItemRemoval(Item item, boolean saveAttributes)Deprecated.since ages - uselogItemRemoval(PK, boolean)insteadvoidregisterJaloSessionListener(JaloSessionListener jaloSessionListener)register a JaloSessionListenervoidsetTenant(Tenant tenant)Deprecated.since 5.0 , You should not mutate theJaloConnection's tenant.java.lang.StringtoString()Returns a String representation of this Connection.voidunregisterJaloSessionListener(JaloSessionListener jaloSessionListener)unregister a JaloSessionListener
-
-
-
Field Detail
-
SESSION_CLASS
public static final java.lang.String SESSION_CLASS
- See Also:
- Constant Field Values
-
DEFAULT_SESSION_CLASS
public static final java.lang.String DEFAULT_SESSION_CLASS
- See Also:
- Constant Field Values
-
LOGHMCCHANGES
public static final java.lang.String LOGHMCCHANGES
-
ANONYMOUS_LOGIN_PROPERTIES
public static final java.util.Properties ANONYMOUS_LOGIN_PROPERTIES
-
-
Constructor Detail
-
JaloConnection
public JaloConnection(Tenant tenant)
Used byAbstractTenant.doStartUp()exclusively - do not call directly!
-
JaloConnection
@Deprecated public JaloConnection()
Deprecated.since agesdo not call directly
-
-
Method Detail
-
getInstance
public static JaloConnection getInstance()
-
setTenant
@Deprecated public void setTenant(Tenant tenant)
Deprecated.since 5.0 , You should not mutate theJaloConnection's tenant.do not call directly
-
getTenant
public Tenant getTenant()
-
registerJaloSessionListener
public void registerJaloSessionListener(JaloSessionListener jaloSessionListener)
register a JaloSessionListener
-
unregisterJaloSessionListener
public void unregisterJaloSessionListener(JaloSessionListener jaloSessionListener)
unregister a JaloSessionListener
-
getJaloSessionListeners
public java.util.List<JaloSessionListener> getJaloSessionListeners()
-
cleanExpiredSessions
@Deprecated public int cleanExpiredSessions()
Deprecated.since 5.5.1 session management was changed and this method has no effectcleans old expired sessions from the session cache the cleaning will only occur every 'session.timeout.checkinterval' setting- Returns:
- -1 if force was false and test did not run
-
cleanExpiredSessions
@Deprecated public int cleanExpiredSessions(boolean force)
Deprecated.since 5.5.1 session management was changed and this method always returns -1cleans old expired sessions from the session cache- Parameters:
force- if true cleanup will happen immediately. each method call of cleanExpiredSessions will go through the complete session list to identify old sessions, this can take some time. if set to false, the cleaning will only occur every 'session.timeout.checkinterval' setting- Returns:
- -1 if force was false and test did not run
-
guessSessionClass
protected java.lang.Class guessSessionClass(java.util.Map props)
-
createAnonymousCustomerSession
public JaloSession createAnonymousCustomerSession() throws JaloSecurityException
Creates a session to the hybris platform system using a anonymous account.If the system does not allow anonymous login, a JaloSecurityException is thrown.
- Returns:
- a new JaloSession object
- Throws:
JaloSecurityException- if there was a security problem creating the session (e.g. there is no anonymous user allowed to login)
-
createAnonymousCustomerSession
public JaloSession createAnonymousCustomerSession(java.util.Map initialAttributes) throws JaloSecurityException
- Throws:
JaloSecurityException
-
createAnonymousCustomerSession
public JaloSession createAnonymousCustomerSession(java.lang.Class sessionClass) throws JaloSecurityException
Creates a session to the hybris platform system using a anonymous account.If the system does not allow anonymous login, a JaloSecurityException is thrown.
- Parameters:
sessionClass- the jalo class of the new session, if nullJaloSessionwill be taken- Returns:
- a new JaloSession object
- Throws:
JaloSecurityException- if there was a security problem creating the session (e.g. there is no anonymous user allowed to login)
-
createSession
public JaloSession createSession(java.util.Map loginProperties) throws JaloSecurityException, JaloInvalidParameterException
Creates a session with the given login information.The login properties are given as a Map with the following key mappings:
user.principal: contains the principal, the Login of the user. This key is required, there is no default.user.credentials: contains the password of the user. this field is required, there is no default.nullas a password is not permitted.session.type: the 'type' of the session. Valid types are:customeroremployee. The user principal must be a user of the type provided insession.type. This key is required, there is no default.
Properties prop = new Properties(); prop.setProperty(JaloSession.LoginProperties.LOGIN, "frank"); prop.setProperty(JaloSession.LoginProperties.PASSWORD, "blurb"); prop.setProperty(JaloSession.LoginProperties.SESSION_TYPE, JaloSession.LoginProperties.SessionTypes.CUSTOMER);
if the provided login properties are wrong, a JaloSecurityException is thrown.
if keys or values are missing in the provided map, a JaloInvalidParameterException is thrown.- Parameters:
loginProperties-- Returns:
- a new JaloSession for the given user.
- Throws:
JaloInvalidParameterExceptionJaloSecurityException- See Also:
JaloSession.transfer(Map)
-
createSession
public JaloSession createSession(java.util.Map loginProperties, java.lang.Class sessionClass) throws JaloSecurityException, JaloInvalidParameterException
Creates a session with the given login information.The login properties are given as a Map with the following key mappings:
user.principal: contains the principal, the Login of the user. This key is required, there is no default.user.credentials: contains the password of the user. this field is required, there is no default.nullas a password is not permitted.session.type: the 'type' of the session. Valid types are:customeroremployee. The user principal must be a user of the type provided insession.type. This key is required, there is no default.
Properties prop = new Properties(); prop.setProperty(JaloSession.LoginProperties.LOGIN, "frank"); prop.setProperty(JaloSession.LoginProperties.PASSWORD, "blurb"); prop.setProperty(JaloSession.LoginProperties.SESSION_TYPE, JaloSession.LoginProperties.SessionTypes.CUSTOMER);
if the provided login properties are wrong, a JaloSecurityException is thrown.
if keys or values are missing in the provided map, a JaloInvalidParameterException is thrown.- Parameters:
loginProperties-sessionClass- the jalo class of the new session, if nullJaloSessionis taken- Returns:
- a new JaloSession for the given user.
- Throws:
JaloInvalidParameterException- in case login, password or session type is missingJaloSecurityException- in case of a login failure or the system is not initialized- See Also:
JaloSession.transfer(Map)
-
createSession
public JaloSession createSession(java.util.Map loginProperties, java.lang.Class sessionClass, java.util.Map initialAttributes) throws JaloSecurityException, JaloInvalidParameterException
Creates a session with the given login information.The login properties are given as a Map with the following key mappings:
user.principal: contains the principal, the Login of the user. This key is required, there is no default.user.credentials: contains the password of the user. this field is required, there is no default.nullas a password is not permitted.session.type: the 'type' of the session. Valid types are:customeroremployee. The user principal must be a user of the type provided insession.type. This key is required, there is no default.
Properties prop = new Properties(); prop.setProperty(JaloSession.LoginProperties.LOGIN, "frank"); prop.setProperty(JaloSession.LoginProperties.PASSWORD, "blurb"); prop.setProperty(JaloSession.LoginProperties.SESSION_TYPE, JaloSession.LoginProperties.SessionTypes.CUSTOMER);
if the provided login properties are wrong, a JaloSecurityException is thrown.
if keys or values are missing in the provided map, a JaloInvalidParameterException is thrown.- Parameters:
loginProperties-sessionClass- the jalo class of the new session, if nullJaloSessionis takeninitialAttributes- initial attributes for the session- Returns:
- a new JaloSession for the given user.
- Throws:
JaloInvalidParameterException- in case login, password or session type is missingJaloSecurityException- in case of a login failure or the system is not initialized- See Also:
JaloSession.transfer(Map)
-
createSession
public JaloSession createSession(java.lang.String user, java.lang.String pwd) throws JaloSecurityException
creates a session with the given username/pwd- Parameters:
user- the usernamepwd- the password- Returns:
- the JaloSession
- Throws:
JaloSecurityException- if the given combination was wrong
-
createSession
public JaloSession createSession(User user) throws JaloSecurityException
Creates a new session using a already known user. Please note that there is no password check done here!- Parameters:
user- the user to create a new session for- Returns:
- the new session
- Throws:
JaloSecurityException
-
getAllSessions
@Deprecated public java.util.Collection<JaloSession> getAllSessions()
Deprecated.since 5.5.1 session management was changed and this method always returns empty collectionreturns all session that were made using this collection from this virtual machine.Attention: It will NOT return all sessions made to the server this connection is connected to.
-
getSession
@Deprecated public JaloSession getSession(java.lang.String sessionID)
Deprecated.since 5.5.1 session management was changed and this method always returns current session or nullReturns session with the given sessionID.When advanced property "hybris.improvedsessionhandling" is set to true
JaloSessionis not added to cache on creation. Extensions that usegetSession(String)should manually add session to cache after creation usingcheckAndAddToSessionCache(JaloSession). It really means that if before mentioned property is set to true, the methodgetSession(String)will only return session, which have been manually registered.- Parameters:
sessionID- session ID of the session to be found- Returns:
- session with the given ID, or
nullif no session with such ID exists - Since:
- 2.20SP5
-
getExpiredSessions
@Deprecated public java.util.Collection<JaloSession> getExpiredSessions()
Deprecated.since 5.5.1 session management was changed and this method always returns empty collectionReturns all session that are expired and have not yet been closed.- Since:
- 2.20SP5
-
checkAndAddToSessionCache
@Deprecated public void checkAndAddToSessionCache(JaloSession session)
Deprecated.since 5.5.1 session management was changed and this method has no effectChecks ifJaloSessionpassed as parameter already exists in sessionCache. If not adds thisJaloSessionto the sessionCache. JaloSession that is not in sessionCache will never timeout. The purpose of this method is to add (or replace when already exists)JaloSessionto sessionCache. PLA-8390- Parameters:
session- jaloSession
-
getSystemName
public java.lang.String getSystemName()
Returns the SystemName.The System name is just a description of the system.
- Returns:
- the system name
-
isSystemInitialized
public boolean isSystemInitialized()
this method tells if you may open a connection.- Returns:
- true if the system was initialized correctly
-
toString
public java.lang.String toString()
Returns a String representation of this Connection.- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object object)
Test for equality.Because JaloConnection is a singleton, this will return true compared with itself, false otherwise
- Overrides:
equalsin classjava.lang.Object- Parameters:
object- the object to compare
-
hashCode
public int hashCode()
Object is singleton, so default hash code can be used.- Overrides:
hashCodein classjava.lang.Object- See Also:
equals(Object)
-
getUserManager
public UserManager getUserManager()
Returns theUserManagerand sets it into instance propertyuserManager, preventing it from mutation while creating viaBeanFactory.getBean(String)or viaUserManagerconstructor. Assures that returned instance hasn't been changed (or even set to null) in meantime - therefore access is thread safe.- Returns:
- the UserManager object
-
getProductManager
public ProductManager getProductManager()
Returns theProductManagerand sets it into instance propertyproductManager, preventing it from mutation while creating viaBeanFactory.getBean(String)or viaProductManagerconstructor. Assures that returned instance hasn't been changed (or even set to null) in meantime - therefore access is thread safe.- Returns:
- the ProductManager object
-
getNumberSeriesManager
public NumberSeriesManager getNumberSeriesManager()
Returns theNumberSeriesManagerand sets it into instance propertynumberSeriesManager, preventing it from mutation while creating viaBeanFactory.getBean(String)or viaNumberSeriesManagerconstructor. Assures that returned instance hasn't been changed (or even set to null) in meantime - therefore access is thread safe.- Returns:
- the NumberSeriesManager object
-
getFlexibleSearch
public FlexibleSearch getFlexibleSearch()
Returns theFlexibleSearchand sets it into instance propertyflexibleSearch, preventing it from mutation while creating viaBeanFactory.getBean(String)or viaFlexibleSearchconstructor. Assures that returned instance hasn't been changed (or even set to null) in meantime - therefore access is thread safe.- Returns:
- the FlexibleSearch object
-
getC2LManager
public C2LManager getC2LManager()
Returns theC2LManagerand sets it into instance propertyc2lManager, preventing it from mutation while creating viaBeanFactory.getBean(String)or viaC2LManagerconstructor. Assures that returned instance hasn't been changed (or even set to null) in meantime - therefore access is thread safe.- Returns:
- the C2LManager object
-
getMetaInformationManager
public MetaInformationManager getMetaInformationManager()
Returns theMetaInformationManagerand sets it into instance propertymetaInformationManager, preventing it from mutation while creating viaBeanFactory.getBean(String)or viaMetaInformationManagerconstructor. Assures that returned instance hasn't been changed (or even set to null) in meantime - therefore access is thread safe.- Returns:
- the MetaInformationManager object
-
getMediaManager
public MediaManager getMediaManager()
Returns theMediaManagerand sets it into instance propertymediaManager, preventing it from mutation while creating viaBeanFactory.getBean(String)or viaMediaManagerconstructor. Assures that returned instance hasn't been changed (or even set to null) in meantime - therefore access is thread safe.- Returns:
- the MediaManager object
-
getOrderManager
public OrderManager getOrderManager()
Returns theOrderManagerand sets it into instance propertyorderManager, preventing it from mutation while creating viaBeanFactory.getBean(String)or viaOrderManagerconstructor. Assures that returned instance hasn't been changed (or even set to null) in meantime - therefore access is thread safe.- Returns:
- the OrderManager object
-
getPasswordEncoder
public PasswordEncoder getPasswordEncoder(java.lang.String encoding) throws PasswordEncoderNotFoundException
- Throws:
PasswordEncoderNotFoundException
-
getPasswordEncoderFactory
public PasswordEncoderFactory getPasswordEncoderFactory()
Returns thePasswordEncoderFactoryand sets it into instance propertypasswordEncoderFactory, preventing it from mutation while creating viaBeanFactory.getBean(String)or viaPasswordEncoderFactoryImplconstructor. Assures that returned instance hasn't been changed (or even set to null) in meantime - therefore access is thread safe.
-
getLinkManager
public LinkManager getLinkManager()
Returns theLinkManagerand sets it into instance propertylinkManager, preventing it from mutation while creating viaBeanFactory.getBean(String)or viaLinkManagerconstructor. Assures that returned instance hasn't been changed (or even set to null) in meantime - therefore access is thread safe.- Returns:
- the LinkManager object
-
getExtensionManager
public ExtensionManager getExtensionManager()
Returns theExtensionManagerand sets it into instance propertyextensionManager, preventing it from mutation while creating viaBeanFactory.getBean(String)or viaExtensionManagerconstructor. Assures that returned instance hasn't been changed (or even set to null) in meantime - therefore access is thread safe.- Returns:
- the ExtensionManager object
-
getTypeManager
public TypeManager getTypeManager()
Returns theTypeManagerand sets it into instance propertytypeManager, preventing it from mutation while creating viaBeanFactory.getBean(String)or viaTypeManagerconstructor. Assures that returned instance hasn't been changed (or even set to null) in meantime - therefore access is thread safe.- Returns:
- the TypeManager object
-
getEnumerationManager
public EnumerationManager getEnumerationManager()
Returns theEnumerationManagerand sets it into instance propertyenumerationManager, preventing it from mutation while creating viaBeanFactory.getBean(String)or viaEnumerationManagerconstructor. Assures that returned instance hasn't been changed (or even set to null) in meantime - therefore access is thread safe.- Returns:
- the EnumerationManager object
-
getAccessManager
public AccessManager getAccessManager()
Returns theAccessManagerand sets it into instance propertyaccessManager, preventing it from mutation while creating viaBeanFactory.getBean(String)or viaAccessManagerconstructor. Assures that returned instance hasn't been changed (or even set to null) in meantime - therefore access is thread safe.- Returns:
- the AccessManager object
-
getJaloSessionListenersIncludingManagers
public java.util.Collection<JaloSessionListener> getJaloSessionListenersIncludingManagers()
-
getManagers
public java.util.List<Manager> getManagers()
-
logItemRemoval
public SavedValues logItemRemoval(PK itemPk, boolean saveAttributes)
Creates a newSavedValuesmarking a item removal.- Parameters:
itemPk- the removed itemsaveAttributes- TODO- Since:
- 2.20
-
logItemRemoval
@Deprecated public SavedValues logItemRemoval(Item item, boolean saveAttributes)
Deprecated.since ages - uselogItemRemoval(PK, boolean)insteadCreates a newSavedValuesmarking a item removal.- Parameters:
item- the removed itemsaveAttributes- TODO- Since:
- 2.20
-
getRemovedItemAttributes
protected java.util.Collection<ChangedItemAttributes> getRemovedItemAttributes(Item item)
-
getModifiedItemAttributes
protected java.util.Collection<ChangedItemAttributes> getModifiedItemAttributes(Item item, java.util.Map<java.lang.String,java.lang.Object> previousValues, java.util.Map<java.lang.String,java.lang.Object> newValues)
-
isLoggingEnabled
protected boolean isLoggingEnabled(Item toLog)
-
getSavedValues
protected java.util.Collection<SavedValues> getSavedValues(SessionContext ctx, Item item, int start, int count)
-
isLogHMCChanges
public java.lang.Boolean isLogHMCChanges(SessionContext ctx, ComposedType item)
-
logItemModification
public SavedValues logItemModification(PK itemPk, java.util.Map<java.lang.String,java.lang.Object> values, java.util.Map<java.lang.String,java.lang.Object> previousValues, boolean detectRemovedValues)
Creates a newSavedValuesmarking a item modification.- Parameters:
itemPk- the created itemvalues- its modified valuespreviousValues- its previous valuesdetectRemovedValues- TODO
-
logItemModification
@Deprecated public SavedValues logItemModification(Item item, java.util.Map<java.lang.String,java.lang.Object> values, java.util.Map<java.lang.String,java.lang.Object> previousValues, boolean detectRemovedValues)
Deprecated.since ages - uselogItemModification(PK, Map, Map, boolean)insteadCreates a newSavedValuesmarking a item modification.- Parameters:
item- the created itemvalues- its modified valuespreviousValues- its previous valuesdetectRemovedValues- TODO
-
filterRemovedItems
protected java.util.Collection filterRemovedItems(java.lang.Object attributeValue)
- Parameters:
attributeValue-- Returns:
- a Collection with the removed items TODO: correct?
- Since:
- 2.20
-
logItemCreation
@Deprecated public SavedValues logItemCreation(Item item, java.util.Map values)
Deprecated.since ages - uselogItemCreation(PK, Map)Creates a newSavedValuesmarking a item creation.- Parameters:
item- the created itemvalues- its creation values
-
logItemCreation
public SavedValues logItemCreation(PK itemPk, java.util.Map values)
Creates a newSavedValuesmarking a item creation.- Parameters:
itemPk- the created itemPKvalues- its creation values
-
getCreatedItemAttributes
protected java.util.Collection<ChangedItemAttributes> getCreatedItemAttributes(Item item, java.util.Map<java.lang.String,java.lang.Object> values)
-
-