protected static class DBSRepositoryService.DBSRepositoryDescriptorRegistry extends SimpleContributionRegistry<DBSRepositoryDescriptor>
ContributionFragmentRegistry.Fragment<T>, ContributionFragmentRegistry.FragmentList<T>
currentContribs
contribs
Modifier | Constructor and Description |
---|---|
protected |
DBSRepositoryDescriptorRegistry() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
DBSRepositoryDescriptor |
clone(DBSRepositoryDescriptor orig)
CLone the given contribution object
|
String |
getContributionId(DBSRepositoryDescriptor contrib)
Returns the contribution ID given the contribution object
|
DBSRepositoryDescriptor |
getRepositoryDescriptor(String id) |
boolean |
isSupportingMerge()
Returns true if merge is supported.
|
void |
merge(DBSRepositoryDescriptor src,
DBSRepositoryDescriptor dst)
Merge 'src' into 'dst'.
|
contributionRemoved, contributionUpdated, getCurrentContribution
addContribution, addFragment, getContribution, getFragments, removeContribution, removeContribution, removeFragment, toMap
protected DBSRepositoryDescriptorRegistry()
public String getContributionId(DBSRepositoryDescriptor contrib)
ContributionFragmentRegistry
getContributionId
in class ContributionFragmentRegistry<DBSRepositoryDescriptor>
public DBSRepositoryDescriptor clone(DBSRepositoryDescriptor orig)
ContributionFragmentRegistry
clone
in class SimpleContributionRegistry<DBSRepositoryDescriptor>
public void merge(DBSRepositoryDescriptor src, DBSRepositoryDescriptor dst)
ContributionFragmentRegistry
merge
in class SimpleContributionRegistry<DBSRepositoryDescriptor>
src
- the object to copy over the 'dst' objectdst
- this object is modifiedpublic 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<DBSRepositoryDescriptor>
public void clear()
public DBSRepositoryDescriptor getRepositoryDescriptor(String id)
Copyright © 2018 Nuxeo. All rights reserved.