Package org.surfnet.oaaas.model

Examples of org.surfnet.oaaas.model.ResourceServer


  protected String sanitizeClientName(String name) {
    return name.toLowerCase().replaceAll(" ", "-").replaceAll(FILTERED_CLIENT_ID_CHARS, "");
  }

  private Client getClientByResourceServer(HttpServletRequest request, Long clientId, Long resourceServerId) {
    ResourceServer resourceServer = getResourceServer(request, resourceServerId);
    return clientRepository.findByIdAndResourceServer(clientId, resourceServer);
  }
View Full Code Here


    ResourceServer resourceServer = getResourceServer(request, resourceServerId);
    return clientRepository.findByIdAndResourceServer(clientId, resourceServer);
  }

  private ResourceServer getResourceServer(HttpServletRequest request, Long id) {
    ResourceServer resourceServer;
    if (isAdminPrincipal(request)) {
      resourceServer = resourceServerRepository.findOne(id);
    } else {
      String owner = getUserId(request);
      resourceServer = resourceServerRepository.findByIdAndOwner(id, owner);
View Full Code Here

TOP

Related Classes of org.surfnet.oaaas.model.ResourceServer

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.