Class EppResource

    • Constructor Detail

      • EppResource

        public EppResource()
    • Method Detail

      • getRepoId

        public java.lang.String getRepoId()
      • setRepoId

        public void setRepoId​(java.lang.String repoId)
        Sets the repository ID.

        This should only be used for restoring the repo id of an object being loaded in a PostLoad method (effectively, when it is still under construction by Hibernate). In all other cases, the object should be regarded as immutable and changes should go through a Builder.

        In addition to this special case use, this method must exist to satisfy Hibernate.

      • getCreationTime

        public final org.joda.time.DateTime getCreationTime()
      • getCreationRegistrarId

        public java.lang.String getCreationRegistrarId()
      • getLastEppUpdateTime

        public org.joda.time.DateTime getLastEppUpdateTime()
      • getLastEppUpdateRegistrarId

        public java.lang.String getLastEppUpdateRegistrarId()
      • getPersistedCurrentSponsorRegistrarId

        public final java.lang.String getPersistedCurrentSponsorRegistrarId()
        Get the stored value of currentSponsorClientId.

        For subordinate hosts, this value may not represent the actual current client id, which is the client id of the superordinate host. For all other resources this is the true client id.

      • getStatusValues

        public final com.google.common.collect.ImmutableSet<StatusValue> getStatusValues()
      • getDeletionTime

        public org.joda.time.DateTime getDeletionTime()
      • getRevisions

        public com.google.common.collect.ImmutableSortedMap<org.joda.time.DateTime,​com.googlecode.objectify.Key<CommitLogManifest>> getRevisions()
      • cloneProjectedAtTime

        public abstract EppResource cloneProjectedAtTime​(org.joda.time.DateTime now)
        Return a clone of the resource with timed status values modified using the given time.
      • getForeignKey

        public abstract java.lang.String getForeignKey()
        Get the foreign key string for this resource.
      • createVKey

        public abstract VKey<? extends EppResource> createVKey()
        Create the VKey for the specified EPP resource.
      • saveIndexesToDatastore

        protected void saveIndexesToDatastore()
        Used when replaying from SQL to DS to populate the Datastore indexes.
      • setCacheForTest

        public static void setCacheForTest​(java.util.Optional<org.joda.time.Duration> expiry)
      • loadCached

        public static com.google.common.collect.ImmutableMap<VKey<? extends EppResource>,​EppResource> loadCached​(java.lang.Iterable<VKey<? extends EppResource>> keys)
        Loads the given EppResources by their keys using the cache (if enabled).

        Don't use this unless you really need it for performance reasons, and be sure that you are OK with the trade-offs in loss of transactional consistency.

      • loadCached

        public static <T extends EppResource> T loadCached​(VKey<T> key)
        Loads a given EppResource by its key using the cache (if enabled).

        Don't use this unless you really need it for performance reasons, and be sure that you are OK with the trade-offs in loss of transactional consistency.