org.eclipse.higgins.idas.cp.rest.xml
Class RESTContext

java.lang.Object
  extended by org.eclipse.higgins.idas.spi.BasicAttributeSet
      extended by org.eclipse.higgins.idas.spi.BasicContext
          extended by org.eclipse.higgins.idas.cp.rest.xml.RESTContext
All Implemented Interfaces:
org.eclipse.higgins.idas.api.IContext, org.eclipse.higgins.idas.api.IHasAttributes, org.eclipse.higgins.idas.spi.IAttributeContainer, org.eclipse.higgins.idas.spi.IEntityContainer

public class RESTContext
extends org.eclipse.higgins.idas.spi.BasicContext


Constructor Summary
RESTContext(org.eclipse.higgins.idas.api.IContextId contextID)
           
 
Method Summary
 void applyUpdates()
           
 void close()
           
 String getEndpointURL()
           
 Iterator getEntities(org.eclipse.higgins.idas.api.IFilter filter)
           
 Iterator getEntities(org.eclipse.higgins.idas.api.IFilter filter, Iterator attrSelectionList)
           
 Iterator getEntities(org.eclipse.higgins.idas.api.IFilter filter, Iterator attrSelectionList, org.eclipse.higgins.idas.api.IExtension[] extensions)
           
 org.eclipse.higgins.idas.api.IEntity getEntity(String entityID)
           
 String getSessionSecret()
           
static String httpMethFailure(org.apache.commons.httpclient.HttpMethod meth)
           
 String open(Object identity)
           
static void throwIdASException(org.apache.commons.httpclient.HttpMethod meth)
           
 
Methods inherited from class org.eclipse.higgins.idas.spi.BasicContext
addEntity, addEntity, addUnnotifiedEntity, buildAttribute, buildAttributeAssertion, buildAuthNAttributesMaterials, buildComplexAttrValue, buildEntityIDAssertion, buildEntityTypeAssertion, buildFilter, buildSimpleAttrValue, cancelUpdates, createSimpleValue, exportData, getContextID, getContextModel, getEntity, getSchema, importData, isOpen, isSimpleType, open, open, removeUnnotifiedEntity, reopen, setComponentSetting, setComponentSetting, setOpen, setSchema, updateNotification, verifyEntityAttributes
 
Methods inherited from class org.eclipse.higgins.idas.spi.BasicAttributeSet
addAttribute, addAttribute, addUnnotifiedAttribute, addUnnotifiedAttribute, equals, getAttribute, getAttributes, getSingleValuedAttribute, removeAttribute, removeAttributeValue, removeAttributeValue, removeUnnotifiedAttribute, updateNotification
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.higgins.idas.api.IHasAttributes
addAttribute, addAttribute, equals, getAttribute, getAttributes, getSingleValuedAttribute, removeAttribute, removeAttributeValue, removeAttributeValue
 
Methods inherited from interface org.eclipse.higgins.idas.spi.IAttributeContainer
updateNotification
 

Constructor Detail

RESTContext

public RESTContext(org.eclipse.higgins.idas.api.IContextId contextID)
            throws org.eclipse.higgins.idas.api.IdASException
Parameters:
contextID -
Throws:
org.eclipse.higgins.idas.api.IdASException
Method Detail

throwIdASException

public static void throwIdASException(org.apache.commons.httpclient.HttpMethod meth)
                               throws org.eclipse.higgins.idas.api.IdASException
Throws:
org.eclipse.higgins.idas.api.IdASException

open

public String open(Object identity)
            throws org.eclipse.higgins.idas.api.IdASException
Parameters:
identity -
Throws:
org.eclipse.higgins.idas.api.IdASException

close

public void close()
           throws org.eclipse.higgins.idas.api.IdASException
Specified by:
close in interface org.eclipse.higgins.idas.api.IContext
Overrides:
close in class org.eclipse.higgins.idas.spi.BasicContext
Throws:
org.eclipse.higgins.idas.api.IdASException

getEntity

public org.eclipse.higgins.idas.api.IEntity getEntity(String entityID)
                                               throws org.eclipse.higgins.idas.api.IdASException
Specified by:
getEntity in interface org.eclipse.higgins.idas.api.IContext
Overrides:
getEntity in class org.eclipse.higgins.idas.spi.BasicContext
Throws:
org.eclipse.higgins.idas.api.IdASException

getEntities

public Iterator getEntities(org.eclipse.higgins.idas.api.IFilter filter)
                     throws org.eclipse.higgins.idas.api.IdASException
Specified by:
getEntities in interface org.eclipse.higgins.idas.api.IContext
Overrides:
getEntities in class org.eclipse.higgins.idas.spi.BasicContext
Throws:
org.eclipse.higgins.idas.api.IdASException

getEntities

public Iterator getEntities(org.eclipse.higgins.idas.api.IFilter filter,
                            Iterator attrSelectionList)
                     throws org.eclipse.higgins.idas.api.IdASException
Specified by:
getEntities in interface org.eclipse.higgins.idas.api.IContext
Overrides:
getEntities in class org.eclipse.higgins.idas.spi.BasicContext
Throws:
org.eclipse.higgins.idas.api.IdASException

getEntities

public Iterator getEntities(org.eclipse.higgins.idas.api.IFilter filter,
                            Iterator attrSelectionList,
                            org.eclipse.higgins.idas.api.IExtension[] extensions)
                     throws org.eclipse.higgins.idas.api.IdASException
Specified by:
getEntities in interface org.eclipse.higgins.idas.api.IContext
Overrides:
getEntities in class org.eclipse.higgins.idas.spi.BasicContext
Throws:
org.eclipse.higgins.idas.api.IdASException

getEndpointURL

public String getEndpointURL()
Returns:
String containing the endpoint URI

getSessionSecret

public String getSessionSecret()
Returns:

applyUpdates

public void applyUpdates()
                  throws org.eclipse.higgins.idas.api.IdASException
Specified by:
applyUpdates in interface org.eclipse.higgins.idas.api.IContext
Overrides:
applyUpdates in class org.eclipse.higgins.idas.spi.BasicContext
Throws:
org.eclipse.higgins.idas.api.IdASException

httpMethFailure

public static String httpMethFailure(org.apache.commons.httpclient.HttpMethod meth)