public class ExtensionLibraryDescriptor
extends java.lang.Object
Modifier and Type | Class | Description |
---|---|---|
static class |
ExtensionLibraryDescriptor.Permission |
Wraps assigned permissions for an extension into
a Java object.
|
Constructor | Description |
---|---|
ExtensionLibraryDescriptor() |
No-argument constructor.
|
Modifier and Type | Method | Description |
---|---|---|
void |
addPermission(java.lang.String roleName,
java.lang.String capability) |
adds a permission to this module
|
java.lang.String |
getPath() |
gets the path of this module/asset
|
java.util.List<ExtensionLibraryDescriptor.Permission> |
getPermissions() |
gets the list of permissions assigned to this
module, beyond the default permissions.
|
void |
setPath(java.lang.String path) |
Sets the path for this module descriptor.
|
public ExtensionLibraryDescriptor()
public java.lang.String getPath()
public void setPath(java.lang.String path)
path
- The path. Must begin with "/ext/"public void addPermission(java.lang.String roleName, java.lang.String capability)
roleName
- the role name to which the permission
appliescapability
- the capability of the
permission.public java.util.List<ExtensionLibraryDescriptor.Permission> getPermissions()
Copyright © 2022 MarkLogic Corporation