Examples of PolicyResponse


Examples of com.alu.e3.prov.restapi.model.PolicyResponse

        }

        com.alu.e3.data.model.Policy policyDataModel = BeanConverterUtil.toDataModel(policy);
        dataManager.addPolicy(policyDataModel);

        PolicyResponse response = new PolicyResponse(PolicyResponse.SUCCESS);
        response.setId(policy.getId());

        return response;
      }
    };
  }
View Full Code Here

Examples of com.alu.e3.prov.restapi.model.PolicyResponse

          throw new InvalidParameterException("Policy ID mismatch");

        com.alu.e3.data.model.Policy policyDataModel = BeanConverterUtil.toDataModel(policy);       
        dataManager.updatePolicy(policyDataModel);

        return new PolicyResponse(PolicyResponse.SUCCESS);
      }
    };
  }
View Full Code Here

Examples of com.alu.e3.prov.restapi.model.PolicyResponse

          LOG.debug("Deleting Policy:", policyId);
        }

        dataManager.removePolicy(policyId);

        return new PolicyResponse(PolicyResponse.SUCCESS);
      }
    };
  }
View Full Code Here

Examples of com.alu.e3.prov.restapi.model.PolicyResponse

        if(policyDataModel == null)
          throw new InvalidIDException("A Policy with that ID does not exist");

        Policy policy = BeanConverterUtil.fromDataModel(policyDataModel);

        PolicyResponse response = new PolicyResponse(PolicyResponse.SUCCESS);
        response.setPolicy(policy);

        return response;
      }
    };
  }
View Full Code Here

Examples of com.alu.e3.prov.restapi.model.PolicyResponse

        if(LOG.isDebugEnabled()) {
          LOG.debug("Get all policies");
        }

        PolicyResponse response = new PolicyResponse(PolicyResponse.SUCCESS);

        // Get all policies from the store
        response.getIds().addAll(dataManager.getAllPolicy());

        return response;
      }
    };
  }
View Full Code Here

Examples of com.alu.e3.prov.restapi.model.PolicyResponse

        }

        com.alu.e3.data.model.sub.QuotaRLBucket authIdsDataModel = BeanConverterUtil.toDataModel(authIds);
        dataManager.createBucket(policyId, authIdsDataModel);

        PolicyResponse response = new PolicyResponse(PolicyResponse.SUCCESS);
        response.setId(authIds.getId());

        return response;
      }
    };
  }
View Full Code Here

Examples of com.alu.e3.prov.restapi.model.PolicyResponse

          LOG.debug("Remove bucket:" + bucketId + " on policy:", policyId);
        }

        dataManager.removeBucket(policyId, bucketId);

        return new PolicyResponse(PolicyResponse.SUCCESS);
      }
    };
  }
View Full Code Here

Examples of com.alu.e3.prov.restapi.model.PolicyResponse

        }

        com.alu.e3.data.model.sub.QuotaRLBucket authIdsDataModel = BeanConverterUtil.toDataModel(authIds);
        dataManager.addAuthsToBucket(policyId, bucketId, authIdsDataModel);

        return new PolicyResponse(PolicyResponse.SUCCESS);
      }
    };
  }
View Full Code Here

Examples of com.alu.e3.prov.restapi.model.PolicyResponse

        if(LOG.isDebugEnabled()) {
          LOG.debug("Remove auth:" + authId + " from policy:" + policyId + "/bucket:" + bucketId);
        }
        dataManager.removeAuthFromBucket(policyId, bucketId, authId);

        return new PolicyResponse(PolicyResponse.SUCCESS);
      }
    };
  }
View Full Code Here

Examples of com.alu.e3.prov.restapi.model.PolicyResponse

        for (String authId : authIds.getAuthIds())
        {
          dataManager.removeAuthFromBucket(policyId, bucketId, authId);
        }

        return new PolicyResponse(PolicyResponse.SUCCESS);
      }
    };
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.