/** * Package private constructor used by CapabilityPermissionCollection. * * @param name class name * @param mask action mask */ CapabilityPermission(String name, int mask) { super(name); setTransients(name, mask); this.attributes = null; this.bundle = 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(getName(), parseActions(actions)); }
/** * Creates a new requested {@code CapabilityPermission} object to be used by * code that must perform {@code checkPermission} for the {@code require} * action. {@code CapabilityPermission} objects created with this * constructor cannot be added to a {@code CapabilityPermission} permission * collection. * * @param namespace The requested capability namespace. * @param attributes The requested capability attributes. * @param providingBundle The bundle providing the requested capability. * @param actions The action {@code require}. * @throws IllegalArgumentException If the specified action is not * {@code require} or attributes or providingBundle are {@code null} * . */ public CapabilityPermission(String namespace, Map<String, ?> attributes, Bundle providingBundle, String actions) { super(namespace); setTransients(namespace, parseActions(actions)); if (attributes == null) { throw new IllegalArgumentException("attributes must not be null"); } if (providingBundle == null) { throw new IllegalArgumentException("bundle must not be null"); } this.attributes = new HashMap<String, Object>(attributes); this.bundle = providingBundle; if ((action_mask & ACTION_ALL) != ACTION_REQUIRE) { throw new IllegalArgumentException("invalid action string"); } }
/** * Package private constructor used by CapabilityPermissionCollection. * * @param name class name * @param mask action mask */ CapabilityPermission(String name, int mask) { super(name); setTransients(name, mask); this.attributes = null; this.bundle = null; }
/** * Package private constructor used by CapabilityPermissionCollection. * * @param name class name * @param mask action mask */ CapabilityPermission(String name, int mask) { super(name); setTransients(name, mask); this.attributes = null; this.bundle = null; }
/** * Package private constructor used by CapabilityPermissionCollection. * * @param name class name * @param mask action mask */ CapabilityPermission(String name, int mask) { super(name); setTransients(name, mask); this.attributes = null; this.bundle = null; }
/** * Package private constructor used by CapabilityPermissionCollection. * * @param name class name * @param mask action mask */ CapabilityPermission(String name, int mask) { super(name); setTransients(name, mask); this.attributes = null; this.bundle = null; }
/** * Package private constructor used by CapabilityPermissionCollection. * * @param name class name * @param mask action mask */ CapabilityPermission(String name, int mask) { super(name); setTransients(name, mask); this.attributes = null; this.bundle = null; }
/** * Package private constructor used by CapabilityPermissionCollection. * * @param name class name * @param mask action mask */ CapabilityPermission(String name, int mask) { super(name); setTransients(name, mask); this.attributes = null; this.bundle = null; }
/** * Package private constructor used by CapabilityPermissionCollection. * * @param name class name * @param mask action mask */ CapabilityPermission(String name, int mask) { super(name); setTransients(name, mask); this.attributes = null; this.bundle = null; }
/** * Package private constructor used by CapabilityPermissionCollection. * * @param name class name * @param mask action mask */ CapabilityPermission(String name, int mask) { super(name); setTransients(name, mask); this.attributes = null; this.bundle = null; }
/** * Package private constructor used by CapabilityPermissionCollection. * * @param name class name * @param mask action mask */ CapabilityPermission(String name, int mask) { super(name); setTransients(name, mask); this.attributes = null; this.bundle = null; }
/** * Package private constructor used by CapabilityPermissionCollection. * * @param name class name * @param mask action mask */ CapabilityPermission(String name, int mask) { super(name); setTransients(name, mask); this.attributes = null; this.bundle = 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(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(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(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(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(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(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(getName(), parseActions(actions)); }