org.apache.continuum.webdav
Class ContinuumBuildAgentDavResourceLocator

java.lang.Object
  extended by org.apache.continuum.webdav.ContinuumBuildAgentDavResourceLocator
All Implemented Interfaces:
org.apache.jackrabbit.webdav.DavResourceLocator

public class ContinuumBuildAgentDavResourceLocator
extends Object
implements org.apache.jackrabbit.webdav.DavResourceLocator


Constructor Summary
ContinuumBuildAgentDavResourceLocator(String prefix, String resourcePath, org.apache.jackrabbit.webdav.DavLocatorFactory davLocatorFactory, int projectId)
           
 
Method Summary
 boolean equals(Object obj)
          Equality of path is achieved if the specified object is a DavResourceLocator object with the same hash code.
 org.apache.jackrabbit.webdav.DavLocatorFactory getFactory()
           
 String getHref(boolean isCollection)
           
 String getPrefix()
           
 int getProjectId()
           
 String getRepositoryPath()
           
 String getResourcePath()
           
 String getWorkspaceName()
           
 String getWorkspacePath()
           
 int hashCode()
          Computes the hash code from the href, which is built using the final fields prefix and resourcePath.
 boolean isRootLocation()
           
 boolean isSameWorkspace(org.apache.jackrabbit.webdav.DavResourceLocator locator)
           
 boolean isSameWorkspace(String workspaceName)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContinuumBuildAgentDavResourceLocator

public ContinuumBuildAgentDavResourceLocator(String prefix,
                                             String resourcePath,
                                             org.apache.jackrabbit.webdav.DavLocatorFactory davLocatorFactory,
                                             int projectId)
Method Detail

getFactory

public org.apache.jackrabbit.webdav.DavLocatorFactory getFactory()
Specified by:
getFactory in interface org.apache.jackrabbit.webdav.DavResourceLocator

getHref

public String getHref(boolean isCollection)
Specified by:
getHref in interface org.apache.jackrabbit.webdav.DavResourceLocator

getPrefix

public String getPrefix()
Specified by:
getPrefix in interface org.apache.jackrabbit.webdav.DavResourceLocator

getProjectId

public int getProjectId()

getRepositoryPath

public String getRepositoryPath()
Specified by:
getRepositoryPath in interface org.apache.jackrabbit.webdav.DavResourceLocator

getResourcePath

public String getResourcePath()
Specified by:
getResourcePath in interface org.apache.jackrabbit.webdav.DavResourceLocator

getWorkspaceName

public String getWorkspaceName()
Specified by:
getWorkspaceName in interface org.apache.jackrabbit.webdav.DavResourceLocator

getWorkspacePath

public String getWorkspacePath()
Specified by:
getWorkspacePath in interface org.apache.jackrabbit.webdav.DavResourceLocator

hashCode

public int hashCode()
Computes the hash code from the href, which is built using the final fields prefix and resourcePath.

Overrides:
hashCode in class Object
Returns:
the hash code

isRootLocation

public boolean isRootLocation()
Specified by:
isRootLocation in interface org.apache.jackrabbit.webdav.DavResourceLocator

isSameWorkspace

public boolean isSameWorkspace(org.apache.jackrabbit.webdav.DavResourceLocator locator)
Specified by:
isSameWorkspace in interface org.apache.jackrabbit.webdav.DavResourceLocator

isSameWorkspace

public boolean isSameWorkspace(String workspaceName)
Specified by:
isSameWorkspace in interface org.apache.jackrabbit.webdav.DavResourceLocator

equals

public boolean equals(Object obj)
Equality of path is achieved if the specified object is a DavResourceLocator object with the same hash code.

Overrides:
equals in class Object
Parameters:
obj - the object to compare to
Returns:
true if the 2 objects are equal; false otherwise


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.