|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.soton.ecs.iam.grid.client.staterepos.AccountConversationImpl
uk.ac.soton.ecs.iam.grid.client.staterepos.TradeAccountConversationImpl
@Deprecated public class TradeAccountConversationImpl
The default implementation of AccountConversation.
| Field Summary |
|---|
| Fields inherited from interface uk.ac.soton.itinnovation.grid.comms.account.TradeAccountResource |
|---|
TRADE_ACCOUNT_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 | |
|---|---|
TradeAccountConversationImpl(StateRepository repository,
org.apache.axis.message.addressing.EndpointReferenceType EPR)
Deprecated. |
|
| Method Summary | |
|---|---|
void |
addAccessControlRule(MatchRule rule)
Deprecated. |
void |
addPolicyRule(PolicyRule rule)
Deprecated. Add an access control rule to this resource's dynamic access control policy. |
void |
bill(IDType onBehalfOf,
BigDecimal amount,
String currency,
String resourceID,
String message)
Deprecated. Charge something to the account. |
void |
checkCreditAvailable(BigDecimal amount,
String curr)
Deprecated. Test whether we can withdraw this amount now. |
void |
checkWhetherCreditAvailable(BigDecimal amount)
Deprecated. Test whether we can withdraw this amount now. |
int |
compareTo(StorableInStateRepository other)
Deprecated. |
void |
ensureIsUser(SubjectDescription subject)
Deprecated. |
void |
finish()
Deprecated. Indicate that this conversation is no longer required. |
MatchRule[] |
getAccessControlRules()
Deprecated. |
String[] |
getAvailableSignals()
Deprecated. List the signals which are available given the resource's current state. |
StorableInStateRepository[] |
getChildConversations()
Deprecated. Returns an array of all conversations having this one as a parent. |
String |
getDescription()
Deprecated. Returns a textual description of the object. |
org.apache.axis.message.addressing.EndpointReferenceType |
getEndpointRef()
Deprecated. Return an EndpointReferenceType for this conversation. |
org.apache.axis.message.addressing.EndpointReferenceType |
getEPR()
Deprecated. Get the EPR for this resource. |
Class |
getInterface()
Deprecated. Returns the type of this object. |
URL |
getParentURL()
Deprecated. Returns the URL of this object's parent. |
PolicyRule[] |
getPolicyRules()
Deprecated. Get the access control rules in this resource's dynamic access control policy. |
StateRepository |
getRepository()
Deprecated. Get the StateRepository holding this object. |
RemoteService |
getService()
Deprecated. Return the conversation's RemoteService. |
URL |
getURL()
Deprecated. Returns the globally unique identifier. |
String[] |
getValidRoles()
Deprecated. List the roles the caller is permitted to see. |
boolean |
isFinished()
Deprecated. Returns true if the finish method has been called. |
void |
makePayment(IDType onBehalfOf,
BigDecimal amount,
String currency,
String resourceID,
String message)
Deprecated. Make a payment on an account |
void |
outOfDate()
Deprecated. Used by the StateRepository if the server returns new resource with our ID. |
void |
removeAccessControlRule(MatchRule rule)
Deprecated. |
void |
removePolicyRule(PolicyRule rule)
Deprecated. Remove an access control rule from this resource's dynamic access control policy. |
Document |
RequestSecurityToken(Element e)
Deprecated. Request a security token, as defined by the WS-Trust specification. |
void |
setCreditLimit(BigDecimal newLimit)
Deprecated. Set the account's credit limit |
void |
setDescription(String description)
Deprecated. Change the textual description, as returned by getDescription. |
void |
setLabel(String label)
Deprecated. Change the resource's label. |
String |
signal(String signalName)
Deprecated. Signal an event to the resource's PBAC process. |
| Methods inherited from class uk.ac.soton.ecs.iam.grid.client.staterepos.AccountConversationImpl |
|---|
addBudgetHolderRule, addUserRule, checkUser, closeAccount, getAccountStatement, getAccountStatus, getBudgetHolderRules, getUserRules, removeBudgetHolderRule, removeUserRule |
| 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.comms.account.AccountResource |
|---|
addBudgetHolderRule, addUserRule, checkUser, closeAccount, getAccountStatement, getAccountStatus, getBudgetHolderRules, getUserRules, removeBudgetHolderRule, removeUserRule |
| Methods inherited from interface uk.ac.soton.itinnovation.grid.comms.account.AccountResource |
|---|
addBudgetHolderRule, addUserRule, checkUser, closeAccount, getAccountStatement, getAccountStatus, getBudgetHolderRules, getUserRules, removeBudgetHolderRule, removeUserRule |
| Constructor Detail |
|---|
public TradeAccountConversationImpl(StateRepository repository,
org.apache.axis.message.addressing.EndpointReferenceType EPR)
throws ObjectAlreadyExists
ObjectAlreadyExists| Method Detail |
|---|
public Class getInterface()
StorableInStateRepository
getInterface in interface StorableInStateRepositorygetInterface in class AccountConversationImplpublic void outOfDate()
Conversation
outOfDate in interface Conversationpublic StorableInStateRepository[] getChildConversations()
Conversation
getChildConversations in interface Conversationpublic void finish()
Conversation
Note that this does not close the conversation with the
remote supplier. You should normally call a different method,
such as WSResourceLifetime.destroy().
finish in interface Conversationpublic boolean isFinished()
Conversation
isFinished in interface Conversationpublic URL getURL()
StorableInStateRepository
getURL in interface StorableInStateRepositorypublic org.apache.axis.message.addressing.EndpointReferenceType getEndpointRef()
StorableInStateRepository
getEndpointRef in interface StorableInStateRepositorypublic URL getParentURL()
StorableInStateRepository
getParentURL in interface StorableInStateRepositorypublic String getDescription()
StorableInStateRepository
getDescription in interface StorableInStateRepositorypublic void setDescription(String description)
StorableInStateRepository
setDescription in interface StorableInStateRepositorypublic StateRepository getRepository()
StorableInStateRepository
getRepository in interface StorableInStateRepositorypublic org.apache.axis.message.addressing.EndpointReferenceType getEPR()
ResourceMetadata
getEPR in interface ResourceMetadatathe label set with {@link setLabel},
a unique type URI,
the state of the resource,
the resource which manages this one (e.g. an SLA manages a job),
the resource which contains this one (e.g. a job service is the parent of a job)public RemoteService getService()
Conversation
getService in interface Conversationpublic int compareTo(StorableInStateRepository other)
compareTo in interface Comparable<StorableInStateRepository>
public void addPolicyRule(PolicyRule rule)
throws RemoteException
PolicyManagement
addPolicyRule in interface PolicyManagementRemoteExceptionPDP.addAccessControlRule(java.lang.String, uk.ac.soton.itinnovation.grid.types.MatchRule)
public void removePolicyRule(PolicyRule rule)
throws RemoteException
PolicyManagement
removePolicyRule in interface PolicyManagementRemoteExceptionPDP.removeAccessControlRule(java.lang.String, uk.ac.soton.itinnovation.grid.types.MatchRule)
public PolicyRule[] getPolicyRules()
throws RemoteException
PolicyManagementPolicyManagement.getValidRoles().
getPolicyRules in interface PolicyManagementRemoteExceptionPDP.getAccessControlRules(java.lang.String, java.lang.String)
public void setLabel(String label)
throws RemoteException
ResourceMetadata
setLabel in interface ResourceMetadatalabel - the new label
RemoteException
public void addAccessControlRule(MatchRule rule)
throws RemoteException
RemoteException
public void removeAccessControlRule(MatchRule rule)
throws RemoteException
RemoteException
public MatchRule[] getAccessControlRules()
throws RemoteException
RemoteException
public String[] getValidRoles()
throws RemoteException
PolicyManagementPolicyManagement.getPolicyRules().
getValidRoles in interface PolicyManagementRemoteExceptionPDP.getValidProcessRoles(java.lang.String)
public Document RequestSecurityToken(Element e)
throws RemoteException
WSTrust
RequestSecurityToken in interface WSTruste - a <RequestSecurityToken>
RemoteException
public void setCreditLimit(BigDecimal newLimit)
throws RemoteException
TradeAccountResource
setCreditLimit in interface TradeAccountResourcenewLimit - the new limit
RemoteException
public void bill(IDType onBehalfOf,
BigDecimal amount,
String currency,
String resourceID,
String message)
throws RemoteException
TradeAccountResourceAccountResource.checkUser(uk.ac.soton.itinnovation.grid.types.SubjectDescription)
first.
If the new liability is greater than the credit limit a warning is
logged but the transaction is still recorded. Call TradeAccountResource.checkWhetherCreditAvailable(java.math.BigDecimal)
before starting an activity to ensure that credit is available.
bill in interface TradeAccountResourceonBehalfOf - - the user we are billing on behalf of (may be same as caller)amount - - the amount to billcurrency - - the currency code for the amount (must match the account's currency)resourceID - - the resource which was paid for (optional)message - - the message to show on the statement
RemoteException - for other errors
public void makePayment(IDType onBehalfOf,
BigDecimal amount,
String currency,
String resourceID,
String message)
throws RemoteException
TradeAccountResource
makePayment in interface TradeAccountResourceonBehalfOf - the user who made the payment (usually the budget holder)amount - the amount paid in (must be greater than or equal to zero)resourceID - a resource which the payment is for (optional)message - a message to show on the statement for this payment
RemoteException
public void checkWhetherCreditAvailable(BigDecimal amount)
throws RemoteException
TradeAccountResource
checkWhetherCreditAvailable in interface TradeAccountResourceamount - amount to test
InsufficientCreditException - if there are insufficient funds
RemoteException - for other errors
public void checkCreditAvailable(BigDecimal amount,
String curr)
throws RemoteException
TradeAccountResource
checkCreditAvailable in interface TradeAccountResourceamount - amount to testcurr - units for amount
InsufficientCreditException - if there are insufficient funds
RemoteException - for other errors
public String signal(String signalName)
throws RemoteException
Signallable
signal in interface SignallablesignalName - the event causing the transition
RemoteException
public String[] getAvailableSignals()
throws RemoteException
Signallable
getAvailableSignals in interface SignallableRemoteExceptionSignallable.signal(java.lang.String)
public void ensureIsUser(SubjectDescription subject)
throws RemoteException,
GridFailureException,
TokenInvalidException
ensureIsUser in interface TradeAccountConversationRemoteException
GridFailureException
TokenInvalidException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||