Class UnifiedNodeReference
- java.lang.Object
-
- 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
Fields Modifier and Type Field Description static StringJCR_SCHEME
-
Constructor Summary
Constructors Constructor Description UnifiedNodeReference(String spec)UnifiedNodeReference(String repository, String workspace, String path)UnifiedNodeReference(String repository, String workspace, org.exoplatform.services.jcr.datamodel.Identifier identifier)UnifiedNodeReference(URI uri)UnifiedNodeReference(URI uri, String defaultRepository, String defaultWorkspace)UnifiedNodeReference(URL url)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.exoplatform.services.jcr.datamodel.IdentifiergetIdentitifier()StringgetPath()StringgetRepository()URIgetURI()URLgetURL()static URLStreamHandlergetURLStreamHandler()StringgetUserInfo()StringgetWorkspace()booleanisIdentitifier()booleanisPath()
-
-
-
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
-
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, org.exoplatform.services.jcr.datamodel.Identifier identifier)
-
-
Method Detail
-
getRepository
public String getRepository()
- Returns:
- the repository name.
-
getWorkspace
public String getWorkspace()
- Returns:
- the workspace name.
-
getIdentitifier
public org.exoplatform.services.jcr.datamodel.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
-
-