org.wso2.registry
Class Resource
java.lang.Object
org.wso2.registry.Resource
public class Resource
- extends java.lang.Object
Represents any file or collection stored in the registry. It encapsulates both the content
of the entity and its metadata. In addition to files and collections, instances of Resource
are used to represent results of runtime queries. In such secenarios, comments, tags, ratings as
well as collections of comments, etc. are also represented by Resource objects.
Each resource instance contains a unique path within a Registry instance. Registry.get(...)
method invocation using this path gives an instance of that resource. This path can be
combined with the base URL of the registry server to generate a URI for the resource.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Resource
public Resource()
getId
public long getId()
setId
public void setId(long id)
getAuthorUserName
public java.lang.String getAuthorUserName()
setAuthorUserName
public void setAuthorUserName(java.lang.String authorUserName)
getCreatedTime
public java.util.Date getCreatedTime()
setCreatedTime
public void setCreatedTime(java.util.Date createdTime)
getLastModified
public java.util.Date getLastModified()
setLastModified
public void setLastModified(java.util.Date lastModified)
getDescription
public java.lang.String getDescription()
setDescription
public void setDescription(java.lang.String description)
getPath
public java.lang.String getPath()
setPath
public void setPath(java.lang.String path)
getMediaType
public java.lang.String getMediaType()
setMediaType
public void setMediaType(java.lang.String mediaType)
getParentPath
public java.lang.String getParentPath()
setParentPath
public void setParentPath(java.lang.String parentPath)
getState
public int getState()
setState
public void setState(int state)
getProperty
public java.lang.String getProperty(java.lang.String key)
getProperties
public java.util.Properties getProperties()
setProperty
public void setProperty(java.lang.String key,
java.lang.String value)
setProperties
public void setProperties(java.util.Properties properties)
getContent
public java.lang.Object getContent()
setContent
public void setContent(java.lang.Object content)
getLastUpdaterUserName
public java.lang.String getLastUpdaterUserName()
setLastUpdaterUserName
public void setLastUpdaterUserName(java.lang.String lastUpdaterUserName)
isDirectory
public boolean isDirectory()
setDirectory
public void setDirectory(boolean directory)
getDependedOnBy
public java.lang.String[] getDependedOnBy()
setDependedOnBy
public void setDependedOnBy(java.lang.String[] dependedOnBy)
getDependsOn
public java.lang.String[] getDependsOn()
setDependsOn
public void setDependsOn(java.lang.String[] dependsOn)
isContentModified
public boolean isContentModified()
setContentModified
public void setContentModified(boolean contentModified)
- This method is used to explicitly set the content modified state of the resource. Normal
users of the Registry API should not call this method.
- Parameters:
contentModified
- true if we want to add a new version upon putting this to the
registry. false otherwise.
Copyright © 2007 Apache Web Services Project. All Rights Reserved.