|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface InformationServiceInterface
The InformationService handles finding repositories, connecting a user context to suitable repositories for the identities it contains, and trans-repository searching.
Field Summary | |
---|---|
static int |
OPTION_CACHE_TYPE_DEFINITIONS
The setOption option parameter for setting whether type definitions should be cached. |
static int |
OPTION_FOLDER_ITEM_REFRESH_MSEC
the setOption option parameter for setting the folder item refresh interval in milliseconds. |
static int |
OPTION_FOLDER_SUBFOLDER_REFRESH_MSEC
The setOption option parameter for setting the Folder subfolder refresh interval in milliseconds. |
static int |
OPTION_METADATA_TREE_REFRESH_MSEC
The setOption option parameter for setting the tree refresh interval for the Metadata class in milliseconds. |
Fields inherited from interface com.sas.services.RemoteServiceInterface |
---|
CLASS_IDENTIFIER, CLASS_IDENTIFIER_1_1, CLASS_IDENTIFIER_1_2, CLASS_IDENTIFIER_SERVICE_TYPE, CLASS_IDENTIFIER_SERVICE_TYPE_1_1, CLASS_IDENTIFIER_SERVICE_TYPE_1_2 |
Method Summary | |
---|---|
void |
addExplicitIdentityGroupsMap(java.lang.String serverUrl,
java.util.Map ExplicitIdentityGroupsMap)
Cache a type map for a given server. |
void |
addInformationServiceTimerClient(com.sas.services.information.InformationServiceTimerClient client)
Add a client object to be triggered when the timer expires. |
void |
addMetadataChangeListener(MetadataChangeListener listener,
java.lang.String url)
Register a metadata change listener. |
boolean |
addRepositoryDef(RepositoryDef repositoryDef)
Adds a repository definition to the repository list. |
boolean |
addRepositoryGroup(RepositoryGroup group)
Add a new group to the collection of defined repository groups that can be used to scope a search. |
boolean |
addServerDef(ServerDef serverDef)
Add a new server definition to the Information Service configuration. |
void |
addTypeMap(java.lang.String serverUrl,
java.util.Map typeMap)
Cache a type map for a given server. |
java.util.List |
browseSearch(UserContextInterface user,
Filter filter)
Search the user's connected repositories. |
java.util.List |
browseSearchGroupName(UserContextInterface user,
java.lang.String groupName,
Filter filter)
Search the repository group for the user. |
java.util.List |
browseSearchGroupNameWithFilterArray(UserContextInterface user,
java.lang.String groupName,
Filter[] filters)
Search the repository group for the user. |
java.util.List |
browseSearchProtocols(UserContextInterface user,
java.util.List protocols,
Filter filter)
Search the user's connected repositories. |
java.util.List |
browseSearchProtocolsWithFilterArray(UserContextInterface user,
java.util.List protocols,
Filter[] filters)
Search the user's connected repositories. |
java.util.List |
browseSearchWithFilterArray(UserContextInterface user,
Filter[] filters)
Search the user's connected repositories. |
void |
clearRepositoryDefs()
Removes all repository definitions. |
void |
clearRepositoryGroups()
Clear all repository group definitions. |
void |
clearServerDefs()
Clear the set of defined server definitions. |
RepositoryInterface |
connect(UserContextInterface user,
RepositoryDef reposDef)
Connect to the repository specified in the repository definition. |
ServerInterface |
connect(UserContextInterface user,
ServerDef serverDef)
Connect to a ServerInterface object. |
void |
connectAuto(UserContextInterface user)
Connect to all repositories that have been predefined as auto-connect repositories. |
RepositoryInterface |
connectByName(UserContextInterface user,
java.lang.String name)
Connect to a preconfigured repository. |
MetadataInterface |
fetchEntityByKey(UserContextInterface user,
java.lang.String key)
Fetch an entity from a repository based on the entity key. |
MetadataInterface |
fetchEntityByKey(UserContextInterface user,
java.lang.String key,
boolean bypassCache)
Fetch an entity from a repository based on the entity key. |
MetadataInterface |
fetchEntityByUrl(UserContextInterface user,
java.lang.String url,
java.lang.String domain)
Fetch an entity from a repository based on the url. |
MetadataInterface |
fetchEntityByUrl(UserContextInterface user,
java.lang.String url,
java.lang.String domain,
boolean bypassCache)
Fetch an entity from a repository based on the url. |
java.util.List |
findServers(UserContextInterface user)
This method searches the connected metadata stores for server definitions that can participate in the Information Service as repositories. |
java.util.Map |
getExplicitIdentityGroupsMap(java.lang.String serverUrl)
Get an Explicit IdentityGroups map for a given server. |
java.util.HashMap |
getFactoryConfig()
Return the configuration information for the Factory. |
MetadataInterface |
getObjectByPath(UserContextInterface user,
PathUrl path)
Retrieve an object using the PathUrl. |
java.lang.Object |
getOption(int option)
Get an option value from the InformationService or its components. |
java.util.List |
getReposDefs()
Return a List of the preconfigured repository definitions. |
RepositoryGroup |
getRepositoryGroup(java.lang.String name)
Get the group with the given name. |
java.util.List |
getRepositoryGroups()
Return a List of the defined repository groups. |
java.lang.String |
getRepositoryUrl(java.lang.String name)
Get the URL for a repository definition by name. |
java.lang.String |
getReposKey(java.lang.String entityKey)
This is a utility method to take an entity key and return the repository key. |
java.util.List |
getServerDefs()
Returns a List of the configured server definitions. |
ServerInterface |
getServerForPath(UserContextInterface user,
PathUrl path)
Return the ServerInterface for the
path given. |
java.util.Map |
getSmartObjectDefinitions()
Get the Map of Smart object definitions from the configuration. |
MetadataInterface |
getTrackedObject(UserContextInterface user,
int trackingId)
Fetch an item based on its tracking ID number. |
java.util.Map |
getTypeMap(java.lang.String serverUrl)
Get a type definition map for a given server. |
boolean |
isAuthorized(UserContextInterface superUser,
IdentityInterface plainUser,
MetadataInterface objectToCheck,
java.lang.String permission)
Check the authorization for a metadata object. |
boolean |
isIsolated()
Get the flag that indicates if metadata isolation is active. |
void |
metadataChange(MetadataChangeEvent event)
Process a metadata change event. |
MetadataInterface |
newMetadata(java.lang.String reposId,
java.lang.String name,
RepositoryInterface repos,
java.lang.String type)
Create a new metadata entity. |
MetadataInterface |
newMetadata913(java.lang.String reposId,
java.lang.String name,
RepositoryInterface repos,
java.lang.String type)
Create a new metadata entity. |
MetadataInterface |
newMetadataByModel(MetadataInterface model,
java.lang.String name)
Create a new metadata entity. |
MetadataInterface |
newMetadataInFolder(FolderInterface folder,
RepositoryInterface repos,
java.lang.String type,
java.lang.String name)
Create a new Metadata entity. |
void |
removeInformationServiceTimerClient(com.sas.services.information.InformationServiceTimerClient client)
Remove a timer client from the service list. |
void |
removeMetadataChangeListener(MetadataChangeListener listener,
java.lang.String url)
Remove a metadata change listener. |
boolean |
removeRepositoryDef(RepositoryDef repositoryDef)
Removes a repository definition from the list of repositories. |
boolean |
removeRepositoryGroup(RepositoryGroup group)
Remove a group from the collection of defined repository groups that can be used to scope a search. |
boolean |
removeServerDef(ServerDef serverDef)
Remove a server definition from the Information Service configuration. |
java.util.List |
search(UserContextInterface user,
FilterInterface filter)
Search all the repositories that a user is connected to. |
java.util.List |
searchFilterArray(UserContextInterface user,
FilterInterface[] filters)
Perform a search in all the repositories the user is connected to using the provided Filters. |
java.util.List |
searchGroup(UserContextInterface user,
RepositoryGroup group,
FilterInterface filter)
Search the repository group that is provided. |
java.util.List |
searchGroupName(UserContextInterface user,
java.lang.String groupName,
FilterInterface filter)
Search the repository group with the given name. |
java.util.List |
searchGroupNameWithFilterArray(UserContextInterface user,
java.lang.String groupName,
FilterInterface[] filterArray)
Search the repository group that is provided. |
java.util.List |
searchGroupWithFilterArray(UserContextInterface user,
RepositoryGroup group,
FilterInterface[] filterArray)
Search the repository group that is provided. |
java.util.List |
searchProtocols(UserContextInterface user,
java.util.List protocols,
FilterInterface filter)
Perform a search in the repositories the user is connected to which match the domains in the provided Vector, using the provided Filter. |
java.util.List |
searchProtocolsWithFilterArray(UserContextInterface user,
java.util.List protocols,
FilterInterface[] filters)
Perform a search in the repositories the user is connected to which match the domains in the provided Vector, using the provided Filter. |
java.util.List |
searchTree(UserContextInterface user,
FilterInterface filter)
Search the repositories that the user is connected to, returning the results in a navigable folder structure. |
void |
setIsolated()
Set the service to isolate data retrieved from the metadata servers. |
void |
setOption(int option,
java.lang.Object o)
Set an option on the InformationService or its components. |
Methods inherited from interface com.sas.services.RemoteServiceInterface |
---|
configure, destroy, getCreationTime, getServiceConfiguration, getServiceConfiguration, getServiceProxy, getServiceState, isAccessibleToRemoteClients, isExported, reconfigure, setServiceState |
Methods inherited from interface com.sas.services.mgmt.ServiceNotificationBroadcasterInterface |
---|
addServiceObserver, notifyServiceObservers, removeAllServiceObservers, removeServiceObserver |
Field Detail |
---|
static final int OPTION_METADATA_TREE_REFRESH_MSEC
static final int OPTION_FOLDER_ITEM_REFRESH_MSEC
static final int OPTION_FOLDER_SUBFOLDER_REFRESH_MSEC
static final int OPTION_CACHE_TYPE_DEFINITIONS
Method Detail |
---|
void setOption(int option, java.lang.Object o) throws java.lang.IllegalArgumentException, ServiceException, java.rmi.RemoteException
option
- The code for the option you want to set.o
- The new value for the option. The type is dependent on the option. For
simple types (int, boolean, etc.), use the object equivalent (Integer, Boolean, etc).
java.lang.IllegalArgumentException
- Thrown if the argument type isn't correct for the
option specified.
ServiceException
- In the event that an error occurs while setting the option.
java.rmi.RemoteException
- In the event of remote object failure.java.lang.Object getOption(int option) throws java.lang.IllegalArgumentException, ServiceException, java.rmi.RemoteException
option
- The code for the option you want to get.
java.lang.IllegalArgumentException
- If the option specified isn't a valid option.
ServiceException
- In the event an error occurs while getting the option value.
java.rmi.RemoteException
- In the event of remote object failure.java.lang.String getRepositoryUrl(java.lang.String name) throws ServiceException, java.rmi.RemoteException
name
- The name of the repository to get the URL for.
ServiceException
- in the event of a service failure.
java.rmi.RemoteException
- in the event of network failure.java.util.List findServers(UserContextInterface user) throws ServiceException, java.rmi.RemoteException
user
- The user context for the user performing the search
ServiceException
- in the event of a service object failure.
java.rmi.RemoteException
- if a network anomaly is encountered.MetadataInterface getTrackedObject(UserContextInterface user, int trackingId) throws java.rmi.RemoteException
user
- The UserContext to find the object for.trackingId
- The tracking number of the object to return.
java.rmi.RemoteException
- in the event of remote object failure.MetadataInterface fetchEntityByKey(UserContextInterface user, java.lang.String key) throws java.rmi.RemoteException, ServiceException
user
- The UserContext to use to fetch the object.key
- The entity key to fetch.
ServiceException
- in the event of service object failure.
java.rmi.RemoteException
- in the event of remote object failure.MetadataInterface fetchEntityByKey(UserContextInterface user, java.lang.String key, boolean bypassCache) throws java.rmi.RemoteException, ServiceException
user
- The UserContext to use to fetch the object.key
- The entity key to fetch.bypassCache
- If true, the repository cache will be bypassed and a trip
to the server forced.
ServiceException
- in the event of service object failure.
java.rmi.RemoteException
- in the event of remote object failure.MetadataInterface fetchEntityByUrl(UserContextInterface user, java.lang.String url, java.lang.String domain) throws java.rmi.RemoteException, ServiceException
user
- The UserContext to use to fetch the object.url
- The url of the object to fetch.domain
- An optional domain to help establish a connection,
if one doesn't already exist to the server.
ServiceException
- in the event of service object failure.
java.rmi.RemoteException
- in the event of remote object failure.MetadataInterface fetchEntityByUrl(UserContextInterface user, java.lang.String url, java.lang.String domain, boolean bypassCache) throws java.rmi.RemoteException, ServiceException
user
- The UserContext to use to fetch the object.url
- The url of the object to fetch.domain
- An optional domain to help establish a connection,
if one doesn't already exist to the server.bypassCache
- If true, the repository cache will be bypassed and a trip
to the server forced.
ServiceException
- in the event of service object failure.
java.rmi.RemoteException
- in the event of remote object failure.MetadataInterface newMetadataInFolder(FolderInterface folder, RepositoryInterface repos, java.lang.String type, java.lang.String name) throws ServiceException, java.rmi.RemoteException
folder
- The parent folder of the new object.repos
- The repository in which the new object will reside.type
- The "smart object" type string of the object.name
- The name of the new object.
ServiceException
- if there's no configuration defined for the type
that was passed in, or if a repository error occurred.
java.rmi.RemoteException
- in the event of remote object failure.MetadataInterface newMetadata913(java.lang.String reposId, java.lang.String name, RepositoryInterface repos, java.lang.String type) throws java.rmi.RemoteException, ServiceException
reposId
- The repository ID of the new entity. Some repositories will require
this, others won't.name
- The name of the new metadata item.repos
- The handle to the repository to create the new metadata in.type
- The type of the metadata to create. This can be either a "smart object"
(com.sas.services.information.metadata.MetadataInterface) type, or a repository
specific type (a CMetadata subclass, or an LDAP class).
ServiceException
- If no definition for the type could be found, or some other
error occurred.
java.rmi.RemoteException
- In the event of a network problem.MetadataInterface newMetadata(java.lang.String reposId, java.lang.String name, RepositoryInterface repos, java.lang.String type) throws java.rmi.RemoteException, ServiceException
reposId
- The repository ID of the new entity. Some repositories will require
this, others won't.name
- The name of the new metadata object.repos
- The handle to the repository to create the new metadata in.type
- The type of the metadata to create. This can be either a "smart object"
(com.sas.services.information.metadata.MetadataInterface) type, or a repository
specific type (a CMetadata subclass, or an LDAP class).
ServiceException
- If no definition for the type could be found, or some other
error occurred.
java.rmi.RemoteException
- In the event of a network problem.MetadataInterface newMetadataByModel(MetadataInterface model, java.lang.String name) throws java.rmi.RemoteException, ServiceException
model
- A Metadata object to use as a model for creating the new
metadata. The new metadata will have the same type, be created in
the same repository and may have other characteristics taken from
the model.name
- The name of the new metadata item.
ServiceException
- If no definition for the type could be found, or some other
error occurred.
java.rmi.RemoteException
- In the event of a network problem.java.util.List searchFilterArray(UserContextInterface user, FilterInterface[] filters) throws ServiceException, java.rmi.RemoteException
user
- The user context to use to perform the search.filters
- The filters used to limit search results.
ServiceException
- in the event of repository error.
java.rmi.RemoteException
- in the event of remote object failure.java.util.List search(UserContextInterface user, FilterInterface filter) throws ServiceException, java.rmi.RemoteException
user
- The user context that contains the connect repositories
to use for the search.filter
- A filter to use to perform the search.
ServiceException
- in the event of repository error.
java.rmi.RemoteException
- if a network anomaly is encountered.java.util.List searchProtocols(UserContextInterface user, java.util.List protocols, FilterInterface filter) throws ServiceException, java.rmi.RemoteException
user
- The user context to use to perform the search.protocols
- A List containing the repository protocols
to perform the search in [omi, ldap, dav].filter
- The filter used to limit search results.
ServiceException
- in the event of repository failure.
java.rmi.RemoteException
- if a network anomaly is encountered.java.util.List searchProtocolsWithFilterArray(UserContextInterface user, java.util.List protocols, FilterInterface[] filters) throws ServiceException, java.rmi.RemoteException
user
- The user context to use to perform the search.protocols
- A List containing the repository protocols
to perform the search in [omi, ldap, dav].filters
- The filters used to limit search results.
ServiceException
- in the event of repository failure.
java.rmi.RemoteException
- if a network anomaly is encountered.java.util.List searchTree(UserContextInterface user, FilterInterface filter) throws ServiceException, java.rmi.RemoteException
user
- The user context to use for the search.filter
- The filter used to limit search results.
ServiceException
- in the event of repository failure.
java.rmi.RemoteException
- in the event of remote object failure.java.util.List searchGroupName(UserContextInterface user, java.lang.String groupName, FilterInterface filter) throws ServiceException, java.rmi.RemoteException
user
- The user performing the search.groupName
- The name of the repository group to search.filter
- The filter specifying the objects to return.
ServiceException
- if a service error occurs.
java.rmi.RemoteException
- in the event of remote object failure.java.util.List searchGroup(UserContextInterface user, RepositoryGroup group, FilterInterface filter) throws ServiceException, java.rmi.RemoteException
user
- The user performing the search.group
- The repository group specifying the repositories to search.filter
- The filter specifying the objects to return.
ServiceException
- if a service error occurs.
java.rmi.RemoteException
- in the event of remote object failure.java.util.List searchGroupWithFilterArray(UserContextInterface user, RepositoryGroup group, FilterInterface[] filterArray) throws ServiceException, java.rmi.RemoteException
user
- The user performing the search.group
- The repository group specifying the repositories to search.filterArray
- An array of filters specifying the objects to return.
ServiceException
- if a service error occurs.
java.rmi.RemoteException
- in the event of remote object failure.java.util.List searchGroupNameWithFilterArray(UserContextInterface user, java.lang.String groupName, FilterInterface[] filterArray) throws ServiceException, java.rmi.RemoteException
user
- The user performing the search.groupName
- The name of the repository group specifying the repositories to search.filterArray
- An array of filters specifying the objects to return.
ServiceException
- if a service error occurs.
java.rmi.RemoteException
- in the event of remote object failure.java.util.List browseSearch(UserContextInterface user, Filter 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, but no other associated objects. Not all repository types will honor a template, but SAS Metadata Server searches need one to get a useful set of data. Set the template on the Filter using the setOMRTemplate method.
user
- The UserContext to perform the search for.filter
- A Filter to limit the objects returned to those the client is
interested in.
ServiceException
- In the event of repository errors.
java.rmi.RemoteException
- In the event of remote object failure.java.util.List browseSearchWithFilterArray(UserContextInterface user, Filter[] filters) 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, but no other associated objects. Not all repository types will honor a template, but SAS Metadata Server searches need one to get a useful set of data. Set the template on the Filter using the setOMRTemplate method.
user
- The UserContext to perform the search for.filters
- A Filter array to limit the objects returned to those the client
is interested in.
ServiceException
- In the event of repository errors.
java.rmi.RemoteException
- In the event of remote object failure.java.util.List browseSearchProtocols(UserContextInterface user, java.util.List protocols, Filter 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, but no other associated objects. Not all repository types will honor a template, but SAS Metadata Server searches need one to get a useful set of data. Set the template on the Filter using the setOMRTemplate method.
user
- The UserContext to perform the search for.protocols
- a List of protocol Strings.filter
- A Filter to limit the objects returned to those the client is
interested in.
ServiceException
- In the event of repository errors.
java.rmi.RemoteException
- In the event of remote object failure.java.util.List browseSearchProtocolsWithFilterArray(UserContextInterface user, java.util.List protocols, Filter[] filters) 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, but no other associated objects. Not all repository types will honor a template, but SAS Metadata Server searches need one to get a useful set of data. Set the template on the Filter using the setOMRTemplate method.
user
- The UserContext to perform the search for.protocols
- Protocols.filters
- Filters to limit the objects returned to those the client is
interested in.
ServiceException
- In the event of repository errors.
java.rmi.RemoteException
- In the event of remote object failure.java.util.List browseSearchGroupName(UserContextInterface user, java.lang.String groupName, Filter 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, but no other associated objects. Not all repository types will honor a template, but SAS Metadata Server searches need one to get a useful set of data. Set the template on the Filter using the setOMRTemplate method.
user
- The UserContext to perform the search for.filter
- A Filter to limit the objects returned to those the client is
interested in.groupName
- The repository group to search.
ServiceException
- In the event of repository errors.
java.rmi.RemoteException
- In the event of remote object failure.java.util.List browseSearchGroupNameWithFilterArray(UserContextInterface user, java.lang.String groupName, Filter[] filters) 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, but no other associated objects. Not all repository types will honor a template, but SAS Metadata Server searches need one to get a useful set of data. Set the template on the Filter using the setOMRTemplate method.
user
- The UserContext to perform the search for.filters
- An array of Filters to limit the objects returned to those
the client is interested in.groupName
- The repository group to search.
ServiceException
- In the event of repository errors.
java.rmi.RemoteException
- In the event of remote object failure.void connectAuto(UserContextInterface user) throws ServiceException, java.rmi.RemoteException
UserService.newUser()
to connect the newly
created UserContext to the auto-connect repositories. It should be
unnecessary for other client code to call this method.
user
- The UserContext to connect to the repositories.
ServiceException
- in the event of a severe failure.
java.rmi.RemoteException
- in the event of network failureRepositoryInterface connectByName(UserContextInterface user, java.lang.String name) throws ServiceException, java.rmi.RemoteException
user
- The user context to use to connect to the repository.name
- The "nickname" of the repository to connect to.
ServiceException
- if the repository name isn't defined, or
a there's a problem making the connection.
java.rmi.RemoteException
- in the event of network error.RepositoryInterface connect(UserContextInterface user, RepositoryDef reposDef) throws ServiceException, java.rmi.RemoteException
user
- The user context to connect to the repository.reposDef
- The repository definition with the information needed to
connect to the service.
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of a network failure.ServerInterface connect(UserContextInterface user, ServerDef serverDef) throws ServiceException, java.rmi.RemoteException
user
- The user being connected. Any required credentials will be
retrieved from this UserContext, and the ServerInterface will
be added to its list of Servers.serverDef
- The ServerDefinition with the connection information to
connect to the server.
ServiceException
- If a communications or other server error occurs.
java.rmi.RemoteException
- In the event of remote object failure.java.util.HashMap getFactoryConfig() throws java.rmi.RemoteException
java.rmi.RemoteException
- in the event of remote object failure.boolean addRepositoryDef(RepositoryDef repositoryDef) throws java.rmi.RemoteException, ServiceException
repositoryDef
- An information service repository definition.
true
if the repository definition was successfully
added or false
if it wasn't.
java.rmi.RemoteException
- in the event of remote object failure.
ServiceException
- if unable to process the request to clear the
repository definitions.boolean removeRepositoryDef(RepositoryDef repositoryDef) throws java.rmi.RemoteException, ServiceException
repositoryDef
- A Repository definition to remove.
true
if the repository definition was successfully
removed or false
if it wasn't.
java.rmi.RemoteException
- in the event of remote object failure.
ServiceException
- if unable to process the request to clear the
repository definitions.void clearRepositoryDefs() throws java.rmi.RemoteException, ServiceException
java.rmi.RemoteException
- in the event of remote object failure.
ServiceException
- if unable to process the request to clear the
repository definitions.java.util.List getReposDefs() throws java.rmi.RemoteException
java.rmi.RemoteException
- in the event of remote object failure.boolean addServerDef(ServerDef serverDef) throws ServiceException, java.rmi.RemoteException
serverDef
- The new server definition to add.
true
if the server definition was successfully
added or false
if it wasn't.
ServiceException
- If an error occurs while adding the definition.
java.rmi.RemoteException
- In the event of remote object failure.boolean removeServerDef(ServerDef serverDef) throws ServiceException, java.rmi.RemoteException
serverDef
- The server definition to remove.
true
if the server definition was successfully
removed or false
if it wasn't.
ServiceException
- If an error occurs while removing the definition.
java.rmi.RemoteException
- In the event of remote object failure.void clearServerDefs() throws ServiceException, java.rmi.RemoteException
ServiceException
- If an error occurs while clearing the definitions.
java.rmi.RemoteException
- In the event of remote object failure.java.util.List getServerDefs() throws java.rmi.RemoteException
java.rmi.RemoteException
- In the event of remote object failure.java.util.List getRepositoryGroups() throws ServiceException, java.rmi.RemoteException
ServiceException
- in the event of service failure.
java.rmi.RemoteException
- in the event of remote object failure.RepositoryGroup getRepositoryGroup(java.lang.String name) throws ServiceException, java.rmi.RemoteException
name
- The name of the repository group to return.
ServiceException
- in the event of a service error.
java.rmi.RemoteException
- in the event of remote object failure.boolean addRepositoryGroup(RepositoryGroup group) throws ServiceException, java.rmi.RemoteException
group
- The new group to add to the definitions.
ServiceException
- If a service error occurs.
java.rmi.RemoteException
- in the event of remote object failure.boolean removeRepositoryGroup(RepositoryGroup group) throws ServiceException, java.rmi.RemoteException
group
- The group to remove from the definitions.
ServiceException
- if a service error occurs.
java.rmi.RemoteException
- in the event of remote object failure.void clearRepositoryGroups() throws ServiceException, java.rmi.RemoteException
ServiceException
- if a service error occurs.
java.rmi.RemoteException
- in the event of remote object failure.void addMetadataChangeListener(MetadataChangeListener listener, java.lang.String url) throws ServiceException, java.rmi.RemoteException
listener
- A MetadataChangeListener to add to the list.url
- A URL that represents the server to receive notifications for.
java.lang.IllegalArgumentException
- if the url is invalid.
ServiceException
- if a service level error occurs.
java.rmi.RemoteException
- in the event of remote object failure.void removeMetadataChangeListener(MetadataChangeListener listener, java.lang.String url) throws java.rmi.RemoteException
listener
- The listener to remove.url
- The url for the server the listener is listening for.
java.lang.IllegalArgumentException
- if the url is invalid.
java.rmi.RemoteException
- in the event of remote object failure.void metadataChange(MetadataChangeEvent event) throws java.rmi.RemoteException
event
- the MetadataChangeEvent that describes what changed.
java.rmi.RemoteException
- in the event of remote object failure.boolean isAuthorized(UserContextInterface superUser, IdentityInterface plainUser, MetadataInterface objectToCheck, java.lang.String permission) throws ServiceException, java.rmi.RemoteException
superUser
- The user whose connection to the repository we're to use.plainUser
- The user whose access we're checking.objectToCheck
- The object we want to check permissions on.permission
- The permission string we're checking for.
ServiceException
- in the event of a repository error.
java.rmi.RemoteException
- in the event of remote object failure.java.lang.String getReposKey(java.lang.String entityKey) throws ServiceException, java.rmi.RemoteException
entityKey
- A String with the entity key.
ServiceException
- if a parse error occurs processing the entity key.
java.rmi.RemoteException
- in the event of remote object failure.void addInformationServiceTimerClient(com.sas.services.information.InformationServiceTimerClient client) throws ServiceException, java.rmi.RemoteException
client
- A client object to trigger when the timer expires.
ServiceException
- In the event of Service object errors.
java.rmi.RemoteException
- in the event of remote object failure.void removeInformationServiceTimerClient(com.sas.services.information.InformationServiceTimerClient client) throws ServiceException, java.rmi.RemoteException
client
- The client to remove from the timer list.
ServiceException
- If a services error occurs.
java.rmi.RemoteException
- In the event of remote object failure.void setIsolated() throws java.rmi.RemoteException
java.rmi.RemoteException
- in the event of remote object failure.boolean isIsolated() throws java.rmi.RemoteException
java.rmi.RemoteException
java.util.Map getSmartObjectDefinitions() throws java.rmi.RemoteException
SmartDef
objects.
java.rmi.RemoteException
- In the event of remote object failure.MetadataInterface getObjectByPath(UserContextInterface user, PathUrl path) throws ServiceException, java.rmi.RemoteException
user
- The UserContextInterface for the user to retrieve the
object for.path
- The PathUrl That points to the object to be retrieved.
ServiceException
- In the event of a repository error, an invalid
PathUrl, or a service level error.
java.rmi.RemoteException
- In the event of remote object failure.void addTypeMap(java.lang.String serverUrl, java.util.Map typeMap) throws java.rmi.RemoteException
serverURL
- The server identifier for the type map being added.typeMap
- A Map of TypeDefinitions for the server.
java.rmi.RemoteException
- In the event of remote object failure.java.util.Map getTypeMap(java.lang.String serverUrl) throws java.rmi.RemoteException
serverUrl
- The server identifier to retrieve the type map for.
java.rmi.RemoteException
- in the event of remote object failure.void addExplicitIdentityGroupsMap(java.lang.String serverUrl, java.util.Map ExplicitIdentityGroupsMap) throws java.rmi.RemoteException
serverURL
- The server identifier for the type map being added.typeMap
- A Map of Explicit IdentityGroups (i.e. SASUSERS & PUBLIC) for the server.
java.rmi.RemoteException
- In the event of remote object failure.java.util.Map getExplicitIdentityGroupsMap(java.lang.String serverUrl) throws java.rmi.RemoteException
serverUrl
- The server identifier to retrieve the IdentityGroups for.
java.rmi.RemoteException
- in the event of remote object failure.ServerInterface getServerForPath(UserContextInterface user, PathUrl path) throws ServiceException, java.rmi.RemoteException
ServerInterface
for the
path given. If the path has the server name, it's easy. Just get it from
the UserContext. Otherwise, go through the user's connected servers and
ask each RepositoryInterface for its ISName and compare them to the one
in the Pathurl. Needless to say, it's much better if the PathUrl has
the server name in it.
user
- The UserContext containing the ServerInterface(s).path
- The PathUrl that the client wants the server for.
ServiceException
- If the path is ambiguous. That is, the
path contains a repository name that's in multiple servers, or
the server name isn't found.
java.rmi.RemoteException
- In the event of remote object failure.
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |