org.eclipse.higgins.idas.cp.jndi
Class JNDIEntity

java.lang.Object
  extended byorg.eclipse.higgins.idas.spi.BasicEntity
      extended byorg.eclipse.higgins.idas.cp.jndi.JNDIEntity
All Implemented Interfaces:
org.eclipse.higgins.idas.spi.IAttributeContainer, org.eclipse.higgins.idas.api.IEntity, org.eclipse.higgins.idas.api.IHasAttributes, org.eclipse.higgins.idas.api.IHasMetadata, org.eclipse.higgins.idas.spi.IMetadataContainer

public class JNDIEntity
extends org.eclipse.higgins.idas.spi.BasicEntity
implements org.eclipse.higgins.idas.api.IEntity

Author:
tdoman@novell.com, jimse@novell.com

Constructor Summary
JNDIEntity(JNDIContext jndiContext, org.eclipse.higgins.idas.api.IEntity copyFrom, org.eclipse.higgins.util.idas.cp.IAttributePDPs attrPDPs)
           
JNDIEntity(JNDIContext jndiContext, SearchResult jndiResult, String searchBase, org.eclipse.higgins.util.idas.cp.IAttributePDPs attrPDPs)
           
JNDIEntity(JNDIContext jndiContext, URI type, String entityID, org.eclipse.higgins.util.idas.cp.IAttributePDPs attrPDPs)
           
 
Method Summary
 org.eclipse.higgins.idas.api.IAttribute addAttribute(org.eclipse.higgins.idas.api.IAttribute copyFrom)
           
 org.eclipse.higgins.idas.api.IAttribute addAttribute(URI type)
           
 org.eclipse.higgins.idas.api.IAttribute getAttribute(URI consumerAttrName)
           
 Iterator getAttributes()
           
 String getEntityID()
           
 URI getEntityType()
           
 org.eclipse.higgins.idas.api.model.IEntityModel getModel()
           
 void remove()
           
 void removeAttribute(URI attrID)
           
 void removeAttributeValue(org.eclipse.higgins.idas.api.IAttribute attr)
           
 void removeAttributeValue(URI attrID, Object value)
           
 void updateNotification(org.eclipse.higgins.idas.spi.AttributeNotification attrNotif)
           
 void updateNotification(org.eclipse.higgins.idas.spi.MetadataNotification metaNotif)
           
 
Methods inherited from class org.eclipse.higgins.idas.spi.BasicEntity
addMetadata, addMetadata, equals, equals, getContext, getMetadata, getMetadataSet, getSingleValuedAttribute
 
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.IEntity
getContext
 
Methods inherited from interface org.eclipse.higgins.idas.api.IHasMetadata
addMetadata, addMetadata, equals, getMetadata, getMetadataSet
 
Methods inherited from interface org.eclipse.higgins.idas.api.IHasAttributes
equals, getSingleValuedAttribute
 

Constructor Detail

JNDIEntity

public JNDIEntity(JNDIContext jndiContext,
                  SearchResult jndiResult,
                  String searchBase,
                  org.eclipse.higgins.util.idas.cp.IAttributePDPs attrPDPs)
           throws org.eclipse.higgins.idas.api.IdASException
Parameters:
jndiContext -
jndiResult -
attrPDPs -
Throws:
org.eclipse.higgins.idas.api.IdASException

JNDIEntity

public JNDIEntity(JNDIContext jndiContext,
                  URI type,
                  String entityID,
                  org.eclipse.higgins.util.idas.cp.IAttributePDPs attrPDPs)
           throws org.eclipse.higgins.idas.api.IdASException
Parameters:
jndiContext -
type -
entityID -
attrPDPs -
Throws:
org.eclipse.higgins.idas.api.IdASException

JNDIEntity

public JNDIEntity(JNDIContext jndiContext,
                  org.eclipse.higgins.idas.api.IEntity copyFrom,
                  org.eclipse.higgins.util.idas.cp.IAttributePDPs attrPDPs)
           throws org.eclipse.higgins.idas.api.IdASException
Parameters:
jndiContext -
copyFrom -
attrPDPs -
Throws:
org.eclipse.higgins.idas.api.IdASException
Method Detail

getEntityID

public String getEntityID()
                   throws org.eclipse.higgins.idas.api.IdASException
Specified by:
getEntityID in interface org.eclipse.higgins.idas.api.IEntity
Throws:
org.eclipse.higgins.idas.api.IdASException

getEntityType

public URI getEntityType()
                  throws org.eclipse.higgins.idas.api.IdASException
Specified by:
getEntityType in interface org.eclipse.higgins.idas.api.IEntity
Throws:
org.eclipse.higgins.idas.api.IdASException

getAttributes

public Iterator getAttributes()
                       throws org.eclipse.higgins.idas.api.IdASException
Specified by:
getAttributes in interface org.eclipse.higgins.idas.api.IHasAttributes
Throws:
org.eclipse.higgins.idas.api.IdASException

getAttribute

public org.eclipse.higgins.idas.api.IAttribute getAttribute(URI consumerAttrName)
                                                     throws org.eclipse.higgins.idas.api.IdASException
Specified by:
getAttribute in interface org.eclipse.higgins.idas.api.IHasAttributes
Throws:
org.eclipse.higgins.idas.api.IdASException

addAttribute

public org.eclipse.higgins.idas.api.IAttribute addAttribute(org.eclipse.higgins.idas.api.IAttribute copyFrom)
                                                     throws org.eclipse.higgins.idas.api.IdASException
Specified by:
addAttribute in interface org.eclipse.higgins.idas.api.IHasAttributes
Throws:
org.eclipse.higgins.idas.api.IdASException

addAttribute

public org.eclipse.higgins.idas.api.IAttribute addAttribute(URI type)
                                                     throws org.eclipse.higgins.idas.api.IdASException,
                                                            org.eclipse.higgins.idas.api.InvalidTypeException
Specified by:
addAttribute in interface org.eclipse.higgins.idas.api.IHasAttributes
Throws:
org.eclipse.higgins.idas.api.IdASException
org.eclipse.higgins.idas.api.InvalidTypeException

removeAttribute

public void removeAttribute(URI attrID)
                     throws org.eclipse.higgins.idas.api.IdASException
Specified by:
removeAttribute in interface org.eclipse.higgins.idas.api.IHasAttributes
Throws:
org.eclipse.higgins.idas.api.IdASException
See Also:
IHasAttributes.removeAttribute(java.net.URI)

removeAttributeValue

public void removeAttributeValue(org.eclipse.higgins.idas.api.IAttribute attr)
                          throws org.eclipse.higgins.idas.api.IdASException
Specified by:
removeAttributeValue in interface org.eclipse.higgins.idas.api.IHasAttributes
Throws:
org.eclipse.higgins.idas.api.IdASException
See Also:
IHasAttributes.removeAttributeValue(IAttribute)

removeAttributeValue

public void removeAttributeValue(URI attrID,
                                 Object value)
                          throws org.eclipse.higgins.idas.api.IdASException
Specified by:
removeAttributeValue in interface org.eclipse.higgins.idas.api.IHasAttributes
Throws:
org.eclipse.higgins.idas.api.IdASException
See Also:
IHasAttributes.removeAttributeValue(URI, Object)

getModel

public org.eclipse.higgins.idas.api.model.IEntityModel getModel()
                                                         throws org.eclipse.higgins.idas.api.IdASException
Specified by:
getModel in interface org.eclipse.higgins.idas.api.IEntity
Throws:
org.eclipse.higgins.idas.api.IdASException

remove

public void remove()
            throws org.eclipse.higgins.idas.api.IdASException
Specified by:
remove in interface org.eclipse.higgins.idas.api.IEntity
Throws:
org.eclipse.higgins.idas.api.IdASException

updateNotification

public void updateNotification(org.eclipse.higgins.idas.spi.AttributeNotification attrNotif)
                        throws org.eclipse.higgins.idas.api.IdASException
Specified by:
updateNotification in interface org.eclipse.higgins.idas.spi.IAttributeContainer
Throws:
org.eclipse.higgins.idas.api.IdASException

updateNotification

public void updateNotification(org.eclipse.higgins.idas.spi.MetadataNotification metaNotif)
                        throws org.eclipse.higgins.idas.api.IdASException
Specified by:
updateNotification in interface org.eclipse.higgins.idas.spi.IMetadataContainer
Throws:
org.eclipse.higgins.idas.api.IdASException