/** * Creates a new requested {@code CoordinationPermission} object to be used * by the code that must perform {@code checkPermission}. * {@code CoordinationPermission} objects created with this constructor * cannot be added to an {@code CoordinationPermission} permission * collection. * * @param coordinationName The name of the requested Coordination. * @param coordinationBundle The bundle which * {@link Coordination#getBundle() created} the requested * Coordination. * @param actions {@code admin}, {@code initiate} or {@code participate} * (canonical order). */ public CoordinationPermission(String coordinationName, Bundle coordinationBundle, String actions) { super(coordinationName); setTransients(null, parseActions(actions)); this.bundle = coordinationBundle; if (coordinationName == null) { throw new NullPointerException("coordinationName must not be null"); } if (coordinationBundle == null) { throw new NullPointerException("coordinationBundle must not be null"); } }
this(parseFilter(filter), 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)); }
/** * Creates a new requested {@code CoordinationPermission} object to be used * by the code that must perform {@code checkPermission}. * {@code CoordinationPermission} objects created with this constructor * cannot be added to an {@code CoordinationPermission} permission * collection. * * @param coordinationName The name of the requested Coordination. * @param coordinationBundle The bundle which * {@link Coordination#getBundle() created} the requested * Coordination. * @param actions {@code admin}, {@code initiate} or {@code participate} * (canonical order). */ public CoordinationPermission(String coordinationName, Bundle coordinationBundle, String actions) { super(coordinationName); setTransients(null, parseActions(actions)); this.bundle = coordinationBundle; if (coordinationName == null) { throw new NullPointerException("coordinationName must not be null"); } if (coordinationBundle == null) { throw new NullPointerException("coordinationBundle must not be null"); } }
/** * Creates a new requested {@code CoordinationPermission} object to be used * by the code that must perform {@code checkPermission}. * {@code CoordinationPermission} objects created with this constructor * cannot be added to an {@code CoordinationPermission} permission * collection. * * @param coordinationName The name of the requested Coordination. * @param coordinationBundle The bundle which * {@link Coordination#getBundle() created} the requested * Coordination. * @param actions {@code admin}, {@code initiate} or {@code participate} * (canonical order). */ public CoordinationPermission(String coordinationName, Bundle coordinationBundle, String actions) { super(coordinationName); setTransients(null, parseActions(actions)); this.bundle = coordinationBundle; if (coordinationName == null) { throw new NullPointerException("coordinationName must not be null"); } if (coordinationBundle == null) { throw new NullPointerException("coordinationBundle must not be null"); } }
/** * Creates a new requested {@code CoordinationPermission} object to be used * by the code that must perform {@code checkPermission}. * {@code CoordinationPermission} objects created with this constructor * cannot be added to an {@code CoordinationPermission} permission * collection. * * @param coordinationName The name of the requested Coordination. * @param coordinationBundle The bundle which * {@link Coordination#getBundle() created} the requested * Coordination. * @param actions {@code admin}, {@code initiate} or {@code participate} * (canonical order). */ public CoordinationPermission(String coordinationName, Bundle coordinationBundle, String actions) { super(coordinationName); setTransients(null, parseActions(actions)); this.bundle = coordinationBundle; if (coordinationName == null) { throw new NullPointerException("coordinationName must not be null"); } if (coordinationBundle == null) { throw new NullPointerException("coordinationBundle must not be null"); } }
/** * Creates a new requested {@code CoordinationPermission} object to be used * by the code that must perform {@code checkPermission}. * {@code CoordinationPermission} objects created with this constructor * cannot be added to an {@code CoordinationPermission} permission * collection. * * @param coordinationName The name of the requested Coordination. * @param coordinationBundle The bundle which * {@link Coordination#getBundle() created} the requested * Coordination. * @param actions {@code admin}, {@code initiate} or {@code participate} * (canonical order). */ public CoordinationPermission(String coordinationName, Bundle coordinationBundle, String actions) { super(coordinationName); setTransients(null, parseActions(actions)); this.bundle = coordinationBundle; if (coordinationName == null) { throw new NullPointerException("coordinationName must not be null"); } if (coordinationBundle == null) { throw new NullPointerException("coordinationBundle must not be null"); } }
/** * Creates a new requested {@code CoordinationPermission} object to be used * by the code that must perform {@code checkPermission}. * {@code CoordinationPermission} objects created with this constructor * cannot be added to an {@code CoordinationPermission} permission * collection. * * @param coordinationName The name of the requested Coordination. * @param coordinationBundle The bundle which * {@link Coordination#getBundle() created} the requested * Coordination. * @param actions {@code admin}, {@code initiate} or {@code participate} * (canonical order). */ public CoordinationPermission(String coordinationName, Bundle coordinationBundle, String actions) { super(coordinationName); setTransients(null, parseActions(actions)); this.bundle = coordinationBundle; if (coordinationName == null) { throw new NullPointerException("coordinationName must not be null"); } if (coordinationBundle == null) { throw new NullPointerException("coordinationBundle must not be null"); } }
/** * 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)); }
/** * 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)); }