Package de.hybris.platform.persistence
Class SystemEJB
- java.lang.Object
-
- de.hybris.platform.persistence.SystemEJB
-
public class SystemEJB extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT_ENCODING
static java.lang.String
PASSWORD_ENCODER_KEY
static java.lang.String[]
WRITE_ON_INITIALIZATION
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ItemRemote
findRemoteObjectByPK(PK pk)
ItemRemote
findRemoteObjectByPKInternal(PK pk)
java.util.Map<PK,ItemRemote>
findRemoteObjectsByPK(java.util.Collection<PK> pks, java.util.Set<PK> preloadLanguagePKs, boolean ignoreMissing)
FetchesItemRemote
instances for a given collection of PKs.EnumerationManagerEJB
getEnumerationManager()
ExtensionManagerEJB
getExtensionManager()
MetaInformationRemote
getGlobalMetaInformation()
java.util.Collection<java.lang.String>
getInstalledEncodings()
Deprecated.since ages - Use Registry.getCurrentTenant().getJaloConnection().getPasswordEncoderFactory().getSupportedEncodings() insteadstatic SystemEJB
getInstance()
LinkManagerEJB
getLinkManager()
MetaInformationManagerEJB
getMetaInformationManager()
protected java.util.Set<PK>
getMissingPKs(java.util.Set<PK> required, java.util.Collection<ItemRemote> items)
PasswordEncoder
getPasswordEncoder(java.lang.String encoding)
Deprecated.since ages - Use Registry.getCurrentTenant().getJaloConnection().getPasswordEncoder( String ) insteadprotected java.util.Map<java.lang.String,PasswordEncoder>
getPasswordEncoders()
Deprecated.since ages - Use Registry.getCurrentTenant().getJaloConnection().getPasswordEncoderFactroy().getEncoders() insteadTypeManagerEJB
getTypeManager()
static java.util.Map<java.lang.Integer,java.util.Set<PK>>
groupByTypeCode(java.util.Collection<PK> pks)
boolean
isLocked()
void
setInitializedFlag(boolean initialized)
void
setLocked(boolean locked)
-
-
-
Field Detail
-
DEFAULT_ENCODING
public static final java.lang.String DEFAULT_ENCODING
- See Also:
- Constant Field Values
-
PASSWORD_ENCODER_KEY
public static final java.lang.String PASSWORD_ENCODER_KEY
- See Also:
- Constant Field Values
-
WRITE_ON_INITIALIZATION
public static final java.lang.String[] WRITE_ON_INITIALIZATION
-
-
Constructor Detail
-
SystemEJB
public SystemEJB(Tenant tenant)
-
-
Method Detail
-
getInstance
public static SystemEJB getInstance()
-
findRemoteObjectByPK
public ItemRemote findRemoteObjectByPK(PK pk) throws EJBItemNotFoundException, EJBInvalidParameterException
-
findRemoteObjectByPKInternal
public ItemRemote findRemoteObjectByPKInternal(PK pk) throws YObjectNotFoundException, EJBInvalidParameterException
-
findRemoteObjectsByPK
public java.util.Map<PK,ItemRemote> findRemoteObjectsByPK(java.util.Collection<PK> pks, java.util.Set<PK> preloadLanguagePKs, boolean ignoreMissing) throws EJBItemNotFoundException, EJBInvalidParameterException
FetchesItemRemote
instances for a given collection of PKs.- Parameters:
pks
-- Throws:
EJBItemNotFoundException
EJBInvalidParameterException
-
getMissingPKs
protected java.util.Set<PK> getMissingPKs(java.util.Set<PK> required, java.util.Collection<ItemRemote> items)
-
groupByTypeCode
public static java.util.Map<java.lang.Integer,java.util.Set<PK>> groupByTypeCode(java.util.Collection<PK> pks)
-
getInstalledEncodings
@Deprecated public java.util.Collection<java.lang.String> getInstalledEncodings()
Deprecated.since ages - Use Registry.getCurrentTenant().getJaloConnection().getPasswordEncoderFactory().getSupportedEncodings() instead- Returns:
- the supported password encoding
-
getPasswordEncoder
@Deprecated public PasswordEncoder getPasswordEncoder(java.lang.String encoding) throws EJBPasswordEncoderNotFoundException
Deprecated.since ages - Use Registry.getCurrentTenant().getJaloConnection().getPasswordEncoder( String ) instead- Parameters:
encoding
- password encoding- Returns:
- the password encoder for the specified encoding
- Throws:
EJBPasswordEncoderNotFoundException
-
getPasswordEncoders
@Deprecated protected java.util.Map<java.lang.String,PasswordEncoder> getPasswordEncoders()
Deprecated.since ages - Use Registry.getCurrentTenant().getJaloConnection().getPasswordEncoderFactroy().getEncoders() instead- Returns:
- the configured password encoders
-
getExtensionManager
public ExtensionManagerEJB getExtensionManager()
-
getMetaInformationManager
public MetaInformationManagerEJB getMetaInformationManager()
-
getLinkManager
public LinkManagerEJB getLinkManager()
-
getTypeManager
public TypeManagerEJB getTypeManager()
-
getEnumerationManager
public EnumerationManagerEJB getEnumerationManager()
-
isLocked
public boolean isLocked()
-
setLocked
public void setLocked(boolean locked)
-
setInitializedFlag
public void setInitializedFlag(boolean initialized)
-
getGlobalMetaInformation
public MetaInformationRemote getGlobalMetaInformation() throws java.sql.SQLException, javax.naming.NamingException, YFinderException
- Throws:
java.sql.SQLException
javax.naming.NamingException
YFinderException
-
-