Package org.jboss.resteasy.utils
Class PermissionUtil.Builder
- java.lang.Object
-
- org.jboss.resteasy.utils.PermissionUtil.Builder
-
- Enclosing class:
- PermissionUtil
public static class PermissionUtil.Builder extends Object
A builder for creating a permission file.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Creates a new builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PermissionUtil.Builder
add(Permission permission)
Adds the permission to the generated asset.PermissionUtil.Builder
add(Permission... permissions)
Adds the permissions to the generated asset.PermissionUtil.Builder
add(Collection<? extends Permission> permissions)
Adds the permissions to the generated asset.org.jboss.shrinkwrap.api.asset.Asset
build()
Creates the asset XML for the permissions.static PermissionUtil.Builder
create()
Creates a new builder.
-
-
-
Method Detail
-
create
public static PermissionUtil.Builder create()
Creates a new builder.- Returns:
- the new builder
-
add
public PermissionUtil.Builder add(Permission permission)
Adds the permission to the generated asset.- Parameters:
permission
- the permission to add- Returns:
- this builder
-
add
public PermissionUtil.Builder add(Permission... permissions)
Adds the permissions to the generated asset.- Parameters:
permissions
- the permissions to add- Returns:
- this builder
-
add
public PermissionUtil.Builder add(Collection<? extends Permission> permissions)
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.xml
asset
-
-