Class MatchingEntity
- java.lang.Object
-
- ch.systemsx.cisd.openbis.generic.shared.basic.dto.MatchingEntity
-
- All Implemented Interfaces:
ICodeHolder
,IEntityInformationHolder
,IEntityInformationHolderWithPermId
,IIdAndCodeHolder
,IIdHolder
,IPermIdHolder
,IRegistratorHolder
,java.io.Serializable
public final class MatchingEntity extends java.lang.Object implements java.io.Serializable, IEntityInformationHolderWithPermId, IRegistratorHolder
An entity that matches the Hibernate Search query and which has been returned by the server.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MatchingEntity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IEntityInformationHolderWithPermId
asIdentifiable()
java.lang.String
getCode()
Returns the code.EntityKind
getEntityKind()
Return the entity kind of this matching entity.BasicEntityType
getEntityType()
Returns the entity type of this matching entity.java.lang.Long
getId()
Returns the technical ID of this instance.java.lang.String
getIdentifier()
java.util.List<PropertyMatch>
getMatches()
java.lang.String
getPermId()
Person
getRegistrator()
double
getScore()
java.lang.String
getSearchDomain()
void
setCode(java.lang.String code)
void
setEntityKind(EntityKind entityKind)
void
setEntityType(BasicEntityType entityType)
void
setId(java.lang.Long id)
void
setIdentifier(java.lang.String identifier)
void
setMatches(java.util.List<PropertyMatch> matches)
void
setPermId(java.lang.String permId)
void
setRegistrator(Person registrator)
void
setScore(double score)
void
setSearchDomain(java.lang.String searchDomain)
void
setSpace(Space spaceOrNull)
java.lang.String
toString()
Space
tryGetSpace()
-
-
-
Method Detail
-
getEntityKind
public final EntityKind getEntityKind()
Description copied from interface:IEntityInformationHolder
Return the entity kind of this matching entity.- Specified by:
getEntityKind
in interfaceIEntityInformationHolder
-
setEntityKind
public final void setEntityKind(EntityKind entityKind)
-
getRegistrator
public final Person getRegistrator()
- Specified by:
getRegistrator
in interfaceIRegistratorHolder
-
setRegistrator
public final void setRegistrator(Person registrator)
-
getEntityType
public final BasicEntityType getEntityType()
Description copied from interface:IEntityInformationHolder
Returns the entity type of this matching entity.- Specified by:
getEntityType
in interfaceIEntityInformationHolder
-
setEntityType
public final void setEntityType(BasicEntityType entityType)
-
tryGetSpace
public Space tryGetSpace()
-
setSpace
public void setSpace(Space spaceOrNull)
-
getIdentifier
public final java.lang.String getIdentifier()
-
setIdentifier
public final void setIdentifier(java.lang.String identifier)
-
getId
public java.lang.Long getId()
Description copied from interface:IIdHolder
Returns the technical ID of this instance.
-
setId
public void setId(java.lang.Long id)
-
getCode
public java.lang.String getCode()
Description copied from interface:ICodeHolder
Returns the code.- Specified by:
getCode
in interfaceICodeHolder
-
setCode
public void setCode(java.lang.String code)
-
getPermId
public java.lang.String getPermId()
- Specified by:
getPermId
in interfaceIPermIdHolder
-
setPermId
public void setPermId(java.lang.String permId)
-
asIdentifiable
public IEntityInformationHolderWithPermId asIdentifiable()
-
toString
public final java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getMatches
public java.util.List<PropertyMatch> getMatches()
-
setMatches
public void setMatches(java.util.List<PropertyMatch> matches)
-
getScore
public double getScore()
-
setScore
public void setScore(double score)
-
getSearchDomain
public java.lang.String getSearchDomain()
-
setSearchDomain
public void setSearchDomain(java.lang.String searchDomain)
-
-