Details
-
Improvement
-
Resolution: Fixed
-
Major
-
7.3
-
None
Description
Right now when you have an EntityReference of type EntityType.SPACE and you wish to get the first space name, it's hard to do. I'm just proposing to add a new API:
public EntityReference extractFirstReference(EntityType type)
{
EntityReference reference = extractReference(type);
while (reference != null && reference.getParent() != null
&& reference.getParent().getType().equals(type))
{
reference = reference.getParent();
}
return reference;
}