Class EppResource

    • Constructor Detail

      • EppResource

        public EppResource()
    • Method Detail

      • getRepoId

        public java.lang.String getRepoId()
      • getCreationTime

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

        public java.lang.String getCreationClientId()
      • getLastEppUpdateTime

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

        public java.lang.String getLastEppUpdateClientId()
      • getPersistedCurrentSponsorClientId

        public final java.lang.String getPersistedCurrentSponsorClientId()
        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.
      • 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.