org.ow2.dragon.service.common
Class EntityLinkManagerImpl

java.lang.Object
  extended by org.ow2.dragon.service.common.EntityLinkManagerImpl
All Implemented Interfaces:
EntityLinkManager

public class EntityLinkManagerImpl
extends java.lang.Object
implements EntityLinkManager

Author:
ofabre - ebmwebsourcing

Constructor Summary
EntityLinkManagerImpl()
           
 
Method Summary
 java.lang.String createLink(java.lang.String fromId, java.lang.String toId, java.lang.String type)
          Create a link between two linked entities (like person, organization, technical service, endpoint, etc.)
 java.util.List<Link> getAllLinksForFrom(java.lang.String fromId, RequestOptionsTO requestOptionsTO)
          Retrieve all links with the specified "from end"
 java.util.List<Link> getAllLinksForTo(java.lang.String toId, RequestOptionsTO requestOptionsTO)
          Retrieve all links with the specified "to end"
 void removeLink(java.lang.String linkId)
          Remove a link from the registry
 void setTransfertObjectAssembler(TransfertObjectAssembler transfertObjectAssembler)
           
 void setUniversalORMDAO(UniversalORMDAO universalORMDAO)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityLinkManagerImpl

public EntityLinkManagerImpl()
Method Detail

createLink

public java.lang.String createLink(java.lang.String fromId,
                                   java.lang.String toId,
                                   java.lang.String type)
                            throws CommonException
Description copied from interface: EntityLinkManager
Create a link between two linked entities (like person, organization, technical service, endpoint, etc.)

Specified by:
createLink in interface EntityLinkManager
Parameters:
fromId - identifier of the "from end" of the link
toId - identifier of the "to end" of the link
type - the link type
Returns:
the link identifier
Throws:
CommonException - if one of the linked entity doesn't exist

removeLink

public void removeLink(java.lang.String linkId)
Description copied from interface: EntityLinkManager
Remove a link from the registry

Specified by:
removeLink in interface EntityLinkManager
Parameters:
linkId - a link identifier

setTransfertObjectAssembler

public void setTransfertObjectAssembler(TransfertObjectAssembler transfertObjectAssembler)

setUniversalORMDAO

public void setUniversalORMDAO(UniversalORMDAO universalORMDAO)

getAllLinksForFrom

public java.util.List<Link> getAllLinksForFrom(java.lang.String fromId,
                                               RequestOptionsTO requestOptionsTO)
Description copied from interface: EntityLinkManager
Retrieve all links with the specified "from end"

Specified by:
getAllLinksForFrom in interface EntityLinkManager
Parameters:
fromId - the to end identifier
requestOptionsTO - sort, pagination and case sensitive parameters. Could be null.
Returns:
all links with the specified "from end"

getAllLinksForTo

public java.util.List<Link> getAllLinksForTo(java.lang.String toId,
                                             RequestOptionsTO requestOptionsTO)
Description copied from interface: EntityLinkManager
Retrieve all links with the specified "to end"

Specified by:
getAllLinksForTo in interface EntityLinkManager
Parameters:
toId - the to end identifier
requestOptionsTO - sort, pagination and case sensitive parameters. Could be null.
Returns:
all links with the specified "to end"


Copyright © 2008-2009 eBMWebsourcing. All Rights Reserved.