protected class FederatedDocumentChanges.FederatedParentChanges extends Object implements DocumentChanges.ParentChanges
Modifier | Constructor and Description |
---|---|
protected |
FederatedParentChanges() |
Modifier and Type | Method and Description |
---|---|
Set<String> |
getAdded()
Returns a set of the ids of the parents that have been added.
|
String |
getNewPrimaryParent()
Returns the id of the new primary parent if there is a new primary parent.
|
Set<String> |
getRemoved()
Returns a set of the ids of the parents that have been removed.
|
boolean |
hasNewPrimaryParent()
Checks if there is a new primary parent.
|
boolean |
isEmpty()
Checks if there are any changes to the parent (appended/removed/primary parent changed)
|
public boolean isEmpty()
DocumentChanges.ParentChanges
isEmpty
in interface DocumentChanges.ParentChanges
true
if there aren't any changes, false
otherwisepublic boolean hasNewPrimaryParent()
DocumentChanges.ParentChanges
hasNewPrimaryParent
in interface DocumentChanges.ParentChanges
true
if there is a new primary parent, or false
otherwisepublic Set<String> getAdded()
DocumentChanges.ParentChanges
getAdded
in interface DocumentChanges.ParentChanges
public Set<String> getRemoved()
DocumentChanges.ParentChanges
getRemoved
in interface DocumentChanges.ParentChanges
public String getNewPrimaryParent()
DocumentChanges.ParentChanges
getNewPrimaryParent
in interface DocumentChanges.ParentChanges
null
.Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.