public abstract class MetadataObjectId extends Object implements Serializable, oracle.as.scheduler.security.MetadataPermissionId
This unique identifier contains the fully qualified name for the a given metadata object. Methods declared in this class allow access to individual parts within the fully qualified name.
Modifier and Type | Class and Description |
---|---|
static class |
MetadataObjectId.MetadataObjectType
Enumeration for all the supported metadata object types.
|
Constructor and Description |
---|
MetadataObjectId() |
Modifier and Type | Method and Description |
---|---|
static MetadataObjectId |
createMetadataObjectId(MetadataObjectId.MetadataObjectType type,
String packageName,
String name)
Creates an instance of a
MetadataObjectId from the given
individual parts. |
abstract String |
getNamePart()
The name of this metadata object identifier.
|
abstract String |
getPackagePart()
The package (namespace) for this metadata object identifier.
|
abstract MetadataObjectId.MetadataObjectType |
getType()
The type of this metadata object identifier.
|
abstract String |
toPermissionString()
A string representation of this suitable for use in permission grants.
|
abstract String |
toString()
A string representation of this instance.
|
public abstract String getPackagePart()
A metadata object is created and resides in the given package or namespace within the metadata repository.
null
is a package was not specified.public abstract String getNamePart()
This is the name with which the metadata object was created and persisted in the repository using the metadata service.
null
.public abstract MetadataObjectId.MetadataObjectType getType()
public abstract String toString()
public abstract String toPermissionString()
toPermissionString
in interface oracle.as.scheduler.security.MetadataPermissionId
public static MetadataObjectId createMetadataObjectId(MetadataObjectId.MetadataObjectType type, String packageName, String name)
MetadataObjectId
from the given
individual parts. This method can be useful in submitting a
request for specific known metadata objects, where querying
such objects via MetadataService
is not required.
This method simply assembles an identifier from individual parts.
It does not guarantee that the MetadataObjectId
created
represents a real metadata object in the repository.
type
- the type of MetadataObjectId to be created.packageName
- the package of the metadata object for which
the id is being created. The package should follow the
"/pkg1/pkg2/..." format.name
- the name of metadata object for this id is being created.MetadataObjectId
created from given individual parts.