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, wait
doesRemove
public static final String DEFAULT_SCRIPT_LANGUAGE
public DownloadPermissionDescriptor()
public String getId()
Descriptor
To forbid multiple descriptors use UNIQUE_DESCRIPTOR_ID.
To forbid merge use a unique value, non-overriden toString()
for exemple.
getId
in interface Descriptor
public String getScriptLanguage()
public Descriptor merge(Descriptor o)
Descriptor
other
merged into this
Default implementation returns other
.
merge
in interface Descriptor
Copyright © 2019 Nuxeo. All rights reserved.