org.wso2.registry.app
Class AtomRegistry

java.lang.Object
  extended by org.wso2.registry.app.AtomRegistry
All Implemented Interfaces:
APPConstants

public class AtomRegistry
extends java.lang.Object
implements APPConstants


Field Summary
static java.lang.String SECURE_REGISTRY
           
 
Fields inherited from interface org.wso2.registry.app.APPConstants
ASPECT, ASPECTS, ASSOC_TYPE, ASSOCIATIONS, ATOM, COMMENTID_QNAME, COMMENTS_QNAME, IMPORT_MEDIATYPE, NAMESPACE, PARAMETER_ADD_ASSOCIATION, PARAMETER_ADD_ROLE, PARAMETER_ADD_USER, PARAMETER_ASSOCIATE_ASPECT, PARAMETER_AVERAGE_RATINGS, PARAMETER_COMMENTS, PARAMETER_GET_ALL_ASSOCIATION, PARAMETER_GET_ALL_ASSOCIATION_FOR_TYPE, PARAMETER_GET_ASPECT_ACTIONS, PARAMETER_INVOKE_ASPECT, PARAMETER_LOGS, PARAMETER_QUERY, PARAMETER_RATINGS, PARAMETER_REMOVE_ASSOCIATION, PARAMETER_RENAME, PARAMETER_RESOURCE_EXIST, PARAMETER_RESTORE, PARAMETER_TAG_PATHS, PARAMETER_TAGS, PARAMETER_TAGS_REMOVED, PARAMETER_VERSION, QNAME_ASSOC, QNAME_AVGRATING, QNAME_CHILD_COUNT, QNAME_LAST_UPDATER, QNAME_MEDIATYPE
 
Constructor Summary
AtomRegistry()
           
 
Method Summary
 org.apache.abdera.protocol.server.ResponseContext createEntry(org.apache.abdera.protocol.server.RequestContext request)
          To post an entry we can use this method , however when it come to embeddedRegistry posting means adding new resources , adding comments , adding tags , rating etc..
 org.apache.abdera.protocol.server.ResponseContext deleteEntry(org.apache.abdera.protocol.server.RequestContext request)
           
 org.apache.abdera.protocol.server.ResponseContext getEntry(org.apache.abdera.protocol.server.RequestContext request)
           
 org.apache.abdera.protocol.server.ResponseContext getFeed(org.apache.abdera.protocol.server.RequestContext request)
          This method used to get an atom feed representing the embeddedRegistry and the depending on the URL the format of the feed will differ
 org.apache.abdera.protocol.server.ResponseContext getService(org.apache.abdera.protocol.server.RequestContext request)
           
 org.apache.abdera.protocol.server.ResponseContext updateEntry(org.apache.abdera.protocol.server.RequestContext request)
          This method is used for PUT operation and depending on the URL operation will be identify and perform that, not only that depending on the operation the structure of entry may vary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SECURE_REGISTRY

public static final java.lang.String SECURE_REGISTRY
See Also:
Constant Field Values
Constructor Detail

AtomRegistry

public AtomRegistry()
             throws RegistryException
Throws:
RegistryException
Method Detail

createEntry

public org.apache.abdera.protocol.server.ResponseContext createEntry(org.apache.abdera.protocol.server.RequestContext request)
To post an entry we can use this method , however when it come to embeddedRegistry posting means adding new resources , adding comments , adding tags , rating etc..

Depending on the type of the operation URl will change , and the URL will contain operation as "/resource;operation" ,the entry value differ one to another

Parameters:
request - : RequestContext
Returns:
EmptyResponseContext(200) if everything has gone well else EmptyResponseContext(500)

deleteEntry

public org.apache.abdera.protocol.server.ResponseContext deleteEntry(org.apache.abdera.protocol.server.RequestContext request)

updateEntry

public org.apache.abdera.protocol.server.ResponseContext updateEntry(org.apache.abdera.protocol.server.RequestContext request)
This method is used for PUT operation and depending on the URL operation will be identify and perform that, not only that depending on the operation the structure of entry may vary

Parameters:
request - : RequestContext
Returns:
: EmptyResponseContext(200) if everything has gone well else EmptyResponseContext(500)

getFeed

public org.apache.abdera.protocol.server.ResponseContext getFeed(org.apache.abdera.protocol.server.RequestContext request)
This method used to get an atom feed representing the embeddedRegistry and the depending on the URL the format of the feed will differ

Parameters:
request - : RequestContext
Returns:
: Will contains the response feed.

getEntry

public org.apache.abdera.protocol.server.ResponseContext getEntry(org.apache.abdera.protocol.server.RequestContext request)

getService

public org.apache.abdera.protocol.server.ResponseContext getService(org.apache.abdera.protocol.server.RequestContext request)


Copyright © 2007 Apache Web Services Project. All Rights Reserved.