org.alfresco.service.cmr.repository
Class StoreRef

java.lang.Object
  extended by org.alfresco.service.cmr.repository.StoreRef
All Implemented Interfaces:
java.io.Serializable, EntityRef

public final class StoreRef
extends java.lang.Object
implements EntityRef, java.io.Serializable

Reference to a node store

See Also:
Serialized Form

Field Summary
static java.lang.String PROTOCOL_ARCHIVE
           
static java.lang.String PROTOCOL_AVM
           
static java.lang.String PROTOCOL_DELETED
           
static java.lang.String PROTOCOL_TEST
           
static java.lang.String PROTOCOL_WORKSPACE
           
static StoreRef STORE_REF_ARCHIVE_SPACESSTORE
           
static StoreRef STORE_REF_WORKSPACE_SPACESSTORE
           
static java.lang.String URI_FILLER
           
 
Constructor Summary
StoreRef(java.lang.String string)
           
StoreRef(java.lang.String protocol, java.lang.String identifier)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getIdentifier()
           
 java.lang.String getProtocol()
           
 int hashCode()
          Creates a hashcode from both the StoreRef.getProtocol() and StoreRef.getIdentifier()
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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_AVM

public static final java.lang.String PROTOCOL_AVM
See Also:
Constant Field Values

PROTOCOL_TEST

public static final java.lang.String PROTOCOL_TEST
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

URI_FILLER

public static final java.lang.String URI_FILLER
See Also:
Constant Field Values
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 StoreRef.getProtocol() and StoreRef.getIdentifier()

Overrides:
hashCode in class java.lang.Object

getProtocol

public java.lang.String getProtocol()

getIdentifier

public java.lang.String getIdentifier()


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.