public class VendorLicenseManagerImpl extends Object implements VendorLicenseManager
Constructor and Description |
---|
VendorLicenseManagerImpl(VersioningManager versioningManager,
VendorLicenseFacade vendorLicenseFacade,
VendorLicenseModelDao vendorLicenseModelDao,
LicenseAgreementDao licenseAgreementDao,
FeatureGroupDao featureGroupDao,
EntitlementPoolDao entitlementPoolDao,
LicenseKeyGroupDao licenseKeyGroupDao,
ActivityLogManager activityLogManager,
LimitDao limitDao) |
public VendorLicenseManagerImpl(VersioningManager versioningManager, VendorLicenseFacade vendorLicenseFacade, VendorLicenseModelDao vendorLicenseModelDao, LicenseAgreementDao licenseAgreementDao, FeatureGroupDao featureGroupDao, EntitlementPoolDao entitlementPoolDao, LicenseKeyGroupDao licenseKeyGroupDao, ActivityLogManager activityLogManager, LimitDao limitDao)
public void checkout(String vendorLicenseModelId, String user)
checkout
in interface VendorLicenseManager
public void undoCheckout(String vendorLicenseModelId, String user)
undoCheckout
in interface VendorLicenseManager
public void checkin(String vendorLicenseModelId, String user)
checkin
in interface VendorLicenseManager
public void submit(String vendorLicenseModelId, String user)
submit
in interface VendorLicenseManager
public Collection<VersionedVendorLicenseModel> listVendorLicenseModels(String versionFilter, String user)
listVendorLicenseModels
in interface VendorLicenseManager
public VendorLicenseModelEntity createVendorLicenseModel(VendorLicenseModelEntity vendorLicenseModelEntity, String user)
createVendorLicenseModel
in interface VendorLicenseManager
public void updateVendorLicenseModel(VendorLicenseModelEntity vendorLicenseModelEntity, String user)
updateVendorLicenseModel
in interface VendorLicenseManager
public VersionedVendorLicenseModel getVendorLicenseModel(String vlmId, Version version, String user)
getVendorLicenseModel
in interface VendorLicenseManager
public void deleteVendorLicenseModel(String vlmId, String user)
deleteVendorLicenseModel
in interface VendorLicenseManager
public Collection<LicenseAgreementEntity> listLicenseAgreements(String vlmId, Version version, String user)
listLicenseAgreements
in interface VendorLicenseManager
public LicenseAgreementEntity createLicenseAgreement(LicenseAgreementEntity licenseAgreement, String user)
createLicenseAgreement
in interface VendorLicenseManager
public void updateLicenseAgreement(LicenseAgreementEntity licenseAgreement, Set<String> addedFeatureGroupIds, Set<String> removedFeatureGroupIds, String user)
updateLicenseAgreement
in interface VendorLicenseManager
public LicenseAgreementModel getLicenseAgreementModel(String vlmId, Version version, String licenseAgreementId, String user)
getLicenseAgreementModel
in interface VendorLicenseManager
public void deleteLicenseAgreement(String vlmId, Version version, String licenseAgreementId, String user)
deleteLicenseAgreement
in interface VendorLicenseManager
public Collection<FeatureGroupEntity> listFeatureGroups(String vlmId, Version version, String user)
listFeatureGroups
in interface VendorLicenseManager
public FeatureGroupEntity createFeatureGroup(FeatureGroupEntity featureGroup, String user)
createFeatureGroup
in interface VendorLicenseManager
public void updateFeatureGroup(FeatureGroupEntity featureGroup, Set<String> addedLicenseKeyGroups, Set<String> removedLicenseKeyGroups, Set<String> addedEntitlementPools, Set<String> removedEntitlementPools, String user)
updateFeatureGroup
in interface VendorLicenseManager
public FeatureGroupModel getFeatureGroupModel(FeatureGroupEntity featureGroup, String user)
getFeatureGroupModel
in interface VendorLicenseManager
public void deleteFeatureGroup(FeatureGroupEntity featureGroup, String user)
deleteFeatureGroup
in interface VendorLicenseManager
public Collection<EntitlementPoolEntity> listEntitlementPools(String vlmId, Version version, String user)
listEntitlementPools
in interface VendorLicenseManager
public EntitlementPoolEntity createEntitlementPool(EntitlementPoolEntity entitlementPool, String user)
createEntitlementPool
in interface VendorLicenseManager
public void updateEntitlementPool(EntitlementPoolEntity entitlementPool, String user)
updateEntitlementPool
in interface VendorLicenseManager
public EntitlementPoolEntity getEntitlementPool(EntitlementPoolEntity entitlementPool, String user)
getEntitlementPool
in interface VendorLicenseManager
public void deleteEntitlementPool(EntitlementPoolEntity entitlementPool, String user)
deleteEntitlementPool
in interface VendorLicenseManager
protected void deleteChildLimits(String vlmId, Version version, String epLkgId, String user)
public Collection<LicenseKeyGroupEntity> listLicenseKeyGroups(String vlmId, Version version, String user)
listLicenseKeyGroups
in interface VendorLicenseManager
public LicenseKeyGroupEntity createLicenseKeyGroup(LicenseKeyGroupEntity licenseKeyGroup, String user)
createLicenseKeyGroup
in interface VendorLicenseManager
public void updateLicenseKeyGroup(LicenseKeyGroupEntity licenseKeyGroup, String user)
updateLicenseKeyGroup
in interface VendorLicenseManager
public LicenseKeyGroupEntity getLicenseKeyGroup(LicenseKeyGroupEntity licenseKeyGroup, String user)
getLicenseKeyGroup
in interface VendorLicenseManager
public void deleteLicenseKeyGroup(LicenseKeyGroupEntity licenseKeyGroup, String user)
deleteLicenseKeyGroup
in interface VendorLicenseManager
public LimitEntity createLimit(LimitEntity limit, String user)
createLimit
in interface VendorLicenseManager
public Collection<LimitEntity> listLimits(String vlmId, Version version, String epLkgId, String user)
listLimits
in interface VendorLicenseManager
public void deleteLimit(LimitEntity limitEntity, String user)
deleteLimit
in interface VendorLicenseManager
public void updateLimit(LimitEntity limit, String user)
updateLimit
in interface VendorLicenseManager
public LimitEntity getLimit(LimitEntity limitEntity, String user)
getLimit
in interface VendorLicenseManager
protected void addFeatureGroupsToLicenseAgreementRef(Set<String> featureGroupIds, LicenseAgreementEntity licenseAgreement)
protected void removeFeatureGroupsToLicenseAgreementRef(Set<String> featureGroupIds, LicenseAgreementEntity licenseAgreement)
protected void addLicenseKeyGroupsToFeatureGroupsRef(Set<String> licenseKeyGroupIds, FeatureGroupEntity featureGroup)
protected void removeLicenseKeyGroupsToFeatureGroupsRef(Set<String> licenseKeyGroupIds, FeatureGroupEntity featureGroup)
protected void addEntitlementPoolsToFeatureGroupsRef(Set<String> entitlementPoolIds, FeatureGroupEntity featureGroup)
protected void removeEntitlementPoolsToFeatureGroupsRef(Set<String> entitlementPoolIds, FeatureGroupEntity featureGroup)
protected VersionInfo getVersionInfo(String vendorLicenseModelId, VersionableEntityAction action, String user)
protected LicenseAgreementEntity createLicenseAgreementForList(String vlmId, Version version, String user)
protected void updateUniqueName(String uniqueValueType, String oldName, String newName, String... context)
protected void deleteUniqueName(String uniqueValueType, String... uniqueCombination)
protected Version resloveVersion(String vlmId, Version requestedVersion, VersionInfo versionInfo, String user)
Copyright © 2017. All rights reserved.