public static TransactionPermission forName(final String name) { Assert.checkNotNullParam("name", name); return "*".equals(name) ? allPermission : mapping.getItemByString(name); } }
Object readResolve() { final AbstractPermissionCollection collection = new WildFlySecurityManagerPermission("*").newPermissionCollection(); final StringMapping<WildFlySecurityManagerPermission> mapping = WildFlySecurityManagerPermission.mapping; int bits = p1; int test; while (bits != 0) { collection.add(mapping.getItemById(Integer.numberOfTrailingZeros(test = Integer.lowestOneBit(bits)))); bits &= ~test; } if (isReadOnly()) { collection.setReadOnly(); } return collection; } }
/** * Get the permission with the given name. * * @param name the name (must not be {@code null}) * @return the permission (not {@code null}) * @throws IllegalArgumentException if the name is not valid */ public static ElytronPermission forName(final String name) { Assert.checkNotNullParam("name", name); return name.equals("*") ? allPermission : mapping.getItemByString(name); } }
Object readResolve() { final AbstractPermissionCollection collection = new ElytronPermission("*").newPermissionCollection(); final StringMapping<ElytronPermission> mapping = ElytronPermission.mapping; int bits = p1; int test; while (bits != 0) { collection.add(mapping.getItemById(Integer.numberOfTrailingZeros(test = Integer.lowestOneBit(bits)))); bits &= ~test; } if (isReadOnly()) { collection.setReadOnly(); } return collection; } }
/** * Get the permission with the given name. * * @param name the name (must not be {@code null}) * @return the permission (not {@code null}) * @throws IllegalArgumentException if the name is not valid */ public static RemotingPermission forName(final String name) { Assert.checkNotNullParam("name", name); return name.equals("*") ? ALL_PERMISSION : mapping.getItemByString(name); } }
Object readResolve() { final AbstractPermissionCollection collection = new WildFlySecurityManagerPermission("*").newPermissionCollection(); final StringMapping<WildFlySecurityManagerPermission> mapping = WildFlySecurityManagerPermission.mapping; int bits = p1; int test; while (bits != 0) { collection.add(mapping.getItemById(Integer.numberOfTrailingZeros(test = Integer.lowestOneBit(bits)))); bits &= ~test; } if (isReadOnly()) { collection.setReadOnly(); } return collection; } }
/** * Get the permission with the given name. * * @param name the name (must not be {@code null}) * @return the permission (not {@code null}) * @throws IllegalArgumentException if the name is not valid */ public static CredentialStorePermission forName(final String name) { Assert.checkNotNullParam("name", name); return name.equals("*") ? allPermission : mapping.getItemByString(name); } }
Object readResolve() { final AbstractPermissionCollection collection = new ElytronPermission("*").newPermissionCollection(); final StringMapping<ElytronPermission> mapping = ElytronPermission.mapping; int bits = p1; int test; while (bits != 0) { collection.add(mapping.getItemById(Integer.numberOfTrailingZeros(test = Integer.lowestOneBit(bits)))); bits &= ~test; } if (isReadOnly()) { collection.setReadOnly(); } return collection; } }
/** * Get the permission with the given name. * * @param name the name (must not be {@code null}) * @return the permission (not {@code null}) * @throws IllegalArgumentException if the name is not valid */ public static WildFlySecurityManagerPermission forName(final String name) { Assert.checkNotNullParam("name", name); return name.equals("*") ? allPermission : mapping.getItemByString(name); } }
Object readResolve() { final AbstractPermissionCollection collection = new ElytronPermission("*").newPermissionCollection(); final StringMapping<ElytronPermission> mapping = ElytronPermission.mapping; int bits = p1; int test; while (bits != 0) { collection.add(mapping.getItemById(Integer.numberOfTrailingZeros(test = Integer.lowestOneBit(bits)))); bits &= ~test; } if (isReadOnly()) { collection.setReadOnly(); } return collection; } }
public EJBClientPermission withName(final String name) { Assert.checkNotNullParam("name", name); return "*".equals(name) ? ALL : mapping.getItemByString(name); } }
Object readResolve() { final AbstractPermissionCollection collection = new WildFlySecurityManagerPermission("*").newPermissionCollection(); final StringMapping<WildFlySecurityManagerPermission> mapping = WildFlySecurityManagerPermission.mapping; int bits = p1; int test; while (bits != 0) { collection.add(mapping.getItemById(Integer.numberOfTrailingZeros(test = Integer.lowestOneBit(bits)))); bits &= ~test; } if (isReadOnly()) { collection.setReadOnly(); } return collection; } }
/** * Get the permission with the given name. * * @param name the name (must not be {@code null}) * * @return the permission (not {@code null}) * * @throws IllegalArgumentException if the name is not valid */ public static BatchPermission forName(final String name) { Assert.checkNotNullParam("name", name); return "*".equals(name) ? allPermission : mapping.getItemByString(name); } }
Object readResolve() { final AbstractPermissionCollection collection = new WildFlySecurityManagerPermission("*").newPermissionCollection(); final StringMapping<WildFlySecurityManagerPermission> mapping = WildFlySecurityManagerPermission.mapping; int bits = p1; int test; while (bits != 0) { collection.add(mapping.getItemById(Integer.numberOfTrailingZeros(test = Integer.lowestOneBit(bits)))); bits &= ~test; } if (isReadOnly()) { collection.setReadOnly(); } return collection; } }
/** * Get the permission with the given name. * * @param name the name (must not be {@code null}) * @return the permission (not {@code null}) * @throws IllegalArgumentException if the name is not valid */ public static WildFlySecurityManagerPermission forName(final String name) { Assert.checkNotNullParam("name", name); return name.equals("*") ? allPermission : mapping.getItemByString(name); } }
Object readResolve() { final AbstractPermissionCollection collection = new ElytronPermission("*").newPermissionCollection(); final StringMapping<ElytronPermission> mapping = ElytronPermission.mapping; int bits = p1; int test; while (bits != 0) { collection.add(mapping.getItemById(Integer.numberOfTrailingZeros(test = Integer.lowestOneBit(bits)))); bits &= ~test; } if (isReadOnly()) { collection.setReadOnly(); } return collection; } }
public static TransactionPermission forName(final String name) { Assert.checkNotNullParam("name", name); return "*".equals(name) ? allPermission : mapping.getItemByString(name); } }
/** * Get the permission with the given name. * * @param name the name (must not be {@code null}) * @return the permission (not {@code null}) * @throws IllegalArgumentException if the name is not valid */ public static WildFlySecurityManagerPermission forName(final String name) { Assert.checkNotNullParam("name", name); return name.equals("*") ? allPermission : mapping.getItemByString(name); } }
public EJBClientPermission withName(final String name) { Assert.checkNotNullParam("name", name); return "*".equals(name) ? ALL : mapping.getItemByString(name); } }
/** * Get the permission with the given name. * * @param name the name (must not be {@code null}) * @return the permission (not {@code null}) * @throws IllegalArgumentException if the name is not valid */ public static ElytronPermission forName(final String name) { Assert.checkNotNullParam("name", name); return name.equals("*") ? allPermission : mapping.getItemByString(name); } }