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.StringDEFAULT_ENCODINGstatic java.lang.StringPASSWORD_ENCODER_KEYstatic java.lang.String[]WRITE_ON_INITIALIZATION
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ItemRemotefindRemoteObjectByPK(PK pk)ItemRemotefindRemoteObjectByPKInternal(PK pk)java.util.Map<PK,ItemRemote>findRemoteObjectsByPK(java.util.Collection<PK> pks, java.util.Set<PK> preloadLanguagePKs, boolean ignoreMissing)FetchesItemRemoteinstances for a given collection of PKs.EnumerationManagerEJBgetEnumerationManager()ExtensionManagerEJBgetExtensionManager()MetaInformationRemotegetGlobalMetaInformation()java.util.Collection<java.lang.String>getInstalledEncodings()Deprecated, for removal: This API element is subject to removal in a future version.since ages - Use Registry.getCurrentTenant().getJaloConnection().getPasswordEncoderFactory().getSupportedEncodings() insteadstatic SystemEJBgetInstance()LinkManagerEJBgetLinkManager()MetaInformationManagerEJBgetMetaInformationManager()protected java.util.Set<PK>getMissingPKs(java.util.Set<PK> required, java.util.Collection<ItemRemote> items)PasswordEncodergetPasswordEncoder(java.lang.String encoding)Deprecated, for removal: This API element is subject to removal in a future version.since ages - Use Registry.getCurrentTenant().getJaloConnection().getPasswordEncoder( String ) insteadprotected java.util.Map<java.lang.String,PasswordEncoder>getPasswordEncoders()Deprecated, for removal: This API element is subject to removal in a future version.since ages - Use Registry.getCurrentTenant().getJaloConnection().getPasswordEncoderFactroy().getEncoders() insteadTypeManagerEJBgetTypeManager()static java.util.Map<java.lang.Integer,java.util.Set<PK>>groupByTypeCode(java.util.Collection<PK> pks)booleanisLocked()voidsetInitializedFlag(boolean initialized)voidsetLocked(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
FetchesItemRemoteinstances for a given collection of PKs.- Parameters:
pks-- Throws:
EJBItemNotFoundExceptionEJBInvalidParameterException
-
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(since="ages", forRemoval=true) public java.util.Collection<java.lang.String> getInstalledEncodings()Deprecated, for removal: This API element is subject to removal in a future version.since ages - Use Registry.getCurrentTenant().getJaloConnection().getPasswordEncoderFactory().getSupportedEncodings() instead- Returns:
- the supported password encoding
-
getPasswordEncoder
@Deprecated(since="ages", forRemoval=true) public PasswordEncoder getPasswordEncoder(java.lang.String encoding) throws EJBPasswordEncoderNotFoundExceptionDeprecated, for removal: This API element is subject to removal in a future version.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(since="ages", forRemoval=true) protected java.util.Map<java.lang.String,PasswordEncoder> getPasswordEncoders()Deprecated, for removal: This API element is subject to removal in a future version.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.SQLExceptionjavax.naming.NamingExceptionYFinderException
-
-