Package org.yaac.shared.cap

Examples of org.yaac.shared.cap.CapSummaryDTO$Capability


        final Capability[] caps = getRequiredCaps();
        if (caps != null)
        {
            for (int i = 0; i < caps.length; i++)
            {
                final Capability cap = caps[i];
                FileSystem fs = readFolder.getFileSystem();
                if (!fs.hasCapability(cap))
                {
//                    String name = fs.getClass().getName();
//                    int index = name.lastIndexOf('.');
View Full Code Here


        final Capability[] caps = getRequiredCaps();
        if (caps != null)
        {
            for (int i = 0; i < caps.length; i++)
            {
                final Capability cap = caps[i];
                FileSystem fs = readFolder.getFileSystem();
                if (!fs.hasCapability(cap))
                {
//                    String name = fs.getClass().getName();
//                    int index = name.lastIndexOf('.');
View Full Code Here

 
  @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$Capability

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.