Class MappingResult
- java.lang.Object
-
- pl.edu.icm.unity.engine.api.translation.in.MappingResult
-
public class MappingResult extends Object
Stores a set of mapping results, produced by one or more translation actions.- Author:
- K. Benedyczak
-
-
Constructor Summary
Constructors Constructor Description MappingResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAttribute(MappedAttribute attr)
void
addAuthenticatedWith(String authenticatedWith)
void
addEntityChange(EntityChange change)
void
addGroup(MappedGroup group)
void
addIdentity(MappedIdentity id)
List<MappedAttribute>
getAttributes()
Set<String>
getAuthenticatedWith()
List<EntityChange>
getEntityChanges()
List<MappedGroup>
getGroups()
List<MappedIdentity>
getIdentities()
EntityParam
getMappedAtExistingEntity()
boolean
isCleanStaleAttributes()
boolean
isCleanStaleGroups()
boolean
isCleanStaleIdentities()
void
mergeWith(MappingResult result)
void
setCleanStaleAttributes(boolean cleanStaleAttributes)
void
setCleanStaleGroups(boolean cleanStaleGroups)
void
setCleanStaleIdentities(boolean cleanStaleIdentities)
void
setMappedToExistingEntity(EntityParam mappedAtExistingEntity)
String
toString()
-
-
-
Method Detail
-
addGroup
public void addGroup(MappedGroup group)
-
addIdentity
public void addIdentity(MappedIdentity id)
-
addAttribute
public void addAttribute(MappedAttribute attr)
-
addEntityChange
public void addEntityChange(EntityChange change)
-
getGroups
public List<MappedGroup> getGroups()
-
getIdentities
public List<MappedIdentity> getIdentities()
-
getAttributes
public List<MappedAttribute> getAttributes()
-
getEntityChanges
public List<EntityChange> getEntityChanges()
-
isCleanStaleGroups
public boolean isCleanStaleGroups()
-
setCleanStaleGroups
public void setCleanStaleGroups(boolean cleanStaleGroups)
-
isCleanStaleAttributes
public boolean isCleanStaleAttributes()
-
setCleanStaleAttributes
public void setCleanStaleAttributes(boolean cleanStaleAttributes)
-
isCleanStaleIdentities
public boolean isCleanStaleIdentities()
-
setCleanStaleIdentities
public void setCleanStaleIdentities(boolean cleanStaleIdentities)
-
getMappedAtExistingEntity
public EntityParam getMappedAtExistingEntity()
- Returns:
- null if remote entity was not mapped on a local one or the local principal
-
setMappedToExistingEntity
public void setMappedToExistingEntity(EntityParam mappedAtExistingEntity)
-
addAuthenticatedWith
public void addAuthenticatedWith(String authenticatedWith)
-
mergeWith
public void mergeWith(MappingResult result)
-
-