Package org.jboss.resteasy.utils
Class PermissionUtil.Builder
java.lang.Object
org.jboss.resteasy.utils.PermissionUtil.Builder
- Enclosing class:
- PermissionUtil
A builder for creating a permission file.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(Permission permission) Adds the permission to the generated asset.add(Permission... permissions) Adds the permissions to the generated asset.add(Collection<? extends Permission> permissions) Adds the permissions to the generated asset.org.jboss.shrinkwrap.api.asset.Assetbuild()Creates the asset XML for the permissions.static PermissionUtil.Buildercreate()Creates a new builder.
-
Constructor Details
-
Builder
public Builder()Creates a new builder
-
-
Method Details
-
create
Creates a new builder.- Returns:
- the new builder
-
add
Adds the permission to the generated asset.- Parameters:
permission- the permission to add- Returns:
- this builder
-
add
Adds the permissions to the generated asset.- Parameters:
permissions- the permissions to add- Returns:
- this builder
-
add
Adds the permissions to the generated asset.- Parameters:
permissions- the permissions to add- Returns:
- this builder
-
build
public org.jboss.shrinkwrap.api.asset.Asset build()Creates the asset XML for the permissions.- Returns:
- the
permissions.xmlasset
-