Additional top-level class in compilation unit: ConfigurationPermissionCollection.
Modifier and Type | Field and Description |
---|---|
private static final int | |
private static final int | |
private static final int | |
pack-priv transient int | action_mask
The actions mask. |
pack-priv static final int | |
private static final int | |
private volatile String | actions
The actions in canonical form. |
public static final String | ATTRIBUTE
Provides permission to set or remove an attribute on the configuration. |
public static final String | CONFIGURE
Provides permission to create new configurations for other bundles as well as manipulate them. |
private static final long | |
private transient List | substrings
Parsed name if it includes wildcards: "*" |
public static final String | TARGET
The permission to be updated, that is, act as a Managed Service or Managed Service Factory. |
Access | Constructor and Description |
---|---|
public | ConfigurationPermission(String
Name of the permission. Wildcards ( name, String actions)'*' ) are allowed
in the name. During implies(Permission) , the name is
matched to the requested permission using the substring
matching rules used by Filter s.Create a new ConfigurationPermission. |
pack-priv | ConfigurationPermission(String
location string name, int action mask mask)Package private constructor used by ConfigurationPermissionCollection. |
Modifier and Type | Method and Description |
---|---|
public boolean | Returns: true if obj is equivalent to this
ConfigurationPermission ; false otherwise.The object being compared for equality with this object. obj)Overrides java. Determines the equality of two |
public String | Returns: Canonical string representation of theConfigurationPermission actions.Overrides java. Returns the canonical string representation of the
|
public int | Returns: Hash code value for this object.Overrides java. Returns the hash code value for this object. |
public boolean | Returns: true if the specified permission is implied by this
object; false otherwise.The target permission to check. p)Overrides java. Determines if a |
pack-priv boolean | Returns: true if the specified permission is implied by this
object; false otherwise.The requested ConfigurationPermission which has already
be validated as a proper argument. requested, int The effective actions with which to start. effective)Internal implies method. |
public PermissionCollection | Returns: A newPermissionCollection object.Overrides java. Returns a new |
private static int | Returns: action mask.Action string. actions)Parse action string into action mask. |
private static List | Returns: null is the name has no wildcards or a
List<String> where element is a substring to match or
null for '*' .The name of the permission. name)Parse the name for wildcard processing. |
private synchronized void | readObject(ObjectInputStream
the s)ObjectInputStream from which data is readHides java. readObject is called to restore the state of this permission from a stream. |
private void | |
private synchronized void | writeObject(ObjectOutputStream s)
WriteObject is called to save the state of this permission object to a stream. |
ACTION_ALL | back to summary |
---|---|
private static final int ACTION_ALL |
ACTION_ATTRIBUTE | back to summary |
---|---|
private static final int ACTION_ATTRIBUTE |
ACTION_CONFIGURE | back to summary |
---|---|
private static final int ACTION_CONFIGURE |
action_mask | back to summary |
---|---|
pack-priv transient int action_mask The actions mask. |
ACTION_NONE | back to summary |
---|---|
pack-priv static final int ACTION_NONE |
ACTION_TARGET | back to summary |
---|---|
private static final int ACTION_TARGET |
actions | back to summary |
---|---|
private volatile String actions The actions in canonical form. |
ATTRIBUTE | back to summary |
---|---|
public static final String ATTRIBUTE Provides permission to set or remove an attribute on the configuration. The action string attribute.
|
CONFIGURE | back to summary |
---|---|
public static final String CONFIGURE Provides permission to create new configurations for other bundles as well as manipulate them. The action string configure. |
serialVersionUID | back to summary |
---|---|
private static final long serialVersionUID |
substrings | back to summary |
---|---|
private transient List<String> substrings Parsed name if it includes wildcards: "*" |
TARGET | back to summary |
---|---|
public static final String TARGET The permission to be updated, that is, act as a Managed Service or Managed Service Factory. The action string target.
|
ConfigurationPermission | back to summary |
---|---|
public ConfigurationPermission(String name, String actions) Create a new ConfigurationPermission.
|
ConfigurationPermission | back to summary |
---|---|
pack-priv ConfigurationPermission(String name, int mask) Package private constructor used by ConfigurationPermissionCollection.
|
equals | back to summary |
---|---|
public boolean equals(Object obj) Overrides java. Determines the equality of two
Two |
getActions | back to summary |
---|---|
public String getActions() Overrides java. Returns the canonical string representation of the
Always returns present |
hashCode | back to summary |
---|---|
public int hashCode() Overrides java. Returns the hash code value for this object.
|
implies | back to summary |
---|---|
public boolean implies(Permission p) Overrides java. Determines if a
|
implies0 | back to summary |
---|---|
pack-priv boolean implies0(ConfigurationPermission requested, int effective) Internal implies method. Used by the implies and the permission collection implies methods.
|
newPermissionCollection | back to summary |
---|---|
public PermissionCollection newPermissionCollection() Overrides java. Returns a new
|
parseActions | back to summary |
---|---|
private static int parseActions(String actions) Parse action string into action mask.
|
parseSubstring | back to summary |
---|---|
private static List Parse the name for wildcard processing. |
readObject | back to summary |
---|---|
private synchronized void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException Hides java. readObject is called to restore the state of this permission from a stream.
|
setTransients | back to summary |
---|---|
private void setTransients(int mask) Called by constructors and when deserialized.
|
writeObject | back to summary |
---|---|
private synchronized void writeObject(ObjectOutputStream s) throws IOException WriteObject is called to save the state of this permission object to a stream. The actions are serialized, and the superclass takes care of the name. |