Package com.alu.e3.prov.restapi.model

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


        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


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

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

    Authkey ak = new Authkey();
    ak.setKeyName    (apiDetail.getAuthKeyName());
    ak.setHeaderName  (apiDetail.getAuthHeaderName());

    ProvisionAuthentication p = new ProvisionAuthentication();
    p.setAuthKey    (ak);
    p.getAuths().addAll  (BeanConverterUtil.<AuthType, NBAuthType>fromDataModels(apiDetail.getEnabledAuthType()));

    return p;
  }
View Full Code Here

    return mSchema;
  }

  private static final com.alu.e3.prov.restapi.model.ResourceItem fromDataModel(com.alu.e3.data.model.sub.ResourceItem item) {

    ResourceItem wsItem = new ResourceItem();
    wsItem.setName(item.getName());
    wsItem.setGrammar(item.getGrammar());
    wsItem.setIsMain(item.isIsMain());   

    return wsItem;
  }
View Full Code Here

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

        SSLCRLResponse response = new SSLCRLResponse(SSLCRLResponse.SUCCESS);
       
        // Get all CRL from the store
        response.getIds().addAll(dataManager.getAllCRL());

        return response;
      }
    };
  }
View Full Code Here

        }
       
        com.alu.e3.data.model.SSLCRL clrDataModel = BeanConverterUtil.toDataModel(crl);
        dataManager.addCRL(clrDataModel);
       
        SSLCRLResponse response = new SSLCRLResponse(SSLCRLResponse.SUCCESS);
        response.setId(crl.getId());

        return response;
      }
    };
  }
View Full Code Here

       
        com.alu.e3.data.model.SSLCRL crlDataModel = dataManager.getCRLById(crlID);
       
        SSLCRL crl = BeanConverterUtil.fromDataModel(crlDataModel);

        SSLCRLResponse response = new SSLCRLResponse(SSLCRLResponse.SUCCESS);
        response.setCRL(crl);
       
        return response;
      }
    };
  }
View Full Code Here

          throw new InvalidParameterException("CRL ID mismatch");

        com.alu.e3.data.model.SSLCRL crlDataModel = BeanConverterUtil.toDataModel(crl);       
        dataManager.updateCRL(crlDataModel);

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

          LOG.debug("Deleting CRL:", crlId);
        }

        dataManager.removeCRL(crlId);

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

  }

  public static final SSLCert fromDataModel(Certificate cert){
    if(cert == null) throw new IllegalArgumentException("cert must not be null");

    SSLCert sslCert = new SSLCert();
    sslCert.setDisplayName(cert.getCertDetail().getName());
    sslCert.setContent(cert.getData());
    sslCert.setId(cert.getId());
    sslCert.setKeyId(cert.getCertDetail().getKeyId());

    return sslCert;
  }
View Full Code Here

TOP

Related Classes of com.alu.e3.prov.restapi.model.SSLCRLResponse

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.