@AlfrescoPublicApi
public interface RelationshipService
| Modifier and Type | Field and Description |
|---|---|
static String |
RELATIONSHIP_VERSIONS
System relationship names
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRelationship(String uniqueName,
org.alfresco.service.cmr.repository.NodeRef source,
org.alfresco.service.cmr.repository.NodeRef target)
Adds a relationship from the given node
source
to the give node target with the given unique name |
RelationshipDefinition |
createRelationshipDefinition(RelationshipDisplayName displayName)
Creates a relationship definition using the display name
|
boolean |
existsRelationshipDefinition(String uniqueName)
Checks if a relationship exists or not
|
RelationshipDefinition |
getRelationshipDefinition(String uniqueName)
Gets the relationship definition for the given unique name
|
Set<RelationshipDefinition> |
getRelationshipDefinitions()
Gets all the existing relationship definitions
|
Set<Relationship> |
getRelationshipsFrom(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Gets all the relationships that come out from the given node reference
|
Set<Relationship> |
getRelationshipsFrom(org.alfresco.service.cmr.repository.NodeRef nodeRef,
String nameFilter)
Gets all the relationships that come out from the given node reference
that match the a given name filter.
|
Set<Relationship> |
getRelationshipsTo(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Gets all the relationships that go into the given node reference
|
Set<Relationship> |
getRelationshipsTo(org.alfresco.service.cmr.repository.NodeRef nodeRef,
String nameFilter)
Gets all the relationships that go into the given node reference
that match the a given name filter.
|
void |
removeRelationship(String uniqueName,
org.alfresco.service.cmr.repository.NodeRef source,
org.alfresco.service.cmr.repository.NodeRef target)
Removes the relationship from the given node
source
to the given node target with the given unique name |
boolean |
removeRelationshipDefinition(String uniqueName)
Removes a relationship definition
|
RelationshipDefinition |
updateRelationshipDefinition(String uniqueName,
RelationshipDisplayName displayName)
Updates an existing relationship definition
|
static final String RELATIONSHIP_VERSIONS
Set<RelationshipDefinition> getRelationshipDefinitions()
RelationshipDefinition getRelationshipDefinition(String uniqueName)
uniqueName - The unique name of the relationship definitionnull otherwiseRelationshipDefinition createRelationshipDefinition(RelationshipDisplayName displayName)
displayName - The display name of the relationship definitionRelationshipDefinition updateRelationshipDefinition(String uniqueName, RelationshipDisplayName displayName)
uniqueName - The unique name of the relationship definitiondisplayName - The display name of the relationship definitionboolean removeRelationshipDefinition(String uniqueName)
uniqueName - The unique name of the relationship definitiontrue if the relationship definition was removed successfully, false otherwiseboolean existsRelationshipDefinition(String uniqueName)
uniqueName - The unique name of the relationship definitiontrue if the relationship definition exists, false otherwiseSet<Relationship> getRelationshipsFrom(org.alfresco.service.cmr.repository.NodeRef nodeRef)
nodeRef - The node referenceSet<Relationship> getRelationshipsFrom(org.alfresco.service.cmr.repository.NodeRef nodeRef, String nameFilter)
Exact match only.
nodeRef - The node referencenameFilter - Name filter for resultsSet<Relationship> getRelationshipsTo(org.alfresco.service.cmr.repository.NodeRef nodeRef)
nodeRef - The node referenceSet<Relationship> getRelationshipsTo(org.alfresco.service.cmr.repository.NodeRef nodeRef, String nameFilter)
Exact match only.
nodeRef - The node referencenameFilter - Name filter for resultsvoid addRelationship(String uniqueName, org.alfresco.service.cmr.repository.NodeRef source, org.alfresco.service.cmr.repository.NodeRef target)
source
to the give node target with the given unique nameuniqueName - The unique name of the relationshipsource - The node reference which the relationship come fromtarget - The node reference which the relationship go tovoid removeRelationship(String uniqueName, org.alfresco.service.cmr.repository.NodeRef source, org.alfresco.service.cmr.repository.NodeRef target)
source
to the given node target with the given unique nameuniqueName - The unique name of the relationshipsource - The node reference which the relationship come fromtarget - The node reference which the relationship go toCopyright © 2005–2018 Alfresco Software. All rights reserved.