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