Package org.yaac.shared.cap

Examples of org.yaac.shared.cap.CapSummaryDTO


 
  @Override
  public CapSummaryDTO loadCapSummary() {
    CapabilitiesService service = CapabilitiesServiceFactory.getCapabilitiesService();
   
    CapSummaryDTO result = new CapSummaryDTO();
    for (Capability cap : caps) {
      CapabilityStatus status = service.getStatus(cap).getStatus();
     
      switch(status) {
      case ENABLED:
        result.setStatus(cap.getPackageName(), cap.getName(), Status.ENABLED);
        break;
      case SCHEDULED_MAINTENANCE:
        result.setStatus(cap.getPackageName(), cap.getName(), Status.SCHEDULED_MAINTENANCE);
        break;
      case DISABLED:
        result.setStatus(cap.getPackageName(), cap.getName(), Status.DISABLED);
        break;
      case UNKNOWN:
        result.setStatus(cap.getPackageName(), cap.getName(), Status.UNKNOWN);
        break;
      }
    }

    return result;
View Full Code Here

TOP

Related Classes of org.yaac.shared.cap.CapSummaryDTO

Copyright © 2018 www.massapicom. 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.