eXo JCR :: Component :: Extension Service 1.16.0-CR2

org.exoplatform.services.jcr.ext.resource
Class UnifiedNodeReference

java.lang.Object
  extended by org.exoplatform.services.jcr.ext.resource.UnifiedNodeReference

public class UnifiedNodeReference
extends Object

Created by The eXo Platform SAS .

Version:
$Id: $
Author:
Gennady Azarenkov

Field Summary
static String JCR_SCHEME
           
 
Constructor Summary
UnifiedNodeReference(String spec)
           
UnifiedNodeReference(String repository, String workspace, Identifier identifier)
           
UnifiedNodeReference(String repository, String workspace, String path)
           
UnifiedNodeReference(URI uri)
           
UnifiedNodeReference(URI uri, String defaultRepository, String defaultWorkspace)
           
UnifiedNodeReference(URL url)
           
 
Method Summary
 Identifier getIdentitifier()
           
 String getPath()
           
 String getRepository()
           
 URI getURI()
           
 URL getURL()
           
static URLStreamHandler getURLStreamHandler()
           
 String getUserInfo()
           
 String getWorkspace()
           
 boolean isIdentitifier()
           
 boolean isPath()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JCR_SCHEME

public static final String JCR_SCHEME
See Also:
Constant Field Values
Constructor Detail

UnifiedNodeReference

public UnifiedNodeReference(String spec)
                     throws URISyntaxException,
                            MalformedURLException
Throws:
URISyntaxException
MalformedURLException

UnifiedNodeReference

public UnifiedNodeReference(URL url)
                     throws URISyntaxException
Throws:
URISyntaxException

UnifiedNodeReference

public UnifiedNodeReference(URI uri)
                     throws URISyntaxException
Throws:
URISyntaxException

UnifiedNodeReference

public UnifiedNodeReference(URI uri,
                            String defaultRepository,
                            String defaultWorkspace)
                     throws URISyntaxException
Throws:
URISyntaxException

UnifiedNodeReference

public UnifiedNodeReference(String repository,
                            String workspace,
                            Identifier identifier)

UnifiedNodeReference

public UnifiedNodeReference(String repository,
                            String workspace,
                            String path)
Method Detail

getRepository

public String getRepository()
Returns:
the repository name.

getWorkspace

public String getWorkspace()
Returns:
the workspace name.

getIdentitifier

public Identifier getIdentitifier()
Returns:
the node identifier.

isIdentitifier

public boolean isIdentitifier()
Returns:
true if UUID used as node identifier.

getPath

public String getPath()
Returns:
the node path.

isPath

public boolean isPath()
Returns:
true if full path used as node identifier.

getUserInfo

public String getUserInfo()
Returns:
the user info part of URL, it looks like user:pass.

getURI

public URI getURI()
           throws URISyntaxException
Returns:
the URI of node.
Throws:
URISyntaxException

getURL

public URL getURL()
           throws MalformedURLException
Returns:
the URL of node.
Throws:
MalformedURLException

getURLStreamHandler

public static URLStreamHandler getURLStreamHandler()
Returns:
the handler for protocol jcr.
See Also:
URLStreamHandler

eXo JCR :: Component :: Extension Service 1.16.0-CR2

Copyright © 2014 eXo Platform SAS. All Rights Reserved.