|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.services.information.OMIServer
public class OMIServer
This class is the OMI implementation of the ServerInterface. In order to be useful, the Information Service should be configured with a ServerDefinition that provides a name for a given host/port/domain, which can then be referenced by applications. Generally, this class will be created by the Information Service when a user authenticates.
Nested Class Summary | |
---|---|
protected class |
OMIServer.cVetoableChangeListener
This listener is used when you only want to update the local objects with changes, but do not want to override any local changes. |
class |
OMIServer.OMIKey
|
Field Summary | |
---|---|
protected com.sas.services.information.cache.RepositoryCache |
_cache
|
protected ConnectionFactoryAdminInterface |
_cnxnAdmin
|
protected ConnectionInterface |
_cnxnHandle
|
protected java.lang.Object |
_cnxnSync
|
protected java.util.Map |
_explicitIdGrpsMap
|
protected java.lang.String |
_foundationReposName
|
protected java.util.Map |
_id2NameMap
|
protected boolean |
_isDestroyed
|
protected org.apache.log4j.Logger |
_logger
|
protected com.sas.metadata.remote.MdFactory |
_mdfactory
|
protected com.sas.metadata.remote.MdObjectStore |
_mdstore
|
protected java.lang.String |
_name
|
protected IdentityInterface |
_person
|
protected java.util.Map |
_repositories
|
protected java.lang.String |
_subNum
|
protected java.util.Map |
_typeMap
|
protected java.lang.String |
_url
|
static java.lang.String |
BIP_COMPONENTNAME
The name of the SoftwareComponent object that used as the root of the tree structures used by SAS applications. |
static java.lang.String |
ROOT_CLASSIDENTIFIER
The ClassIdentifier attribute value for the SoftwareComponent that's the root of the tree structures used by SAS applications. |
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 |
Constructor Summary | |
---|---|
|
OMIServer()
|
protected |
OMIServer(java.lang.Class theClass)
|
Method Summary | |
---|---|
void |
addToCache(MetadataInterface newMetadata)
Explicitly add a new metadata object to the cache. |
void |
applyACTToObj(java.lang.String resource,
java.lang.String act)
Apply an AccessControlTemplate to a metadata object. |
protected boolean |
attemptConnection(ServerDef def,
UserContextInterface user)
|
BrowseMetadataInterface |
browseFetch(java.lang.String objectURI,
FilterInterface filter)
Fetch a lightweight object matching the object URI provided. |
BrowseMetadataInterface |
browseFolder(java.lang.String folderISEntityKey,
FilterInterface filter)
Get information about a specific folder. |
BrowseMetadataInterface |
browseFolderRecursive(java.lang.String folderISEntityKey,
FilterInterface filter)
Search a folder tree recursively using the filter. |
java.util.List |
browseSearch(BrowseMetadataInterface browseFolder,
FilterInterface filter)
Search for objects in the server tree using the folder as a base. |
java.util.List |
browseSearch(FilterInterface filter)
Search the repository, the objects that are returned are not cached, and are in a generic container that is not remotable, doesn't go to the server for data that wasn't originally retrieved, and not persistable. |
java.util.List |
browseSearch(FolderInterface folder,
FilterInterface filter)
Search for objects in the server tree using the folder as a base. |
java.util.List |
browseSearch(java.util.List folderList,
FilterInterface filter)
Search for objects in the server tree using the list of folders as bases. |
protected java.lang.String |
cachePath()
|
void |
clearPendingChanges(boolean rollback)
Clear the changes that are pending for this server. |
void |
connect(com.sas.meta.SASOMI.IOMI cnxn,
ServerDef def,
UserContextInterface user)
Construct an OMIServer with the connection already established. |
void |
connect(ServerDef def,
UserContextInterface user)
Connect a user to an InformationService server. |
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 |
debug(java.lang.String context,
java.util.ResourceBundle rb,
java.lang.String key,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2)
|
void |
debug(java.lang.String context,
java.lang.String message)
|
void |
debug(java.lang.String context,
java.lang.String message,
java.lang.Throwable t)
|
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 |
deleteEntity(MetadataInterface input)
Delete an entity in the repository. |
void |
deleteInternalPassword(java.lang.String username)
Delete a user's internal password. |
void |
destroy()
Close the connections and release all resources in use by this server instance. |
void |
destroyAccessControlTemplate(java.lang.String act)
Destroy an AccessControlTemplate in the repository. |
void |
error(java.lang.String context,
java.util.ResourceBundle rb,
java.lang.String key,
java.lang.Object arg0,
java.lang.Object arg1)
|
void |
error(java.lang.String context,
java.lang.String message)
|
java.lang.String |
executeRequest(java.lang.String request)
Execute a client request and return the result. |
MetadataInterface |
factoryProcess(java.lang.Object o)
Process a raw repository object into a smart object. |
MetadataInterface |
fetch(java.lang.String objectURI)
Fetch an object from the metadat based on its URI. |
MetadataInterface |
fetch(java.lang.String repositoryKey,
boolean bypassCache)
Fetch an object from the repository given the repository key. |
void |
flush()
flush any pending updates to the metadata server. |
void |
flushAllCachedObjects()
|
void |
freeCredentials(java.lang.String credential)
Free a credential handle. |
void |
fromByteArray(UserContextInterface uci,
byte[] data)
Initialize an instance of the server from a byte array. |
UserIdentityInterface |
generatePassword(java.lang.String user)
Generate a one-time use password against the metadata server connection for the specified user. |
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<com.sas.services.security.ApplicationAuthorization> |
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.lang.String |
getDomain()
Get the authentication domain used to connect to the server. |
java.util.Map |
getEnterprisePolicies()
Get a Map with the server-managed enterprise policies. |
IdentityGroupInterface |
getExplicitIdentityGroup(java.lang.String idGrpName)
Get the IdentityGroupInterface for an explicit IdentityGroup |
RepositoryInterface |
getFoundationRepository()
Get a handle to the foundation repository for this server. |
FolderInterface |
getHomeFolder(java.lang.String userName,
UserFolderType type,
Filter filter)
Get a user's home folder. |
FolderInterface |
getHomeFolder(java.lang.String userName,
UserFolderType type,
Filter filter,
boolean createIfNecessary)
Get a user's home folder. |
java.lang.String |
getHost()
Get the host name of the server. |
java.util.List |
getIdentitiesOnObj(java.lang.String resource,
int flags)
Get a List of identities associated with an object through authorizations. |
IdentityInterface |
getIdentity()
Get the IdentityInterface representing the connected user. |
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. |
com.sas.metadata.remote.MdFactory |
getMdFactory()
|
java.util.Date |
getModifiedDate(MetadataInterface mi)
Get the modified date of a metadata object as a Date rather than a String. |
java.lang.String |
getName()
Get the server's configured definition name. |
MetadataInterface |
getObjectByPath(PathUrl url)
Get an object in the BIP tree using a PathUrl to find it. |
MetadataInterface |
getObjectByPathFilter(PathUrl url)
Get an object in the BIP tree using a PathUrl to create a filter to search for it, rather than walking the folder hierarchy. |
com.sas.metadata.remote.MdObjectStore |
getObjectStore()
|
PersonInterface |
getPerson()
Get the PersonInterface representing the connected user. |
int |
getPort()
Get the server's TCP port number. |
java.lang.String |
getProtocol()
Get the protocol string for this server. |
java.util.List |
getRepositories(boolean getAll)
Get a List of the requested repositories from this Server. |
java.util.List |
getRepositories(java.util.List repositoryNames)
Get a List of named repositories. |
RepositoryInterface |
getRepository(java.lang.String name)
Get a named repository managed by this server. |
java.lang.String |
getRepositoryId(java.lang.String name)
|
java.util.List |
getRepositoryInfo()
Get information about the repositories that are maintained by this server instance. |
RepositoryInfo |
getRepositoryInfoById(java.lang.String fqid)
|
java.lang.String |
getRepositoryName(java.lang.String fqid)
Get a repository name given the FQID of the repository. |
java.util.List |
getRepositoryNames()
Get a list of the repository names managed by this server. |
RootFolderInterface |
getRootFolder()
Get the server's root folder. |
int |
getServerVersion()
Get the version number of the server. |
protected java.lang.String |
getSubNum()
|
TypeDescriptorInterface |
getTypeDescriptor(java.lang.String typeName)
Get the type descriptor for a known type name. |
java.util.Map |
getTypeDictionaryMap()
Get the Map of TypeDescriptors. |
java.lang.String |
getUrl()
|
UserContextInterface |
getUserContext()
Get the UserContext that this server was created on behalf of. |
void |
info(java.lang.String context,
java.util.ResourceBundle rb,
java.lang.String key,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2)
|
void |
info(java.lang.String context,
java.lang.String message)
|
void |
info(java.lang.String context,
java.lang.String message,
java.lang.Throwable t)
|
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 |
isUserAuthorized(java.lang.String repositoryId,
java.lang.String permission)
Check if the user has the specified permission in the repository. |
void |
loadExplicitIdentityGroups()
|
void |
loadRepositoryData()
|
void |
loadTypes()
|
void |
loadTypes(boolean force)
|
protected java.lang.String |
makeChainedMessage(java.lang.Throwable t)
|
protected OMIServer.OMIKey |
makeKey(java.lang.String repositoryKey)
|
void |
MdObjectModified(com.sas.metadata.remote.MdEvent e)
|
void |
MdObjectsAdded(com.sas.metadata.remote.MdEvent e,
java.util.List items)
|
void |
MdObjectsCreated(com.sas.metadata.remote.MdFactoryEvent e)
|
void |
MdObjectsDeleted(com.sas.metadata.remote.MdFactoryEvent e)
|
void |
MdObjectsModified(com.sas.metadata.remote.MdEvent e,
java.util.List items)
|
void |
MdObjectsModified(com.sas.metadata.remote.MdFactoryEvent e)
|
void |
MdObjectsRemoved(com.sas.metadata.remote.MdEvent e,
java.util.List items)
|
void |
MdStoreIDChange(com.sas.metadata.remote.MdEvent e,
java.util.List itemsOld,
java.util.List itemsNew)
|
ChildServerInterface |
newChild()
Create a child repository instance with its own cache, which can be used to perform a group of updates transaction-style. |
ChildServerInterface |
newChild(boolean detached)
Create a child repository instance with its own cache, which can be used to perform a group of updates transaction-style. |
MetadataInterface |
newMetadata(java.lang.String reposId,
java.lang.String name,
java.lang.String type)
Create a new metadata item. |
protected void |
pulseCheck()
|
void |
reconnect()
Reconnect to the server if the connection was broken for any reason. |
void |
refreshAllData()
Refresh all of the data cached from this server. |
void |
refreshEntity(MetadataInterface mi)
Refresh an entity from the data in the server. |
void |
removeACTFromObj(java.lang.String resource,
java.lang.String act)
Remove an AccessControlTemplate from a metadata object. |
void |
RepositoryDeleted(java.lang.String name)
Client code notifying the Server that a repository was deleted. |
java.util.List |
search(FilterInterface filter)
Search the repository using the provided filter. |
java.util.List |
search(FolderInterface folder,
FilterInterface filter)
Search the server tree from a given folder base using the provided filter. |
java.util.List |
search(java.util.List folderList,
FilterInterface filter)
Search the server from a collection of base folders. |
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. |
byte[] |
toByteArray(boolean copyData)
Output the state of the server to a byte array. |
void |
warn(java.lang.String context,
java.util.ResourceBundle rb,
java.lang.String key,
java.lang.Object arg0,
java.lang.Object arg1)
|
void |
warn(java.lang.String context,
java.lang.String message)
|
void |
warn(java.lang.String context,
java.lang.String message,
java.lang.Throwable t)
|
Field Detail |
---|
public static final java.lang.String ROOT_CLASSIDENTIFIER
public static final java.lang.String BIP_COMPONENTNAME
protected java.util.Map _typeMap
protected java.util.Map _explicitIdGrpsMap
protected boolean _isDestroyed
protected java.util.Map _repositories
protected java.util.Map _id2NameMap
protected org.apache.log4j.Logger _logger
protected com.sas.metadata.remote.MdFactory _mdfactory
protected com.sas.metadata.remote.MdObjectStore _mdstore
protected com.sas.services.information.cache.RepositoryCache _cache
protected java.lang.String _url
protected java.lang.String _name
protected IdentityInterface _person
protected ConnectionInterface _cnxnHandle
protected ConnectionFactoryAdminInterface _cnxnAdmin
protected java.lang.Object _cnxnSync
protected java.lang.String _foundationReposName
protected java.lang.String _subNum
Constructor Detail |
---|
public OMIServer() throws java.rmi.RemoteException
java.rmi.RemoteException
protected OMIServer(java.lang.Class theClass) throws java.rmi.RemoteException
java.rmi.RemoteException
Method Detail |
---|
public void connect(com.sas.meta.SASOMI.IOMI cnxn, ServerDef def, UserContextInterface user) throws ServiceException, java.rmi.RemoteException
connect
in interface ServerInterface
cnxn
- The IOMI connection to the server.def
- The server definition. Seem stupid to have both? I still need
the name, and the host and port are useful in the event of a
reconnect try.user
- The user this instance belongs to.
ServiceException
- If a service level error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public void connect(ServerDef def, UserContextInterface user) throws ServiceException, java.rmi.RemoteException
ServerInterface
connect
in interface ServerInterface
def
- The repository definition with the connection parameters.user
- The user for whom the connection is being established.
ServiceException
- If a service level error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public void flushAllCachedObjects() throws java.rmi.RemoteException, ServiceException
java.rmi.RemoteException
ServiceException
public void loadRepositoryData()
public void destroy() throws ServiceException, java.rmi.RemoteException
ServerInterface
destroy
in interface ServerInterface
ServiceException
- If a service level error occurs.
java.rmi.RemoteException
- In the event of remote object failure.protected java.lang.String getSubNum() throws java.rmi.RemoteException
java.rmi.RemoteException
public com.sas.metadata.remote.MdFactory getMdFactory()
public com.sas.metadata.remote.MdObjectStore getObjectStore()
public java.lang.String getName() throws java.rmi.RemoteException
ServerInterface
getName
in interface ServerInterface
java.rmi.RemoteException
- In the event of remote object failure.public PersonInterface getPerson() throws ServiceException, java.rmi.RemoteException
ServerInterface
getPerson
in interface ServerInterface
PersonInterface
that represents the connected user in the metadata server. Null if
the user has no metadata presence (a "public" user). Also null if
a group login was used.
ServiceException
- If a repository error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public IdentityInterface getIdentity() throws ServiceException, java.rmi.RemoteException
ServerInterface
getIdentity
in interface ServerInterface
IdentityInterface
that represents the connected user in the metadata server. Null if
the user has no metadata presence (a "public" user).
ServiceException
- If a repository error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public java.util.List getRepositoryNames() throws ServiceException, java.rmi.RemoteException
ServerInterface
getRepositoryNames
in interface ServerInterface
ServiceException
- If a server error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public java.lang.String getRepositoryId(java.lang.String name) throws java.rmi.RemoteException
java.rmi.RemoteException
public java.lang.String getRepositoryName(java.lang.String fqid) throws java.rmi.RemoteException
ServerInterface
getRepositoryName
in interface ServerInterface
fqid
- The fully qualified Id of the desired repository.
java.rmi.RemoteException
- In the event of remote object failure.public java.lang.String getUrl() throws ServiceException, java.rmi.RemoteException
ServiceException
java.rmi.RemoteException
public UserContextInterface getUserContext() throws java.rmi.RemoteException
ServerInterface
getUserContext
in interface ServerInterface
java.rmi.RemoteException
- In the event of remote object failure.public java.util.List getRepositoryInfo() throws java.rmi.RemoteException
ServerInterface
getRepositoryInfo
in interface ServerInterface
RepositoryInfo
objects with information about the
repositories.
java.rmi.RemoteException
- In the event of remote object failure.public RepositoryInfo getRepositoryInfoById(java.lang.String fqid) throws java.rmi.RemoteException
java.rmi.RemoteException
public RepositoryInterface getRepository(java.lang.String name) throws ServiceException, java.rmi.RemoteException
ServerInterface
getRepository
in interface ServerInterface
name
- The name of the repository to return.
ServiceException
- If a server error occured.
java.rmi.RemoteException
- In the event of remote object failure.public java.util.List getRepositories(java.util.List repositoryNames) throws ServiceException, java.rmi.RemoteException
ServerInterface
getRepositories
in interface ServerInterface
repositoryNames
- A List of repository names to return.
ServiceException
- If a service level error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public java.util.List getRepositories(boolean getAll) throws ServiceException, java.rmi.RemoteException
ServerInterface
ServerInterface.getRepository(String)
method,
unless the getAll parameter is true; then all of the repositories
managed by the server are returned.
getRepositories
in interface ServerInterface
getAll
- If true, all of the repositories managed by the server
are returned. Otherwise, only the explicitly requested repositories
are returned.
ServiceException
- If a service level error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public void RepositoryDeleted(java.lang.String name) throws ServiceException, java.rmi.RemoteException
name
- The name of the repository that was deleted.
ServiceException
java.rmi.RemoteException
public FolderInterface getHomeFolder(java.lang.String userName, UserFolderType type, Filter filter) throws ServiceException, java.rmi.RemoteException
ServerInterface
getHomeFolder
in interface ServerInterface
userName
- If null, the home folder of the connected user is returned.
Otherwise, it will attempt to return the home folder of the
user whose user name is provided.type
- Which folder to return. If null, the user's "My Folder" is
returned. Valid options are UserFolderType.MYFOLDER
,
or UserFolderType.APPFOLDER
for the user's private,
or application data folders respectively.filter
- An optional filter that can be used to provide a template
and/or flags for the retrieval of folder data. Other than the
template and flags, the filter is not used.
ServiceException
- If a server error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public FolderInterface getHomeFolder(java.lang.String userName, UserFolderType type, Filter filter, boolean createIfNecessary) throws ServiceException, java.rmi.RemoteException
ServerInterface
getHomeFolder
in interface ServerInterface
userName
- If null, the home folder of the connected user is returned.
Otherwise, it will attempt to return the home folder of the
user whose user name is provided.type
- Which folder to return. If null, the user's "My Folder" is
returned. Valid options are UserFolderType.MYFOLDER
,
or UserFolderType.APPFOLDER
for the user's private,
or application data folders respectively.filter
- An optional filter that can be used to provide a template
and/or flags for the retrieval of folder data. Other than the
template and flags, the filter is not used.createIfNecessary
- If true, the requested folder will created if necessary and
returned. If false, the folder will only be returned if it
already exists.
ServiceException
- If a server error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public java.lang.String getProtocol() throws ServiceException, java.rmi.RemoteException
ServerInterface
getProtocol
in interface ServerInterface
ServiceException
- If a server error occurs.
java.rmi.RemoteException
- In the event of remote Object failure.public java.lang.String getHost() throws ServiceException, java.rmi.RemoteException
ServerInterface
getHost
in interface ServerInterface
ServiceException
- If a service level error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public int getPort() throws ServiceException, java.rmi.RemoteException
ServerInterface
getPort
in interface ServerInterface
ServiceException
- If a service level error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public java.lang.String getDomain() throws ServiceException, java.rmi.RemoteException
ServerInterface
getDomain
in interface ServerInterface
ServiceException
- If a service level error occurs.
java.rmi.RemoteException
- In the event of remote object failure.protected final void pulseCheck() throws ServiceException
ServiceException
public void reconnect() throws ServiceException, java.rmi.RemoteException
ServerInterface
reconnect
in interface ServerInterface
ServiceException
- If the connection attempt fails for any reason.
java.rmi.RemoteException
- In the event of remote object failure.protected boolean attemptConnection(ServerDef def, UserContextInterface user) throws ServiceException
ServiceException
protected java.lang.String cachePath() throws java.rmi.RemoteException
java.rmi.RemoteException
protected java.lang.String makeChainedMessage(java.lang.Throwable t)
public java.util.List getLoginsForAuthDomain(java.lang.String domain) throws ServiceException, java.rmi.RemoteException
MetadataServerInterface
getLoginsForAuthDomain
in interface MetadataServerInterface
domain
- The authentication domain to return the logins for.
UserIdentityInterface
objects accessible by the connected user in the requested domain.
ServiceException
- If a service-level error occurs.
java.rmi.RemoteException
- In teh event of remote object failure.public RepositoryInterface getFoundationRepository() throws ServiceException, java.rmi.RemoteException
ServerInterface
getFoundationRepository
in interface ServerInterface
ServiceException
- If a server error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public UserIdentityInterface generatePassword(java.lang.String user) throws ServiceException, java.rmi.RemoteException
ServerInterface
generatePassword
in interface ServerInterface
user
- The userid to generate a password for. This should be null or
empty to generate a password for the current user.
UserIdentityInterface
object with the generated
userid and password. The domain is hard-coded to "TRUST".
ServiceException
- If an error occurs during the password generation.
java.rmi.RemoteException
- In the event of remote object failure.public RootFolderInterface getRootFolder() throws ServiceException, java.rmi.RemoteException
ServerInterface
getRootFolder
in interface ServerInterface
ServiceException
- If a server error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public void loadTypes() throws ServiceException, java.rmi.RemoteException
loadTypes
in interface ServerInterface
ServiceException
java.rmi.RemoteException
public void loadTypes(boolean force) throws ServiceException, java.rmi.RemoteException
loadTypes
in interface ServerInterface
ServiceException
java.rmi.RemoteException
public void loadExplicitIdentityGroups() throws ServiceException, java.rmi.RemoteException
ServiceException
java.rmi.RemoteException
public java.lang.String executeRequest(java.lang.String request) throws ServiceException, java.rmi.RemoteException
ServerInterface
executeRequest
in interface ServerInterface
request
- A correctly formatted server request to send as-is to the
server.
ServiceException
- If a communications error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public java.util.List<com.sas.services.security.ApplicationAuthorization> getApplicationActionsAuthorizations(SoftwareComponentInterface app, RoleInterface role, boolean explicitRoleActions) throws ServiceException, java.rmi.RemoteException
MetadataServerInterface
getApplicationActionsAuthorizations
in interface MetadataServerInterface
app
- The SoftwareComponent that represents the application to check.role
- The Role for which ApplicationActions Authorizations will be returnedexplicitRoleActions
- Limit the returned ApplicationsActions to the indicated Role
only. ApplicationsActions from contributed Roles will not be returned.
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.
ServiceException
- If a server error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public java.util.List getApplicationActionsAuthorizations(SoftwareComponentInterface app) throws ServiceException, java.rmi.RemoteException
MetadataServerInterface
getApplicationActionsAuthorizations
in interface MetadataServerInterface
app
- The SoftwareComponent that represents the application to check.
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.
ServiceException
- If a server error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public int getServerVersion() throws ServiceException, java.rmi.RemoteException
ServerInterface
For an OMR server, valid return values include:
ServerInterface.SERVER_VERSION_930
ServerInterface.SERVER_VERSION_920
ServerInterface.SERVER_VERSION_913_SP4
ServerInterface.SERVER_VERSION_913_SP3
ServerInterface.SERVER_VERSION_UNKNOWN
getServerVersion
in interface ServerInterface
ServiceException
- If a server error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public MetadataInterface factoryProcess(java.lang.Object o) throws ServiceException, java.rmi.RemoteException
ServerInterface
factoryProcess
in interface ServerInterface
o
- The repository object that needs to be processed into a smart object.
ServiceException
- If a factory error or repository error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public TypeDescriptorInterface getTypeDescriptor(java.lang.String typeName) throws ServiceException, java.rmi.RemoteException
ServerInterface
getTypeDescriptor
in interface ServerInterface
typeName
- The non-localized type name for the type.
ServiceException
- If a factory error or repository error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public IdentityGroupInterface getExplicitIdentityGroup(java.lang.String idGrpName) throws ServiceException, java.rmi.RemoteException
ServerInterface
getExplicitIdentityGroup
in interface ServerInterface
idGrpName
- The non-localized name for the IdentityGroup.
ServiceException
- If a factory error or repository error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public java.lang.String getInternalDomain() throws ServiceException, java.rmi.RemoteException
MetadataServerInterface
getInternalDomain
in interface MetadataServerInterface
ServiceException
- In the event of a service error.
java.rmi.RemoteException
- In the event of remote object failure.public IdentityInfo getIdentityInfo() throws ServiceException, java.rmi.RemoteException
MetadataServerInterface
getIdentityInfo
in interface MetadataServerInterface
ServiceException
- If a metadata server error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public java.util.Map getEnterprisePolicies() throws ServiceException, java.rmi.RemoteException
MetadataServerInterface
getEnterprisePolicies
in interface MetadataServerInterface
ServiceException
- If a server error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public java.lang.String getCredentials(java.lang.String subject) throws ServiceException, java.rmi.RemoteException
MetadataServerInterface
getCredentials
in interface MetadataServerInterface
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.public void freeCredentials(java.lang.String credential) throws ServiceException, java.rmi.RemoteException
MetadataServerInterface
freeCredentials
in interface MetadataServerInterface
credential
- The credential to free.
ServiceException
- in the event of repository errors.
java.rmi.RemoteException
- in the event of remote object failure.public boolean isAuthorized(java.lang.String credential, java.lang.String resource, java.lang.String permission) throws ServiceException, java.rmi.RemoteException
ServerInterface
isAuthorized
in interface ServerInterface
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.public boolean isUserAuthorized(java.lang.String repositoryId, java.lang.String permission) throws ServiceException, java.rmi.RemoteException
ServerInterface
isUserAuthorized
in interface ServerInterface
repositoryId
- The repository id. This can be the 8.8 FQID,
the name, or the 8 character unique portion of the FQID (all repository
id's start with A0000001 anyway).permission
- The permission string. This will most usefully be
"WriteMetadata" or PermissionInterface.PERMISSION_WRITEMETADATA.
ServiceException
- If the permission is invalid, the repository
specification is invalid, or there is some other repository error.
java.rmi.RemoteException
- In the event of remote object failure.public java.util.List<AuthorizationObjectsResult> getAuthorizationsForObjects(java.util.List<MetadataInterface> resources, java.util.List<java.lang.String> permissions) throws ServiceException, java.rmi.RemoteException
MetadataServerInterface
getAuthorizationsForObjects
in interface MetadataServerInterface
resources
- A List of MetadataInterface objects to check authorizations for.permissions
- A List of permission strings to check the metadata objects
for.
ServiceException
- If a service level error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public java.util.List getAuthorizationsOnObj(java.lang.String resource, java.util.List identities, java.util.List permissions, int flags) throws ServiceException, java.rmi.RemoteException
getAuthorizationsOnObj
in interface MetadataServerInterface
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.public void setAuthorizationsOnObj(java.lang.String resource, java.util.List authorizations, int flags) throws ServiceException, java.rmi.RemoteException
setAuthorizationsOnObj
in interface MetadataServerInterface
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).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.public java.util.List getIdentitiesOnObj(java.lang.String resource, int flags) throws ServiceException, java.rmi.RemoteException
getIdentitiesOnObj
in interface MetadataServerInterface
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.public java.util.List getACTsOnObj(java.lang.String resource) throws ServiceException, java.rmi.RemoteException
getACTsOnObj
in interface MetadataServerInterface
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.public void applyACTToObj(java.lang.String resource, java.lang.String act) throws ServiceException, java.rmi.RemoteException
applyACTToObj
in interface MetadataServerInterface
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.public void removeACTFromObj(java.lang.String resource, java.lang.String act) throws ServiceException, java.rmi.RemoteException
removeACTFromObj
in interface MetadataServerInterface
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.public java.util.List getAccessControlTemplateList(RepositoryInterface repository, int flags) throws ServiceException, java.rmi.RemoteException
getAccessControlTemplateList
in interface MetadataServerInterface
repository
- The repository to retrieve the ACT's for.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.public void createAccessControTemplate(RepositoryInterface repository, ACTEntry act) throws ServiceException, java.rmi.RemoteException
createAccessControTemplate
in interface MetadataServerInterface
repository
- The repository which will contain the new ACTEntry.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.public void destroyAccessControlTemplate(java.lang.String act) throws ServiceException, java.rmi.RemoteException
destroyAccessControlTemplate
in interface MetadataServerInterface
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.public void setAccessControlTemplateAttribs(RepositoryInterface repository, ACTEntry act) throws ServiceException, java.rmi.RemoteException
setAccessControlTemplateAttribs
in interface MetadataServerInterface
repository
- The repository that contains the ACTEntry 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.
ServiceException
- If a service level error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public ACTEntry getAccessControlTemplateAttribs(java.lang.String act) throws ServiceException, java.rmi.RemoteException
getAccessControlTemplateAttribs
in interface MetadataServerInterface
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.public AuthResult isAuthorizedWithConditions(java.lang.String credential, java.lang.String resource, java.lang.String permission) throws ServiceException, java.rmi.RemoteException
MetadataServerInterface
isAuthorizedWithConditions
in interface MetadataServerInterface
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.public 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
MetadataServerInterface
getAuthorizations
in interface MetadataServerInterface
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.public int getCountNoSecurity(Filter filter, java.lang.String association) throws ServiceException, java.rmi.RemoteException
MetadataServerInterface
getCountNoSecurity
in interface MetadataServerInterface
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.
ServiceException
- In the event of a server error.
java.rmi.RemoteException
- In the event of remote object failure.public void setInternalPassword(java.lang.String username, java.lang.String password) throws ServiceException, java.rmi.RemoteException
MetadataServerInterface
setInternalPassword
in interface MetadataServerInterface
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.
ServiceException
- If a server error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public void deleteInternalPassword(java.lang.String username) throws ServiceException, java.rmi.RemoteException
MetadataServerInterface
deleteInternalPassword
in interface MetadataServerInterface
username
- The name of the user whose internal password should
be deleted.
ServiceException
- If a server error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public InternalLoginSitePolicies getInternalLoginSitePolicies() throws ServiceException, java.rmi.RemoteException
MetadataServerInterface
getInternalLoginSitePolicies
in interface MetadataServerInterface
ServiceException
- If a server error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public InternalLoginUserInfo getInternalLoginUserInfo(java.lang.String username) throws ServiceException, java.rmi.RemoteException
MetadataServerInterface
getInternalLoginUserInfo
in interface MetadataServerInterface
username
- The user to retrieve internal login parameters for.
ServiceException
- If a server error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public 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
MetadataServerInterface
setInternalLoginUserOptions
in interface MetadataServerInterface
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.
ServiceException
- If a server error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public BrowseMetadataInterface browseFolder(java.lang.String folderISEntityKey, FilterInterface filter) throws ServiceException, java.rmi.RemoteException
ServerInterface
If what you want is a complete set of information about a specific folder, you may want to consider using the browseFetch method instead of browseFolder, using an appropriate template.
browseFolder
in interface ServerInterface
folderISEntityKey
- The Information Service entity key of the
Folder to retrieve information for.filter
- A Filter
used
to limit the items returned.
BrowseMetadataInterface
object. The folder and any matching members will be returned.
ServiceException
- If a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.public BrowseMetadataInterface browseFolderRecursive(java.lang.String folderISEntityKey, FilterInterface filter) throws ServiceException, java.rmi.RemoteException
ServerInterface
browseFolderRecursive
in interface ServerInterface
folderISEntityKey
- The Entity key of the requested folder.filter
- A Filter
to limit the results.
BrowseMetadataInterface
object
representing the Folder being browsed.
ServiceException
- If a repository error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public BrowseMetadataInterface browseFetch(java.lang.String objectURI, FilterInterface filter) throws ServiceException, java.rmi.RemoteException
ServerInterface
browseFetch
in interface ServerInterface
objectURI
- The SASDS URI of the object to fetch.filter
- A filter to provide optional flags and template.
ServiceException
- If a repository error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public java.util.List browseSearch(FilterInterface filter) throws ServiceException, java.rmi.RemoteException
ServerInterface
It's generally a good idea when using this method to use a template. Otherwise, a basic template will be used that will get keywords, and responsible parties but no other associated objects.
browseSearch
in interface ServerInterface
filter
- A Filter
to limit the objects returned to those the client is
interested in. This needs to include the repository the user wants to search, or all
repositories will be searched. This can be expensive.
BrowseMetadataInterface
objects.
ServiceException
- In the event of repository errors.
java.rmi.RemoteException
- In the event of remote object failure.public java.util.List browseSearch(BrowseMetadataInterface browseFolder, FilterInterface filter) throws ServiceException, java.rmi.RemoteException
ServerInterface
browseSearch
in interface ServerInterface
browseFolder
- The BrowseMetadataInterface object representing a folder to
use as a base of the search.filter
- The filter criteria to use to find objects.
ServiceException
- If a repository error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public java.util.List browseSearch(FolderInterface folder, FilterInterface filter) throws ServiceException, java.rmi.RemoteException
ServerInterface
browseSearch
in interface ServerInterface
folder
- The FolderInterface object representing a folder to
use as a base of the search.filter
- The filter criteria to use to find objects.
ServiceException
- If a repository error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public java.util.List browseSearch(java.util.List folderList, FilterInterface filter) throws ServiceException, java.rmi.RemoteException
ServerInterface
browseSearch
in interface ServerInterface
folderList
- The List of FolderInterface object representing folders to
use as a base of the search.filter
- The filter criteria to use to find objects.
ServiceException
- If a repository error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public java.util.List search(FolderInterface folder, FilterInterface filter) throws ServiceException, java.rmi.RemoteException
ServerInterface
search
in interface ServerInterface
folder
- The folder which is the base of the search hierarchy.filter
- The filter criteria to use to search for objects.
ServiceException
- If a repository error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public java.util.List search(java.util.List folderList, FilterInterface filter) throws ServiceException, java.rmi.RemoteException
ServerInterface
search
in interface ServerInterface
folderList
- The List of FolderInterface objects to use as search bases.filter
- The filter criteria to use to search for objects.
ServiceException
- If a repository error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public void deleteEntity(MetadataInterface input) throws ServiceException, java.rmi.RemoteException
ServerInterface
deleteEntity
in interface ServerInterface
input
- The object to delete.
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.public void deleteEntity(com.sas.metadata.remote.CMetadata metadata) throws ServiceException, java.rmi.RemoteException
MetadataServerInterface
deleteEntity
in interface MetadataServerInterface
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.public void deleteEntities(java.util.List metadataObjects) throws ServiceException, java.rmi.RemoteException
MetadataServerInterface
deleteEntities
in interface MetadataServerInterface
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.public MetadataInterface getObjectByPathFilter(PathUrl url) throws ServiceException, java.rmi.RemoteException
ServerInterface
getObjectByPathFilter
in interface ServerInterface
url
- The PathUrl that designates the object to retrieve.
ServiceException
- In the event of service object failure.
java.rmi.RemoteException
- in the event of remote object failure.public MetadataInterface getObjectByPath(PathUrl url) throws ServiceException, java.rmi.RemoteException
ServerInterface
getObjectByPath
in interface ServerInterface
url
- The PathUrl that designates the object to retrieve.
ServiceException
- in the event of service object failure
java.rmi.RemoteException
- in the event of remote object failure.public java.util.Date getCreateDate(MetadataInterface mi) throws ServiceException, java.rmi.RemoteException
MetadataServerInterface
getCreateDate
in interface MetadataServerInterface
mi
- The metadata object to get the create date for.
ServiceException
- If a repository error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public java.util.Date getModifiedDate(MetadataInterface mi) throws ServiceException, java.rmi.RemoteException
MetadataServerInterface
getModifiedDate
in interface MetadataServerInterface
mi
- The metadata object to get the modified date for.
ServiceException
- If a repository error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public com.sas.metadata.remote.Root createMetadata(java.lang.String repositoryId, java.lang.String name, java.lang.String type) throws java.rmi.RemoteException, ServiceException
MetadataServerInterface
createMetadata
in interface MetadataServerInterface
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.
java.rmi.RemoteException
- In the event of remote object failure.
ServiceException
- If a repository error occurs.public MetadataInterface newMetadata(java.lang.String reposId, java.lang.String name, java.lang.String type) throws ServiceException, java.rmi.RemoteException
newMetadata
in interface ServerInterface
reposId
- The ID of the repository where the object is going. This can
be the 8.8 ID, the 8 byte ID, or the repository name.name
- The name of the new metadata object.type
- The repository-specific type of the new metadata.
ServiceException
- If a repository or service-level error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public MetadataInterface fetch(java.lang.String objectURI) throws ServiceException, java.rmi.RemoteException
ServerInterface
fetch
in interface ServerInterface
objectURI
- When the SASDS URI is supported, this will be that
String. Until then, this should be the entity key (obtained via the
MetadataInterface.getEntityKey method) or the repository key
(obtained via the MetadataInterface.getReposKey method);
ServiceException
- If no object matching the URI was found, or some other error occurred.
java.rmi.RemoteException
- In the event of remote object failure.public MetadataInterface fetch(java.lang.String repositoryKey, boolean bypassCache) throws ServiceException, java.rmi.RemoteException
bypassCache
flag is set then the cache will not be checked
before retrieving the object from the server. If the flag is not set,
then the behaviour is the same as the
fetch
method.
fetch
in interface ServerInterface
repositoryKey
- The identifier for the object from the repository. This should
be formatted as the repository ID followed by a slash, then
the repository specific type. This string can be obtained
using the Metadata.getReposKey method.bypassCache
- Boolean flag determines whether the cache should be checked
for the object before forcing a trip to the server or not.
java.rmi.RemoteException
- in the event of network errors.
ServiceException
- if a repository error occurs.public java.util.List search(FilterInterface filter) throws ServiceException, java.rmi.RemoteException
search
in interface ServerInterface
filter
- A filter to use to limit the returned data.
ServiceException
- If repository errors occur.
java.rmi.RemoteException
- in the event of remote object failure.public void refreshEntity(MetadataInterface mi) throws ServiceException, java.rmi.RemoteException
ServerInterface
refreshEntity
in interface ServerInterface
mi
- The Metadata object to refresh.
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of network errors.public java.util.Map getTypeDictionaryMap() throws ServiceException, java.rmi.RemoteException
MetadataServerInterface
com.sas.services.information.publicObject.TypeDescriptorInterface
objects.
getTypeDictionaryMap
in interface MetadataServerInterface
ServiceException
- If a service level error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public void addToCache(MetadataInterface newMetadata) throws ServiceException, java.rmi.RemoteException
ServerInterface
addToCache
in interface ServerInterface
newMetadata
- The new metadata object to add.
ServiceException
- If an error occurs adding the object.
java.rmi.RemoteException
- In the event of remote object failure.public ChildServerInterface newChild() throws ServiceException, java.rmi.RemoteException
ServerInterface
newChild
in interface ServerInterface
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.public ChildServerInterface newChild(boolean detached) throws ServiceException, java.rmi.RemoteException
ServerInterface
newChild
in interface ServerInterface
detached
- If true, a detached transaction is created that will not cause
objects to be added to the main store of the server.
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.public void flush() throws ServiceException, java.rmi.RemoteException
ServerInterface
flush
in interface ServerInterface
ServiceException
- If an error occurs during the update.
java.rmi.RemoteException
- In the event of remote object failure.public byte[] toByteArray(boolean copyData) throws java.rmi.RemoteException, ServiceException
ServerInterface
toByteArray
in interface ServerInterface
copyData
- If true, the contents of the data cache is output to the byte stream.
java.rmi.RemoteException
- In the event of remote object failure.
ServiceException
- If a service level error occurs.public void fromByteArray(UserContextInterface uci, byte[] data) throws java.rmi.RemoteException, ServiceException
ServerInterface
fromByteArray
in interface ServerInterface
uci
- The UserContextInterface containing any credentials or other information
to complete the initialization.data
- The byte array containing the data stream for initializing the object.
java.rmi.RemoteException
- In the event of remote object failure.
ServiceException
- If a service level error occurs.public void debug(java.lang.String context, java.util.ResourceBundle rb, java.lang.String key, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2) throws java.rmi.RemoteException
debug
in interface ServerInterface
java.rmi.RemoteException
public void debug(java.lang.String context, java.lang.String message) throws java.rmi.RemoteException
debug
in interface ServerInterface
java.rmi.RemoteException
public void debug(java.lang.String context, java.lang.String message, java.lang.Throwable t) throws java.rmi.RemoteException
debug
in interface ServerInterface
java.rmi.RemoteException
public void info(java.lang.String context, java.util.ResourceBundle rb, java.lang.String key, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2) throws java.rmi.RemoteException
info
in interface ServerInterface
java.rmi.RemoteException
public void info(java.lang.String context, java.lang.String message) throws java.rmi.RemoteException
info
in interface ServerInterface
java.rmi.RemoteException
public void info(java.lang.String context, java.lang.String message, java.lang.Throwable t) throws java.rmi.RemoteException
info
in interface ServerInterface
java.rmi.RemoteException
public void warn(java.lang.String context, java.util.ResourceBundle rb, java.lang.String key, java.lang.Object arg0, java.lang.Object arg1) throws java.rmi.RemoteException
warn
in interface ServerInterface
java.rmi.RemoteException
public void warn(java.lang.String context, java.lang.String message) throws java.rmi.RemoteException
warn
in interface ServerInterface
java.rmi.RemoteException
public void warn(java.lang.String context, java.lang.String message, java.lang.Throwable t) throws java.rmi.RemoteException
warn
in interface ServerInterface
java.rmi.RemoteException
public void error(java.lang.String context, java.util.ResourceBundle rb, java.lang.String key, java.lang.Object arg0, java.lang.Object arg1) throws java.rmi.RemoteException
error
in interface ServerInterface
java.rmi.RemoteException
public void error(java.lang.String context, java.lang.String message) throws java.rmi.RemoteException
error
in interface ServerInterface
java.rmi.RemoteException
public void MdStoreIDChange(com.sas.metadata.remote.MdEvent e, java.util.List itemsOld, java.util.List itemsNew) throws java.rmi.RemoteException
MdStoreIDChange
in interface com.sas.metadata.remote.MdStoreIDChangeListener
java.rmi.RemoteException
public void MdObjectsAdded(com.sas.metadata.remote.MdEvent e, java.util.List items) throws java.rmi.RemoteException
MdObjectsAdded
in interface com.sas.metadata.remote.MdStoreListener
java.rmi.RemoteException
public void MdObjectsRemoved(com.sas.metadata.remote.MdEvent e, java.util.List items) throws java.rmi.RemoteException
MdObjectsRemoved
in interface com.sas.metadata.remote.MdStoreListener
java.rmi.RemoteException
public void MdObjectsModified(com.sas.metadata.remote.MdEvent e, java.util.List items) throws java.rmi.RemoteException
MdObjectsModified
in interface com.sas.metadata.remote.MdStoreListener
java.rmi.RemoteException
public void refreshAllData() throws ServiceException, java.rmi.RemoteException
ServerInterface
refreshAllData
in interface ServerInterface
ServiceException
- If a server error occurs during refresh.
java.rmi.RemoteException
- In the event of remote object failure.public void clearPendingChanges(boolean rollback) throws ServiceException, java.rmi.RemoteException
ServerInterface
clearPendingChanges
in interface ServerInterface
rollback
- Roll back the changed objects to their persisted state.
ServiceException
- If a repository error occurs during the operation.
java.rmi.RemoteException
- In the event of remote object failure.public void MdObjectModified(com.sas.metadata.remote.MdEvent e) throws java.rmi.RemoteException
MdObjectModified
in interface com.sas.metadata.remote.MdObjectListener
java.rmi.RemoteException
public void MdObjectsCreated(com.sas.metadata.remote.MdFactoryEvent e) throws java.rmi.RemoteException
MdObjectsCreated
in interface com.sas.metadata.remote.MdFactoryListener
java.rmi.RemoteException
public void MdObjectsDeleted(com.sas.metadata.remote.MdFactoryEvent e) throws java.rmi.RemoteException
MdObjectsDeleted
in interface com.sas.metadata.remote.MdFactoryListener
java.rmi.RemoteException
public void MdObjectsModified(com.sas.metadata.remote.MdFactoryEvent e) throws java.rmi.RemoteException
MdObjectsModified
in interface com.sas.metadata.remote.MdFactoryListener
java.rmi.RemoteException
protected OMIServer.OMIKey makeKey(java.lang.String repositoryKey) throws ServiceException, java.rmi.RemoteException
ServiceException
java.rmi.RemoteException
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |