|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface XriStore
The XriStore is used for creating, retrieving and managing i-names.
| 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. |
| Method Detail |
|---|
boolean existsXri(Xri parentXri,
java.lang.String localName)
throws XriStoreException
parentXri - 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
Xri registerXri(Xri parentXri,
java.lang.String localName,
XriData xriData,
int years)
throws XriStoreException
parentXri - 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
Xri registerXriSynonym(Xri parentXri,
java.lang.String localName,
Xri xri,
XriData xriData,
int years)
throws XriStoreException
parentXri - 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
Xri transferXriInRequest(java.lang.String localName,
XriData xriData)
throws XriStoreException
localName - 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
void transferXriInComplete(Xri xri)
throws XriStoreException
xri - The i-name Transfer IN which has been completed.
XriStoreException
void transferXriInCanceled(Xri xri)
throws XriStoreException
xri - The i-name Transfer IN which has been canceled.
XriStoreException
void transferXriOutComplete(Xri xri)
throws XriStoreException
xri - The i-name Transfer OUT which has been completed.
XriStoreException
void transferXriOutCanceled(Xri xri)
throws XriStoreException
xri - The i-name Transfer OUT which has been canceled.
XriStoreException
java.util.Calendar renewXri(Xri xri,
int years)
throws XriStoreException
xri - The i-name to renew.years - The number of years by which to renew the i-name and i-number.
XriStoreException
void deleteXri(Xri xri)
throws XriStoreException
XriStoreException
java.util.List<Xri> listXris()
throws XriStoreException
XriStoreException
java.util.List<Xri> listRootXris()
throws XriStoreException
XriStoreException
java.util.List<Xri> listUserXris(java.lang.String userIdentifier)
throws XriStoreException
XriStoreException
Xri findXri(java.lang.String xri)
throws XriStoreException
XriStoreException
Xri findXriByGrsAuthorityId(java.lang.String grsAuthorityId)
throws XriStoreException
XriStoreException
java.lang.String findUserIdentifier(java.lang.String xri)
throws XriStoreException
XriStoreException
long getXriCount()
throws XriStoreException
XriStoreException
long getAuthorityCount()
throws XriStoreException
XriStoreException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||