|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.commerce.registry.TradingAgreementRegistry
TradingAgreementRegistry is where the trading agreements are cached.
Field Summary | |
protected static java.util.Hashtable |
cache
|
protected static TradingAgreementRegistry |
singleton
|
Fields inherited from interface com.ibm.commerce.registry.Registry |
COPYRIGHT |
Fields inherited from interface com.ibm.commerce.registry.ItemUpdate |
COPYRIGHT |
Fields inherited from interface com.ibm.commerce.security.Protectable |
COPYRIGHT |
Constructor Summary | |
TradingAgreementRegistry()
TradingAgreementRegistry constructor. |
Method Summary | |
void |
addElement(TradingAgreementAccessBean tradingAgreement)
Adds a TradingAgreement to the list. |
TradingAgreementAccessBean |
find(java.lang.String key)
This method will return the TradingAgreementAccessBean with a given id. |
TradingAgreementAccessBean[] |
findAll(java.lang.String[] taIdStr)
This method will return all the TradingAgreementAccessBean with the given ids |
boolean |
fulfills(java.lang.Long member,
java.lang.String relationship)
Determine if a given user fulfills a given relationship with the resource. |
TradingAgreementAccessBean[] |
getAll()
This method will return all the TradingAgreementAccessBean in the cache |
java.lang.Long |
getOwner()
Returns the owner of a the TradingAgreementRegistry as a resource. |
void |
initialize()
Initializes the TradingAgreementRegistry. |
void |
putAll(TradingAgreementAccessBean[] ta)
This method will store the give TradingAgreementAccessBean in the registry |
void |
refresh()
This method refresh the trading agreement registry from the database. |
void |
removeAllElements()
Removes all TradingAgreementAccessBean from the cache. |
boolean |
removeElement(java.lang.String key)
Removes a TradingAgreemntAccessBean from the cache. |
boolean |
removeElement(TradingAgreementAccessBean ta)
Removes a TradingAgreemntAccessBean from the cache. |
static TradingAgreementRegistry |
singleton()
This method returns a singleton object of the trading agreement registry. |
void |
update(java.lang.String action,
java.lang.String key)
Updates a given trading agreement element. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static java.util.Hashtable cache
protected static TradingAgreementRegistry singleton
Constructor Detail |
public TradingAgreementRegistry()
Method Detail |
public void addElement(TradingAgreementAccessBean tradingAgreement)
obj
- the TradingAgreementAccessBean to be added to the listpublic TradingAgreementAccessBean find(java.lang.String key) throws java.lang.Exception
key
- String - trading agreement idpublic TradingAgreementAccessBean[] findAll(java.lang.String[] taIdStr) throws java.lang.Exception
tradingAgreement
- String[]public boolean fulfills(java.lang.Long member, java.lang.String relationship) throws java.rmi.RemoteException, java.lang.Exception
fulfills
in interface Protectable
member
- Longrelationship
- java.lang.Stringpublic TradingAgreementAccessBean[] getAll()
public java.lang.Long getOwner() throws ECException
getOwner
in interface Protectable
ECException.
- public void initialize() throws java.lang.Exception
initialize
in interface Registry
java.lang.Exception
- public void putAll(TradingAgreementAccessBean[] ta)
TradingAgreementAccessBean[]
- - an array of trading agreement access beanpublic void refresh() throws java.lang.Exception
refresh
in interface Registry
java.lang.Exception
- public void removeAllElements()
public boolean removeElement(java.lang.String key)
key
- String - trading agreement idpublic boolean removeElement(TradingAgreementAccessBean ta)
obj
- TradingAgreementAccessBean - trading agreement access beanpublic static TradingAgreementRegistry singleton()
public void update(java.lang.String action, java.lang.String key) throws java.lang.Exception
update
in interface ItemUpdate
action
- java.lang.String - the valid actions are 'add', 'delete' and 'update'key
- java.lang.String - the key that identifies a particular elementjava.lang.Exception
-
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |