org.wso2.carbon.registry.app
Class RemoteResourceImpl

java.lang.Object
  extended by org.wso2.carbon.registry.core.ResourceImpl
      extended by org.wso2.carbon.registry.app.RemoteResourceImpl
All Implemented Interfaces:
org.wso2.carbon.registry.api.Resource

public class RemoteResourceImpl
extends ResourceImpl

Implementation of a resource, to be used by the remote registry.


Field Summary
 
Fields inherited from class org.wso2.carbon.registry.core.ResourceImpl
authorUserName, content, contentModified, createdTime, dataAccessManager, dbBasedContentID, description, directory, id, lastModified, lastUpdaterUserName, matchingSnapshotID, mediaType, name, parentPath, path, pathID, permanentPath, properties, propertiesModified, resourceDAO, snapshotID, state, tenantId, userName, userRealm, uuid, versionableChange, versionNumber
 
Constructor Summary
RemoteResourceImpl()
           
 
Method Summary
 String getAuthorizationString()
          Method to obtain the authorization string.
 Object getContent()
          Method to get the content of the resource.
 InputStream getContentStream()
          Method to get the content stream.
 void setAuthorizationString(String authorizationString)
          Method to set the authorization string.
 void setContentURL(URL contentURL)
          Method to set to content url.
 
Methods inherited from class org.wso2.carbon.registry.core.ResourceImpl
addAspect, addProperty, addPropertyWithNoUpdate, clearSessionInformation, discard, editPropertyValue, fillResourceCopy, getAspects, getAuthorUserName, getCreatedTime, getDbBasedContentID, getDescription, getId, getLastModified, getLastUpdaterUserName, getMatchingSnapshotID, getMediaType, getName, getParentPath, getPath, getPathID, getPermanentPath, getProperties, getProperty, getPropertyValues, getResourceDO, getResourceIDImpl, getShallowCopy, getSnapshotID, getState, getUUID, getVersionNumber, isContentModified, isPropertiesModified, isVersionableChange, prepareContentForPut, pullContentFromOriginal, removeAspect, removeProperty, removePropertyValue, removePropertyWithNoUpdate, setAuthorUserName, setContent, setContentModified, setContentStream, setContentStreamWithNoUpdate, setContentWithNoUpdate, setCreatedTime, setDataAccessManager, setDbBasedContentID, setDescription, setId, setLastModified, setLastUpdaterUserName, setMatchingSnapshotID, setMediaType, setName, setParentPath, setPath, setPathID, setProperties, setPropertiesModified, setPropertiesModifiedWithNoUpdate, setProperty, setProperty, setSessionInformation, setSnapshotID, setState, setTenantId, setUserName, setUserRealm, setUUID, setVersionableChange, setVersionNumber
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteResourceImpl

public RemoteResourceImpl()
Method Detail

setContentURL

public void setContentURL(URL contentURL)
Method to set to content url.

Parameters:
contentURL - the content url.

getAuthorizationString

public String getAuthorizationString()
Method to obtain the authorization string.

Returns:
the authorization string.

setAuthorizationString

public void setAuthorizationString(String authorizationString)
Method to set the authorization string.

Parameters:
authorizationString - the authorization string.

getContentStream

public InputStream getContentStream()
                             throws RegistryException
Description copied from class: ResourceImpl
Method to get the content stream.

Specified by:
getContentStream in interface org.wso2.carbon.registry.api.Resource
Overrides:
getContentStream in class ResourceImpl
Returns:
the content stream.
Throws:
RegistryException - throws if the operation fail.

getContent

public Object getContent()
                  throws RegistryException
Description copied from class: ResourceImpl
Method to get the content of the resource. If the resource is a collection this will return an array of string that represent the paths of its children, otherwise it returns an byte array or a string from the default resource implementation.

Specified by:
getContent in interface org.wso2.carbon.registry.api.Resource
Overrides:
getContent in class ResourceImpl
Returns:
the content.
Throws:
RegistryException - throws if the operation fail.


Copyright © 2014 WSO2 Inc. All Rights Reserved.