|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OMIRepositoryInterface
This interface extends RepositoryInterface. It's necessary because OMIRepository is a remote interface, and for the stub to be created correctly, it needs to implement an interface that's complete, and some of the methods are specific to OMI.
Field Summary | |
---|---|
static java.lang.String |
TYPE_CUSTOM
String constant for OMR repository custom (dependent) type. |
static java.lang.String |
TYPE_FOUNDATION
String constant for OMR repository foundation type. |
static java.lang.String |
TYPE_PROJECT
String constant for OMR repository project (change managed) type. |
Fields inherited from interface com.sas.services.information.RepositoryInterface |
---|
PROFILE_BEST, PROFILE_NO, PROFILE_POSSIBLE |
Method Summary | |
---|---|
void |
addToCache(MetadataInterface newMetadata)
Add a MetadataInterface object to a repository's cache. |
void |
appyACTToObj(java.lang.String resource,
java.lang.String act)
Apply an AccessControlTemplate to a metadata object. |
boolean |
connect(com.sas.meta.SASOMI.IOMI connection,
java.lang.String base)
Set up to use an existing IOMI connection. |
void |
createAccessControTemplate(ACTEntry act)
Create a new AccessControlTemplate in this repository. |
com.sas.metadata.remote.Root |
createMetadata(java.lang.String name,
java.lang.String type)
Create a new metadata object. |
void |
deleteEntities(java.util.List metadataObjects)
Delete a collection of CMetadata objects. |
void |
deleteEntity(com.sas.metadata.remote.CMetadata metadata)
Allow a CMetadata object to be passed in to be deleted. |
void |
destroyAccessControlTemplate(java.lang.String act)
Destroy an AccessControlTemplate in the repository. |
void |
freeCredentials(java.lang.String credential)
Free a credential handle. |
ACTEntry |
getAccessControlTemplateAttribs(java.lang.String act)
Get attributes for an AccessControlTemplate. |
java.util.List |
getAccessControlTemplateList(int flags)
Get the list of AccessControlTemplates for this repository. |
java.util.List |
getACTsOnObj(java.lang.String resource)
Get the AccessControlTemplates that are associated to an object. |
java.lang.String[][] |
getAuthorizations(java.lang.String authType,
java.lang.String credHandle,
java.lang.String resource,
java.lang.String permission)
Get the authorization information for a metadata resource. |
java.util.List |
getAuthorizationsOnObj(java.lang.String resource,
java.util.List identities,
java.util.List permissions,
int flags)
Get the authorizations on an object for the given identities and permissions. |
java.util.List |
getChildren()
Get the list of repository id's that are "down" the dependency chain from the default repository. |
int |
getCountNoSecurity(Filter filter,
java.lang.String association)
Perform a search operation against the metadata repository which will return a count of the matching objects, rather than the objects themselves. |
java.util.Date |
getCreateDate(MetadataInterface mi)
|
java.lang.String |
getCredentials(java.lang.String subject)
See the ISecurity interface documentation for a description of this method. |
java.lang.String |
getDefaultRepositoryId()
Get the FQID of the default repository. |
java.lang.String |
getDefaultRepositoryName()
Get the name of the default repository. |
long |
getFolderItemRefreshInterval()
Get the interval for refreshing the folder's item list for objects retrieved through this repository instance. |
long |
getFolderSubfolderRefreshInterval()
Get the interval for refreshing a folder's subfolder list for objects retrieved through this repository instance. |
java.util.List |
getIdentitiesOnObj(java.lang.String resource,
int flags)
Get a List of identities associated with an object through authorizations. |
java.lang.String[][] |
getInheritedIdentities(MetadataInterface mi)
|
java.lang.String[][] |
getInheritedPermissions(IdentityInterface identity,
MetadataInterface metadata,
java.util.List permissions)
|
com.sas.meta.SASOMI.IOMI |
getIOMI()
Deprecated. This method is not usable across a remote interface. |
com.sas.meta.SASOMI.ISecurity |
getISecurity()
Deprecated. This method is not usable across a remote interface. |
java.util.Date |
getModifiedDate(MetadataInterface mi)
|
int |
getOMRVersion()
Get the version of the Metadata Server we're taking to. |
long |
getParentRefreshInterval()
Get the interval for refreshing an object's parent path information. |
java.util.List |
getParents()
Get the list of repository id's that are "up" the dependency chain from the default repository. |
java.util.List |
getPermissions()
Get a List of Permission objects from the metadata server. |
java.util.List |
getPredefinedPropertyTypes()
Get the PropertyType objects from the "Entity Property Types" group. |
java.util.List |
getRepositories()
Get a List of MetadataInterface objects that enumerate the Repositories contained in the OMR server we're currently connected to. |
java.lang.String |
getRepositoryType()
Get the type of this repository. |
java.lang.String |
getReposKey(com.sas.metadata.remote.Root reposObject)
Take a jOMA object and return the repository key that can be used to fetch it. |
boolean |
isAuthorized(MetadataInterface mi,
java.lang.String permission)
|
boolean |
isAuthorized(java.lang.String credential,
java.lang.String resource,
java.lang.String permission)
Check authorization status for a given credential, resource, and permission. |
AuthResult |
isAuthorizedWithConditions(java.lang.String credential,
java.lang.String resource,
java.lang.String permission)
Check authorization status for a given credential, resource, and permission. |
boolean |
isChild(RepositoryInterface repos)
Return a flag indicating if the repository provided is a child of the default repository. |
boolean |
isChild(java.lang.String repositoryID)
Return a flag indicating if the repository specified by repositoryID is a dependent child of the default repository. |
boolean |
isInChild(MetadataInterface metadata)
Return a flag indicating if the metadata object is in a dependent child repository to the default one. |
boolean |
isInParent(MetadataInterface metadata)
Return a flag indicating if the metadata object is in a parent repository to the default one. |
boolean |
isInProject(MetadataInterface metadata)
Returns a flag indicating if the object came from a project repository. |
boolean |
isParent(RepositoryInterface repos)
Return a flag indicating if the repository provided is a parent of the default repository. |
boolean |
isParent(java.lang.String repositoryID)
Return a flag indicating if the repository specified by repositoryID is a parent of the default repository. |
boolean |
isUserAuthorizedInRepository(java.lang.String permission)
Checks repository permissions for the user. |
void |
removeACTFromObj(java.lang.String resource,
java.lang.String act)
Remove an AccessControlTemplate from a metadata object. |
void |
setAccessControlTemplateAttribs(ACTEntry act)
Set attributes on an AccessControlTemplate. |
void |
setAuthorizationsOnObj(java.lang.String resource,
java.util.List authorizations,
int flags)
Set authorizations on a metadata object. |
void |
setFolderItemRefreshInterval(long msecInterval)
Set the interval for refreshing the folder's item list for objects retrieved through this repository instance. |
void |
setFolderSubfolderRefreshInterval(long msecInterval)
Set the interval for refreshing a folder's subfolder list for objects retrieved through this repository instance. |
void |
setParentRefreshInterval(long msecInterval)
Set the interval for refreshing an object's parent path information. |
int |
trackEntity(MetadataInterface entity)
Deprecated. Tracking ids are no longer supported. |
Field Detail |
---|
static final java.lang.String TYPE_FOUNDATION
static final java.lang.String TYPE_CUSTOM
static final java.lang.String TYPE_PROJECT
Method Detail |
---|
com.sas.meta.SASOMI.IOMI getIOMI() throws java.lang.IllegalStateException, java.rmi.RemoteException
java.lang.IllegalStateException
- If this instance isn't currently connected.
java.rmi.RemoteException
- in the event of remote object failure.com.sas.meta.SASOMI.ISecurity getISecurity() throws java.lang.IllegalStateException, java.rmi.RemoteException
java.lang.IllegalStateException
- If this instance isn't currently connected.
java.rmi.RemoteException
- in the event of remote object failure.java.lang.String[][] getInheritedPermissions(IdentityInterface identity, MetadataInterface metadata, java.util.List permissions) throws ServiceException, java.rmi.RemoteException
ServiceException
java.rmi.RemoteException
java.lang.String[][] getInheritedIdentities(MetadataInterface mi) throws ServiceException, java.rmi.RemoteException
ServiceException
java.rmi.RemoteException
boolean isAuthorized(MetadataInterface mi, java.lang.String permission) throws ServiceException, java.rmi.RemoteException
ServiceException
java.rmi.RemoteException
boolean connect(com.sas.meta.SASOMI.IOMI connection, java.lang.String base) throws ServiceException, java.rmi.RemoteException
connection
- The IOMI connection to use to communicate with the OMR server.base
- The default repository name to use.
ServiceException
- on repository errors.
java.rmi.RemoteException
- in the event of remote object failure.void deleteEntity(com.sas.metadata.remote.CMetadata metadata) throws ServiceException, java.rmi.RemoteException
metadata
- The CMetadata object to be deleted.
ServiceException
- in the event of back end repository failure.
java.rmi.RemoteException
- in the event of remote object failure.void deleteEntities(java.util.List metadataObjects) throws ServiceException, java.rmi.RemoteException
metadataObjects
- a List of CMetadata objects to be deleted.
ServiceException
- in the event of back end repository failure.
java.rmi.RemoteException
- in the event of remote object failure.int trackEntity(MetadataInterface entity) throws java.rmi.RemoteException
entity
- The entity to add to the tracking cache.
java.rmi.RemoteException
- in the event of remote object failure.java.util.List getRepositories() throws ServiceException, java.rmi.RemoteException
ServiceException
- in the event of repository failure.
java.rmi.RemoteException
- in the event of remote object failure.java.lang.String getDefaultRepositoryName() throws java.rmi.RemoteException
java.rmi.RemoteException
- in the event of remote object failure.java.lang.String getDefaultRepositoryId() throws java.rmi.RemoteException
java.rmi.RemoteException
- in the event of remote object failure.com.sas.metadata.remote.Root createMetadata(java.lang.String name, java.lang.String type) throws java.rmi.RemoteException, ServiceException
name
- A String for the name of the new object.type
- The Type for the new object. Should be a field from
MetadataObjects.
ServiceException
- If a service level error occurs.
java.rmi.RemoteException
- in the event of remote object failure.java.lang.String getReposKey(com.sas.metadata.remote.Root reposObject) throws ServiceException, java.rmi.RemoteException
reposObject
- A Root object whose repository key is to be returned.
ServiceException
- in the event of repository errors.
java.rmi.RemoteException
- in the event of remote object failure.java.lang.String getCredentials(java.lang.String subject) throws ServiceException, java.rmi.RemoteException
subject
- The subject for which to get a credential handle.
ServiceException
- in the event of repository errors.
java.rmi.RemoteException
- in the event of remote object failure.void freeCredentials(java.lang.String credential) throws ServiceException, java.rmi.RemoteException
credential
- The credential to free.
ServiceException
- in the event of repository errors.
java.rmi.RemoteException
- in the event of remote object failure.boolean isAuthorized(java.lang.String credential, java.lang.String resource, java.lang.String permission) throws ServiceException, java.rmi.RemoteException
credential
- A credential handle. If this is null, the current
authenticated user is checked for permission.resource
- A resource string of the form OMSOBJ:type/FQID which represents
the object whose permissions are being checked.permission
- A permission or comma-separated list of permissions to check
against the user's authorized permissions for the resource.
ServiceException
- in the event of repository errors.
java.rmi.RemoteException
- in the event of remote object failure.AuthResult isAuthorizedWithConditions(java.lang.String credential, java.lang.String resource, java.lang.String permission) throws ServiceException, java.rmi.RemoteException
credential
- A credential handle. If this is null, the current
authenticated user is checked for permission.resource
- A resource string of the form OMSOBJ:type/FQID which represents
the object whose permissions are being checked.permission
- A permission or comma-separated list of permissions to check
against the user's authorized permissions for the resource.
ServiceException
- in the event of repository errors.
java.rmi.RemoteException
- in the event of remote object failure.java.lang.String[][] getAuthorizations(java.lang.String authType, java.lang.String credHandle, java.lang.String resource, java.lang.String permission) throws ServiceException, java.rmi.RemoteException
authType
- The type of authorization check to perform.credHandle
- A credential handle. If null, the current user's authorizations
for the resource are checked.resource
- A string of the form OMSOBJ:type/FQID representing the metadata
object to be checked.permission
- A permission string, or a comma-separated list of permissions
to check.
ServiceException
- in the event of repository errors.
java.rmi.RemoteException
- in the event of remote object failure.int getCountNoSecurity(Filter filter, java.lang.String association) throws ServiceException, java.rmi.RemoteException
filter
- A Filter specifying the selection criteria as well as any
template that's desired for the operation.association
- An optional parameter that requests that a specific
association be counted rather than the top level objects. If
this is used, only one top level object can be returned by the
filter, and a template must be supplied to return the
association to count.
ServiceException
- In the event of a server error.
java.rmi.RemoteException
- In the event of remote object failure.java.util.Date getCreateDate(MetadataInterface mi) throws ServiceException, java.rmi.RemoteException
ServiceException
java.rmi.RemoteException
java.util.Date getModifiedDate(MetadataInterface mi) throws ServiceException, java.rmi.RemoteException
ServiceException
java.rmi.RemoteException
java.lang.String getRepositoryType() throws java.rmi.RemoteException
java.rmi.RemoteException
- in the event of remote object failure.boolean isChild(java.lang.String repositoryID) throws java.rmi.RemoteException
repositoryID
- The ID of the repository to check.
java.rmi.RemoteException
- In the event of remote object failure.boolean isChild(RepositoryInterface repos) throws java.rmi.RemoteException
repos
- The repository to check.
java.rmi.RemoteException
- In the event of remote object failure.boolean isInChild(MetadataInterface metadata) throws java.rmi.RemoteException
metadata
- The metadata object to check.
java.rmi.RemoteException
- In the event of remote object failure.boolean isParent(java.lang.String repositoryID) throws java.rmi.RemoteException
repositoryID
- The ID of the repository to check.
java.rmi.RemoteException
- In the event of remote object failure.boolean isParent(RepositoryInterface repos) throws java.rmi.RemoteException
repos
- The repository to check.
java.rmi.RemoteException
- In the event of remote object failure.boolean isInParent(MetadataInterface metadata) throws java.rmi.RemoteException
metadata
- The metadata object to check.
java.rmi.RemoteException
- In the event of remote object failure.boolean isInProject(MetadataInterface metadata) throws java.rmi.RemoteException
metadata
- The object to check for project membership.
java.rmi.RemoteException
- In the event of remote object failure.java.util.List getParents() throws java.rmi.RemoteException
java.rmi.RemoteException
- In the event of remote object failure.java.util.List getChildren() throws java.rmi.RemoteException
java.rmi.RemoteException
- In the event of remote object failure.void setFolderItemRefreshInterval(long msecInterval) throws java.rmi.RemoteException
msecInterval
- The interval in milliseconds after which a folder's item
information is considered stale.
java.rmi.RemoteException
- In the event of remote object failure.long getFolderItemRefreshInterval() throws java.rmi.RemoteException
java.rmi.RemoteException
- In the event of remote object failure.void setFolderSubfolderRefreshInterval(long msecInterval) throws java.rmi.RemoteException
msecInterval
- The interval in milliseconds after which a folder's subfolder
information is considered stale.
java.rmi.RemoteException
- In the event of remote object failure.long getFolderSubfolderRefreshInterval() throws java.rmi.RemoteException
java.rmi.RemoteException
- In the event of remote object failure.void setParentRefreshInterval(long msecInterval) throws java.rmi.RemoteException
msecInterval
- The interval in milliseconds after which an object's
parent information is considered stale.
java.rmi.RemoteException
- In the event of remote object failure.long getParentRefreshInterval() throws java.rmi.RemoteException
java.rmi.RemoteException
- In the event of remote object failure.java.util.List getAuthorizationsOnObj(java.lang.String resource, java.util.List identities, java.util.List permissions, int flags) throws ServiceException, java.rmi.RemoteException
resource
- The resource string of the object to test. A resource string should
be of the form OMSOBJ:obj_type/obj_ID (e.g., OMSOBJ:PhysicalTable/A5DRX6L4.AJ00001Z).identities
- A List of IdentityInterface
objects for the users to test permissions for. If left null, all identities are returned.permissions
- A List of Permission
objects specifying
the permissions to check. If null, all permissions for all specified identities on the object are
returned.flags
- Flags which control the return values. Valid flags are:
ISecurityAdmin.SECAD_ACT_CONTENTS and ISecurityAdmin.SECAD_DO_NOT_RETURN_PERMCOND. See the
documentation for ISecurityAdmin.GetAuthorizationsOnObj for more details.
ServiceException
- if a service level error occurs.
java.rmi.RemoteException
- in the event of remote object failure.void setAuthorizationsOnObj(java.lang.String resource, java.util.List authorizations, int flags) throws ServiceException, java.rmi.RemoteException
resource
- The resource string of the object to test. A resource string should
be of the form OMSOBJ:obj_type/obj_ID (e.g., OMSOBJ:PhysicalTable/A5DRX6L4.AJ00001Z).authorizations
- A List of Authorization
objects defining the authorizations to set on the object.flags
- Controls the behavior of the method. The only valid flag as of this
writing is ISecurityAdmin.SECAD_ACT_CONTENTS. Check the documentation for the
ISecurityAdmin interface for details.
ServiceException
- If a service level error occurs.
java.rmi.RemoteException
- In the event of remote object failure.java.util.List getIdentitiesOnObj(java.lang.String resource, int flags) throws ServiceException, java.rmi.RemoteException
resource
- The resource string of the object to test. A resource string should
be of the form OMSOBJ:obj_type/obj_ID (e.g., OMSOBJ:PhysicalTable/A5DRX6L4.AJ00001Z).flags
- Zero or ISecurityAdmin.SECAD_ACT_CONTENTS. See the javadoc for
ISecurityAdmin for more information.
examples:
Person/Gary Williams
IdentityGroup/PUBLIC
ServiceException
- If a service level error occurs.
java.rmi.RemoteException
- In the event of remote object failure.java.util.List getACTsOnObj(java.lang.String resource) throws ServiceException, java.rmi.RemoteException
resource
- The resource string of the object to test. A resource string should
be of the form OMSOBJ:obj_type/obj_ID (e.g., OMSOBJ:PhysicalTable/A5DRX6L4.AJ00001Z).
ServiceException
- If a service level error occurs.
java.rmi.RemoteException
- In the event of a remote object failure.void appyACTToObj(java.lang.String resource, java.lang.String act) throws ServiceException, java.rmi.RemoteException
resource
- The resource string of the object to test. A resource string should
be of the form OMSOBJ:obj_type/obj_ID (e.g., OMSOBJ:PhysicalTable/A5DRX6L4.AJ00001Z).act
- The resource string representing the AccessControlTemplate. It's the same
format as the resource parameter.
ServiceException
- If a service level error occurs.
java.rmi.RemoteException
- In the event of a remote object failure.void removeACTFromObj(java.lang.String resource, java.lang.String act) throws ServiceException, java.rmi.RemoteException
resource
- The resource string of the object to modify. A resource string should
be of the form OMSOBJ:obj_type/obj_ID (e.g., OMSOBJ:PhysicalTable/A5DRX6L4.AJ00001Z).act
- The resource string representing the AccessControlTemplate. It's the same
format as the resource parameter.
ServiceException
- If a service level error occurs.
java.rmi.RemoteException
- In the event of a remote object failure.java.util.List getAccessControlTemplateList(int flags) throws ServiceException, java.rmi.RemoteException
flags
- zero or ISecurityAdmin.SECAD_REPOSITORY_DEPENDENCY_USES to
get AccessControlTemplates for repositories up the dependency chain from
this one.
ServiceException
- If a service level error occurs.
java.rmi.RemoteException
- In the event of remote object failure.void createAccessControTemplate(ACTEntry act) throws ServiceException, java.rmi.RemoteException
act
- An ACTEntry describing the new entry. The name must be
set. The description may be set, and the use parameter should be
left null, or set to "REPOS" if this is to become the new repository
default ACT (if you have permission to perform that operation).
ServiceException
- If a service level error occurs.
java.rmi.RemoteException
- In the event of remote object failure.void destroyAccessControlTemplate(java.lang.String act) throws ServiceException, java.rmi.RemoteException
act
- The resource ID of the ACT. A resource string should
be of the form OMSOBJ:obj_type/obj_ID (e.g., OMSOBJ:AccessControlTemplate/A5DRX6L4.AJ00001Z).
ServiceException
- If a service level error occurs.
java.rmi.RemoteException
- In the event of remote object failure.void setAccessControlTemplateAttribs(ACTEntry act) throws ServiceException, java.rmi.RemoteException
act
- An ACTEntry object with the new information about the ACT.
Set the use parameter in the ACTEntry to "REPOS" to make it the repository
default, and be sure you have the necessary permissions to do it or expect
an exception.
ServiceException
- If a service level error occurs.
java.rmi.RemoteException
- In the event of remote object failure.ACTEntry getAccessControlTemplateAttribs(java.lang.String act) throws ServiceException, java.rmi.RemoteException
act
- The resource ID of the ACT. A resource string should
be of the form OMSOBJ:obj_type/obj_ID (e.g., OMSOBJ:AccessControlTemplate/A5DRX6L4.AJ00001Z).
ServiceException
- If a service level error occurs.
java.rmi.RemoteException
- In the event of remote object failure.int getOMRVersion() throws ServiceException, java.rmi.RemoteException
ServiceException
- If a server error occurs.
java.rmi.RemoteException
- In the event of remote object failure.java.util.List getPermissions() throws ServiceException, java.rmi.RemoteException
MetadataInterface
objects
representing the Permissions in the metadata server.
ServiceException
- If a repository error occurs.
java.rmi.RemoteException
- In the event of remote object failure.java.util.List getPredefinedPropertyTypes() throws ServiceException, java.rmi.RemoteException
MetadataInterface
objects
representing the defined property types.
ServiceException
- If a repository error occurs.
java.rmi.RemoteException
- In the event of remote object failure.void addToCache(MetadataInterface newMetadata) throws ServiceException, java.rmi.RemoteException
newMetadata
- The new metadata object to add to the cache.
ServiceException
- If an error occurs while adding the new object to the cache.
java.rmi.RemoteException
- In the event of remote object failure.boolean isUserAuthorizedInRepository(java.lang.String permission) throws ServiceException, java.rmi.RemoteException
permission
- The permission to check. Usually "WriteMetadata" or
PermissionInterface.PERMISSION_WRITEMETADATA.
ServiceException
- If the permission string is invalid, or a server
error occurs.
java.rmi.RemoteException
- In the event of remote object failure.
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |