Class RelationshipType
- java.lang.Object
-
- lumis.portal.socialnetwork.relationship.entity.RelationshipType
-
- All Implemented Interfaces:
IRelationshipType
public class RelationshipType extends Object implements IRelationshipType
RelationshipType entity implementation.Implements the
IRelationshipType
interface and stores the properties of a relationshipType.- Since:
- 7.0.0
- Version:
- $Revision: 20509 $ $Date: 2017-09-11 16:18:14 -0300 (Mon, 11 Sep 2017) $
- See Also:
IRelationshipType
-
-
Constructor Summary
Constructors Constructor Description RelationshipType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getId()
Gets the IRelationshipType identifier.String
getName()
Gets the display name to source.String
getReverseName()
Gets the display name to target.Collection<String>
getSourceTypes()
Gets all sources type.Collection<String>
getTargetTypes()
Gets all targets type.Boolean
isBidirectional()
Gets if the relationship is bidirectional.void
setBidirectional(Boolean bidirectional)
Sets if the relationship is bidirectional.void
setId(String id)
Sets the Id.void
setName(String name)
Sets the display name to source.void
setReverseName(String reverseName)
Sets the display name to target.void
setSourceTypes(Set<String> sourceTypes)
Sets the source types.void
setTargetTypes(Set<String> targetTypes)
Sets the target types.
-
-
-
Method Detail
-
setId
public void setId(String id)
Sets the Id.- Parameters:
id
-- Since:
- 7.0.0
-
getId
public String getId()
Description copied from interface:IRelationshipType
Gets the IRelationshipType identifier.- Specified by:
getId
in interfaceIRelationshipType
- Returns:
- string
-
setName
public void setName(String name)
Sets the display name to source.- Parameters:
name
- name to source.- Since:
- 7.0.0
-
getName
public String getName()
Description copied from interface:IRelationshipType
Gets the display name to source.- Specified by:
getName
in interfaceIRelationshipType
- Returns:
- string
-
setReverseName
public void setReverseName(String reverseName)
Sets the display name to target.- Parameters:
reverseName
- name to target.- Since:
- 7.0.0
-
getReverseName
public String getReverseName()
Description copied from interface:IRelationshipType
Gets the display name to target.- Specified by:
getReverseName
in interfaceIRelationshipType
- Returns:
- string
-
setSourceTypes
public void setSourceTypes(Set<String> sourceTypes)
Sets the source types.- Parameters:
sourceTypes
- set with source types.- Since:
- 7.0.0
-
getSourceTypes
public Collection<String> getSourceTypes()
Description copied from interface:IRelationshipType
Gets all sources type.- Specified by:
getSourceTypes
in interfaceIRelationshipType
- Returns:
- set of string.
-
setTargetTypes
public void setTargetTypes(Set<String> targetTypes)
Sets the target types.- Parameters:
targetTypes
- set with target types.- Since:
- 7.0.0
-
getTargetTypes
public Collection<String> getTargetTypes()
Description copied from interface:IRelationshipType
Gets all targets type.- Specified by:
getTargetTypes
in interfaceIRelationshipType
- Returns:
- set of string.
-
setBidirectional
public void setBidirectional(Boolean bidirectional)
Sets if the relationship is bidirectional.- Parameters:
bidirectional
- true or false.- Since:
- 7.0.0
-
isBidirectional
public Boolean isBidirectional()
Description copied from interface:IRelationshipType
Gets if the relationship is bidirectional.- Specified by:
isBidirectional
in interfaceIRelationshipType
- Returns:
- true or false.
-
-