org.eclipse.higgins.idas.cp.rest.xml
Class RESTContext
java.lang.Object
org.eclipse.higgins.idas.spi.BasicAttributeSet
org.eclipse.higgins.idas.spi.BasicContext
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
| Fields inherited from interface org.eclipse.higgins.idas.api.IContext |
defaultEntityType |
|
Constructor Summary |
RESTContext(org.eclipse.higgins.idas.api.IContextId contextID)
|
| 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, getEntities, getEntities, getEntities, 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, addAttributeValue, addUnnotifiedAttribute, addUnnotifiedAttribute, equals, getAttribute, getAttributes, getSingleValuedAttribute, removeAttribute, removeAttributeValue, removeAttributeValue, removeUnnotifiedAttribute, updateNotification |
| Methods inherited from interface org.eclipse.higgins.idas.api.IHasAttributes |
addAttribute, addAttribute, addAttributeValue, getAttribute, getAttributes, getSingleValuedAttribute, removeAttribute, removeAttributeValue, removeAttributeValue |
| Methods inherited from interface org.eclipse.higgins.idas.spi.IAttributeContainer |
updateNotification |
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
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)