Class EditorConfigDAOImpl
java.lang.Object
org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<EditorConfigEntity,Long>
org.exoplatform.onlyoffice.jpa.dao.EditorConfigDAOImpl
- All Implemented Interfaces:
org.exoplatform.commons.api.persistence.GenericDAO<EditorConfigEntity,,Long> EditorConfigDAO
public class EditorConfigDAOImpl
extends org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<EditorConfigEntity,Long>
implements EditorConfigDAO
-
Field Summary
Fields inherited from class org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl
modelClass -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcloseUnopenedConversionConfigs(long closedTime) Closes, at the given time, the active configs built for a conversion that no editor ever opened: not open, no closed time (a closing config has one), and an empty explorer URL, which only a conversion config and its copies have.getActiveConfigByDocId(String docId) getClosedConfigBefore(long expirationTime, int limit) getConfigByDocId(String docId) getConfigByKey(String key) Methods inherited from class org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl
count, create, createAll, delete, deleteAll, deleteAll, find, findAll, getEntityManager, getHibernateDialect, isMSSQLDialect, isOrcaleDialect, update, updateAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.exoplatform.commons.api.persistence.GenericDAO
count, create, createAll, delete, deleteAll, deleteAll, find, findAll, update, updateAll
-
Constructor Details
-
EditorConfigDAOImpl
public EditorConfigDAOImpl()
-
-
Method Details
-
getConfigByKey
- Specified by:
getConfigByKeyin interfaceEditorConfigDAO
-
getConfigByDocId
- Specified by:
getConfigByDocIdin interfaceEditorConfigDAO
-
getActiveConfigByDocId
- Specified by:
getActiveConfigByDocIdin interfaceEditorConfigDAO
-
getClosedConfigBefore
- Specified by:
getClosedConfigBeforein interfaceEditorConfigDAO
-
closeUnopenedConversionConfigs
public int closeUnopenedConversionConfigs(long closedTime) Description copied from interface:EditorConfigDAOCloses, at the given time, the active configs built for a conversion that no editor ever opened: not open, no closed time (a closing config has one), and an empty explorer URL, which only a conversion config and its copies have.- Specified by:
closeUnopenedConversionConfigsin interfaceEditorConfigDAO- Parameters:
closedTime- the closed time to set- Returns:
- the number of closed configs
-