|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectibrokerkit.iname4java.store.impl.openxri.OpenxriXriStore
public class OpenxriXriStore
The OpenxriXriStore is used for creating, retrieving and managing i-names in OpenXRI.
| Field Summary | |
|---|---|
protected org.openxri.store.Store |
openxriStore
|
| Constructor Summary | |
|---|---|
OpenxriXriStore(org.openxri.store.Store openxriStore)
|
|
| 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 |
| Field Detail |
|---|
protected org.openxri.store.Store openxriStore
| Constructor Detail |
|---|
public OpenxriXriStore(org.openxri.store.Store openxriStore)
| Method Detail |
|---|
public boolean existsXri(Xri parentXri,
java.lang.String localName)
throws XriStoreException
XriStore
existsXri in interface XriStoreparentXri - 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 XriStoreparentXri - 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 XriStoreparentXri - 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 XriStorelocalName - 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 XriStorexri - The i-name Transfer IN which has been completed.
XriStoreException
public void transferXriInCanceled(Xri xri)
throws XriStoreException
XriStore
transferXriInCanceled in interface XriStorexri - The i-name Transfer IN which has been canceled.
XriStoreException
public void transferXriOutComplete(Xri xri)
throws XriStoreException
XriStore
transferXriOutComplete in interface XriStorexri - The i-name Transfer OUT which has been completed.
XriStoreException
public void transferXriOutCanceled(Xri xri)
throws XriStoreException
XriStore
transferXriOutCanceled in interface XriStorexri - 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 XriStorexri - 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 XriStoreXriStoreException
public java.util.List<Xri> listXris()
throws XriStoreException
XriStore
listXris in interface XriStoreXriStoreException
public java.util.List<Xri> listRootXris()
throws XriStoreException
XriStore
listRootXris in interface XriStoreXriStoreException
public java.util.List<Xri> listUserXris(java.lang.String userIdentifier)
throws XriStoreException
XriStore
listUserXris in interface XriStoreXriStoreException
public Xri findXri(java.lang.String xri)
throws XriStoreException
XriStore
findXri in interface XriStoreXriStoreException
public Xri findXriByGrsAuthorityId(java.lang.String grsAuthorityId)
throws XriStoreException
XriStore
findXriByGrsAuthorityId in interface XriStoreXriStoreException
public java.lang.String findUserIdentifier(java.lang.String xri)
throws XriStoreException
XriStore
findUserIdentifier in interface XriStoreXriStoreException
public long getAuthorityCount()
throws XriStoreException
XriStore
getAuthorityCount in interface XriStoreXriStoreException
public long getXriCount()
throws XriStoreException
XriStore
getXriCount in interface XriStoreXriStoreException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||