|
| Foundation |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
public interface ServerInterface
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_SERVER_NAME
|
static int |
SERVER_VERSION_913_SP3
The version of a 9.1.3sp3 server |
static int |
SERVER_VERSION_913_SP4
The version of a 9.1.3sp4 server |
static int |
SERVER_VERSION_920
The version of a 9.2 server |
static int |
SERVER_VERSION_930
The version of a 9.3 server |
static int |
SERVER_VERSION_UNKNOWN
Value for an unknown version of a server |
| Method Summary | |
|---|---|
abstract void |
addToCache(MetadataInterface newMetadata)
Explicitly add a new metadata object to the cache. |
abstract BrowseMetadataInterface |
browseFetch(java.lang.String objectURI,
FilterInterface filter)
Fetch a lightweight object matching the object URI provided. |
abstract BrowseMetadataInterface |
browseFolder(java.lang.String folderISEntityKey,
FilterInterface filter)
Get information about a specific folder. |
abstract BrowseMetadataInterface |
browseFolderRecursive(java.lang.String folderISEntityKey,
FilterInterface filter)
Search a folder tree recursively using the filter. |
abstract java.util.List |
browseSearch(BrowseMetadataInterface browseFolder,
FilterInterface filter)
Search for objects in the server tree using the folder as a base. |
abstract 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. |
abstract java.util.List |
browseSearch(FolderInterface folder,
FilterInterface filter)
Search for objects in the server tree using the folder as a base. |
abstract java.util.List |
browseSearch(java.util.List folderList,
FilterInterface filter)
Search for objects in the server tree using the list of folders as bases. |
abstract void |
clearPendingChanges(boolean rollback)
Clear the changes that are pending for this server. |
abstract void |
connect(com.sas.meta.SASOMI.IOMI cnxn,
ServerDef def,
UserContextInterface user)
Construct an OMIServer with the connection already established. |
abstract void |
connect(com.sas.meta.SASOMI.IOMI cnxn,
ServerDef def,
UserContextInterface user,
Cluster cluster)
Construct an OMIServer with the connection already established. |
abstract void |
connect(ServerDef def,
UserContextInterface user)
Connect a user to an InformationService server. |
abstract void |
connect(ServerDef def,
UserContextInterface user,
Cluster cluster)
Connect a user to an InformationService server. |
abstract 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)
|
abstract void |
debug(java.lang.String context,
java.lang.String message)
|
abstract void |
debug(java.lang.String context,
java.lang.String message,
java.lang.Throwable t)
|
abstract void |
deleteEntity(MetadataInterface input)
Delete an entity in the repository. |
abstract void |
destroy()
Close the connections and release all resources in use by this server instance. |
abstract void |
error(java.lang.String context,
java.util.ResourceBundle rb,
java.lang.String key,
java.lang.Object arg0,
java.lang.Object arg1)
|
abstract void |
error(java.lang.String context,
java.lang.String message)
|
abstract java.lang.String |
executeRequest(java.lang.String request)
Execute a client request and return the result. |
abstract MetadataInterface |
factoryProcess(java.lang.Object o)
Process a raw repository object into a smart object. |
abstract MetadataInterface |
fetch(java.lang.String objectURI)
Fetch an object from the metadat based on its URI. |
abstract MetadataInterface |
fetch(java.lang.String repositoryKey,
boolean bypassCache)
Fetch an object from the repository given the repository key. |
abstract void |
flush()
flush any pending updates to the metadata server. |
abstract void |
fromByteArray(UserContextInterface uci,
byte[] data)
Initialize an instance of the server from a byte array. |
abstract UserIdentityInterface |
generatePassword(java.lang.String user)
Generate a one-time use password against the metadata server connection for the specified user. |
abstract java.lang.String |
getDomain()
Get the authentication domain used to connect to the server. |
abstract IdentityGroupInterface |
getExplicitIdentityGroup(java.lang.String IdGrpName)
Get the IdentityGroupInterface for an explicit IdentityGroup |
abstract RepositoryInterface |
getFoundationRepository()
Get a handle to the foundation repository for this server. |
abstract FolderInterface |
getHomeFolder(java.lang.String userName,
UserFolderType folder,
Filter filter)
Get a user's home folder. |
abstract FolderInterface |
getHomeFolder(java.lang.String userName,
UserFolderType folder,
Filter filter,
boolean createIfNecessary)
Get a user's home folder. |
abstract java.lang.String |
getHost()
Get the host name of the server. |
abstract IdentityInterface |
getIdentity()
Get the IdentityInterface representing the connected user. |
abstract java.lang.String |
getName()
Get the server's configured definition name. |
abstract MetadataInterface |
getObjectByPath(PathUrl url)
Get an object in the BIP tree using a PathUrl to find it. |
abstract 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. |
abstract PersonInterface |
getPerson()
Get the PersonInterface representing the connected user. |
abstract int |
getPort()
Get the server's TCP port number. |
abstract java.lang.String |
getProtocol()
Get the protocol string for this server. |
abstract java.util.List |
getRepositories(boolean getAll)
Get a List of the requested repositories from this Server. |
abstract java.util.List |
getRepositories(java.util.List repositoryNames)
Get a List of named repositories. |
abstract RepositoryInterface |
getRepository(java.lang.String name)
Get a named repository managed by this server. |
abstract java.util.List |
getRepositoryInfo()
Get information about the repositories that are maintained by this server instance. |
abstract java.lang.String |
getRepositoryName(java.lang.String fqid)
Get a repository name given the FQID of the repository. |
abstract java.util.List |
getRepositoryNames()
Get a list of the repository names managed by this server. |
abstract RootFolderInterface |
getRootFolder()
Get the server's root folder. |
abstract int |
getServerVersion()
Get the version number of the server. |
abstract TypeDescriptorInterface |
getTypeDescriptor(java.lang.String typeName)
Get the type descriptor for a known type name. |
abstract java.util.Collection<TypeDescriptorInterface> |
getTypeDescriptors()
Returns an unmodifiable collection of all known type descriptors. |
abstract UserContextInterface |
getUserContext()
Get the UserContext that this server was created on behalf of. |
abstract 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)
|
abstract void |
info(java.lang.String context,
java.lang.String message)
|
abstract void |
info(java.lang.String context,
java.lang.String message,
java.lang.Throwable t)
|
abstract boolean |
isAuthorized(java.lang.String credential,
java.lang.String resource,
java.lang.String permission)
Check authorization status for a given credential, resource, and permission. |
abstract boolean |
isConnected()
Returns whether or not the server instance has a valid connection already established. |
abstract boolean |
isUserAuthorized(java.lang.String repositoryId,
java.lang.String permission)
Check if the user has the specified permission in the repository. |
abstract void |
loadTypes()
|
abstract void |
loadTypes(boolean force)
|
abstract ChildServerInterface |
newChild()
Create a child repository instance with its own cache, which can be used to perform a group of updates transaction-style. |
abstract 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. |
abstract MetadataInterface |
newMetadata(java.lang.String reposId,
java.lang.String name,
java.lang.String type)
Create a new metadata item. |
abstract void |
reconnect()
Reconnect to the server if the connection was broken for any reason. |
abstract void |
refreshAllData()
Refresh all of the data cached from this server. |
abstract void |
refreshEntity(MetadataInterface mi)
Refresh an entity from the data in the server. |
abstract java.util.List |
search(FilterInterface filter)
Search the repository using the provided filter. |
abstract java.util.List |
search(FolderInterface folder,
FilterInterface filter)
Search the server tree from a given folder base using the provided filter. |
abstract java.util.List |
search(java.util.List folderList,
FilterInterface filter)
Search the server from a collection of base folders. |
abstract byte[] |
toByteArray(boolean copyData)
Output the state of the server to a byte array. |
abstract void |
warn(java.lang.String context,
java.util.ResourceBundle rb,
java.lang.String key,
java.lang.Object arg0,
java.lang.Object arg1)
|
abstract void |
warn(java.lang.String context,
java.lang.String message)
|
abstract void |
warn(java.lang.String context,
java.lang.String message,
java.lang.Throwable t)
|
| Field Detail |
|---|
static final java.lang.String DEFAULT_SERVER_NAME
static final int SERVER_VERSION_UNKNOWN
static final int SERVER_VERSION_913_SP3
static final int SERVER_VERSION_913_SP4
static final int SERVER_VERSION_920
static final int SERVER_VERSION_930
| Method Detail |
|---|
void reconnect()
throws ServiceException,
java.rmi.RemoteException
ServiceException - If the connection attempt fails for any reason.
java.rmi.RemoteException - In the event of remote object failure.
void connect(ServerDef def,
UserContextInterface user)
throws ServiceException,
java.rmi.RemoteException
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.
void connect(ServerDef def,
UserContextInterface user,
Cluster cluster)
throws ServiceException,
java.rmi.RemoteException
def - The repository definition with the connection parameters.user - The user for whom the connection is being established.cluster - the cluster definition to use for the connection
ServiceException - If a service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.
void connect(com.sas.meta.SASOMI.IOMI cnxn,
ServerDef def,
UserContextInterface user)
throws ServiceException,
java.rmi.RemoteException
cnxn - The IOMI connection to the server.def - The server definition. This is still needed
for 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.
void connect(com.sas.meta.SASOMI.IOMI cnxn,
ServerDef def,
UserContextInterface user,
Cluster cluster)
throws ServiceException,
java.rmi.RemoteException
cnxn - The IOMI connection to the server.def - The server definition. This is still needed
for the name, and the host and port are useful in the event of a reconnect try.user - The user this instance belongs to.cluster - the cluster definition to use for the connection
ServiceException - If a service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.
java.lang.String getName()
throws java.rmi.RemoteException
java.rmi.RemoteException - In the event of remote object failure.
java.util.List getRepositoryInfo()
throws java.rmi.RemoteException
RepositoryInfo objects with information about the
repositories.
java.rmi.RemoteException - In the event of remote object failure.
java.util.List getRepositoryNames()
throws ServiceException,
java.rmi.RemoteException
ServiceException - If a server error occurs.
java.rmi.RemoteException - In the event of remote object failure.
RepositoryInterface getRepository(java.lang.String name)
throws ServiceException,
java.rmi.RemoteException
name - The name of the repository to return.
ServiceException - If a server error occured.
java.rmi.RemoteException - In the event of remote object failure.
java.util.List getRepositories(boolean getAll)
throws ServiceException,
java.rmi.RemoteException
getRepository(String) method,
unless the getAll parameter is true; then all of the repositories
managed by the server are returned.
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.
java.util.List getRepositories(java.util.List repositoryNames)
throws ServiceException,
java.rmi.RemoteException
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.
FolderInterface getHomeFolder(java.lang.String userName,
UserFolderType folder,
Filter filter)
throws ServiceException,
java.rmi.RemoteException
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.folder - 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.
FolderInterface getHomeFolder(java.lang.String userName,
UserFolderType folder,
Filter filter,
boolean createIfNecessary)
throws ServiceException,
java.rmi.RemoteException
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.folder - 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.
java.lang.String getProtocol()
throws ServiceException,
java.rmi.RemoteException
ServiceException - If a server error occurs.
java.rmi.RemoteException - In the event of remote Object failure.
java.lang.String getHost()
throws ServiceException,
java.rmi.RemoteException
ServiceException - If a service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.
int getPort()
throws ServiceException,
java.rmi.RemoteException
ServiceException - If a service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.
java.lang.String getDomain()
throws ServiceException,
java.rmi.RemoteException
ServiceException - If a service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.
void destroy()
throws ServiceException,
java.rmi.RemoteException
ServiceException - If a service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.
boolean isConnected()
throws ServiceException,
java.rmi.RemoteException
ServiceException - If a service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.
java.lang.String getRepositoryName(java.lang.String fqid)
throws java.rmi.RemoteException
fqid - The fully qualified Id of the desired repository.
java.rmi.RemoteException - In the event of remote object failure.
PersonInterface getPerson()
throws ServiceException,
java.rmi.RemoteException
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.
IdentityInterface getIdentity()
throws ServiceException,
java.rmi.RemoteException
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.
UserContextInterface getUserContext()
throws ServiceException,
java.rmi.RemoteException
ServiceException - If a service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.
RepositoryInterface getFoundationRepository()
throws ServiceException,
java.rmi.RemoteException
ServiceException - If a server error occurs.
java.rmi.RemoteException - In the event of remote object failure.
UserIdentityInterface generatePassword(java.lang.String user)
throws ServiceException,
java.rmi.RemoteException
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.
RootFolderInterface getRootFolder()
throws ServiceException,
java.rmi.RemoteException
ServiceException - If a server error occurs.
java.rmi.RemoteException - In the event of remote object failure.
java.lang.String executeRequest(java.lang.String request)
throws ServiceException,
java.rmi.RemoteException
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.
int getServerVersion()
throws ServiceException,
java.rmi.RemoteException
For an OMR server, valid return values include:
SERVER_VERSION_930SERVER_VERSION_920SERVER_VERSION_913_SP4SERVER_VERSION_913_SP3SERVER_VERSION_UNKNOWN
ServiceException - If a server error occurs.
java.rmi.RemoteException - In the event of remote object failure.
MetadataInterface factoryProcess(java.lang.Object o)
throws ServiceException,
java.rmi.RemoteException
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.
TypeDescriptorInterface getTypeDescriptor(java.lang.String typeName)
throws ServiceException,
java.rmi.RemoteException
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.
java.util.Collection<TypeDescriptorInterface> getTypeDescriptors()
throws ServiceException,
java.rmi.RemoteException
ServiceException - If a factory error or repository error occurs.
java.rmi.RemoteException - In the event of remote object failure.
IdentityGroupInterface getExplicitIdentityGroup(java.lang.String IdGrpName)
throws ServiceException,
java.rmi.RemoteException
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.
boolean isAuthorized(java.lang.String credential,
java.lang.String resource,
java.lang.String permission)
throws ServiceException,
java.rmi.RemoteException
credential - A credential handle. If this is null, the current
authenticated user is checked for permission.resource - A resource string of the form OMSOBJ:type/FQID which represents
the object whose permissions are being checked.permission - A permission or comma-separated list of permissions to check
against the user's authorized permissions for the resource.
ServiceException - in the event of repository errors.
java.rmi.RemoteException - in the event of remote object failure.
MetadataInterface fetch(java.lang.String objectURI)
throws ServiceException,
java.rmi.RemoteException
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.
java.util.List search(FolderInterface folder,
FilterInterface filter)
throws ServiceException,
java.rmi.RemoteException
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.
java.util.List search(java.util.List folderList,
FilterInterface filter)
throws ServiceException,
java.rmi.RemoteException
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.
BrowseMetadataInterface browseFolder(java.lang.String folderISEntityKey,
FilterInterface filter)
throws ServiceException,
java.rmi.RemoteException
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.
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.
BrowseMetadataInterface browseFolderRecursive(java.lang.String folderISEntityKey,
FilterInterface filter)
throws ServiceException,
java.rmi.RemoteException
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.
BrowseMetadataInterface browseFetch(java.lang.String objectURI,
FilterInterface filter)
throws ServiceException,
java.rmi.RemoteException
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.
java.util.List browseSearch(FilterInterface filter)
throws ServiceException,
java.rmi.RemoteException
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.
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.
java.util.List browseSearch(BrowseMetadataInterface browseFolder,
FilterInterface filter)
throws ServiceException,
java.rmi.RemoteException
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.
java.util.List browseSearch(FolderInterface folder,
FilterInterface filter)
throws ServiceException,
java.rmi.RemoteException
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.
java.util.List browseSearch(java.util.List folderList,
FilterInterface filter)
throws ServiceException,
java.rmi.RemoteException
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.
MetadataInterface getObjectByPath(PathUrl url)
throws ServiceException,
java.rmi.RemoteException
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.
MetadataInterface getObjectByPathFilter(PathUrl url)
throws ServiceException,
java.rmi.RemoteException
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.
MetadataInterface newMetadata(java.lang.String reposId,
java.lang.String name,
java.lang.String type)
throws ServiceException,
java.rmi.RemoteException
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.
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.
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.
java.util.List search(FilterInterface filter)
throws ServiceException,
java.rmi.RemoteException
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.
void deleteEntity(MetadataInterface input)
throws ServiceException,
java.rmi.RemoteException
input - The object to delete.
ServiceException - if a repository error occurs.
java.rmi.RemoteException - in the event of remote object failure.
void refreshEntity(MetadataInterface mi)
throws ServiceException,
java.rmi.RemoteException
mi - The Metadata object to refresh.
java.rmi.RemoteException - in the event of network errors.
ServiceException - if a repository error occurs.
ChildServerInterface newChild()
throws ServiceException,
java.rmi.RemoteException
ServiceException - if a repository error occurs.
java.rmi.RemoteException - in the event of remote object failure.
ChildServerInterface newChild(boolean detached)
throws ServiceException,
java.rmi.RemoteException
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.
void refreshAllData()
throws ServiceException,
java.rmi.RemoteException
ServiceException - If a server error occurs during refresh.
java.rmi.RemoteException - In the event of remote object failure.
void addToCache(MetadataInterface newMetadata)
throws ServiceException,
java.rmi.RemoteException
newMetadata - The new metadata object to add.
ServiceException - If an error occurs adding the object.
java.rmi.RemoteException - In the event of remote object failure.
void flush()
throws ServiceException,
java.rmi.RemoteException
ServiceException - If an error occurs during the update.
java.rmi.RemoteException - In the event of remote object failure.
void clearPendingChanges(boolean rollback)
throws ServiceException,
java.rmi.RemoteException
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.
boolean isUserAuthorized(java.lang.String repositoryId,
java.lang.String permission)
throws ServiceException,
java.rmi.RemoteException
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.
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
java.rmi.RemoteException
void debug(java.lang.String context,
java.lang.String message)
throws java.rmi.RemoteException
java.rmi.RemoteException
void debug(java.lang.String context,
java.lang.String message,
java.lang.Throwable t)
throws java.rmi.RemoteException
java.rmi.RemoteException
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
java.rmi.RemoteException
void info(java.lang.String context,
java.lang.String message)
throws java.rmi.RemoteException
java.rmi.RemoteException
void info(java.lang.String context,
java.lang.String message,
java.lang.Throwable t)
throws java.rmi.RemoteException
java.rmi.RemoteException
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
java.rmi.RemoteException
void warn(java.lang.String context,
java.lang.String message)
throws java.rmi.RemoteException
java.rmi.RemoteException
void warn(java.lang.String context,
java.lang.String message,
java.lang.Throwable t)
throws java.rmi.RemoteException
java.rmi.RemoteException
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
java.rmi.RemoteException
void error(java.lang.String context,
java.lang.String message)
throws java.rmi.RemoteException
java.rmi.RemoteException
byte[] toByteArray(boolean copyData)
throws ServiceException,
java.rmi.RemoteException
copyData - If true, the contents of the data cache is output to the byte stream.
ServiceException - If a service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.
void fromByteArray(UserContextInterface uci,
byte[] data)
throws java.rmi.RemoteException,
ServiceException
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.
void loadTypes()
throws ServiceException,
java.rmi.RemoteException
ServiceException
java.rmi.RemoteException
void loadTypes(boolean force)
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 | |||||||||||||