Package oracle.as.scheduler.security
Class MetadataPermission<ID_TYPE extends oracle.as.scheduler.security.MetadataPermissionId>
java.lang.Object
java.security.Permission
oracle.as.scheduler.security.internal.permission.AbstractBulkPrivilegeCheckSupportPermission
oracle.as.scheduler.security.MetadataPermission<ID_TYPE>
- All Implemented Interfaces:
Serializable,Guard,oracle.as.scheduler.security.internal.permission.BulkPrivilegeCheckSupport,oracle.as.scheduler.security.internal.permission.MaskSupport,oracle.as.scheduler.security.internal.permission.MultistripeBulkPrivilegeCheckSupport
public class MetadataPermission<ID_TYPE extends oracle.as.scheduler.security.MetadataPermissionId>
extends oracle.as.scheduler.security.internal.permission.AbstractBulkPrivilegeCheckSupportPermission
implements oracle.as.scheduler.security.internal.permission.MaskSupport, Serializable
Represents the access control definitions to enforce access of ESS metadata.
MetadataPermission is a basic unit encapsulating the required permissions to access Metadata objects.
A target of MetadataPermission can either be a simple string or the full, partial or canonical form of objects of type MetadataObjectId.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnum of the permissible actions for ESS metadata. -
Constructor Summary
ConstructorsConstructorDescriptionMetadataPermission(ID_TYPE[] targets, MetadataPermission.Action... actions) Constructs the instance of Metadata permission for the given array of targets and actionsMetadataPermission(ID_TYPE target, MetadataPermission.Action... actions) Constructs the instance of Metadata permission for the given target and array of actionsMetadataPermission(String target, String actions) Constructs the instance of Metadata permission for the given target and actions -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks two MetadataPermission objects for equality.Gets the masks of actions added to this MetadataPermission instanceList<char[]>Gets the pattterns of actions added to this MetadataPermission instanceGets the metadata object Ids for which permissions are deniedGets the metadata object Ids for which permissions are allowedbooleanChecks if the specified MetadataPermission's actions are "implied by" this object's actions.Returns an empty MetadataPermissionCollection for this MetadataPermission objectMethods inherited from class oracle.as.scheduler.security.internal.permission.AbstractBulkPrivilegeCheckSupportPermission
_convertToString, beginAdditionalPolicyStripeCheck, endAdditionalPolicyStripeCheck, getActions, getDeniedTargets, getMask, getPassedTargets, getTargetCollection, hashCode, impliesIgnoreMask, isAdditionalPolicyStripeCheck, toStringMethods inherited from class java.security.Permission
checkGuard, getNameMethods inherited from interface oracle.as.scheduler.security.internal.permission.MaskSupport
getMask, impliesIgnoreMask
-
Constructor Details
-
MetadataPermission
Constructs the instance of Metadata permission for the given target and actions- Parameters:
target- the String representation of metadata objects of typeMetadataObjectIdactions- string representation of actions of typeMetadataPermission.Action
-
MetadataPermission
Constructs the instance of Metadata permission for the given array of targets and actions- Parameters:
targets- the full, partial or canonical form of objects of typeMetadataObjectIdactions- array of actions of typeMetadataPermission.Action
-
MetadataPermission
Constructs the instance of Metadata permission for the given target and array of actions- Parameters:
target- the full, partial or canonical form of object of typeMetadataObjectIdactions- array of actions of typeMetadataPermission.Action
-
-
Method Details
-
getPassedMetadataObjectIds
Gets the metadata object Ids for which permissions are allowed- Returns:
- the List of passed metadata object ids.
-
getDeniedMetadataObjectIds
Gets the metadata object Ids for which permissions are denied- Returns:
- the List of denied metadata object ids.
-
getActionPatterns
Gets the pattterns of actions added to this MetadataPermission instance- Specified by:
getActionPatternsin interfaceoracle.as.scheduler.security.internal.permission.MaskSupport- Returns:
- the List of action patterns
-
getActionMasks
Gets the masks of actions added to this MetadataPermission instance- Specified by:
getActionMasksin interfaceoracle.as.scheduler.security.internal.permission.MaskSupport- Returns:
- the List of action masks
-
implies
Checks if the specified MetadataPermission's actions are "implied by" this object's actions.- Overrides:
impliesin classoracle.as.scheduler.security.internal.permission.AbstractBulkPrivilegeCheckSupportPermission- Parameters:
p- the permission to check against.- Returns:
- true if the specified MetadataPermission is implied by this object, false if not.
-
equals
Checks two MetadataPermission objects for equality. Checks that obj is a MetadataPermission, and has the same pathname and actions as this object.- Specified by:
equalsin classPermission- Parameters:
obj- the object we are testing for equality with this object.- Returns:
trueif obj is a MetadataPermission, and has the same pathname and actions as this MetadataPermission object,falseotherwise.
-
newPermissionCollection
Returns an empty MetadataPermissionCollection for this MetadataPermission object- Overrides:
newPermissionCollectionin classPermission- Returns:
- a new MetadataPermissionCollection object
-