public static class MigrationServiceImpl.MigrationRegistry extends SimpleContributionRegistry<MigrationDescriptor>
ContributionFragmentRegistry.Fragment<T>, ContributionFragmentRegistry.FragmentList<T>
currentContribs
contribs
Constructor and Description |
---|
MigrationRegistry() |
Modifier and Type | Method and Description |
---|---|
MigrationDescriptor |
clone(MigrationDescriptor orig)
CLone the given contribution object
|
String |
getContributionId(MigrationDescriptor contrib)
Returns the contribution ID given the contribution object
|
MigrationDescriptor |
getMigrationDescriptor(String id) |
Map<String,MigrationDescriptor> |
getMigrationDescriptors() |
boolean |
isSupportingMerge()
Returns true if merge is supported.
|
void |
merge(MigrationDescriptor src,
MigrationDescriptor dst)
Merge 'src' into 'dst'.
|
contributionRemoved, contributionUpdated, getCurrentContribution
addContribution, addFragment, getContribution, getFragments, removeContribution, removeContribution, removeFragment, toMap
public MigrationRegistry()
public String getContributionId(MigrationDescriptor contrib)
ContributionFragmentRegistry
getContributionId
in class ContributionFragmentRegistry<MigrationDescriptor>
public MigrationDescriptor getMigrationDescriptor(String id)
public Map<String,MigrationDescriptor> getMigrationDescriptors()
public boolean isSupportingMerge()
ContributionFragmentRegistry
Hook method to be overridden if merge logics behind Object.clone()
and ContributionFragmentRegistry.merge(Object, Object)
cannot be
implemented.
isSupportingMerge
in class SimpleContributionRegistry<MigrationDescriptor>
public MigrationDescriptor clone(MigrationDescriptor orig)
ContributionFragmentRegistry
clone
in class SimpleContributionRegistry<MigrationDescriptor>
public void merge(MigrationDescriptor src, MigrationDescriptor dst)
ContributionFragmentRegistry
merge
in class SimpleContributionRegistry<MigrationDescriptor>
src
- the object to copy over the 'dst' objectdst
- this object is modifiedCopyright © 2018 Nuxeo. All rights reserved.