Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.directory
Class InverseReference

java.lang.Object
  extended by org.nuxeo.ecm.directory.AbstractReference
      extended by org.nuxeo.ecm.directory.InverseReference
All Implemented Interfaces:
Reference

public class InverseReference
extends AbstractReference

Reference that uses the matching reference of the target directory to actually do the job.

Author:
ogrisel

Constructor Summary
InverseReference()
           
 
Method Summary
 void addLinks(List<String> sourceIds, String targetId)
           
 void addLinks(String sourceId, List<String> targetIds)
           
 List<String> getSourceIdsForTarget(String targetId)
           
 List<String> getTargetIdsForSource(String sourceId)
           
 void removeLinksForSource(String sourceId)
           
 void removeLinksForTarget(String targetId)
           
 void setFieldName(String fieldName)
           
 void setSourceIdsForTarget(String targetId, List<String> sourceIds)
           
 void setTargetDirectoryName(String targetDirectoryName)
           
 void setTargetIdsForSource(String sourceId, List<String> targetIds)
           
 
Methods inherited from class org.nuxeo.ecm.directory.AbstractReference
getFieldName, getSourceDirectory, getTargetDirectory, setSourceDirectoryName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InverseReference

public InverseReference()
Method Detail

setFieldName

public void setFieldName(String fieldName)

setTargetDirectoryName

public void setTargetDirectoryName(String targetDirectoryName)
Specified by:
setTargetDirectoryName in interface Reference
Overrides:
setTargetDirectoryName in class AbstractReference

addLinks

public void addLinks(String sourceId,
                     List<String> targetIds)
              throws DirectoryException
Throws:
DirectoryException

addLinks

public void addLinks(List<String> sourceIds,
                     String targetId)
              throws DirectoryException
Throws:
DirectoryException

removeLinksForTarget

public void removeLinksForTarget(String targetId)
                          throws DirectoryException
Throws:
DirectoryException

removeLinksForSource

public void removeLinksForSource(String sourceId)
                          throws DirectoryException
Throws:
DirectoryException

getSourceIdsForTarget

public List<String> getSourceIdsForTarget(String targetId)
                                   throws DirectoryException
Throws:
DirectoryException

getTargetIdsForSource

public List<String> getTargetIdsForSource(String sourceId)
                                   throws DirectoryException
Throws:
DirectoryException

setTargetIdsForSource

public void setTargetIdsForSource(String sourceId,
                                  List<String> targetIds)
                           throws DirectoryException
Throws:
DirectoryException

setSourceIdsForTarget

public void setSourceIdsForTarget(String targetId,
                                  List<String> sourceIds)
                           throws DirectoryException
Throws:
DirectoryException

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.