|
|
@ -287,8 +287,8 @@ public class PolicyManagerImpl implements PolicyManager {
|
|
|
|
policyDAO.deleteAllPolicyRelatedConfigs(policyId);
|
|
|
|
policyDAO.deleteAllPolicyRelatedConfigs(policyId);
|
|
|
|
policyDAO.deletePolicy(policyId);
|
|
|
|
policyDAO.deletePolicy(policyId);
|
|
|
|
|
|
|
|
|
|
|
|
if(log.isDebugEnabled()){
|
|
|
|
if (log.isDebugEnabled()) {
|
|
|
|
log.debug(policy.getProfileId() + " ----------------------------------");
|
|
|
|
log.debug("Profile ID: " + policy.getProfileId());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
featureDAO.deleteFeaturesOfProfile(policy.getProfileId());
|
|
|
|
featureDAO.deleteFeaturesOfProfile(policy.getProfileId());
|
|
|
@ -331,8 +331,8 @@ public class PolicyManagerImpl implements PolicyManager {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public Policy addPolicyToDevice(List<DeviceIdentifier> deviceIdentifierList, Policy policy) throws
|
|
|
|
public Policy addPolicyToDevice(List<DeviceIdentifier> deviceIdentifierList, Policy policy)
|
|
|
|
PolicyManagementException {
|
|
|
|
throws PolicyManagementException {
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
PolicyManagementDAOFactory.beginTransaction();
|
|
|
|
PolicyManagementDAOFactory.beginTransaction();
|
|
|
@ -705,8 +705,7 @@ public class PolicyManagerImpl implements PolicyManager {
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void addAppliedPolicyFeaturesToDevice(DeviceIdentifier deviceIdentifier, int policyId,
|
|
|
|
public void addAppliedPolicyFeaturesToDevice(DeviceIdentifier deviceIdentifier, int policyId,
|
|
|
|
List<ProfileFeature> profileFeatures) throws
|
|
|
|
List<ProfileFeature> profileFeatures) throws PolicyManagementException {
|
|
|
|
PolicyManagementException {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int deviceId = -1;
|
|
|
|
int deviceId = -1;
|
|
|
|
try {
|
|
|
|
try {
|
|
|
@ -740,8 +739,8 @@ public class PolicyManagerImpl implements PolicyManager {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void addAppliedPolicyToDevice(DeviceIdentifier deviceIdentifier, Policy policy) throws
|
|
|
|
public void addAppliedPolicyToDevice(DeviceIdentifier deviceIdentifier, Policy policy)
|
|
|
|
PolicyManagementException {
|
|
|
|
throws PolicyManagementException {
|
|
|
|
|
|
|
|
|
|
|
|
int deviceId = -1;
|
|
|
|
int deviceId = -1;
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|