nl.surfnet.coin.csa
Class CsaClient

java.lang.Object
  extended by nl.surfnet.coin.csa.CsaClient
All Implemented Interfaces:
Csa

public class CsaClient
extends Object
implements Csa

Client for the CSA API.


Constructor Summary
CsaClient()
           
CsaClient(String csaBaseLocation)
           
 
Method Summary
 Action createAction(Action action)
           
 List<InstitutionIdentityProvider> getAllInstitutionIdentityProviders()
           
 List<InstitutionIdentityProvider> getInstitutionIdentityProviders(String identityProviderId)
           
 List<Action> getJiraActions(String idpEntityId)
           
 List<Service> getProtectedServices()
          Get a list oof all protected services scoped by the Idp of the logged in person
 List<Service> getPublicServices()
          Get a list of all services available to anyone.
 Service getServiceForIdp(String idpEntityId, long serviceId)
          Get a service's details, scoped by the given IDP entity ID
 Service getServiceForIdp(String idpEntityId, String spEntityId)
          Get a service's details, scoped by the given IDP entity ID and SP entity ID
 List<Service> getServicesForIdp(String idpEntityId)
          Get a list of services, scoped by the given IDP entity ID
 Taxonomy getTaxonomy()
           
 void setCsaBaseLocation(String csaBaseLocation)
          Setter for base location of CSA
 void setOauthClient(OauthClient oauthClient)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CsaClient

public CsaClient()

CsaClient

public CsaClient(String csaBaseLocation)
Method Detail

getPublicServices

public List<Service> getPublicServices()
Description copied from interface: Csa
Get a list of all services available to anyone.

Specified by:
getPublicServices in interface Csa

getProtectedServices

public List<Service> getProtectedServices()
Description copied from interface: Csa
Get a list oof all protected services scoped by the Idp of the logged in person

Specified by:
getProtectedServices in interface Csa

getServicesForIdp

public List<Service> getServicesForIdp(String idpEntityId)
Description copied from interface: Csa
Get a list of services, scoped by the given IDP entity ID

Specified by:
getServicesForIdp in interface Csa

getServiceForIdp

public Service getServiceForIdp(String idpEntityId,
                                long serviceId)
Description copied from interface: Csa
Get a service's details, scoped by the given IDP entity ID

Specified by:
getServiceForIdp in interface Csa
Returns:

getServiceForIdp

public Service getServiceForIdp(String idpEntityId,
                                String spEntityId)
Description copied from interface: Csa
Get a service's details, scoped by the given IDP entity ID and SP entity ID

Specified by:
getServiceForIdp in interface Csa
Parameters:
idpEntityId - idp entity ID
spEntityId - sp entity ID
Returns:

getTaxonomy

public Taxonomy getTaxonomy()
Specified by:
getTaxonomy in interface Csa

getJiraActions

public List<Action> getJiraActions(String idpEntityId)
Specified by:
getJiraActions in interface Csa

createAction

public Action createAction(Action action)
Specified by:
createAction in interface Csa

getInstitutionIdentityProviders

public List<InstitutionIdentityProvider> getInstitutionIdentityProviders(String identityProviderId)
Specified by:
getInstitutionIdentityProviders in interface Csa

getAllInstitutionIdentityProviders

public List<InstitutionIdentityProvider> getAllInstitutionIdentityProviders()
Specified by:
getAllInstitutionIdentityProviders in interface Csa

setCsaBaseLocation

public void setCsaBaseLocation(String csaBaseLocation)
Description copied from interface: Csa
Setter for base location of CSA

Specified by:
setCsaBaseLocation in interface Csa
Parameters:
csaBaseLocation - base URL of CSA

setOauthClient

public void setOauthClient(OauthClient oauthClient)
Specified by:
setOauthClient in interface Csa


Copyright © 2013 SURFnet bv, The Netherlands. All Rights Reserved.