org.wso2.registry
Interface Resource
- All Known Subinterfaces:
- Collection
- All Known Implementing Classes:
- CollectionImpl, CollectionVersionImpl, Comment, RemoteResourceImpl, ResourceImpl, ResourceVersionImpl
public interface Resource
getId
java.lang.String getId()
getAuthorUserName
java.lang.String getAuthorUserName()
getCreatedTime
java.util.Date getCreatedTime()
getLastModified
java.util.Date getLastModified()
getDescription
java.lang.String getDescription()
setDescription
void setDescription(java.lang.String description)
getPath
java.lang.String getPath()
getPermanentPath
java.lang.String getPermanentPath()
- If resource is versioned, the associated version of the resource does not get modified by
any means. Therefore, the path of that version is the permanent path (permalink) of the
current state of the resource.
- Returns:
- Permanent path (permalink) of the resource.
getMediaType
java.lang.String getMediaType()
getState
int getState()
setMediaType
void setMediaType(java.lang.String mediaType)
getParentPath
java.lang.String getParentPath()
getProperty
java.lang.String getProperty(java.lang.String key)
getPropertyValues
java.util.List getPropertyValues(java.lang.String key)
getProperties
java.util.Properties getProperties()
setProperty
void setProperty(java.lang.String key,
java.lang.String value)
setProperty
void setProperty(java.lang.String key,
java.util.List<java.lang.String> value)
addProperty
void addProperty(java.lang.String key,
java.lang.String value)
setProperties
void setProperties(java.util.Properties properties)
getContent
java.lang.Object getContent()
throws RegistryException
- Throws:
RegistryException
setContent
void setContent(java.lang.Object content)
getLastUpdaterUserName
java.lang.String getLastUpdaterUserName()
getContentStream
java.io.InputStream getContentStream()
throws RegistryException
- Throws:
RegistryException
setContentStream
void setContentStream(java.io.InputStream contentStream)
getAspects
java.util.List<java.lang.String> getAspects()
addAspect
void addAspect(java.lang.String name)
removeAspect
void removeAspect(java.lang.String name)
Copyright © 2007 Apache Web Services Project. All Rights Reserved.