Package de.xima.fc.dao.impl
Class LicenseFileDao
- java.lang.Object
-
- de.xima.cmn.dao.AbstractDao<T,Long,IEntityContext>
-
- de.xima.fc.dao.impl.GenericDao<LicenseFile>
-
- de.xima.fc.dao.impl.LicenseFileDao
-
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IAbstractDao<LicenseFile,Long,IEntityContext>
,IGenericDao<LicenseFile>
,ILicenseFileDao
public class LicenseFileDao extends GenericDao<LicenseFile> implements ILicenseFileDao
-
-
Constructor Summary
Constructors Constructor Description LicenseFileDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LicenseFile
createOrUpdateClientLicense(IEntityContext ec, LicenseModel model, String licenseKey, String userName)
LicenseFile
createOrUpdateItemLicense(IEntityContext ec, ItemLicenseModel itemModel, String licenseKey, String parentLicenseVersionKey, String userName)
LicenseFile
createOrUpdateSystemLicense(IEntityContext ec, LicenseModel model, String userName)
LicenseFile
getByKey(IEntityContext ec, String licenseKey, ELicenseFileType licenseType)
LicenseFile
getClientLicense(IEntityContext ec, long clientid)
LicenseFile
getClientLicense(IEntityContext ec, Mandant client)
LicenseModel
getClientLicenseModel(IEntityContext ec, Mandant client)
List<LicenseFile>
getItemLicenses(IEntityContext ec, String licenseKey)
protected IFCDaoActionHook<LicenseFile>
getPreActionHook()
LicenseFile
getSystemLicense(IEntityContext ec)
LicenseModel
getSystemLicenseModel(IEntityContext ec)
-
Methods inherited from class de.xima.fc.dao.impl.GenericDao
getEntityRefs, getPostActionHook, read
-
Methods inherited from class de.xima.cmn.dao.AbstractDao
all, bulkDelete, bulkUpdate, cb, checkLockingVersion, cq, create, create, delete, delete, deleteAll, executePagedDaoAction, getAttributes, getAttributes, getSingleAttributes, getSingleAttributes, getTransactionHandler, notifyListener, notifyListener, read, registerListener, registerListener, registerListener, resultTotalCount, setTransactionHandler, singleElement, unregisterListener, unregisterListener, unregisterListener, update, update
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.xima.cmn.dao.interfaces.IAbstractDao
all, bulkDelete, bulkUpdate, checkLockingVersion, create, create, delete, delete, deleteAll, executePagedDaoAction, getAttributes, getAttributes, getSingleAttributes, getSingleAttributes, getTransactionHandler, read, registerListener, registerListener, registerListener, resultTotalCount, setTransactionHandler, singleElement, unregisterListener, unregisterListener, unregisterListener, update, update
-
Methods inherited from interface de.xima.fc.dao.interfaces.IGenericDao
count, findAll, findSingle, getEntityRefs, read
-
-
-
-
Method Detail
-
createOrUpdateClientLicense
public LicenseFile createOrUpdateClientLicense(IEntityContext ec, LicenseModel model, String licenseKey, String userName)
- Specified by:
createOrUpdateClientLicense
in interfaceILicenseFileDao
-
createOrUpdateSystemLicense
public LicenseFile createOrUpdateSystemLicense(IEntityContext ec, LicenseModel model, String userName)
- Specified by:
createOrUpdateSystemLicense
in interfaceILicenseFileDao
-
createOrUpdateItemLicense
public LicenseFile createOrUpdateItemLicense(IEntityContext ec, ItemLicenseModel itemModel, String licenseKey, String parentLicenseVersionKey, String userName)
- Specified by:
createOrUpdateItemLicense
in interfaceILicenseFileDao
-
getItemLicenses
public List<LicenseFile> getItemLicenses(IEntityContext ec, String licenseKey)
- Specified by:
getItemLicenses
in interfaceILicenseFileDao
-
getSystemLicenseModel
public LicenseModel getSystemLicenseModel(IEntityContext ec)
- Specified by:
getSystemLicenseModel
in interfaceILicenseFileDao
-
getClientLicenseModel
public LicenseModel getClientLicenseModel(IEntityContext ec, Mandant client)
- Specified by:
getClientLicenseModel
in interfaceILicenseFileDao
-
getSystemLicense
public LicenseFile getSystemLicense(IEntityContext ec)
- Specified by:
getSystemLicense
in interfaceILicenseFileDao
-
getClientLicense
public LicenseFile getClientLicense(IEntityContext ec, Mandant client)
- Specified by:
getClientLicense
in interfaceILicenseFileDao
-
getByKey
public LicenseFile getByKey(IEntityContext ec, String licenseKey, ELicenseFileType licenseType)
- Specified by:
getByKey
in interfaceILicenseFileDao
-
getClientLicense
public LicenseFile getClientLicense(IEntityContext ec, long clientid)
- Specified by:
getClientLicense
in interfaceILicenseFileDao
-
getPreActionHook
protected IFCDaoActionHook<LicenseFile> getPreActionHook()
- Overrides:
getPreActionHook
in classGenericDao<LicenseFile>
-
-