Class StoreRef

  • All Implemented Interfaces:
    java.io.Serializable, EntityRef

    @AlfrescoPublicApi
    public final class StoreRef
    extends java.lang.Object
    implements EntityRef, java.io.Serializable
    Reference to a node store
    Author:
    Derek Hulley
    See Also:
    Serialized Form
    • Field Detail

      • PROTOCOL_WORKSPACE

        public static final java.lang.String PROTOCOL_WORKSPACE
        See Also:
        Constant Field Values
      • PROTOCOL_ARCHIVE

        public static final java.lang.String PROTOCOL_ARCHIVE
        See Also:
        Constant Field Values
      • PROTOCOL_DELETED

        public static final java.lang.String PROTOCOL_DELETED
        See Also:
        Constant Field Values
      • STORE_REF_WORKSPACE_SPACESSTORE

        public static final StoreRef STORE_REF_WORKSPACE_SPACESSTORE
      • STORE_REF_ARCHIVE_SPACESSTORE

        public static final StoreRef STORE_REF_ARCHIVE_SPACESSTORE
    • Constructor Detail

      • StoreRef

        public StoreRef​(java.lang.String protocol,
                        java.lang.String identifier)
        Parameters:
        protocol - well-known protocol for the store, e.g. workspace or versionstore
        identifier - the identifier, which may be specific to the protocol
      • StoreRef

        public StoreRef​(java.lang.String string)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Creates a hashcode from both the getProtocol() and getIdentifier()
        Overrides:
        hashCode in class java.lang.Object
      • getProtocol

        public java.lang.String getProtocol()
      • getIdentifier

        public java.lang.String getIdentifier()