? ConfigurationPermission
java.lang.Object
java.security.Permission
java.security.BasicPermission
org.osgi.service.cm.ConfigurationPermission
- ????????:
Serializable
,Guard
Indicates a bundle's authority to configure bundles or be updated by
Configuration Admin.
- ???????:
- 1.2
- ????:
-
????
????????????static final String
Provides permission to set or remove an attribute on the configuration.static final String
Provides permission to create new configurations for other bundles as well as manipulate them.static final String
The permission to be updated, that is, act as a Managed Service or Managed Service Factory. -
?????
??? -
????
??????????boolean
Determines the equality of twoConfigurationPermission
objects.Returns the canonical string representation of theConfigurationPermission
actions.int
hashCode()
Returns the hash code value for this object.boolean
Determines if aConfigurationPermission
object "implies" the specified permission.Returns a newPermissionCollection
object suitable for storingConfigurationPermission
s.??????? java.security.Permission
checkGuard, getName, toString
-
??????
-
CONFIGURE
Provides permission to create new configurations for other bundles as well as manipulate them. The action string "configure".- ????:
-
TARGET
The permission to be updated, that is, act as a Managed Service or Managed Service Factory. The action string "target".- ???????:
- 1.4
- ????:
-
ATTRIBUTE
Provides permission to set or remove an attribute on the configuration. The action string "attribute".- ???????:
- 1.6
- ????:
-
-
???????
-
ConfigurationPermission
Create a new ConfigurationPermission.- ??:
name
- Name of the permission. Wildcards ('*'
) are allowed in the name. Duringimplies(Permission)
, the name is matched to the requested permission using the substring matching rules used byFilter
s.actions
- Comma separated list ofCONFIGURE
,TARGET
,ATTRIBUTE
(case insensitive).
-
-
??????
-
implies
Determines if aConfigurationPermission
object "implies" the specified permission.- ??:
implies
???BasicPermission
- ??:
p
- The target permission to check.- ??:
true
if the specified permission is implied by this object;false
otherwise.
-
equals
Determines the equality of twoConfigurationPermission
objects.Two
ConfigurationPermission
objects are equal.- ??:
equals
???BasicPermission
- ??:
obj
- The object being compared for equality with this object.- ??:
true
ifobj
is equivalent to thisConfigurationPermission
;false
otherwise.
-
hashCode
public int hashCode()Returns the hash code value for this object.- ??:
hashCode
???BasicPermission
- ??:
- Hash code value for this object.
-
getActions
Returns the canonical string representation of theConfigurationPermission
actions.Always returns present
ConfigurationPermission
actions in the following order: "configure", "target", "attribute".- ??:
getActions
???BasicPermission
- ??:
- Canonical string representation of the
ConfigurationPermission
actions.
-
newPermissionCollection
Returns a newPermissionCollection
object suitable for storingConfigurationPermission
s.- ??:
newPermissionCollection
???BasicPermission
- ??:
- A new
PermissionCollection
object.
-