public interface Reference
References are used to leverage SQL joins or attributes that store a list of distinguished names in LDAP servers (e.g. uniqueMember).
In nuxeo directories, references are special entry fields that are string list of entry ids of a target directory.
Modifier and Type | Method and Description |
---|---|
void |
addLinks(List<String> sourceIds,
String targetId) |
void |
addLinks(List<String> sourceIds,
String targetId,
Session session)
Adds the links between the source ids and the target id
|
void |
addLinks(String sourceId,
List<String> targetIds) |
void |
addLinks(String sourceId,
List<String> targetIds,
Session session)
Adds the links between the source id and the target ids
|
String |
getFieldName() |
Directory |
getSourceDirectory() |
List<String> |
getSourceIdsForTarget(String targetId) |
Directory |
getTargetDirectory() |
List<String> |
getTargetIdsForSource(String sourceId) |
void |
removeLinksForSource(String sourceId) |
void |
removeLinksForSource(String sourceId,
Session session)
Removes all the links for a given source id
|
void |
removeLinksForTarget(String targetId) |
void |
removeLinksForTarget(String targetId,
Session session)
Removes all the links for a given target id
|
void |
setSourceDirectoryName(String sourceDirectoryName) |
void |
setSourceIdsForTarget(String targetId,
List<String> sourceIds) |
void |
setSourceIdsForTarget(String targetId,
List<String> sourceIds,
Session session)
Sets all source ids to be associated to the given target id
|
void |
setTargetDirectoryName(String targetDirectoryName)
Deprecated.
since 9.2 (unused)
|
void |
setTargetIdsForSource(String sourceId,
List<String> targetIds) |
void |
setTargetIdsForSource(String sourceId,
List<String> targetIds,
Session session)
Sets all target ids to be associated to the given source id
|
String getFieldName()
Directory getSourceDirectory() throws DirectoryException
DirectoryException
void setSourceDirectoryName(String sourceDirectoryName)
Directory getTargetDirectory() throws DirectoryException
DirectoryException
@Deprecated void setTargetDirectoryName(String targetDirectoryName)
void addLinks(String sourceId, List<String> targetIds) throws DirectoryException
DirectoryException
void addLinks(List<String> sourceIds, String targetId) throws DirectoryException
DirectoryException
void removeLinksForSource(String sourceId) throws DirectoryException
DirectoryException
void removeLinksForTarget(String targetId) throws DirectoryException
DirectoryException
List<String> getTargetIdsForSource(String sourceId) throws DirectoryException
DirectoryException
List<String> getSourceIdsForTarget(String targetId) throws DirectoryException
DirectoryException
void setTargetIdsForSource(String sourceId, List<String> targetIds) throws DirectoryException
DirectoryException
void setSourceIdsForTarget(String targetId, List<String> sourceIds) throws DirectoryException
DirectoryException
void addLinks(String sourceId, List<String> targetIds, Session session) throws DirectoryException
sourceId
- the source idtargetIds
- the target idssession
- the sessionDirectoryException
void addLinks(List<String> sourceIds, String targetId, Session session) throws DirectoryException
sourceIds
- the source idstargetId
- the target idsession
- the sessionDirectoryException
void setSourceIdsForTarget(String targetId, List<String> sourceIds, Session session) throws DirectoryException
targetId
- the target idsourceIds
- the source idssession
- the sessionDirectoryException
void setTargetIdsForSource(String sourceId, List<String> targetIds, Session session) throws DirectoryException
sourceId
- the source idtargetIds
- the target idssession
- the sessionDirectoryException
void removeLinksForTarget(String targetId, Session session) throws DirectoryException
targetId
- the target idsession
- the sessionDirectoryException
void removeLinksForSource(String sourceId, Session session) throws DirectoryException
sourceId
- the source idsession
- the sessionDirectoryException
Copyright © 2018 Nuxeo. All rights reserved.