/** * Create a new EndpointPermission with the specified filter. * * <p> * The filter will be evaluated against the endpoint properties of a * requested EndpointPermission. * * <p> * There are three possible actions: {@code read}, {@code import} and * {@code export}. The {@code read} action allows the owner of this * permission to see the presence of distributed services. The * {@code import} action allows the owner of this permission to import an * endpoint. The {@code export} action allows the owner of this permission * to export a service. * * @param filterString The filter string or "*" to match all * endpoints. * @param actions The actions {@code read}, {@code import}, or * {@code export}. * @throws IllegalArgumentException If the filter has an invalid syntax or * the actions are not valid. */ public EndpointPermission(String filterString, String actions) { this(filterString, parseActions(actions)); }
/** * readObject is called to restore the state of this permission from a * stream. */ private synchronized void readObject(java.io.ObjectInputStream s) throws IOException, ClassNotFoundException { // Read in the action, then initialize the rest s.defaultReadObject(); setTransients(parseFilter(getName()), parseActions(actions)); }
setTransients(null, parseActions(actions)); Map<String, Object> props; if ((localFrameworkUUID != null) && localFrameworkUUID.equals(endpoint.getFrameworkUUID())) {
/** * Create a new EndpointPermission with the specified filter. * * <p> * The filter will be evaluated against the endpoint properties of a * requested EndpointPermission. * * <p> * There are three possible actions: {@code read}, {@code import} and * {@code export}. The {@code read} action allows the owner of this * permission to see the presence of distributed services. The * {@code import} action allows the owner of this permission to import an * endpoint. The {@code export} action allows the owner of this permission * to export a service. * * @param filterString The filter string or "*" to match all * endpoints. * @param actions The actions {@code read}, {@code import}, or * {@code export}. * @throws IllegalArgumentException If the filter has an invalid syntax or * the actions are not valid. */ public EndpointPermission(String filterString, String actions) { this(filterString, parseActions(actions)); }
/** * Create a new EndpointPermission with the specified filter. * * <p> * The filter will be evaluated against the endpoint properties of a * requested EndpointPermission. * * <p> * There are three possible actions: <code>read</code>, <code>import</code> * and <code>export</code>. The <code>read</code> action allows the owner of * this permission to see the presence of distributed services. The * <code>import</code> action allows the owner of this permission to import * an endpoint. The <code>export</code> action allows the owner of this * permission to export a service. * * @param filterString The filter string or "*" to match all * endpoints. * @param actions The actions <code>read</code>, <code>import</code>, or * <code>export</code>. * @throws IllegalArgumentException If the filter has an invalid syntax or * the actions are not valid. */ public EndpointPermission(String filterString, String actions) { this(filterString, parseActions(actions)); }
/** * Create a new EndpointPermission with the specified filter. * * <p> * The filter will be evaluated against the endpoint properties of a * requested EndpointPermission. * * <p> * There are three possible actions: {@code read}, {@code import} and * {@code export}. The {@code read} action allows the owner of this * permission to see the presence of distributed services. The * {@code import} action allows the owner of this permission to import an * endpoint. The {@code export} action allows the owner of this permission * to export a service. * * @param filterString The filter string or "*" to match all * endpoints. * @param actions The actions {@code read}, {@code import}, or * {@code export}. * @throws IllegalArgumentException If the filter has an invalid syntax or * the actions are not valid. */ public EndpointPermission(String filterString, String actions) { this(filterString, parseActions(actions)); }
/** * Create a new EndpointPermission with the specified filter. * * <p> * The filter will be evaluated against the endpoint properties of a * requested EndpointPermission. * * <p> * There are three possible actions: {@code read}, {@code import} and * {@code export}. The {@code read} action allows the owner of this * permission to see the presence of distributed services. The * {@code import} action allows the owner of this permission to import an * endpoint. The {@code export} action allows the owner of this permission * to export a service. * * @param filterString The filter string or "*" to match all * endpoints. * @param actions The actions {@code read}, {@code import}, or * {@code export}. * @throws IllegalArgumentException If the filter has an invalid syntax or * the actions are not valid. */ public EndpointPermission(String filterString, String actions) { this(filterString, parseActions(actions)); }
/** * Create a new EndpointPermission with the specified filter. * * <p> * The filter will be evaluated against the endpoint properties of a * requested EndpointPermission. * * <p> * There are three possible actions: {@code read}, {@code import} and * {@code export}. The {@code read} action allows the owner of this * permission to see the presence of distributed services. The * {@code import} action allows the owner of this permission to import an * endpoint. The {@code export} action allows the owner of this permission * to export a service. * * @param filterString The filter string or "*" to match all * endpoints. * @param actions The actions {@code read}, {@code import}, or * {@code export}. * @throws IllegalArgumentException If the filter has an invalid syntax or * the actions are not valid. */ public EndpointPermission(String filterString, String actions) { this(filterString, parseActions(actions)); }
/** * Create a new EndpointPermission with the specified filter. * * <p> * The filter will be evaluated against the endpoint properties of a * requested EndpointPermission. * * <p> * There are three possible actions: {@code read}, {@code import} * and {@code export}. The {@code read} action allows the owner of * this permission to see the presence of distributed services. The * {@code import} action allows the owner of this permission to import * an endpoint. The {@code export} action allows the owner of this * permission to export a service. * * @param filterString The filter string or "*" to match all * endpoints. * @param actions The actions {@code read}, {@code import}, or * {@code export}. * @throws IllegalArgumentException If the filter has an invalid syntax or * the actions are not valid. */ public EndpointPermission(String filterString, String actions) { this(filterString, parseActions(actions)); }
/** * Create a new EndpointPermission with the specified filter. * * <p> * The filter will be evaluated against the endpoint properties of a * requested EndpointPermission. * * <p> * There are three possible actions: {@code read}, {@code import} * and {@code export}. The {@code read} action allows the owner of * this permission to see the presence of distributed services. The * {@code import} action allows the owner of this permission to import * an endpoint. The {@code export} action allows the owner of this * permission to export a service. * * @param filterString The filter string or "*" to match all * endpoints. * @param actions The actions {@code read}, {@code import}, or * {@code export}. * @throws IllegalArgumentException If the filter has an invalid syntax or * the actions are not valid. */ public EndpointPermission(String filterString, String actions) { this(filterString, parseActions(actions)); }
/** * Create a new EndpointPermission with the specified filter. * * <p> * The filter will be evaluated against the endpoint properties of a * requested EndpointPermission. * * <p> * There are three possible actions: {@code read}, {@code import} and * {@code export}. The {@code read} action allows the owner of this * permission to see the presence of distributed services. The * {@code import} action allows the owner of this permission to import an * endpoint. The {@code export} action allows the owner of this permission * to export a service. * * @param filterString The filter string or "*" to match all * endpoints. * @param actions The actions {@code read}, {@code import}, or * {@code export}. * @throws IllegalArgumentException If the filter has an invalid syntax or * the actions are not valid. */ public EndpointPermission(String filterString, String actions) { this(filterString, parseActions(actions)); }
/** * readObject is called to restore the state of this permission from a * stream. */ private synchronized void readObject(java.io.ObjectInputStream s) throws IOException, ClassNotFoundException { // Read in the action, then initialize the rest s.defaultReadObject(); setTransients(parseFilter(getName()), parseActions(actions)); }
/** * readObject is called to restore the state of this permission from a * stream. */ private synchronized void readObject(java.io.ObjectInputStream s) throws IOException, ClassNotFoundException { // Read in the action, then initialize the rest s.defaultReadObject(); setTransients(parseFilter(getName()), parseActions(actions)); }
/** * readObject is called to restore the state of this permission from a * stream. */ private synchronized void readObject(java.io.ObjectInputStream s) throws IOException, ClassNotFoundException { // Read in the action, then initialize the rest s.defaultReadObject(); setTransients(parseFilter(getName()), parseActions(actions)); }
/** * readObject is called to restore the state of this permission from a * stream. */ private synchronized void readObject(java.io.ObjectInputStream s) throws IOException, ClassNotFoundException { // Read in the action, then initialize the rest s.defaultReadObject(); setTransients(parseFilter(getName()), parseActions(actions)); }
/** * readObject is called to restore the state of this permission from a * stream. */ private synchronized void readObject(java.io.ObjectInputStream s) throws IOException, ClassNotFoundException { // Read in the action, then initialize the rest s.defaultReadObject(); setTransients(parseFilter(getName()), parseActions(actions)); }
/** * readObject is called to restore the state of this permission from a * stream. */ private synchronized void readObject(java.io.ObjectInputStream s) throws IOException, ClassNotFoundException { // Read in the action, then initialize the rest s.defaultReadObject(); setTransients(parseFilter(getName()), parseActions(actions)); }
/** * readObject is called to restore the state of this permission from a * stream. */ private synchronized void readObject(java.io.ObjectInputStream s) throws IOException, ClassNotFoundException { // Read in the action, then initialize the rest s.defaultReadObject(); setTransients(parseFilter(getName()), parseActions(actions)); }
/** * readObject is called to restore the state of this permission from a * stream. */ private synchronized void readObject(java.io.ObjectInputStream s) throws IOException, ClassNotFoundException { // Read in the action, then initialize the rest s.defaultReadObject(); setTransients(parseFilter(getName()), parseActions(actions)); }
setTransients(null, parseActions(actions)); Map<String, Object> props; if ((localFrameworkUUID != null) && localFrameworkUUID.equals(endpoint.getFrameworkUUID())) {