***  This interface provides Binary Compatibility only, not Source Compatibility  ***

com.sas.services.information
Interface MetadataServerInterface

All Superinterfaces:
java.rmi.Remote, ServerInterface
All Known Implementing Classes:
OMIChildServer, OMIServer

public interface MetadataServerInterface
extends ServerInterface


Field Summary
 
Fields inherited from interface com.sas.services.information.ServerInterface
DEFAULT_SERVER_NAME, SERVER_VERSION_913_SP3, SERVER_VERSION_913_SP4, SERVER_VERSION_920, SERVER_VERSION_930, SERVER_VERSION_UNKNOWN
 
Method Summary
 void applyACTToObj(java.lang.String resource, java.lang.String act)
          Apply an AccessControlTemplate to a metadata object.
 void createAccessControTemplate(RepositoryInterface repository, ACTEntry act)
          Create a new AccessControlTemplate in this repository.
 com.sas.metadata.remote.Root createMetadata(java.lang.String repositoryId, 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 deleteInternalPassword(java.lang.String username)
          Delete a user's internal password.
 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(RepositoryInterface repository, 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.util.List getApplicationActionsAuthorizations(SoftwareComponentInterface app)
          Get the authorizations on an application's actions.
 java.util.List getApplicationActionsAuthorizations(SoftwareComponentInterface app, RoleInterface role, boolean explicitRoleActions)
          Get the authorizations on an application's actions.
 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<AuthorizationObjectsResult> getAuthorizationsForObjects(java.util.List<MetadataInterface> resources, java.util.List<java.lang.String> permissions)
          Get authorization information for a list of metadata objects.
 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.
 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)
          Get the Created date of a metadata object as a Date rather than a String.
 java.lang.String getCredentials(java.lang.String subject)
          See the ISecurity interface documentation for a description of this method.
 java.util.Map getEnterprisePolicies()
          Get a Map with the server-managed enterprise policies.
 java.util.List getIdentitiesOnObj(java.lang.String resource, int flags)
          Get a List of identities associated with an object through authorizations.
 IdentityInfo getIdentityInfo()
          Return an IdentityInfo object containing information about the currently connected user.
 java.lang.String getInternalDomain()
          Return the string that represents the internal authentication domain.
 InternalLoginSitePolicies getInternalLoginSitePolicies()
          Get the site policies that control the internal authentication provider.
 InternalLoginUserInfo getInternalLoginUserInfo(java.lang.String username)
          Get the information regarding a user's internal login.
 java.util.List getLoginsForAuthDomain(java.lang.String domain)
          Get the logins for the connected user for a given authentication domain.
 java.util.Date getModifiedDate(MetadataInterface mi)
          Get the modified date of a metadata object as a Date rather than a String.
 java.util.Map getTypeDictionaryMap()
          Get the Map of TypeDescriptors.
 AuthResult isAuthorizedWithConditions(java.lang.String credential, java.lang.String resource, java.lang.String permission)
          Check authorization status for a given credential, resource, and permission.
 void removeACTFromObj(java.lang.String resource, java.lang.String act)
          Remove an AccessControlTemplate from a metadata object.
 void setAccessControlTemplateAttribs(RepositoryInterface repository, 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 setInternalLoginUserOptions(java.lang.String username, boolean isDisabled, boolean bypassStrength, boolean bypassHistory, boolean useStdPasswordExpirationDays, int passwordExpirationDays, boolean bypassLockout, boolean bypassInactivitySuspension, boolean expireAccount, java.util.Date accountExpirationDate)
          Set the options on a user's internal login.
 void setInternalPassword(java.lang.String username, java.lang.String password)
          Set a user's internal password.
 
Methods inherited from interface com.sas.services.information.ServerInterface
addToCache, browseFetch, browseFolder, browseFolderRecursive, browseSearch, browseSearch, browseSearch, browseSearch, clearPendingChanges, connect, connect, debug, debug, debug, deleteEntity, destroy, error, error, executeRequest, factoryProcess, fetch, fetch, flush, fromByteArray, generatePassword, getDomain, getExplicitIdentityGroup, getFoundationRepository, getHomeFolder, getHomeFolder, getHost, getIdentity, getName, getObjectByPath, getObjectByPathFilter, getPerson, getPort, getProtocol, getRepositories, getRepositories, getRepository, getRepositoryInfo, getRepositoryName, getRepositoryNames, getRootFolder, getServerVersion, getTypeDescriptor, getUserContext, info, info, info, isAuthorized, isUserAuthorized, loadTypes, loadTypes, newChild, newChild, newMetadata, reconnect, refreshAllData, refreshEntity, search, search, search, toByteArray, warn, warn, warn
 

Method Detail

getLoginsForAuthDomain

java.util.List getLoginsForAuthDomain(java.lang.String domain)
                                      throws ServiceException,
                                             java.rmi.RemoteException
Get the logins for the connected user for a given authentication domain. This calls through to the ISecurity_1_1 interface to get the logins in a specific order determined by the server. This method is used by the UserContext to populate the identities list, and should not be called by other clients.

Parameters:
domain - The authentication domain to return the logins for.
Returns:
A List of UserIdentityInterface objects accessible by the connected user in the requested domain.
Throws:
ServiceException - If a service-level error occurs.
java.rmi.RemoteException - In teh event of remote object failure.

getApplicationActionsAuthorizations

java.util.List getApplicationActionsAuthorizations(SoftwareComponentInterface app,
                                                   RoleInterface role,
                                                   boolean explicitRoleActions)
                                                   throws ServiceException,
                                                          java.rmi.RemoteException
Get the authorizations on an application's actions. The SoftwareComponent is the metadata object that represents the application. The actions defined for the application and their required roles, combined with the roles that the current user has will determine what actions are allowed.

Parameters:
app - The SoftwareComponent that represents the application to check.
role - The Role for which ApplicationActions Authorizations will be returned
explicitRoleActions - Limit the returned ApplicationsActions to the indicated Role only. ApplicationsActions from contributed Roles will not be returned.
Returns:
A List of ApplicationAuthorization objects which indicate the list of actions available for the application and for each, whether the current user is allowed access to that action.
Throws:
ServiceException - If a server error occurs.
java.rmi.RemoteException - In the event of remote object failure.

getApplicationActionsAuthorizations

java.util.List getApplicationActionsAuthorizations(SoftwareComponentInterface app)
                                                   throws ServiceException,
                                                          java.rmi.RemoteException
Get the authorizations on an application's actions. The SoftwareComponent is the metadata object that represents the application. The actions defined for the application and their required roles, combined with the roles that the current user has will determine what actions are allowed.

Parameters:
app - The SoftwareComponent that represents the application to check.
Returns:
A List of ApplicationAuthorization objects which indicate the list of actions available for the application and for each, whether the current user is allowed access to that action.
Throws:
ServiceException - If a server error occurs.
java.rmi.RemoteException - In the event of remote object failure.

getEnterprisePolicies

java.util.Map getEnterprisePolicies()
                                    throws ServiceException,
                                           java.rmi.RemoteException
Get a Map with the server-managed enterprise policies.

Returns:
A Map of the enterprise policies. Keys and values should be Strings.
Throws:
ServiceException - If a server error occurs.
java.rmi.RemoteException - In the event of remote object failure.

getCredentials

java.lang.String getCredentials(java.lang.String subject)
                                throws ServiceException,
                                       java.rmi.RemoteException
See the ISecurity interface documentation for a description of this method.

Parameters:
subject - The subject for which to get a credential handle.
Returns:
A credential handle for the requested subject.
Throws:
ServiceException - in the event of repository errors.
java.rmi.RemoteException - in the event of remote object failure.

freeCredentials

void freeCredentials(java.lang.String credential)
                     throws ServiceException,
                            java.rmi.RemoteException
Free a credential handle. See the ISecurity interface documentation for a description of this method. This method must be called for any credential retrieved with a getCredentials call.

Parameters:
credential - The credential to free.
Throws:
ServiceException - in the event of repository errors.
java.rmi.RemoteException - in the event of remote object failure.

isAuthorizedWithConditions

AuthResult isAuthorizedWithConditions(java.lang.String credential,
                                      java.lang.String resource,
                                      java.lang.String permission)
                                      throws ServiceException,
                                             java.rmi.RemoteException
Check authorization status for a given credential, resource, and permission. See the ISecurity interface documentation for a more complete description.

Parameters:
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.
Returns:
An AuthResult object with a boolean indicating whether the user has the requested permissions granted, and possibly a condition string.
Throws:
ServiceException - in the event of repository errors.
java.rmi.RemoteException - in the event of remote object failure.

getAuthorizations

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
Get the authorization information for a metadata resource. See the ISecurity interface documentation for a more complete description.

Parameters:
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.
Returns:
A two-dimensional array of strings. The exact layout and meaning of the of the result array depends on the value of authType.
Throws:
ServiceException - in the event of repository errors.
java.rmi.RemoteException - in the event of remote object failure.

getCountNoSecurity

int getCountNoSecurity(Filter filter,
                       java.lang.String association)
                       throws ServiceException,
                              java.rmi.RemoteException
Perform a search operation against the metadata repository which will return a count of the matching objects, rather than the objects themselves. The search is done with security off. In this way, an application can determine if objects exist even if they can't read those objects.

Parameters:
filter - A Filter specifying the selection criteria as well as any template that's desired for the operation. If the search should be constrained to a single repository, the repository should be set on the filter using the setOMRRepository method. If no repository is set on the Filter, all repositories in the server will be searched.
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.
Returns:
The count of matching objects.
Throws:
ServiceException - In the event of a server error.
java.rmi.RemoteException - In the event of remote object failure.

getAuthorizationsOnObj

java.util.List getAuthorizationsOnObj(java.lang.String resource,
                                      java.util.List identities,
                                      java.util.List permissions,
                                      int flags)
                                      throws ServiceException,
                                             java.rmi.RemoteException
Get the authorizations on an object for the given identities and permissions.

Parameters:
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.
Returns:
A List of Authorization objects with the resulting authorization data.
Throws:
ServiceException - if a service level error occurs.
java.rmi.RemoteException - in the event of remote object failure.

setAuthorizationsOnObj

void setAuthorizationsOnObj(java.lang.String resource,
                            java.util.List authorizations,
                            int flags)
                            throws ServiceException,
                                   java.rmi.RemoteException
Set authorizations on a metadata object.

Parameters:
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.
Throws:
ServiceException - If a service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.

getAuthorizationsForObjects

java.util.List<AuthorizationObjectsResult> getAuthorizationsForObjects(java.util.List<MetadataInterface> resources,
                                                                       java.util.List<java.lang.String> permissions)
                                                                       throws ServiceException,
                                                                              java.rmi.RemoteException
Get authorization information for a list of metadata objects. Accepts a List of MetadataInterface objects and a List of permission strings. Returns a List of AuthorizationObjectsResult objects that include the MetadataInterface as the resource, and a List of permission strings which are the granted permissions from the list that was passed in.

Parameters:
resources - A List of MetadataInterface objects to check authorizations for.
permissions - A List of permission strings to check the metadata objects for.
Returns:
A List of AuthorizationObjectsResult objects that give the MetadataInterface object and a list of granted permissions from the input list.
Throws:
ServiceException - If a service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.

getIdentitiesOnObj

java.util.List getIdentitiesOnObj(java.lang.String resource,
                                  int flags)
                                  throws ServiceException,
                                         java.rmi.RemoteException
Get a List of identities associated with an object through authorizations.

Parameters:
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.
Returns:
A List of identities as Strings in the form of type/name.

examples:
Person/Gary Williams IdentityGroup/PUBLIC

Throws:
ServiceException - If a service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.

getACTsOnObj

java.util.List getACTsOnObj(java.lang.String resource)
                            throws ServiceException,
                                   java.rmi.RemoteException
Get the AccessControlTemplates that are associated to an object.

Parameters:
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).
Returns:
A List of ACTEntry objects describing the ACT's associated to the object.
Throws:
ServiceException - If a service level error occurs.
java.rmi.RemoteException - In the event of a remote object failure.

applyACTToObj

void applyACTToObj(java.lang.String resource,
                   java.lang.String act)
                   throws ServiceException,
                          java.rmi.RemoteException
Apply an AccessControlTemplate to a metadata object.

Parameters:
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.
Throws:
ServiceException - If a service level error occurs.
java.rmi.RemoteException - In the event of a remote object failure.

removeACTFromObj

void removeACTFromObj(java.lang.String resource,
                      java.lang.String act)
                      throws ServiceException,
                             java.rmi.RemoteException
Remove an AccessControlTemplate from a metadata object.

Parameters:
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.
Throws:
ServiceException - If a service level error occurs.
java.rmi.RemoteException - In the event of a remote object failure.

getAccessControlTemplateList

java.util.List getAccessControlTemplateList(RepositoryInterface repository,
                                            int flags)
                                            throws ServiceException,
                                                   java.rmi.RemoteException
Get the list of AccessControlTemplates for this repository.

Parameters:
repository - The repository to retrieve the Access Control Templates for.
flags - zero or ISecurityAdmin.SECAD_REPOSITORY_DEPENDENCY_USES to get AccessControlTemplates for repositories up the dependency chain from this one.
Returns:
A List of ACTEntry objects with the information about the ACTs in this repository.
Throws:
ServiceException - If a service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.

createAccessControTemplate

void createAccessControTemplate(RepositoryInterface repository,
                                ACTEntry act)
                                throws ServiceException,
                                       java.rmi.RemoteException
Create a new AccessControlTemplate in this repository.

Parameters:
repository - The repository to create tne new Access Control Template in.
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).
Throws:
ServiceException - If a service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.

destroyAccessControlTemplate

void destroyAccessControlTemplate(java.lang.String act)
                                  throws ServiceException,
                                         java.rmi.RemoteException
Destroy an AccessControlTemplate in the repository.

Parameters:
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).
Throws:
ServiceException - If a service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.

setAccessControlTemplateAttribs

void setAccessControlTemplateAttribs(RepositoryInterface repository,
                                     ACTEntry act)
                                     throws ServiceException,
                                            java.rmi.RemoteException
Set attributes on an AccessControlTemplate. I'm assuming that ACT names and descriptions don't really change that much, so I guess the main use for this method is to make an existing ACT the repository default;

Parameters:
repository - The repository containing the ACT to update.
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.
Throws:
ServiceException - If a service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.

getAccessControlTemplateAttribs

ACTEntry getAccessControlTemplateAttribs(java.lang.String act)
                                         throws ServiceException,
                                                java.rmi.RemoteException
Get attributes for an AccessControlTemplate.

Parameters:
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).
Returns:
An ACTEntry with the information about the ACT.
Throws:
ServiceException - If a service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.

setInternalPassword

void setInternalPassword(java.lang.String username,
                         java.lang.String password)
                         throws ServiceException,
                                java.rmi.RemoteException
Set a user's internal password. This is only usable by an administrative user.

Parameters:
username - The name of the user to set an internal password for. This is the Name attribute on a Person object.
password - The password to set for internal authentication.
Throws:
ServiceException - If a server error occurs.
java.rmi.RemoteException - In the event of remote object failure.

deleteInternalPassword

void deleteInternalPassword(java.lang.String username)
                            throws ServiceException,
                                   java.rmi.RemoteException
Delete a user's internal password. This is only usable by an administrative user.

Parameters:
username - The name of the user whose internal password should be deleted.
Throws:
ServiceException - If a server error occurs.
java.rmi.RemoteException - In the event of remote object failure.

getInternalLoginSitePolicies

InternalLoginSitePolicies getInternalLoginSitePolicies()
                                                       throws ServiceException,
                                                              java.rmi.RemoteException
Get the site policies that control the internal authentication provider. These policies cannot be set programmatically, they have to be set in the server configuration files. This method can only be used by an administrative user.

Returns:
An InternalLoginSitePolicies object containing the policy information.
Throws:
ServiceException - If a server error occurs.
java.rmi.RemoteException - In the event of remote object failure.

getInternalLoginUserInfo

InternalLoginUserInfo getInternalLoginUserInfo(java.lang.String username)
                                               throws ServiceException,
                                                      java.rmi.RemoteException
Get the information regarding a user's internal login. Only an administrative user can successfully call this method.

Parameters:
username - The user to retrieve internal login parameters for.
Returns:
An InternalLoginUserInfo object with the user's internal login information.
Throws:
ServiceException - If a server error occurs.
java.rmi.RemoteException - In the event of remote object failure.

setInternalLoginUserOptions

void setInternalLoginUserOptions(java.lang.String username,
                                 boolean isDisabled,
                                 boolean bypassStrength,
                                 boolean bypassHistory,
                                 boolean useStdPasswordExpirationDays,
                                 int passwordExpirationDays,
                                 boolean bypassLockout,
                                 boolean bypassInactivitySuspension,
                                 boolean expireAccount,
                                 java.util.Date accountExpirationDate)
                                 throws ServiceException,
                                        java.rmi.RemoteException
Set the options on a user's internal login. This call can only be successfully completed by an administrative user.

Parameters:
username - The user whose internal login data is to be updated.
isDisabled - A flag indicating if the internal login is disabled.
bypassStrength - Bypass the site password strength requirements.
bypassHistory - Bypass the site password history checks.
useStdPasswordExpirationDays - Use the site password expiration setting.
passwordExpirationDays - Override setting in days for password expiration.
bypassLockout - Bypass the site policy for account lockout.
bypassInactivitySuspension - Bypass the site policy for inactivity suspension.
expireAccount - Set the flag indicating whether this account ever expires.
accountExpirationDate - Set the date that this account expires.
Throws:
ServiceException - If a server error occurs.
java.rmi.RemoteException - In the event of remote object failure.

getCreateDate

java.util.Date getCreateDate(MetadataInterface mi)
                             throws ServiceException,
                                    java.rmi.RemoteException
Get the Created date of a metadata object as a Date rather than a String.

Parameters:
mi - The metadata object to get the create date for.
Returns:
A Java Date for the creation date/time of the object.
Throws:
ServiceException - If a repository error occurs.
java.rmi.RemoteException - In the event of remote object failure.

getModifiedDate

java.util.Date getModifiedDate(MetadataInterface mi)
                               throws ServiceException,
                                      java.rmi.RemoteException
Get the modified date of a metadata object as a Date rather than a String.

Parameters:
mi - The metadata object to get the modified date for.
Returns:
A Java Date for the modified date/time of the object.
Throws:
ServiceException - If a repository error occurs.
java.rmi.RemoteException - In the event of remote object failure.

deleteEntity

void deleteEntity(com.sas.metadata.remote.CMetadata metadata)
                  throws ServiceException,
                         java.rmi.RemoteException
Allow a CMetadata object to be passed in to be deleted.

Parameters:
metadata - The CMetadata object to be deleted.
Throws:
ServiceException - in the event of back end repository failure.
java.rmi.RemoteException - in the event of remote object failure.

deleteEntities

void deleteEntities(java.util.List metadataObjects)
                    throws ServiceException,
                           java.rmi.RemoteException
Delete a collection of CMetadata objects. The entire list is passed to the jOMA classes for processing at one time. This prevents multiple calls to the server when deleting several objects at once.

Parameters:
metadataObjects - a List of CMetadata objects to be deleted.
Throws:
ServiceException - in the event of back end repository failure.
java.rmi.RemoteException - in the event of remote object failure.

createMetadata

com.sas.metadata.remote.Root createMetadata(java.lang.String repositoryId,
                                            java.lang.String name,
                                            java.lang.String type)
                                            throws java.rmi.RemoteException,
                                                   ServiceException
Create a new metadata object. This is specific to the OMIRepository because it deals with CMetadat objects. I have to surface this method because I don't provide access to the MdFactory, which is used to create new objects.

Parameters:
repositoryId - The FQID of the repository where the object is to be created.
name - A String for the name of the new object.
type - The Type for the new object. Should be a field from MetadataObjects.
Returns:
A new CMetadata object which can be cast to the correct type.
Throws:
java.rmi.RemoteException - In the event of remote object failure.
ServiceException - If a repository error occurs.

getTypeDictionaryMap

java.util.Map getTypeDictionaryMap()
                                   throws ServiceException,
                                          java.rmi.RemoteException
Get the Map of TypeDescriptors. The key is the PublicType String and the values are com.sas.services.information.publicObject.TypeDescriptorInterface objects.

Returns:
The Type Dictionary Map.
Throws:
ServiceException - If a service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.

getInternalDomain

java.lang.String getInternalDomain()
                                   throws ServiceException,
                                          java.rmi.RemoteException
Return the string that represents the internal authentication domain. This is normall "saspw".

Returns:
The internal authentication domain string.
Throws:
ServiceException - In the event of a service error.
java.rmi.RemoteException - In the event of remote object failure.

getIdentityInfo

IdentityInfo getIdentityInfo()
                             throws ServiceException,
                                    java.rmi.RemoteException
Return an IdentityInfo object containing information about the currently connected user. This calls through to the ISecurity method GetInfo.

Returns:
An IdentityInfo object with the current user's information.
Throws:
ServiceException - If a metadata server error occurs.
java.rmi.RemoteException - In the event of remote object failure.

***  This interface provides Binary Compatibility only, not Source Compatibility  ***




Copyright © 2009 SAS Institute Inc. All Rights Reserved.