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