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