ibrokerkit.iname4java.store.impl.grs
Class GrsXri

java.lang.Object
  extended by ibrokerkit.iname4java.store.impl.AbstractXri
      extended by ibrokerkit.iname4java.store.impl.openxri.OpenxriXri
          extended by ibrokerkit.iname4java.store.impl.grs.GrsXri
All Implemented Interfaces:
Xri, java.io.Serializable, java.lang.Comparable<Xri>

public class GrsXri
extends OpenxriXri

An i-name that exists in the GRS, i.e. a top-level i-name. This class extends OpenxriXri, i.e. all top-level i-names are also stored in OpenXRI.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class ibrokerkit.iname4java.store.impl.openxri.OpenxriXri
aliases, authority, authorityAttributes, authorityId, canonicalEquivID, canonicalID, date, equivIDs, extension, openxriStore, parentAliases, parentAuthority, redirects, refs, services, subSegment, subSegmentAttributes, xrd
 
Constructor Summary
protected GrsXri(OpenxriXri xri, EppTools eppTools, char gcs, java.lang.String grsAuthorityId, java.lang.String grsAuthorityPassword)
           
protected GrsXri(OpenxriXri xri, EppTools eppTools, char gcs, java.lang.String grsAuthorityId, java.lang.String grsAuthorityPassword, com.neulevel.epp.xri.EppXriAuthority eppXriAuthority)
           
 
Method Summary
 void addEquivID(org.openxri.xml.EquivID equivID)
           
 void addRedirect(org.openxri.xml.Redirect redirect)
           
 void addRef(org.openxri.xml.Ref ref)
           
 void addService(org.openxri.xml.Service service)
           
 void addServices(org.openxri.xml.Service[] services)
           
 void deleteAllServices()
           
 void deleteCanonicalEquivID()
           
 void deleteEquivID(org.openxri.xml.EquivID equivID)
           
 void deleteExtension()
           
 void deleteRedirect(org.openxri.xml.Redirect redirect)
           
 void deleteRef(org.openxri.xml.Ref ref)
           
 void deleteService(org.openxri.xml.Service service)
           
 void deleteStandardServices()
           
 java.util.List<java.lang.String> getAliases()
          Returns a list of "full names" of i-names that resolve to the authority of this i-name.
 java.lang.String getAuthorityId()
          Returns the ID of the OpenXRI authority of this i-name.
 org.openxri.xml.CanonicalEquivID getCanonicalEquivID()
           
 org.openxri.xml.CanonicalID getCanonicalID()
           
 java.util.Date getDate()
          Returns the registration date of this i-name.
 java.util.List<org.openxri.xml.EquivID> getEquivIDs()
           
 java.lang.String getExtension()
           
 java.lang.String getFullName()
          Returns a single "full name" of this i-name.
 java.util.List<java.lang.String> getFullNames()
          Returns all "full names" of this i-name.
 char getGcs()
           
 java.lang.String getGrsAuthorityId()
           
 java.lang.String getGrsAuthorityPassword()
           
 java.lang.String getLocalName()
          Returns the "local name" of this i-name.
 java.util.List<java.lang.String> getParentAliases()
          Returns a list of "full names" of i-names that resolve to the parent authority of this i-name.
 java.util.List<org.openxri.xml.Redirect> getRedirects()
           
 java.util.List<org.openxri.xml.Ref> getRefs()
           
 java.util.List<org.openxri.xml.Service> getServices()
           
 java.lang.String getXriAttribute(java.lang.String key)
           
 boolean hasXriAttribute(java.lang.String key)
           
 boolean isStale()
          Returns true, if the i-name is "stale".
 void setCanonicalEquivID(org.openxri.xml.CanonicalEquivID canonicalEquivID)
           
 void setCanonicalID(org.openxri.xml.CanonicalID canonicalID)
           
 void setExtension(java.lang.String extension)
           
 
Methods inherited from class ibrokerkit.iname4java.store.impl.openxri.OpenxriXri
getAuthority, getAuthorityAttribute, getParentAuthority, getSubSegment, hasAuthorityAttribute, setAuthorityAttribute, setXriAttribute
 
Methods inherited from class ibrokerkit.iname4java.store.impl.AbstractXri
compareTo, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GrsXri

protected GrsXri(OpenxriXri xri,
                 EppTools eppTools,
                 char gcs,
                 java.lang.String grsAuthorityId,
                 java.lang.String grsAuthorityPassword)

GrsXri

protected GrsXri(OpenxriXri xri,
                 EppTools eppTools,
                 char gcs,
                 java.lang.String grsAuthorityId,
                 java.lang.String grsAuthorityPassword,
                 com.neulevel.epp.xri.EppXriAuthority eppXriAuthority)
Method Detail

getGcs

public char getGcs()

getGrsAuthorityId

public java.lang.String getGrsAuthorityId()

getGrsAuthorityPassword

public java.lang.String getGrsAuthorityPassword()

getLocalName

public java.lang.String getLocalName()
Description copied from interface: Xri
Returns the "local name" of this i-name. In the case of a top-level i-name, this is simply the i-name itself (e.g. =myname) In the case of a community i-name, this is the subsegment (e.g. *myname)

Specified by:
getLocalName in interface Xri
Overrides:
getLocalName in class OpenxriXri

getFullName

public java.lang.String getFullName()
Description copied from interface: Xri
Returns a single "full name" of this i-name. In the case of a top-level i-name, this is simply the i-name itself (e.g. =myname) In the case of a community i-name, this is the whole i-name (e.g. =mycommunity*myname)

Specified by:
getFullName in interface Xri
Overrides:
getFullName in class OpenxriXri

getFullNames

public java.util.List<java.lang.String> getFullNames()
Description copied from interface: Xri
Returns all "full names" of this i-name. This can be more than one if the i-name is a community i-name, and if one or more parent i-names higher up in the hierarchy have synonyms. For example, if =mycommunity and =myothercommunity are synonyms, then there could be a community i-name *myname which has two "full names": =mycommunity*myname and =myothercommunity*myname

Specified by:
getFullNames in interface Xri
Overrides:
getFullNames in class OpenxriXri

getAuthorityId

public java.lang.String getAuthorityId()
Description copied from interface: Xri
Returns the ID of the OpenXRI authority of this i-name.

Specified by:
getAuthorityId in interface Xri
Overrides:
getAuthorityId in class OpenxriXri

getDate

public java.util.Date getDate()
Description copied from interface: Xri
Returns the registration date of this i-name.

Specified by:
getDate in interface Xri
Overrides:
getDate in class OpenxriXri

getXriAttribute

public java.lang.String getXriAttribute(java.lang.String key)
                                 throws XriStoreException
Specified by:
getXriAttribute in interface Xri
Overrides:
getXriAttribute in class OpenxriXri
Throws:
XriStoreException

hasXriAttribute

public boolean hasXriAttribute(java.lang.String key)
                        throws XriStoreException
Specified by:
hasXriAttribute in interface Xri
Overrides:
hasXriAttribute in class OpenxriXri
Throws:
XriStoreException

getParentAliases

public java.util.List<java.lang.String> getParentAliases()
Description copied from interface: Xri
Returns a list of "full names" of i-names that resolve to the parent authority of this i-name.

Specified by:
getParentAliases in interface Xri
Overrides:
getParentAliases in class OpenxriXri

getAliases

public java.util.List<java.lang.String> getAliases()
Description copied from interface: Xri
Returns a list of "full names" of i-names that resolve to the authority of this i-name.

Specified by:
getAliases in interface Xri
Overrides:
getAliases in class OpenxriXri

isStale

public boolean isStale()
Description copied from interface: Xri
Returns true, if the i-name is "stale". An i-name is "stale" if it has a parent authority (i.e. is a community i-name) but the parent authority has no "full name". For example, let's assume we have a community i-name @free*earth*moon. If someone deletes the community i-name *earth, then *moon still exists, but its parent authority has no "full name" anymore. Therefore *moon is stale.

Specified by:
isStale in interface Xri
Overrides:
isStale in class OpenxriXri

getCanonicalID

public org.openxri.xml.CanonicalID getCanonicalID()
                                           throws XriStoreException
Specified by:
getCanonicalID in interface Xri
Overrides:
getCanonicalID in class OpenxriXri
Throws:
XriStoreException

getCanonicalEquivID

public org.openxri.xml.CanonicalEquivID getCanonicalEquivID()
                                                     throws XriStoreException
Specified by:
getCanonicalEquivID in interface Xri
Overrides:
getCanonicalEquivID in class OpenxriXri
Throws:
XriStoreException

getExtension

public java.lang.String getExtension()
                              throws XriStoreException
Specified by:
getExtension in interface Xri
Overrides:
getExtension in class OpenxriXri
Throws:
XriStoreException

getEquivIDs

public java.util.List<org.openxri.xml.EquivID> getEquivIDs()
                                                    throws XriStoreException
Specified by:
getEquivIDs in interface Xri
Overrides:
getEquivIDs in class OpenxriXri
Throws:
XriStoreException

getRefs

public java.util.List<org.openxri.xml.Ref> getRefs()
                                            throws XriStoreException
Specified by:
getRefs in interface Xri
Overrides:
getRefs in class OpenxriXri
Throws:
XriStoreException

getRedirects

public java.util.List<org.openxri.xml.Redirect> getRedirects()
                                                      throws XriStoreException
Specified by:
getRedirects in interface Xri
Overrides:
getRedirects in class OpenxriXri
Throws:
XriStoreException

getServices

public java.util.List<org.openxri.xml.Service> getServices()
                                                    throws XriStoreException
Specified by:
getServices in interface Xri
Overrides:
getServices in class OpenxriXri
Throws:
XriStoreException

setCanonicalID

public void setCanonicalID(org.openxri.xml.CanonicalID canonicalID)
                    throws XriStoreException
Specified by:
setCanonicalID in interface Xri
Overrides:
setCanonicalID in class OpenxriXri
Throws:
XriStoreException

setCanonicalEquivID

public void setCanonicalEquivID(org.openxri.xml.CanonicalEquivID canonicalEquivID)
                         throws XriStoreException
Specified by:
setCanonicalEquivID in interface Xri
Overrides:
setCanonicalEquivID in class OpenxriXri
Throws:
XriStoreException

setExtension

public void setExtension(java.lang.String extension)
                  throws XriStoreException
Specified by:
setExtension in interface Xri
Overrides:
setExtension in class OpenxriXri
Throws:
XriStoreException

addEquivID

public void addEquivID(org.openxri.xml.EquivID equivID)
                throws XriStoreException
Specified by:
addEquivID in interface Xri
Overrides:
addEquivID in class OpenxriXri
Throws:
XriStoreException

addRef

public void addRef(org.openxri.xml.Ref ref)
            throws XriStoreException
Specified by:
addRef in interface Xri
Overrides:
addRef in class OpenxriXri
Throws:
XriStoreException

addRedirect

public void addRedirect(org.openxri.xml.Redirect redirect)
                 throws XriStoreException
Specified by:
addRedirect in interface Xri
Overrides:
addRedirect in class OpenxriXri
Throws:
XriStoreException

addService

public void addService(org.openxri.xml.Service service)
                throws XriStoreException
Specified by:
addService in interface Xri
Overrides:
addService in class OpenxriXri
Throws:
XriStoreException

addServices

public void addServices(org.openxri.xml.Service[] services)
                 throws XriStoreException
Specified by:
addServices in interface Xri
Overrides:
addServices in class OpenxriXri
Throws:
XriStoreException

deleteCanonicalEquivID

public void deleteCanonicalEquivID()
                            throws XriStoreException
Specified by:
deleteCanonicalEquivID in interface Xri
Overrides:
deleteCanonicalEquivID in class OpenxriXri
Throws:
XriStoreException

deleteExtension

public void deleteExtension()
                     throws XriStoreException
Specified by:
deleteExtension in interface Xri
Overrides:
deleteExtension in class OpenxriXri
Throws:
XriStoreException

deleteEquivID

public void deleteEquivID(org.openxri.xml.EquivID equivID)
                   throws XriStoreException
Specified by:
deleteEquivID in interface Xri
Overrides:
deleteEquivID in class OpenxriXri
Throws:
XriStoreException

deleteRef

public void deleteRef(org.openxri.xml.Ref ref)
               throws XriStoreException
Specified by:
deleteRef in interface Xri
Overrides:
deleteRef in class OpenxriXri
Throws:
XriStoreException

deleteRedirect

public void deleteRedirect(org.openxri.xml.Redirect redirect)
                    throws XriStoreException
Specified by:
deleteRedirect in interface Xri
Overrides:
deleteRedirect in class OpenxriXri
Throws:
XriStoreException

deleteService

public void deleteService(org.openxri.xml.Service service)
                   throws XriStoreException
Specified by:
deleteService in interface Xri
Overrides:
deleteService in class OpenxriXri
Throws:
XriStoreException

deleteAllServices

public void deleteAllServices()
                       throws XriStoreException
Specified by:
deleteAllServices in interface Xri
Overrides:
deleteAllServices in class OpenxriXri
Throws:
XriStoreException

deleteStandardServices

public void deleteStandardServices()
                            throws XriStoreException
Specified by:
deleteStandardServices in interface Xri
Overrides:
deleteStandardServices in class OpenxriXri
Throws:
XriStoreException


Copyright © 2009. All Rights Reserved.