|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectibrokerkit.iname4java.store.impl.openxri.OpenxriXriStore
ibrokerkit.iname4java.store.impl.grs.GrsXriStore
public class GrsXriStore
The GrsXriStore is used for creating, retrieving and managing i-names in the GRS. This extends OpenxriXriStore, i.e. changes to i-names in the GRS also affect OpenXRI.
| Field Summary |
|---|
| Fields inherited from class ibrokerkit.iname4java.store.impl.openxri.OpenxriXriStore |
|---|
openxriStore |
| Constructor Summary | |
|---|---|
GrsXriStore(org.openxri.store.Store openxriStore,
EppTools eppTools)
|
|
| Method Summary | |
|---|---|
void |
deleteXri(Xri xri)
This deletes an i-name. |
boolean |
existsXri(Xri parentXri,
java.lang.String localName)
Checks if a given i-name exists already. |
java.lang.String |
findUserIdentifier(java.lang.String xri)
Finds the user identifier associated with an i-name. |
Xri |
findXri(java.lang.String xri)
Finds an i-name by string, e.g. |
Xri |
findXriByGrsAuthorityId(java.lang.String grsAuthorityId)
Finds an i-name by its OpenXRI authority ID. |
long |
getAuthorityCount()
Returns the number of i-name authorities in the XriStore. |
long |
getXriCount()
Returns the number of i-names in the XriStore. |
java.util.List<Xri> |
listRootXris()
Lists all root i-names in the XriStore. |
java.util.List<Xri> |
listUserXris(java.lang.String userIdentifier)
Lists all i-names associated with a given user identifier. |
java.util.List<Xri> |
listXris()
Lists all i-names in the XriStore. |
Xri |
registerXri(Xri parentXri,
java.lang.String localName,
XriData xriData,
int years)
Register a new i-name with a new i-name authority. |
Xri |
registerXriSynonym(Xri parentXri,
java.lang.String localName,
Xri xri,
XriData xriData,
int years)
Register a new i-name with an already existing i-name authority (synonyms). |
java.util.Calendar |
renewXri(Xri xri,
int years)
This renews an i-name. |
void |
transferXriInCanceled(Xri xri)
Tells the XriStore that a top-level i-name Transfer IN has been canceled. |
void |
transferXriInComplete(Xri xri)
Tells the XriStore that a top-level i-name Transfer IN has been completed. |
Xri |
transferXriInRequest(java.lang.String localName,
XriData xriData)
Issues a Transfer IN request for a top-level i-name. |
void |
transferXriOutCanceled(Xri xri)
Tells the XriStore that a top-level i-name Transfer OUT has been canceled. |
void |
transferXriOutComplete(Xri xri)
Tells the XriStore that a top-level i-name Transfer OUT has been completed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GrsXriStore(org.openxri.store.Store openxriStore,
EppTools eppTools)
| Method Detail |
|---|
public boolean existsXri(Xri parentXri,
java.lang.String localName)
throws XriStoreException
XriStore
existsXri in interface XriStoreexistsXri in class OpenxriXriStoreparentXri - The parent i-name. In the case of top-level i-names, this is null.localName - The i-name to check for. In the case of top-level i-names, this
is the i-name itself (e.g. "=myname"). In the case of community i-names, this is
the subsegment (e.g. "*myname").
XriStoreException
public Xri registerXri(Xri parentXri,
java.lang.String localName,
XriData xriData,
int years)
throws XriStoreException
XriStore
registerXri in interface XriStoreregisterXri in class OpenxriXriStoreparentXri - The parent i-name. In the case of top-level i-names, this is null.localName - The i-name to register. In the case of top-level i-names, this
is the i-name itself (e.g. "=myname"). In the case of community i-names, this is
the subsegment (e.g. "*myname").xriData - The user data necessary to register the i-name.years - The number of years for which to register the i-name. This only
applies to top-level i-names.
XriStoreException
public Xri registerXriSynonym(Xri parentXri,
java.lang.String localName,
Xri xri,
XriData xriData,
int years)
throws XriStoreException
XriStore
registerXriSynonym in interface XriStoreregisterXriSynonym in class OpenxriXriStoreparentXri - The parent i-name. In the case of top-level i-names, this is null.localName - The i-name to register. In the case of top-level i-names, this
is the i-name itself (e.g. "=myname"). In the case of community i-names, this is
the subsegment (e.g. "*myname").xri - The already existing i-name. This should have the same parent authority
as the i-name that is being registered.xriData - The user data necessary to register the i-name.years - The number of years for which to register the i-name. This only
applies to top-level i-names.
XriStoreException
public Xri transferXriInRequest(java.lang.String localName,
XriData xriData)
throws XriStoreException
XriStore
transferXriInRequest in interface XriStoretransferXriInRequest in class OpenxriXriStorelocalName - The "local name" of the i-name. This is the i-name itself,
e.g. =myname.xriData - The user data necessary to transfer the i-name.
XriStoreException
public void transferXriInComplete(Xri xri)
throws XriStoreException
XriStore
transferXriInComplete in interface XriStoretransferXriInComplete in class OpenxriXriStorexri - The i-name Transfer IN which has been completed.
XriStoreException
public void transferXriInCanceled(Xri xri)
throws XriStoreException
XriStore
transferXriInCanceled in interface XriStoretransferXriInCanceled in class OpenxriXriStorexri - The i-name Transfer IN which has been canceled.
XriStoreException
public void transferXriOutComplete(Xri xri)
throws XriStoreException
XriStore
transferXriOutComplete in interface XriStoretransferXriOutComplete in class OpenxriXriStorexri - The i-name Transfer OUT which has been completed.
XriStoreException
public void transferXriOutCanceled(Xri xri)
throws XriStoreException
XriStore
transferXriOutCanceled in interface XriStoretransferXriOutCanceled in class OpenxriXriStorexri - The i-name Transfer OUT which has been canceled.
XriStoreException
public java.util.Calendar renewXri(Xri xri,
int years)
throws XriStoreException
XriStore
renewXri in interface XriStorerenewXri in class OpenxriXriStorexri - The i-name to renew.years - The number of years by which to renew the i-name and i-number.
XriStoreException
public void deleteXri(Xri xri)
throws XriStoreException
XriStore
deleteXri in interface XriStoredeleteXri in class OpenxriXriStoreXriStoreException
public java.util.List<Xri> listXris()
throws XriStoreException
XriStore
listXris in interface XriStorelistXris in class OpenxriXriStoreXriStoreException
public java.util.List<Xri> listRootXris()
throws XriStoreException
XriStore
listRootXris in interface XriStorelistRootXris in class OpenxriXriStoreXriStoreException
public java.util.List<Xri> listUserXris(java.lang.String userIdentifier)
throws XriStoreException
XriStore
listUserXris in interface XriStorelistUserXris in class OpenxriXriStoreXriStoreException
public Xri findXri(java.lang.String xri)
throws XriStoreException
XriStore
findXri in interface XriStorefindXri in class OpenxriXriStoreXriStoreException
public Xri findXriByGrsAuthorityId(java.lang.String grsAuthorityId)
throws XriStoreException
XriStore
findXriByGrsAuthorityId in interface XriStorefindXriByGrsAuthorityId in class OpenxriXriStoreXriStoreException
public java.lang.String findUserIdentifier(java.lang.String xri)
throws XriStoreException
XriStore
findUserIdentifier in interface XriStorefindUserIdentifier in class OpenxriXriStoreXriStoreException
public long getXriCount()
throws XriStoreException
XriStore
getXriCount in interface XriStoregetXriCount in class OpenxriXriStoreXriStoreException
public long getAuthorityCount()
throws XriStoreException
XriStore
getAuthorityCount in interface XriStoregetAuthorityCount in class OpenxriXriStoreXriStoreException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||