|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.services.information.InformationService
public class InformationService
The Information Service handles finding repositories, connecting a user context to suitable repositories for the identities it contains, and federated searching across repositories.
InformationServiceFactory
,
InformationServiceInitObject
Field Summary | |
---|---|
static LoggingServiceInterface |
logService
Deprecated. The logging service has been deprecated in favor of log4j. |
Fields inherited from interface com.sas.services.information.InformationServiceInterface |
---|
OPTION_CACHE_TYPE_DEFINITIONS, OPTION_FOLDER_ITEM_REFRESH_MSEC, OPTION_FOLDER_SUBFOLDER_REFRESH_MSEC, OPTION_METADATA_TREE_REFRESH_MSEC |
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 |
addFactory(java.lang.String protocol,
java.lang.String type,
java.lang.String action,
java.lang.String filter)
|
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. |
void |
configure(ServiceConfigurationInterface serviceConfiguration)
Configures service. |
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. |
void |
destroy()
Destroys the service. |
MetadataInterface |
fetchEntityByKey(UserContextInterface user,
java.lang.String key)
Fetch an object from the metadata stores by its entity key. |
MetadataInterface |
fetchEntityByKey(UserContextInterface user,
java.lang.String key,
boolean bypassCache)
Fetch an object from the metadata stores by its entity key. |
MetadataInterface |
fetchEntityByUrl(UserContextInterface user,
java.lang.String url,
java.lang.String domain)
Fetch an object from the metadata stores by its url. |
MetadataInterface |
fetchEntityByUrl(UserContextInterface user,
java.lang.String url,
java.lang.String domain,
boolean bypassCache)
Fetch an object from the metadata stores by its 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. |
static InformationServiceInterface |
getInstance(java.lang.Object initObject)
Get an instance of the InformationService. |
static InformationServiceInterface |
getInstance(java.lang.Object initObject,
DiscoveryServiceInterface discoveryService)
Get an instance of the InformationService. |
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. |
RemoteServiceInterface |
getServiceProxy()
Gets the service proxy. |
java.util.Map |
getSmartObjectDefinitions()
Get the Map of Smart object definitions from the configuration. |
MetadataInterface |
getTrackedObject(UserContextInterface user,
int trackingId)
Deprecated. Use of tracking ids is no longer supported. |
java.util.Map |
getTypeMap(java.lang.String serverUrl)
Get a type definition map for a given server. |
void |
initialize(com.sas.services.information.InformationServiceInitObject init)
This is really just for testing since it's difficult to create an InitializationObject outside the discovery service. |
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 |
logFormat(org.apache.log4j.Level level,
java.lang.String context,
java.util.ResourceBundle bundle,
java.lang.String key,
java.lang.Object arg0)
|
void |
logFormat(org.apache.log4j.Level level,
java.lang.String context,
java.util.ResourceBundle bundle,
java.lang.String key,
java.lang.Object arg0,
java.lang.Object arg1)
|
void |
logFormat(org.apache.log4j.Level level,
java.lang.String context,
java.util.ResourceBundle bundle,
java.lang.String key,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2)
|
void |
logFormat(org.apache.log4j.Level level,
java.lang.String context,
java.util.ResourceBundle bundle,
java.lang.String key,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3)
|
void |
logMessage(org.apache.log4j.Level level,
java.lang.String message)
|
void |
logMessage(org.apache.log4j.Level level,
java.lang.String message,
java.lang.Throwable t)
|
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 flag which isolates the data retrieved by the repositories. |
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 |
---|
getCreationTime, getServiceConfiguration, getServiceConfiguration, getServiceState, isAccessibleToRemoteClients, isExported, reconfigure, setServiceState |
Methods inherited from interface com.sas.services.mgmt.ServiceNotificationBroadcasterInterface |
---|
addServiceObserver, notifyServiceObservers, removeAllServiceObservers, removeServiceObserver |
Field Detail |
---|
public static LoggingServiceInterface logService
Method Detail |
---|
public static InformationServiceInterface getInstance(java.lang.Object initObject) throws ServiceException
initObject
- An object used to initialize the Information Service.
ServiceException
- If an error occurs during initialization.public static InformationServiceInterface getInstance(java.lang.Object initObject, DiscoveryServiceInterface discoveryService) throws ServiceException
initObject
- An object used to initialize the Information Service.discoveryService
- The DiscoveryServiceInterface under which this
instance is being deployed.
ServiceException
- If an error occurs during initialization.public void initialize(com.sas.services.information.InformationServiceInitObject init) throws ServiceException
init
- The initialization object
ServiceException
- if unable to read the default information factories.public final void addFactory(java.lang.String protocol, java.lang.String type, java.lang.String action, java.lang.String filter)
public void configure(ServiceConfigurationInterface serviceConfiguration) throws java.rmi.RemoteException, ServiceException
configure
in interface RemoteServiceInterface
configure
in class AbstractRemoteService
serviceConfiguration
- An object containing configuration data
necessary to initialize or re-configure a service. Note that the
service provider must verify that the object type is supported.
An InitializationException
should be thrown if
the initialization was not completed successfully to indicate that
the instance should not be used.
ServiceException
- if unable to configure the service.
java.rmi.RemoteException
- if a network anomaly is encountered.public void destroy() throws ServiceException, java.rmi.RemoteException
destroy
in interface RemoteServiceInterface
destroy
in class AbstractRemoteService
java.rmi.RemoteException
- if a network anomaly is encountered.
ServiceException
- if the service is unable to prepare itself
for destruction.public void setOption(int option, java.lang.Object o) throws java.lang.IllegalArgumentException, ServiceException, java.rmi.RemoteException
setOption
in interface InformationServiceInterface
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.public java.lang.Object getOption(int option) throws java.lang.IllegalArgumentException, ServiceException, java.rmi.RemoteException
getOption
in interface InformationServiceInterface
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.public java.util.HashMap getFactoryConfig() throws java.rmi.RemoteException
getFactoryConfig
in interface InformationServiceInterface
java.rmi.RemoteException
- in the event of remote object failure.public java.lang.String getRepositoryUrl(java.lang.String name) throws ServiceException, java.rmi.RemoteException
getRepositoryUrl
in interface InformationServiceInterface
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.public java.util.List findServers(UserContextInterface user) throws ServiceException, java.rmi.RemoteException
findServers
in interface InformationServiceInterface
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.public MetadataInterface getTrackedObject(UserContextInterface user, int trackingId) throws java.rmi.RemoteException
getTrackedObject
in interface InformationServiceInterface
user
- The UserContext that contains the repository.trackingId
- The trackingId of the object being requested.
java.rmi.RemoteException
- in the event of remote object failure.public MetadataInterface fetchEntityByKey(UserContextInterface user, java.lang.String key) throws java.rmi.RemoteException, ServiceException
fetchEntityByKey
in interface InformationServiceInterface
user
- The UserContext to use to perform the search.key
- The entity key of the object to retrieve.
ServiceException
- in the event of repository failure.
java.rmi.RemoteException
- in the event of remote object failure.public MetadataInterface fetchEntityByKey(UserContextInterface user, java.lang.String key, boolean bypassCache) throws java.rmi.RemoteException, ServiceException
fetchEntityByKey
in interface InformationServiceInterface
user
- The UserContext to use to perform the search.key
- The entity key of the object to retrieve.bypassCache
- if true, bypass the cache.
ServiceException
- in the event of repository failure.
java.rmi.RemoteException
- in the event of remote object failure.public MetadataInterface fetchEntityByUrl(UserContextInterface user, java.lang.String url, java.lang.String domain) throws java.rmi.RemoteException, ServiceException
fetchEntityByUrl
in interface InformationServiceInterface
user
- The UserContext to use to perform the search.url
- The url of the object to retrieve.domain
- An optional domain to help establish a connection,
if one doesn't already exist to the server.
ServiceException
- in the event of repository failure.
java.rmi.RemoteException
- in the event of remote object failure.public MetadataInterface fetchEntityByUrl(UserContextInterface user, java.lang.String url, java.lang.String domain, boolean bypassCache) throws java.rmi.RemoteException, ServiceException
fetchEntityByUrl
in interface InformationServiceInterface
user
- The UserContext to use to perform the search.url
- The url of the object to retrieve.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 repository failure.
java.rmi.RemoteException
- in the event of remote object failure.public MetadataInterface newMetadataInFolder(FolderInterface folder, RepositoryInterface repos, java.lang.String type, java.lang.String name) throws ServiceException, java.rmi.RemoteException
newMetadataInFolder
in interface InformationServiceInterface
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.public MetadataInterface newMetadata913(java.lang.String reposId, java.lang.String name, RepositoryInterface repos, java.lang.String type) throws java.rmi.RemoteException, ServiceException
newMetadata913
in interface InformationServiceInterface
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.public MetadataInterface newMetadata(java.lang.String reposId, java.lang.String name, RepositoryInterface repos, java.lang.String type) throws java.rmi.RemoteException, ServiceException
newMetadata
in interface InformationServiceInterface
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.public MetadataInterface newMetadataByModel(MetadataInterface model, java.lang.String name) throws java.rmi.RemoteException, ServiceException
newMetadataByModel
in interface InformationServiceInterface
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.public java.util.List searchFilterArray(UserContextInterface user, FilterInterface[] filters) throws ServiceException, java.rmi.RemoteException
searchFilterArray
in interface InformationServiceInterface
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.public java.util.List search(UserContextInterface user, FilterInterface filter) throws ServiceException, java.rmi.RemoteException
search
in interface InformationServiceInterface
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.public java.util.List searchProtocols(UserContextInterface user, java.util.List protocols, FilterInterface filter) throws ServiceException, java.rmi.RemoteException
searchProtocols
in interface InformationServiceInterface
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.public java.util.List searchProtocolsWithFilterArray(UserContextInterface user, java.util.List protocols, FilterInterface[] filters) throws ServiceException, java.rmi.RemoteException
searchProtocolsWithFilterArray
in interface InformationServiceInterface
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.public java.util.List searchTree(UserContextInterface user, FilterInterface filter) throws ServiceException, java.rmi.RemoteException
searchTree
in interface InformationServiceInterface
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.public java.util.List searchGroupName(UserContextInterface user, java.lang.String groupName, FilterInterface filter) throws ServiceException, java.rmi.RemoteException
searchGroupName
in interface InformationServiceInterface
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.public java.util.List searchGroup(UserContextInterface user, RepositoryGroup group, FilterInterface filter) throws ServiceException, java.rmi.RemoteException
searchGroup
in interface InformationServiceInterface
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.public java.util.List searchGroupWithFilterArray(UserContextInterface user, RepositoryGroup group, FilterInterface[] filterArray) throws ServiceException, java.rmi.RemoteException
InformationServiceInterface
searchGroupWithFilterArray
in interface InformationServiceInterface
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.public java.util.List searchGroupNameWithFilterArray(UserContextInterface user, java.lang.String groupName, FilterInterface[] filterArray) throws ServiceException, java.rmi.RemoteException
InformationServiceInterface
searchGroupNameWithFilterArray
in interface InformationServiceInterface
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.public java.util.List browseSearch(UserContextInterface user, Filter filter) throws ServiceException, java.rmi.RemoteException
InformationServiceInterface
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.
browseSearch
in interface InformationServiceInterface
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.public java.util.List browseSearchWithFilterArray(UserContextInterface user, Filter[] filters) throws ServiceException, java.rmi.RemoteException
InformationServiceInterface
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.
browseSearchWithFilterArray
in interface InformationServiceInterface
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.public java.util.List browseSearchProtocols(UserContextInterface user, java.util.List protocols, Filter filter) throws ServiceException, java.rmi.RemoteException
InformationServiceInterface
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.
browseSearchProtocols
in interface InformationServiceInterface
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.public java.util.List browseSearchProtocolsWithFilterArray(UserContextInterface user, java.util.List protocols, Filter[] filters) throws ServiceException, java.rmi.RemoteException
InformationServiceInterface
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.
browseSearchProtocolsWithFilterArray
in interface InformationServiceInterface
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.public java.util.List browseSearchGroupName(UserContextInterface user, java.lang.String groupName, Filter filter) throws ServiceException, java.rmi.RemoteException
InformationServiceInterface
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.
browseSearchGroupName
in interface InformationServiceInterface
user
- The UserContext to perform the search for.groupName
- The repository group to search.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.public java.util.List browseSearchGroupNameWithFilterArray(UserContextInterface user, java.lang.String groupName, Filter[] filters) throws ServiceException, java.rmi.RemoteException
InformationServiceInterface
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.
browseSearchGroupNameWithFilterArray
in interface InformationServiceInterface
user
- The UserContext to perform the search for.groupName
- The repository group to search.filters
- An array of 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.public 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.
connectAuto
in interface InformationServiceInterface
user
- The UserContext to connect to the repositories.
ServiceException
- in the event of a severe failure.
java.rmi.RemoteException
- in the event of network failurepublic RepositoryInterface connectByName(UserContextInterface user, java.lang.String name) throws ServiceException, java.rmi.RemoteException
connectByName
in interface InformationServiceInterface
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.public ServerInterface connect(UserContextInterface user, ServerDef serverDef) throws ServiceException, java.rmi.RemoteException
InformationServiceInterface
connect
in interface InformationServiceInterface
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.public RepositoryInterface connect(UserContextInterface user, RepositoryDef reposDef) throws ServiceException, java.rmi.RemoteException
connect
in interface InformationServiceInterface
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.public boolean addRepositoryDef(RepositoryDef repositoryDef) throws java.rmi.RemoteException
InformationServiceInterface
addRepositoryDef
in interface InformationServiceInterface
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.public boolean removeRepositoryDef(RepositoryDef repositoryDef) throws java.rmi.RemoteException
InformationServiceInterface
removeRepositoryDef
in interface InformationServiceInterface
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.public void clearRepositoryDefs()
InformationServiceInterface
clearRepositoryDefs
in interface InformationServiceInterface
public java.util.List getReposDefs() throws java.rmi.RemoteException
getReposDefs
in interface InformationServiceInterface
java.rmi.RemoteException
- in the event of remote object failure.public boolean addServerDef(ServerDef serverDef) throws java.rmi.RemoteException
InformationServiceInterface
addServerDef
in interface InformationServiceInterface
serverDef
- The new server definition to add.
true
if the server definition was successfully
added or false
if it wasn't.
java.rmi.RemoteException
- In the event of remote object failure.public boolean removeServerDef(ServerDef serverDef) throws java.rmi.RemoteException
InformationServiceInterface
removeServerDef
in interface InformationServiceInterface
serverDef
- The server definition to remove.
true
if the server definition was successfully
removed or false
if it wasn't.
java.rmi.RemoteException
- In the event of remote object failure.public void clearServerDefs()
InformationServiceInterface
clearServerDefs
in interface InformationServiceInterface
public java.util.List getServerDefs() throws java.rmi.RemoteException
getServerDefs
in interface InformationServiceInterface
java.rmi.RemoteException
- In the event of remote object failure.public java.util.List getRepositoryGroups() throws ServiceException, java.rmi.RemoteException
getRepositoryGroups
in interface InformationServiceInterface
ServiceException
- in the event of service failure.
java.rmi.RemoteException
- in the event of remote object failure.public RepositoryGroup getRepositoryGroup(java.lang.String name) throws ServiceException, java.rmi.RemoteException
getRepositoryGroup
in interface InformationServiceInterface
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.public boolean addRepositoryGroup(RepositoryGroup group) throws ServiceException, java.rmi.RemoteException
addRepositoryGroup
in interface InformationServiceInterface
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.public boolean removeRepositoryGroup(RepositoryGroup group) throws ServiceException, java.rmi.RemoteException
removeRepositoryGroup
in interface InformationServiceInterface
group
- The group to remove from the definitions.
ServiceException
- if a service error occurs.
java.rmi.RemoteException
- in the event of remote object failure.public void clearRepositoryGroups() throws ServiceException, java.rmi.RemoteException
clearRepositoryGroups
in interface InformationServiceInterface
ServiceException
- if a service error occurs.
java.rmi.RemoteException
- in the event of remote object failure.public void addMetadataChangeListener(MetadataChangeListener listener, java.lang.String url) throws ServiceException, java.rmi.RemoteException
addMetadataChangeListener
in interface InformationServiceInterface
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.
java.rmi.RemoteException
- in the event of remote object failure.
ServiceException
- if a service level error occurs.public void removeMetadataChangeListener(MetadataChangeListener listener, java.lang.String url) throws java.rmi.RemoteException
removeMetadataChangeListener
in interface InformationServiceInterface
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.public void metadataChange(MetadataChangeEvent event) throws java.rmi.RemoteException
metadataChange
in interface InformationServiceInterface
event
- the MetadataChangeEvent that describes what changed.
java.rmi.RemoteException
- in the event of remote object failure.public final RemoteServiceInterface getServiceProxy()
getServiceProxy
in interface RemoteServiceInterface
getServiceProxy
in class AbstractRemoteService
null
if a proxy is not available.public boolean isAuthorized(UserContextInterface superUser, IdentityInterface plainUser, MetadataInterface objectToCheck, java.lang.String permission) throws ServiceException, java.rmi.RemoteException
isAuthorized
in interface InformationServiceInterface
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.public java.lang.String getReposKey(java.lang.String entityKey) throws ServiceException, java.rmi.RemoteException
getReposKey
in interface InformationServiceInterface
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.public void addInformationServiceTimerClient(com.sas.services.information.InformationServiceTimerClient client) throws ServiceException, java.rmi.RemoteException
addInformationServiceTimerClient
in interface InformationServiceInterface
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.public void removeInformationServiceTimerClient(com.sas.services.information.InformationServiceTimerClient client) throws ServiceException, java.rmi.RemoteException
removeInformationServiceTimerClient
in interface InformationServiceInterface
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.public void setIsolated() throws java.rmi.RemoteException
setIsolated
in interface InformationServiceInterface
java.rmi.RemoteException
- in the event of remote object failure.public boolean isIsolated() throws java.rmi.RemoteException
isIsolated
in interface InformationServiceInterface
java.rmi.RemoteException
public void logFormat(org.apache.log4j.Level level, java.lang.String context, java.util.ResourceBundle bundle, java.lang.String key, java.lang.Object arg0) throws java.rmi.RemoteException
java.rmi.RemoteException
public void logFormat(org.apache.log4j.Level level, java.lang.String context, java.util.ResourceBundle bundle, java.lang.String key, java.lang.Object arg0, java.lang.Object arg1) throws java.rmi.RemoteException
java.rmi.RemoteException
public void logFormat(org.apache.log4j.Level level, java.lang.String context, java.util.ResourceBundle bundle, java.lang.String key, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2) throws java.rmi.RemoteException
java.rmi.RemoteException
public void logFormat(org.apache.log4j.Level level, java.lang.String context, java.util.ResourceBundle bundle, java.lang.String key, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3) throws java.rmi.RemoteException
java.rmi.RemoteException
public void logMessage(org.apache.log4j.Level level, java.lang.String message) throws java.rmi.RemoteException
java.rmi.RemoteException
public void logMessage(org.apache.log4j.Level level, java.lang.String message, java.lang.Throwable t) throws java.rmi.RemoteException
java.rmi.RemoteException
public java.util.Map getSmartObjectDefinitions() throws java.rmi.RemoteException
InformationServiceInterface
getSmartObjectDefinitions
in interface InformationServiceInterface
SmartDef
objects.
java.rmi.RemoteException
- In the event of remote object failure.public MetadataInterface getObjectByPath(UserContextInterface user, PathUrl path) throws ServiceException, java.rmi.RemoteException
InformationServiceInterface
getObjectByPath
in interface InformationServiceInterface
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.public ServerInterface getServerForPath(UserContextInterface user, PathUrl path) throws ServiceException, java.rmi.RemoteException
InformationServiceInterface
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.
getServerForPath
in interface InformationServiceInterface
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.public void addTypeMap(java.lang.String serverUrl, java.util.Map typeMap) throws java.rmi.RemoteException
InformationServiceInterface
addTypeMap
in interface InformationServiceInterface
typeMap
- A Map of TypeDefinitions for the server.
java.rmi.RemoteException
- In the event of remote object failure.public java.util.Map getTypeMap(java.lang.String serverUrl) throws java.rmi.RemoteException
InformationServiceInterface
getTypeMap
in interface InformationServiceInterface
serverUrl
- The server identifier to retrieve the type map for.
java.rmi.RemoteException
- in the event of remote object failure.public void addExplicitIdentityGroupsMap(java.lang.String serverUrl, java.util.Map _explicitIdentityGroupsMap) throws java.rmi.RemoteException
InformationServiceInterface
addExplicitIdentityGroupsMap
in interface InformationServiceInterface
java.rmi.RemoteException
- In the event of remote object failure.public java.util.Map getExplicitIdentityGroupsMap(java.lang.String serverUrl) throws java.rmi.RemoteException
InformationServiceInterface
getExplicitIdentityGroupsMap
in interface InformationServiceInterface
serverUrl
- The server identifier to retrieve the IdentityGroups for.
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 |