public class DownloadPermissionDescriptor extends Object implements Descriptor
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_SCRIPT_LANGUAGE |
String |
name |
String |
script |
UNIQUE_DESCRIPTOR_ID| Constructor and Description |
|---|
DownloadPermissionDescriptor() |
| Modifier and Type | Method and Description |
|---|---|
String |
getId()
The descriptor id, descriptors with same id are merged.
|
String |
getScriptLanguage() |
Descriptor |
merge(Descriptor o)
Returns a descriptor representing
other merged into this |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdoesRemovepublic static final String DEFAULT_SCRIPT_LANGUAGE
public DownloadPermissionDescriptor()
public String getId()
DescriptorTo forbid multiple descriptors use UNIQUE_DESCRIPTOR_ID.
To forbid merge use a unique value, non-overriden toString() for exemple.
getId in interface Descriptorpublic String getScriptLanguage()
public Descriptor merge(Descriptor o)
Descriptorother merged into this
Default implementation returns other.
merge in interface DescriptorCopyright © 2019 Nuxeo. All rights reserved.