public interface PermissionsDescriptor extends Descriptor, DescriptorNamespace<PermissionsDescriptor>, PermissionsCommonDescriptor<PermissionsDescriptor>
This deployment descriptor provides the functionalities as described in the specification
Example:
PermissionsDescriptor descriptor = Descriptors.create(PermissionsDescriptor.class);
Modifier and Type | Method and Description |
---|---|
Permission<PermissionsDescriptor> |
createPermission()
Creates a new
permission element |
List<Permission<PermissionsDescriptor>> |
getAllPermission()
Returns all
permission elements |
Permission<PermissionsDescriptor> |
getOrCreatePermission()
If not already created, a new
permission element will be created and returned. |
String |
getVersion()
Returns the
version attribute |
PermissionsDescriptor |
removeAllPermission()
Removes all
permission elements |
PermissionsDescriptor |
removeVersion()
Removes the
version attribute |
PermissionsDescriptor |
version(String version)
Sets the
version attribute |
addDefaultNamespaces, addNamespace, getNamespaces, removeAllNamespaces
exportAsString, exportTo, getDescriptorName
static final String VERSION
Permission<PermissionsDescriptor> getOrCreatePermission()
permission
element will be created and returned.
Otherwise, the first existing permission
element will be returned.permission
Permission<PermissionsDescriptor> createPermission()
permission
elementPermission
List<Permission<PermissionsDescriptor>> getAllPermission()
permission
elementspermission
PermissionsDescriptor removeAllPermission()
permission
elementsPermission
PermissionsDescriptor version(String version)
version
attributeversion
in interface PermissionsCommonDescriptor<PermissionsDescriptor>
version
- the value for the attribute version
PermissionsDescriptor
String getVersion()
version
attributegetVersion
in interface PermissionsCommonDescriptor<PermissionsDescriptor>
version
PermissionsDescriptor removeVersion()
version
attributeremoveVersion
in interface PermissionsCommonDescriptor<PermissionsDescriptor>
PermissionsDescriptor
Copyright © 2024 JBoss by Red Hat. All rights reserved.