|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.soton.itinnovation.grid.service.utils.trustedaccounts.TrustedManagementServices
public class TrustedManagementServices
Helper class for services whose resources are managed by resources at other services (accounts or SLAs).
ManagedGridService,
TrustedAccountsAdmin| Field Summary | |
|---|---|
static String |
FREE_SERVICE
Deprecated. |
static String |
MANAGEMENT_ROLE
The PBAC role a service must have to be able to manage this service: i.e. |
static String |
MANAGEMENT_SERVICES_GROUP
The group of management services (SLA services) that are allowed to call e.g. |
static QName |
MANAGEMENT_TYPE
|
static String |
MANAGEMENT_TYPE_ACCOUNT_SERVICE
|
static String |
MANAGEMENT_TYPE_FREE
|
static String |
MANAGEMENT_TYPE_SLA_SERVICE
|
| Constructor Summary | |
|---|---|
TrustedManagementServices(Class owningService)
|
|
| Method Summary | |
|---|---|
void |
addTrustedAccountService(org.apache.axis.message.addressing.EndpointReferenceType account)
Add a trusted account service. |
void |
checkAccountServiceTrusted(URL accountEndpoint)
Ensure that 'serviceEndpoint' is a trusted account service endpoint for this service. |
Conversation |
getBillingInfo(Element billingHeader,
SubjectDescription user,
StateRepository repository)
If there is a billing information header in the SOAP request, return it. |
org.apache.neethi.Policy |
getPolicy()
|
org.apache.axis.message.addressing.EndpointReferenceType[] |
getTrustedAccountServices()
Get the list of trusted account services for this service. |
String |
getTrustedManagementType(org.apache.axis.message.addressing.EndpointReferenceType billingInfo)
Set type of trusted service. |
void |
removeTrustedAccountService(org.apache.axis.message.addressing.EndpointReferenceType account)
Remove a trusted account service. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
@Deprecated public static final String FREE_SERVICE
public static final String MANAGEMENT_SERVICES_GROUP
public static final String MANAGEMENT_ROLE
public static QName MANAGEMENT_TYPE
public static String MANAGEMENT_TYPE_FREE
public static String MANAGEMENT_TYPE_ACCOUNT_SERVICE
public static String MANAGEMENT_TYPE_SLA_SERVICE
| Constructor Detail |
|---|
public TrustedManagementServices(Class owningService)
| Method Detail |
|---|
public org.apache.axis.message.addressing.EndpointReferenceType[] getTrustedAccountServices()
public Conversation getBillingInfo(Element billingHeader,
SubjectDescription user,
StateRepository repository)
throws RemoteException
MANAGEMENT_TYPE meta-data element to the returned
EPR.
Note that for the repository you can normally just create a new
MemoryStateRepository.
billingHeader - header from AdditionalContextHelper.getSingleHeader(java.util.ArrayList, javax.xml.namespace.QName) (ConversationID.BILLING_INFO), or nulluser - the signer of the SOAP messagerepository - repository in which to store the new resource
GridFailureException - if we don't trust the service
GridFailureException - if the user doesn't have access to the resource
GridFailureException - if the service isn't free, but no billing header was present
GridFailureException - if the service is free, and a billing header was present
RemoteException - if checking the user's access to the resource failed
public String getTrustedManagementType(org.apache.axis.message.addressing.EndpointReferenceType billingInfo)
throws GridFailureException
MANAGEMENT_TYPE).
Does NOT check that the client is permitted to use this EPR, only that we trust the service to tell us whether they are.
Passing null is permitted iff the service has been configured as 'free'.
billingInfo - the ERP suggested by the client, or null if none
MANAGEMENT_TYPE meta-data element
GridFailureException - if the service is not on the trusted list
public void checkAccountServiceTrusted(URL accountEndpoint)
throws GridFailureException
accountEndpoint - the account service's endpoint
GridFailureException - if the endpoint isn't on the list
public void addTrustedAccountService(org.apache.axis.message.addressing.EndpointReferenceType account)
throws RemoteException
account - the EPR of the service (only the address is used)
RemoteExceptionpublic void removeTrustedAccountService(org.apache.axis.message.addressing.EndpointReferenceType account)
account - the EPR of the service (only the address is used)public org.apache.neethi.Policy getPolicy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||