Package org.nuxeo.ecm.core.io.download
Class DownloadPermissionDescriptor
- java.lang.Object
-
- org.nuxeo.ecm.core.io.download.DownloadPermissionDescriptor
-
- All Implemented Interfaces:
Descriptor
public class DownloadPermissionDescriptor extends Object implements Descriptor
Descriptor for the permissions associated to a blob download.- Since:
- 7.4
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_SCRIPT_LANGUAGE
String
name
String
script
-
Fields inherited from interface org.nuxeo.runtime.model.Descriptor
UNIQUE_DESCRIPTOR_ID
-
-
Constructor Summary
Constructors Constructor Description DownloadPermissionDescriptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getId()
The descriptor id, descriptors with same id are merged.String
getScriptLanguage()
Descriptor
merge(Descriptor o)
Returns a descriptor representingother
merged intothis
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.nuxeo.runtime.model.Descriptor
doesRemove
-
-
-
-
Field Detail
-
DEFAULT_SCRIPT_LANGUAGE
public static final String DEFAULT_SCRIPT_LANGUAGE
- See Also:
- Constant Field Values
-
name
public String name
-
script
public String script
-
-
Method Detail
-
getId
public String getId()
Description copied from interface:Descriptor
The descriptor id, descriptors with same id are merged.To forbid multiple descriptors use UNIQUE_DESCRIPTOR_ID.
To forbid merge use a unique value, non-overriden
toString()
for exemple.- Specified by:
getId
in interfaceDescriptor
-
getScriptLanguage
public String getScriptLanguage()
-
merge
public Descriptor merge(Descriptor o)
Description copied from interface:Descriptor
Returns a descriptor representingother
merged intothis
Default implementation returns
other
.- Specified by:
merge
in interfaceDescriptor
- Returns:
- the merged descriptor
-
-