uk.ac.soton.itinnovation.grid.service.membership
Class MembershipGroupResourceImpl

java.lang.Object
  extended by uk.ac.soton.itinnovation.grid.service.utils.gridservit.GridServiceLite
      extended by uk.ac.soton.itinnovation.grid.service.membership.MembershipGroupResourceImpl
All Implemented Interfaces:
MembershipGroupResource, WSResourceLifetime, WSTrust, IdentifiableResource, PolicyManagement, ResourceMetadata, Signallable

public class MembershipGroupResourceImpl
extends GridServiceLite
implements MembershipGroupResource


Field Summary
 
Fields inherited from class uk.ac.soton.itinnovation.grid.service.utils.gridservit.GridServiceLite
factory, groupUtils, management, NO_ACCOUNT_NEEDED, pbacUtils, pdp, proxyFactory, thisServiceAddress, wsdlCache
 
Fields inherited from interface uk.ac.soton.itinnovation.grid.comms.membership.MembershipGroupResource
MEMBERSHIP_GROUP_RESOURCE_TYPE
 
Fields inherited from interface uk.ac.soton.itinnovation.grid.comms.wstrust.WSTrust
DEFAULT_WSTRUST_ISSUER, requestSecurityToken, VALIDATE_SUBJECT_DESCRIPTION, WSTRUST_REQUEST_TYPE_ISSUANCE, WSTRUST_REQUEST_TYPE_VALIDATION, WSTRUST_SAML_1_1, WSTRUST_STATUS, WSTRUST_STATUS_INVALID, WSTRUST_STATUS_VALID, XMLNS_WSTRUST, XMLNS_WSU
 
Constructor Summary
MembershipGroupResourceImpl()
           
 
Method Summary
 void destroy()
           
 MatchPattern getMembershipPattern()
          Get a pattern to match group members.
 MatchRule getMembershipRule()
          Deprecated. 
protected  Class<? extends GridResource> getResourceType(String resourceID)
          Return the class of this resource's bean.
 Document RequestSecurityToken_Issuance(Element request)
          Issue a security token.
 Document RequestSecurityToken_Validation(Element request)
          Validate security tokens.
 
Methods inherited from class uk.ac.soton.itinnovation.grid.service.utils.gridservit.GridServiceLite
addHibernatedObject, addPolicyRule, addTrustedAccountService, deleteHibernatedObject, generateEPR, getAvailableSignals, getConversationFromContext, getCurrentUser, getEPR, getEPR, getManagingConversation, getPolicyRules, getPrivateKey, getResourceFromEPR, GetResourceProperty, getResources, getResources, getResourcesFromEPRs, getSelectedRegistries, getServiceDatabaseKey, getServiceFromEPR, getServiceMatchPattern, getServiceProviderCertificate, getServiceProviderID, getServiceProviderIssuer, getTrustedAccountServices, getValidRoles, loadLocalRegistry, removePolicyRule, removeTrustedAccountService, RequestSecurityToken, setLabel, setLabel, signal, toMatchRules, validateOwner
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface uk.ac.soton.itinnovation.grid.types.PolicyManagement
addPolicyRule, getPolicyRules, getValidRoles, removePolicyRule
 
Methods inherited from interface uk.ac.soton.itinnovation.grid.comms.wstrust.WSTrust
RequestSecurityToken
 
Methods inherited from interface uk.ac.soton.itinnovation.grid.types.ResourceMetadata
getEPR, setLabel
 
Methods inherited from interface uk.ac.soton.itinnovation.grid.types.IdentifiableResource
getServiceMatchPattern
 
Methods inherited from interface uk.ac.soton.itinnovation.grid.types.Signallable
getAvailableSignals, signal
 

Constructor Detail

MembershipGroupResourceImpl

public MembershipGroupResourceImpl()
Method Detail

destroy

public void destroy()
             throws ResourceUnknownFault,
                    ResourceNotDestroyedFault
Specified by:
destroy in interface WSResourceLifetime
Throws:
ResourceUnknownFault
ResourceNotDestroyedFault

getResourceType

protected Class<? extends GridResource> getResourceType(String resourceID)
Description copied from class: GridServiceLite
Return the class of this resource's bean. Override this in subclasses if your service is contextualised. Often, resourceID can be ignored as each service only manages one type of bean anyway.

Overrides:
getResourceType in class GridServiceLite

RequestSecurityToken_Issuance

public Document RequestSecurityToken_Issuance(Element request)
                                       throws RemoteException
Description copied from class: GridServiceLite
Issue a security token. Called by GridServiceLite.RequestSecurityToken(org.w3c.dom.Element) for issuance requests.

Overrides:
RequestSecurityToken_Issuance in class GridServiceLite
Throws:
RemoteException

RequestSecurityToken_Validation

public Document RequestSecurityToken_Validation(Element request)
                                         throws RemoteException
Description copied from class: GridServiceLite
Validate security tokens. Called by GridServiceLite.RequestSecurityToken(org.w3c.dom.Element) for validation requests.

Overrides:
RequestSecurityToken_Validation in class GridServiceLite
Throws:
RemoteException

getMembershipPattern

public MatchPattern getMembershipPattern()
                                  throws RemoteException
Description copied from interface: MembershipGroupResource
Get a pattern to match group members.

Specified by:
getMembershipPattern in interface MembershipGroupResource
Returns:
a pattern which will match a user who presents a token issued by this service's WSTrust.RequestSecurityToken(org.w3c.dom.Element) operation, asserting that they are in the group.
Throws:
RemoteException

getMembershipRule

@Deprecated
public MatchRule getMembershipRule()
                            throws RemoteException
Deprecated. 

Description copied from interface: MembershipGroupResource
Get a rule to match group members.

Specified by:
getMembershipRule in interface MembershipGroupResource
Returns:
a rule which will match a user who presents a token issued by this service's WSTrust.RequestSecurityToken(org.w3c.dom.Element) operation, asserting that they are in the group.
Throws:
RemoteException


Copyright © 2001-2008 University of Southampton IT Innovation Centre. All Rights Reserved.