|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.services.information.OMIServerRepository
public class OMIServerRepository
This class interfaces with an OMI repository using the jOMA classes (com.sas.metadata.remote) as the repository-specific layer.
Nested Class Summary | |
---|---|
class |
OMIServerRepository.OMIEvaluator
|
Field Summary | |
---|---|
protected java.lang.String |
_defaultId
|
protected java.lang.String |
_defaultName
|
protected java.lang.String |
_defaultRepository
|
protected boolean |
_isConnected
|
protected boolean |
_isDestroyed
|
protected java.lang.String |
_myType
|
protected MetadataServerInterface |
_omiServer
|
protected java.lang.String |
_subNum
|
protected java.lang.String |
_url
|
static java.lang.String |
BIP_COMPONENTNAME
The name of the SoftwareComponent object that used as the root of the tree structures used by SAS applications. |
static java.lang.String |
BIP_ROOTNAME
The name of the Tree object that's the default base Tree for BIP applications. |
static java.lang.String |
ROOT_CLASSIDENTIFIER
The ClassIdentifier attribute value for the SoftwareComponent that's the root of the tree structures used by SAS applications. |
Fields inherited from interface com.sas.services.information.OMIRepositoryInterface |
---|
TYPE_CUSTOM, TYPE_FOUNDATION, TYPE_PROJECT |
Fields inherited from interface com.sas.services.information.RepositoryInterface |
---|
PROFILE_BEST, PROFILE_NO, PROFILE_POSSIBLE |
Constructor Summary | |
---|---|
|
OMIServerRepository()
The default constructor. |
protected |
OMIServerRepository(java.lang.Class theClass)
Constructs an instance exporting a remote object that employs RMI socket factories appropriate for the specified class. |
Method Summary | |
---|---|
void |
addEntity(MetadataInterface input)
Add an entity to the repository. |
void |
addListener(RepositoryListenerInterface listener)
Add a listener to receive event notifications from the repository instance. |
void |
addRootFolder(FolderInterface folder)
Make a folder a root folder of this repository. |
void |
addToCache(MetadataInterface newMetadata)
Add a MetadataInterface object to a repository's cache. |
void |
appyACTToObj(java.lang.String resource,
java.lang.String act)
Apply an AccessControlTemplate to a metadata object. |
BrowseMetadataInterface |
browseFetch(java.lang.String entityKey,
FilterInterface filter)
Fetch a single object from the repository using the key. |
java.util.List |
browseFolder(java.lang.String folderISEntityKey,
FilterInterface filter)
Get information about a specific folder. |
java.util.List |
browseFolderRecursive(java.lang.String folderISEntityKey,
FilterInterface filter)
Search a folder tree recursively using the filter. |
BrowseMetadataInterface |
browseObjectByPath(PathUrl pathurl,
FilterInterface filter)
Retrieve an object based on its PathUrl. |
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. |
static void |
clearInformationService()
|
void |
close()
Close the connection to the OMR server and clean up any resources. |
boolean |
connect(com.sas.meta.SASOMI.IOMI connection,
java.lang.String base)
Set up to use an existing IOMI connection. |
boolean |
connect(java.lang.String host,
int port,
java.lang.String id,
java.lang.String password,
java.lang.String base)
Establish a connection to a repository server. |
boolean |
connect(java.lang.String user,
java.lang.String password,
RepositoryDef config)
Connect to a repository using the configuration provided in a RepositoryDef object. |
boolean |
connectWithProxy(java.lang.String host,
int port,
java.lang.String id,
java.lang.String password,
java.lang.String base,
java.lang.String proxy,
boolean isSecure)
Establish a connection to a repository server. |
void |
createAccessControTemplate(ACTEntry act)
Create a new AccessControlTemplate in this repository. |
com.sas.metadata.remote.Root |
createMetadata(java.lang.String name,
java.lang.String type)
Create a new metadata object. |
void |
deleteEntities(java.util.List metadataObjects)
Delete a collection of CMetadata objects. |
void |
deleteEntity(com.sas.metadata.remote.CMetadata metadata)
Allow a CMetadata object to be passed in to be deleted. |
void |
deleteEntity(MetadataInterface input)
Delete an entity in the repository. |
void |
destroyAccessControlTemplate(java.lang.String act)
Destroy an AccessControlTemplate in the repository. |
MetadataInterface |
factoryProcess(java.lang.Object o)
Process a raw repository object into a smart object. |
boolean |
factoryTest(java.lang.Object testObject,
java.lang.String filterString)
Test an object against a Factory filter. |
MetadataInterface |
fetch(java.lang.String repositoryKey)
Fetch an object from the repository given the repository key. |
MetadataInterface |
fetch(java.lang.String repositoryKey,
boolean bypassCache)
Fetch an object from the repository given the repository key. |
MetadataInterface |
fetchByUrl(java.lang.String entityURL,
boolean bypassCache)
Fetch an object from the repository given the URL. |
protected void |
finalize()
Before the object is garbage collected, make sure we close the connection. |
protected void |
flush()
|
void |
freeCredentials(java.lang.String credential)
Free a credential handle. |
void |
fromByteArry(UserContextInterface uci,
byte[] data)
Initialize an instance of a repository from state saved in a byte array. |
ACTEntry |
getAccessControlTemplateAttribs(java.lang.String act)
Get attributes for an AccessControlTemplate. |
java.util.List |
getAccessControlTemplateList(int flags)
Get the list of AccessControlTemplates for this repository. |
java.util.List |
getACTsOnObj(java.lang.String resource)
Get the AccessControlTemplates that are associated to an object. |
java.lang.String[][] |
getAuthorizations(java.lang.String authType,
java.lang.String credHandle,
java.lang.String resource,
java.lang.String permission)
Get the authorization information for a metadata resource. |
java.util.List |
getAuthorizationsOnObj(java.lang.String resource,
java.util.List identities,
java.util.List permissions,
int flags)
Get the authorizations on an object for the given identities and permissions. |
java.lang.String |
getBase()
Get the search base. |
com.sas.services.cache.CacheStatistics |
getCacheStatistics()
Get the cache statistics for the repository cache. |
java.util.List |
getChildren()
Get the list of repository id's that are "down" the dependency chain from the default repository. |
int |
getCountNoSecurity(Filter filter,
java.lang.String association)
Perform a search operation against the metadata repository which will return a count of the matching objects, rather than the objects themselves. |
java.util.Date |
getCreateDate(MetadataInterface mi)
|
java.lang.String |
getCredentials(java.lang.String subject)
See the ISecurity interface documentation for a description of this method. |
java.lang.String |
getDefaultRepositoryId()
Get the FQID of the default repository. |
java.lang.String |
getDefaultRepositoryName()
Get the name of the default repository. |
java.lang.String |
getDomain()
Get the domain for this repository. |
com.sas.services.information.rules.EvaluatorInterface |
getEvaluator(java.lang.Object o)
This method is used by the Factory to get an evaluator that will evaluate factory rules against an object's data to determine if it matches the rule. |
java.lang.String |
getFactoryKey(java.lang.Object o)
Get the factory key for objects from this repository. |
long |
getFolderItemRefreshInterval()
Get the interval for refreshing the folder's item list for objects retrieved through this repository instance. |
long |
getFolderSubfolderRefreshInterval()
Get the interval for refreshing a folder's subfolder list for objects retrieved through this repository instance. |
java.lang.String |
getHost()
Get the name of the host this repository is running on. |
java.util.List |
getIdentitiesOnObj(java.lang.String resource,
int flags)
Get a List of identities associated with an object through authorizations. |
IdentityInterface |
getIdentity()
Get the authenticated user identity. |
static InformationServiceInterface |
getInformationService()
Return a handle to the Information Service. |
java.lang.String[][] |
getInheritedIdentities(MetadataInterface mi)
|
java.lang.String[][] |
getInheritedPermissions(IdentityInterface identity,
MetadataInterface metadata,
java.util.List permissions)
|
com.sas.meta.SASOMI.IOMI |
getIOMI()
Deprecated. This method will not work across a remote connection. |
com.sas.meta.SASOMI.ISecurity |
getISecurity()
Deprecated. This method will not work across a remote connection. |
java.lang.String |
getISName()
Get the Information Service configuration name for this repository if it exists. |
java.util.Date |
getModifiedDate(MetadataInterface mi)
|
MetadataInterface |
getObjectByPath(PathUrl url)
Get an object in the BIP tree using a PathUrl to find it. |
MetadataInterface |
getObjectByPath(java.lang.String rootFolderName,
java.lang.String path,
java.lang.Class type)
Deprecated. Use getObjectByPath( String, String, String ) |
MetadataInterface |
getObjectByPath(java.lang.String rootFolderName,
java.lang.String path,
java.lang.String type)
Deprecated. in favor of getObjectByPathString. |
MetadataInterface |
getObjectByPathString(java.lang.String rootFolderName,
java.lang.String path,
java.lang.String type)
Get an object from the repository given a root folder, path and type. |
int |
getOMRVersion()
Get the version of the Metadata Server we're taking to. |
long |
getParentRefreshInterval()
Get the interval for refreshing an object's parent path information. |
java.util.List |
getParents()
Get the list of repository id's that are "up" the dependency chain from the default repository. |
java.util.List |
getPermissions()
Get a List of Permission objects from the metadata server. |
int |
getPort()
Get the port number of the server this repository is using. |
java.util.List |
getPredefinedPropertyTypes()
Get the PropertyType objects from the "Entity Property Types" group. |
java.lang.String |
getPrincipal()
Get the principal name this instance connected with. |
java.util.List |
getRepositories()
Get a List of MetadataInterface objects that enumerate the Repositories contained in the OMR server we're currently connected to. |
java.lang.String |
getRepositoryType()
Get the type of this repository. |
java.lang.String |
getReposKey(com.sas.metadata.remote.Root reposObject)
Take a jOMA object and return the repository key that can be used to fetch it. |
FolderInterface |
getRootFolder(java.lang.String name)
Get a root folder in the default repository. |
FolderInterface |
getRootFolder(java.lang.String name,
java.lang.String repository)
Get a root folder in a specific repository. |
java.util.List |
getRootFolders()
Get all the root folders in the default repository. |
java.util.List |
getRootFolders(java.lang.String repository)
Gets all the root folders in a specific repository. |
ServerInterface |
getServer()
Get the ServerInterface that controls this repository. |
protected java.lang.String |
getSubNum()
|
MetadataInterface |
getTrackedObject(int trackingId)
Deprecated. |
java.lang.String |
getUniqueId()
Get a unique identifier for this repository instance. |
java.lang.String |
getUrl()
Return the string that represents the specific instance of this repository. |
PersonInterface |
getUser()
Get the person entity that represents the user that is connected to the repository. |
UserContextInterface |
getUserContext()
Get the UserContext this repository was connected for. |
boolean |
isAuthorized(MetadataInterface mi,
java.lang.String permission)
|
boolean |
isAuthorized(java.lang.String credential,
java.lang.String resource,
java.lang.String permission)
Check authorization status for a given credential, resource, and permission. |
AuthResult |
isAuthorizedWithConditions(java.lang.String credential,
java.lang.String resource,
java.lang.String permission)
Check authorization status for a given credential, resource, and permission. |
boolean |
isChild(RepositoryInterface repos)
Return a flag indicating if the repository provided is a child of the default repository. |
boolean |
isChild(java.lang.String repositoryID)
Return a flag indicating if the repository specified by repositoryID is a dependent child of the default repository. |
boolean |
isDestroyed()
Check if the repostiory instance has been closed. |
boolean |
isEqual(java.lang.Object o)
Test another object to see if it's equal to this one. |
boolean |
isInChild(MetadataInterface metadata)
Return a flag indicating if the metadata object is in a dependent child repository to the default one. |
boolean |
isInParent(MetadataInterface metadata)
Return a flag indicating if the metadata object is in a parent repository to the default one. |
boolean |
isInProject(MetadataInterface metadata)
Returns a flag indicating if the object came from a project repository. |
boolean |
isParent(RepositoryInterface repos)
Return a flag indicating if the repository provided is a parent of the default repository. |
boolean |
isParent(java.lang.String repositoryID)
Return a flag indicating if the repository specified by repositoryID is a parent of the default repository. |
int |
isProfileRepository(java.lang.String url)
Returns true if this repository supports profile storage. |
boolean |
isUserAuthorizedInRepository(java.lang.String permission)
Checks repository permissions for the user. |
FolderInterface |
makeRootFolder(java.lang.String name)
Makes a root folder in the repository. |
void |
MdObjectCreated(com.sas.metadata.remote.MdEvent e,
java.lang.String id)
|
void |
MdObjectDeleted(com.sas.metadata.remote.MdEvent e,
java.lang.String id)
|
void |
MdObjectModified(com.sas.metadata.remote.MdEvent e)
Receive a notification that data has changed that we may have in our cache. |
void |
MdObjectsAdded(com.sas.metadata.remote.MdEvent e,
java.util.List items)
|
void |
MdObjectsCreated(com.sas.metadata.remote.MdEvent e,
java.util.List ids)
|
void |
MdObjectsCreated(com.sas.metadata.remote.MdFactoryEvent e)
|
void |
MdObjectsDeleted(com.sas.metadata.remote.MdFactoryEvent e)
|
void |
MdObjectsModified(com.sas.metadata.remote.MdEvent e,
java.util.List items)
|
void |
MdObjectsModified(com.sas.metadata.remote.MdFactoryEvent e)
|
void |
MdObjectsRemoved(com.sas.metadata.remote.MdEvent e,
java.util.List items)
|
void |
metadataChange(MetadataChangeEvent event)
Process a metadata change event from the Information Service. |
java.lang.Object |
narrow(com.sas.services.information.RepositoryData entity)
Narrow a set of raw repository data to a specific object based on the type. |
ChildRepositoryInterface |
newChild()
Create a child repository instance with its own cache, which can be used to perform a group of updates transaction-style. |
MetadataInterface |
newMetadata(MetadataInterface model,
java.lang.String name)
Deprecated. in favor of newMetadataByModel. |
MetadataInterface |
newMetadata(java.lang.String reposId,
java.lang.String name,
java.lang.String type)
Create a new metadata entity. |
MetadataInterface |
newMetadataByModel(MetadataInterface model,
java.lang.String name)
Create a new metadata entity. |
MetadataInterface |
produceDefaultMetadata(java.lang.Object o)
Return the default metadata object for this repository. |
protected void |
pulseCheck()
|
void |
refreshAllData()
Refresh all of the data that's in the cache. |
void |
refreshEntity(MetadataInterface mi)
Refresh an entity from the data in the server. |
void |
removeACTFromObj(java.lang.String resource,
java.lang.String act)
Remove an AccessControlTemplate from a metadata object. |
void |
removeListener(RepositoryListenerInterface listener)
Remove a listener from the list of active event listeners for this repository. |
FolderInterface |
removeRootFolder(java.lang.String folderName)
Remove a folder as a root folder for the repository, but don't delete it. |
void |
runInformationServiceTimer()
|
java.util.List |
search(FilterInterface filter)
Search the repository using the provided filter. |
FilteredFolderInterface |
searchTree(FolderInterface baseFolder,
FilterInterface filter)
Deprecated. in favor of searchTreeFromBase. |
FilteredFolderInterface |
searchTree(java.lang.String rootFolderName,
FilterInterface filter)
Search the specified folder tree in the repository using the provided filter. |
FilteredFolderInterface |
searchTreeFromBase(FolderInterface baseFolder,
FilterInterface filter)
Search the specified folder tree in the repository using the provided filter. |
FilteredFolderInterface |
searchTreeFromBaseWithScope(FolderInterface baseFolder,
FilterInterface filter,
int levels)
Search the specified folder tree in the repository using the provided filter. |
void |
setAccessControlTemplateAttribs(ACTEntry act)
Set attributes on an AccessControlTemplate. |
void |
setAuthorizationsOnObj(java.lang.String resource,
java.util.List authorizations,
int flags)
Set authorizations on a metadata object. |
void |
setDomain(java.lang.String domain)
Set the security domain for this repository. |
void |
setFolderItemRefreshInterval(long msecInterval)
Set the interval for refreshing the folder's item list for objects retrieved through this repository instance. |
void |
setFolderSubfolderRefreshInterval(long msecInterval)
Set the interval for refreshing a folder's subfolder list for objects retrieved through this repository instance. |
void |
setISName(java.lang.String name)
Set the name that was used to connect to the repository. |
void |
setParentRefreshInterval(long msecInterval)
Set the interval for refreshing an object's parent path information. |
void |
setUser(PersonInterface person)
Set the entity that represents the user that is connected to the repository. |
void |
setUserContext(UserContextInterface user)
Set the UserContext that this repository belongs to. |
byte[] |
toByteArray()
Write the current state of the repository to a byte array. |
java.lang.String |
toString()
Return a string to represent this instance. |
int |
trackEntity(MetadataInterface entity)
Deprecated. Tracking ids are no longer supported. |
void |
updateEntity(java.lang.Object reposId,
java.lang.Object input)
Update an existing entity in the repository. |
Field Detail |
---|
public static final java.lang.String ROOT_CLASSIDENTIFIER
public static final java.lang.String BIP_COMPONENTNAME
public static final java.lang.String BIP_ROOTNAME
protected java.lang.String _url
protected java.lang.String _defaultRepository
protected java.lang.String _defaultName
protected java.lang.String _defaultId
protected boolean _isConnected
protected boolean _isDestroyed
protected java.lang.String _subNum
protected java.lang.String _myType
protected MetadataServerInterface _omiServer
Constructor Detail |
---|
public OMIServerRepository() throws java.rmi.RemoteException
Initialize the instance. Make sure the Factory is configured, and get a LoggerInterface.
java.rmi.RemoteException
- if unable to export the remote object.protected OMIServerRepository(java.lang.Class theClass) throws java.rmi.RemoteException
Initialize the instance. Make sure the Factory is configured, and get a LoggerInterface.
theClass
- Class which will be used to determine the
appropriate RMI socket factories.
java.rmi.RemoteException
- if unable to export the remote object.Method Detail |
---|
public static InformationServiceInterface getInformationService()
public static void clearInformationService()
public void setUserContext(UserContextInterface user) throws java.rmi.RemoteException
setUserContext
in interface RepositoryInterface
user
- The UserContext this repository was connected for.
java.rmi.RemoteException
- In the event of network failure.public UserContextInterface getUserContext() throws java.rmi.RemoteException
getUserContext
in interface RepositoryInterface
java.rmi.RemoteException
- in the event of network failure.public void setUser(PersonInterface person) throws java.rmi.RemoteException
setUser
in interface RepositoryInterface
person
- The Person entity that represents the user who is
connected. This can only be set once, and if non-null, will
throw an IllegalStateException.
java.lang.IllegalStateException
- if called when the person has already been
set.
java.rmi.RemoteException
- in the event of remote access errors.public void setISName(java.lang.String name) throws java.rmi.RemoteException
setISName
in interface RepositoryInterface
name
- The name that was used to connect to the repository. This
name should match the Information Service RepositoryDef name.
java.rmi.RemoteException
public java.lang.String getISName() throws java.rmi.RemoteException
getISName
in interface RepositoryInterface
java.rmi.RemoteException
- in the event of remote object failure.public PersonInterface getUser() throws java.rmi.RemoteException
getUser
in interface RepositoryInterface
java.rmi.RemoteException
- in the event of remote access errors.public IdentityInterface getIdentity() throws ServiceException, java.rmi.RemoteException
RepositoryInterface
getIdentity
in interface RepositoryInterface
ServiceException
- If a service level error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public com.sas.meta.SASOMI.IOMI getIOMI() throws java.lang.IllegalStateException, java.rmi.RemoteException
getIOMI
in interface OMIRepositoryInterface
java.lang.IllegalStateException
- If this instance isn't currently
connected.
java.rmi.RemoteException
- in the event of remote object failure.public com.sas.meta.SASOMI.ISecurity getISecurity() throws java.lang.IllegalStateException, java.rmi.RemoteException
getISecurity
in interface OMIRepositoryInterface
java.lang.IllegalStateException
- If this instance isn't currently
connected.
java.rmi.RemoteException
- in the event of remote object failure.public boolean connect(com.sas.meta.SASOMI.IOMI connection, java.lang.String base) throws ServiceException, java.rmi.RemoteException
connect
in interface OMIRepositoryInterface
connection
- The IOMI connection to use to communicate with the OMR
server.base
- The default repository name to use.
ServiceException
- on repository errors.
java.rmi.RemoteException
- in the event of remote object failure.public boolean connectWithProxy(java.lang.String host, int port, java.lang.String id, java.lang.String password, java.lang.String base, java.lang.String proxy, boolean isSecure) throws ServiceException, java.rmi.RemoteException
connectWithProxy
in interface RepositoryInterface
host
- The host DNS name to connect to.port
- The port number the server is listening on.id
- The user id to use to authenticate to the server.password
- The password to use to authenticate.base
- The FQID of the default repository to use for operations
against the server.proxy
- A URL for a proxy server to use for the connection.isSecure
- A flag indicating if this is to be a secure connection.
java.rmi.RemoteException
- in the event of network problems.
ServiceException
- if a repository error occurs.public boolean connect(java.lang.String user, java.lang.String password, RepositoryDef config) throws ServiceException, java.rmi.RemoteException
RepositoryInterface
connect
in interface RepositoryInterface
user
- The UserId for authentication to the repository server.password
- The password for authentication to the repository server.config
- The RepositoryDef
object with the configuration information.
ServiceException
- If a service level error occurred.
java.rmi.RemoteException
- In the event of remote object failure.public boolean connect(java.lang.String host, int port, java.lang.String id, java.lang.String password, java.lang.String base) throws ServiceException, java.rmi.RemoteException
connect
in interface RepositoryInterface
host
- The host DNS name to connect to.port
- The port number the server is listening on.id
- The user id to use to authenticate to the server.password
- The password to use to authenticate.base
- The FQID of the default repository to use for operations
against the server.
java.rmi.RemoteException
- in the event of network problems.
ServiceException
- if a repository error occurs.protected void finalize() throws java.rmi.RemoteException
finalize
in class java.lang.Object
java.rmi.RemoteException
- in the event of remote object failure.public java.lang.String toString()
toString
in class java.rmi.server.RemoteObject
public void close() throws java.rmi.RemoteException
close
in interface RepositoryInterface
java.rmi.RemoteException
- in the event of remote object failure.public MetadataInterface newMetadata(java.lang.String reposId, java.lang.String name, java.lang.String type) throws ServiceException, java.rmi.RemoteException
newMetadata
in interface RepositoryInterface
reposId
- The ID of the new item in the repository or the
repository itself. The meaning of this is repository-specific.name
- The name of the new metadata entity.type
- The repository-specific type to create.
ServiceException
- In the event of a parameter or configuration
error.
java.rmi.RemoteException
- in the event of a network error.public MetadataInterface newMetadata(MetadataInterface model, java.lang.String name) throws ServiceException, java.rmi.RemoteException
newMetadata
in interface RepositoryInterface
model
- A Metadata object to use as a "model" for the new item. The
new metadata will have the same type, same repository, and may
use the repository ID of the model as a basis for its own.name
- The name of the new repository entity.
ServiceException
- In the event of a parameter or configuration error.
java.rmi.RemoteException
- in the event of a network error.public MetadataInterface newMetadataByModel(MetadataInterface model, java.lang.String name) throws ServiceException, java.rmi.RemoteException
newMetadataByModel
in interface RepositoryInterface
model
- A Metadata object to use as a "model" for the new item. The
new metadata will have the same type, same repository, and may
use the repository ID of the model as a basis for its own.name
- The name of the new repository entity.
ServiceException
- In the event of a parameter or configuration
error.
java.rmi.RemoteException
- in the event of a network error.public MetadataInterface fetch(java.lang.String repositoryKey) throws ServiceException, java.rmi.RemoteException
fetch
in interface RepositoryInterface
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.
java.rmi.RemoteException
- in the event of network errors.
ServiceException
- if a repository error occurs.public MetadataInterface fetchByUrl(java.lang.String entityURL, boolean bypassCache) throws ServiceException, java.rmi.RemoteException
RepositoryInterface
fetchByUrl
in interface RepositoryInterface
entityURL
- The URL string of the object to fetch.bypassCache
- If true, the repository cache is bypassed
and a trip to the persistent store is forced.
ServiceException
- If the URL doesn't match
the instance.
java.rmi.RemoteException
- In the event of remote object
failure.public MetadataInterface fetch(java.lang.String repositoryKey, boolean bypassCache) throws ServiceException, java.rmi.RemoteException
bypassCache
flag is set
then the cache will not be checked before retrieving the
object from the server. If the flag is not set, then the
behaviour is the same as the
fetch
method.
fetch
in interface RepositoryInterface
repositoryKey
- The identifier for the object from the
repository. This should be formatted as the repository ID
followed by a slash, then the repository specific type.
This string can be obtained using the Metadata.getReposKey
method.bypassCache
- Boolean flag determines whether the cache should be checked for the
object before forcing a trip to the server or not.
java.rmi.RemoteException
- in the event of network errors.
ServiceException
- if a repository error occurs.public java.util.List search(FilterInterface filter) throws ServiceException, java.rmi.RemoteException
search
in interface RepositoryInterface
filter
- A filter to use to limit the returned data.
ServiceException
- If repository errors occur.
java.rmi.RemoteException
- in the event of remote object failure.public void updateEntity(java.lang.Object reposId, java.lang.Object input) throws ServiceException, java.rmi.RemoteException
reposId
- The repository identifier for the object to update.input
- The object to update.
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.public void deleteEntity(MetadataInterface input) throws ServiceException, java.rmi.RemoteException
deleteEntity
in interface RepositoryInterface
input
- The object to delete.
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.public void deleteEntity(com.sas.metadata.remote.CMetadata metadata) throws ServiceException, java.rmi.RemoteException
deleteEntity
in interface OMIRepositoryInterface
metadata
- The CMetadata object to be deleted.
ServiceException
- in the event of back end repository failure.
java.rmi.RemoteException
- in the event of remote object failure.public void deleteEntities(java.util.List metadataObjects) throws ServiceException, java.rmi.RemoteException
deleteEntities
in interface OMIRepositoryInterface
metadataObjects
- a List of CMetadata objects to be deleted.
ServiceException
- in the event of back end repository failure.
java.rmi.RemoteException
- in the event of remote object failure.public void addEntity(MetadataInterface input) throws ServiceException, java.rmi.RemoteException
addEntity
in interface RepositoryInterface
input
- The object to add to the repository.
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.public java.lang.String getUrl() throws java.rmi.RemoteException
getUrl
in interface RepositoryInterface
java.rmi.RemoteException
- in the event of network errors.public java.lang.String getDomain() throws java.rmi.RemoteException
getDomain
in interface RepositoryInterface
java.rmi.RemoteException
- in the event of remote object failure.public void setDomain(java.lang.String domain) throws java.rmi.RemoteException
setDomain
in interface RepositoryInterface
domain
- The security domain this server instance uses for
authentication.
java.rmi.RemoteException
- if a networking issue is encountered.public boolean isEqual(java.lang.Object o) throws java.rmi.RemoteException
isEqual
in interface RepositoryInterface
o
- The object to test against.
java.rmi.RemoteException
public java.lang.String getHost() throws java.rmi.RemoteException
getHost
in interface RepositoryInterface
java.rmi.RemoteException
- in the event of remote object failure.public int getPort() throws java.rmi.RemoteException
getPort
in interface RepositoryInterface
java.rmi.RemoteException
- in the event of remote object failure.public java.lang.String getBase() throws java.rmi.RemoteException
getBase
in interface RepositoryInterface
java.rmi.RemoteException
- in the event of a network failure.public java.lang.String getPrincipal() throws java.rmi.RemoteException
getPrincipal
in interface RepositoryInterface
java.rmi.RemoteException
- in the event of remote object failure.public java.util.List getRepositories() throws ServiceException, java.rmi.RemoteException
OMIRepositoryInterface
getRepositories
in interface OMIRepositoryInterface
ServiceException
- in the event of repository failure.
java.rmi.RemoteException
- in the event of remote object failure.public MetadataInterface getTrackedObject(int trackingId) throws java.rmi.RemoteException
getTrackedObject
in interface RepositoryInterface
trackingId
- The tracking ID of the object to get.
java.rmi.RemoteException
- in the event of remote object failure.public java.lang.Object narrow(com.sas.services.information.RepositoryData entity) throws ServiceException, java.rmi.RemoteException
narrow
in interface RepositoryInterface
ServiceException
java.rmi.RemoteException
public void addRootFolder(FolderInterface folder) throws ServiceException, java.rmi.RemoteException
addRootFolder
in interface RepositoryInterface
folder
- The folder to make a root folder.
ServiceException
- In the event of a repository error.
java.rmi.RemoteException
- In the event of remote object failure.public FolderInterface removeRootFolder(java.lang.String folderName) throws ServiceException, java.rmi.RemoteException
removeRootFolder
in interface RepositoryInterface
folderName
- The name of the folder to remove as a root.
ServiceException
- In the event of repository error.
java.rmi.RemoteException
- In the event of remote object failure.public FolderInterface makeRootFolder(java.lang.String name) throws ServiceException, java.rmi.RemoteException
Root folders are uniquely identified by a string name. makeRootFolder will return the FolderInterface to an existing root folder of the same name, if any.
makeRootFolder
in interface RepositoryInterface
name
- Root folder's name.
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.public FolderInterface getRootFolder(java.lang.String name) throws ServiceException, java.rmi.RemoteException
Root folders are uniquely identified by a string name. If the name is null, the default BIP root tree is returned.
getRootFolder
in interface RepositoryInterface
name
- The name of the folder to return.
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.public FolderInterface getRootFolder(java.lang.String name, java.lang.String repository) throws ServiceException, java.rmi.RemoteException
name
- The name of the root folder to return.repository
- The repository to get the folder from. This can be a
repository ID or name.
ServiceException
- in the event of service object failure.
java.rmi.RemoteException
- in the event of remote object failure.public java.util.List getRootFolders() throws ServiceException, java.rmi.RemoteException
getRootFolders
in interface RepositoryInterface
ServiceException
- in the event of repository failures.
java.rmi.RemoteException
- in the event of RMI failures.public java.util.List getRootFolders(java.lang.String repository) throws ServiceException, java.rmi.RemoteException
repository
- The repository to get root folders for. This can be a
repository ID, or name.
ServiceException
- in the event of repository failures.
java.rmi.RemoteException
- in the event of RMI failures.public MetadataInterface getObjectByPath(PathUrl url) throws ServiceException, java.rmi.RemoteException
getObjectByPath
in interface RepositoryInterface
url
- The PathUrl that designates the object to retrieve.
ServiceException
- in the event of service object failure
java.rmi.RemoteException
- in the event of remote object failure.public MetadataInterface getObjectByPath(java.lang.String rootFolderName, java.lang.String path, java.lang.Class type) throws ServiceException, java.rmi.RemoteException
This method will return an arbitrary matching object if multiple objects exist in the repository. The path is a sequence of names separated by forward or back slashes. The method must return the same object if called again with the same parameters and the repository has not been modified.
Note: Should we allow relative path names? We could implement a getObjectByPath(FolderInterface currentFolder, String path, Class type) version of this method.
We probably should support "dot" (current folder) and "dot dot" (parent folder) notation in paths, especially if we allow relative paths.
getObjectByPath
in interface RepositoryInterface
rootFolderName
- The name of the root folder to start the search in.path
- The path to the desired object.type
- The Java class of the desired object.
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of network errors.public MetadataInterface getObjectByPath(java.lang.String rootFolderName, java.lang.String path, java.lang.String type) throws ServiceException, java.rmi.RemoteException
getObjectByPath
in interface RepositoryInterface
rootFolderName
- The root folder to start the search for the
object.path
- A slash separated list of folder names ending with the name
of the item to return.type
- The type string of the item to return. This is the output
from the MetadataInterface.getType() method.
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.public MetadataInterface getObjectByPathString(java.lang.String rootFolderName, java.lang.String path, java.lang.String type) throws ServiceException, java.rmi.RemoteException
getObjectByPathString
in interface RepositoryInterface
rootFolderName
- The root folder to start the search for the
object.path
- A slash separated list of folder names ending with the name
of the item to return.type
- The type string of the item to return. This is the output
from the MetadataInterface.getType() method.
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.public FilteredFolderInterface searchTree(java.lang.String rootFolderName, FilterInterface filter) throws ServiceException, java.rmi.RemoteException
searchTree
in interface RepositoryInterface
rootFolderName
- Name of the root folder. If this is null, the
default BIP root folder is used.filter
- A filter to use to limit the returned data.
java.rmi.RemoteException
- in the event of network errors.
ServiceException
- if a repository error occurs.public FilteredFolderInterface searchTree(FolderInterface baseFolder, FilterInterface filter) throws ServiceException, java.rmi.RemoteException
searchTree
in interface RepositoryInterface
baseFolder
- The Folder to start the search in.filter
- A filter to use to limit the returned data.
java.rmi.RemoteException
- in the event of network errors.
ServiceException
- if a repository error occurs.public FilteredFolderInterface searchTreeFromBase(FolderInterface baseFolder, FilterInterface filter) throws ServiceException, java.rmi.RemoteException
searchTreeFromBase
in interface RepositoryInterface
baseFolder
- The Folder to start the search in.filter
- A filter to use to limit the returned data.
java.rmi.RemoteException
- in the event of network errors.
ServiceException
- if a repository error occurs.public FilteredFolderInterface searchTreeFromBaseWithScope(FolderInterface baseFolder, FilterInterface filter, int levels) throws ServiceException, java.rmi.RemoteException
searchTreeFromBaseWithScope
in interface RepositoryInterface
baseFolder
- The Folder to start the search in.filter
- A filter to use to limit the returned data.levels
- The number of levels to search.
java.rmi.RemoteException
- in the event of network errors.
ServiceException
- if a repository error occurs.public void addListener(RepositoryListenerInterface listener) throws ServiceException, java.rmi.RemoteException
addListener
in interface RepositoryInterface
listener
- The object to add to the repository's list of
event listeners.
java.rmi.RemoteException
- in the event of network errors.
ServiceException
- if a repository error occurs.public void removeListener(RepositoryListenerInterface listener) throws ServiceException, java.rmi.RemoteException
removeListener
in interface RepositoryInterface
listener
- The object to remove from the repository's list of
event listeners.
java.rmi.RemoteException
- in the event of network errors.
ServiceException
- if a repository error occurs.public void metadataChange(MetadataChangeEvent event) throws java.rmi.RemoteException
metadataChange
in interface MetadataChangeListener
event
- The change event.
java.rmi.RemoteException
- in the event of remote object failure.public void refreshEntity(MetadataInterface mi) throws ServiceException, java.rmi.RemoteException
refreshEntity
in interface RepositoryInterface
mi
- The metadata object whose data needs refreshing.
java.rmi.RemoteException
- in the event of network errors.
ServiceException
- if a repository error occurs.public void MdObjectModified(com.sas.metadata.remote.MdEvent e) throws java.rmi.RemoteException
MdObjectModified
in interface com.sas.metadata.remote.MdObjectListener
java.rmi.RemoteException
public int trackEntity(MetadataInterface entity) throws java.rmi.RemoteException
trackEntity
in interface OMIRepositoryInterface
entity
- The entity to add to the tracking cache.
java.rmi.RemoteException
- in the event of remote object failure.public java.lang.String getDefaultRepositoryName() throws java.rmi.RemoteException
getDefaultRepositoryName
in interface OMIRepositoryInterface
java.rmi.RemoteException
- in the event of remote object failure.public java.lang.String getDefaultRepositoryId() throws java.rmi.RemoteException
getDefaultRepositoryId
in interface OMIRepositoryInterface
java.rmi.RemoteException
- in the event of remote object failure.public ChildRepositoryInterface newChild() throws ServiceException, java.rmi.RemoteException
newChild
in interface RepositoryInterface
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.protected void flush() throws ServiceException, java.rmi.RemoteException
ServiceException
java.rmi.RemoteException
protected java.lang.String getSubNum() throws java.rmi.RemoteException
java.rmi.RemoteException
public java.lang.String getReposKey(com.sas.metadata.remote.Root reposObject) throws ServiceException, java.rmi.RemoteException
OMIRepositoryInterface
getReposKey
in interface OMIRepositoryInterface
reposObject
- A Root object whose repository key is to be returned.
ServiceException
- in the event of repository errors.
java.rmi.RemoteException
- in the event of remote object failure.public com.sas.metadata.remote.Root createMetadata(java.lang.String name, java.lang.String type) throws java.rmi.RemoteException, ServiceException
createMetadata
in interface OMIRepositoryInterface
name
- A String for the name of the new object.type
- The Type for the new object. Should be a field from
MetadataObjects.
java.rmi.RemoteException
- in the event of remote object failure.
ServiceException
- If a service level error occurs.public 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.
browseSearch
in interface RepositoryInterface
filter
- A Filter
to limit the objects returned to those the client is
interested in.
BrowseMetadataInterface
objects.
ServiceException
- In the event of repository errors.
java.rmi.RemoteException
- In the event of remote object failure.public BrowseMetadataInterface browseFetch(java.lang.String entityKey, FilterInterface filter) throws ServiceException, java.rmi.RemoteException
browseFetch
in interface RepositoryInterface
entityKey
- The Information Services entity key, or the repository key
of the object desired.filter
- A Filter
to provide flags, template, or other controls.
BrowseMetadataInterface
object with the requested information.
ServiceException
- If a repository error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public java.util.List browseFolder(java.lang.String folderISEntityKey, FilterInterface filter) throws ServiceException, java.rmi.RemoteException
browseFolder
in interface RepositoryInterface
folderISEntityKey
- The Information Service entity key of the
Folder to retrieve information for.filter
- A Filter
used to limit the items returned.
BrowseMetadataInterface
objects. These will be either
the matching members, if a filter is provided, or all the members and
subfolders if no filter is provided.
ServiceException
- If a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.public java.util.List browseFolderRecursive(java.lang.String folderISEntityKey, FilterInterface filter) throws ServiceException, java.rmi.RemoteException
browseFolderRecursive
in interface RepositoryInterface
folderISEntityKey
- The Entity key of the requested folder.filter
- A Filter
to limit the results.
BrowseMetadataInterface
objects.
ServiceException
- If a repository error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public BrowseMetadataInterface browseObjectByPath(PathUrl pathurl, FilterInterface filter) throws ServiceException, java.rmi.RemoteException
browseObjectByPath
in interface RepositoryInterface
pathurl
- A PathUrl object that represents the object to be retrieved.filter
- Filter
used to pass
template and flag information to the retrieval code.
BrowseMetadataInterface
with the requested object, or null if it
couldn't be located.
ServiceException
- If a repository error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public void runInformationServiceTimer() throws java.rmi.RemoteException
runInformationServiceTimer
in interface com.sas.services.information.InformationServiceTimerClient
java.rmi.RemoteException
public java.lang.String getCredentials(java.lang.String subject) throws ServiceException, java.rmi.RemoteException
OMIRepositoryInterface
getCredentials
in interface OMIRepositoryInterface
subject
- The subject for which to get a credential handle.
ServiceException
- in the event of repository errors.
java.rmi.RemoteException
- in the event of remote object failure.public void freeCredentials(java.lang.String credential) throws ServiceException, java.rmi.RemoteException
OMIRepositoryInterface
freeCredentials
in interface OMIRepositoryInterface
credential
- The credential to free.
ServiceException
- in the event of repository errors.
java.rmi.RemoteException
- in the event of remote object failure.public boolean isAuthorized(java.lang.String credential, java.lang.String resource, java.lang.String permission) throws ServiceException, java.rmi.RemoteException
OMIRepositoryInterface
isAuthorized
in interface OMIRepositoryInterface
credential
- A credential handle. If this is null, the current
authenticated user is checked for permission.resource
- A resource string of the form OMSOBJ:type/FQID which represents
the object whose permissions are being checked.permission
- A permission or comma-separated list of permissions to check
against the user's authorized permissions for the resource.
ServiceException
- in the event of repository errors.
java.rmi.RemoteException
- in the event of remote object failure.public java.util.List getAuthorizationsOnObj(java.lang.String resource, java.util.List identities, java.util.List permissions, int flags) throws ServiceException, java.rmi.RemoteException
getAuthorizationsOnObj
in interface OMIRepositoryInterface
resource
- The resource string of the object to test. A resource string should
be of the form OMSOBJ:obj_type/obj_ID (e.g., OMSOBJ:PhysicalTable/A5DRX6L4.AJ00001Z).identities
- A List of IdentityInterface
objects for the users to test permissions for. If left null, all identities are returned.permissions
- A List of Permission
objects specifying
the permissions to check. If null, all permissions for all specified identities on the object are
returned.flags
- Flags which control the return values. Valid flags are:
ISecurityAdmin.SECAD_ACT_CONTENTS and ISecurityAdmin.SECAD_DO_NOT_RETURN_PERMCOND. See the
documentation for ISecurityAdmin.GetAuthorizationsOnObj for more details.
ServiceException
- if a service level error occurs.
java.rmi.RemoteException
- in the event of remote object failure.public void setAuthorizationsOnObj(java.lang.String resource, java.util.List authorizations, int flags) throws ServiceException, java.rmi.RemoteException
setAuthorizationsOnObj
in interface OMIRepositoryInterface
resource
- The resource string of the object to modify. A resource string should
be of the form OMSOBJ:obj_type/obj_ID (e.g., OMSOBJ:PhysicalTable/A5DRX6L4.AJ00001Z).authorizations
- A List of Authorization
objects defining the authorizations to set on the object.flags
- Controls the behavior of the method. The only valid flag as of this
writing is ISecurityAdmin.SECAD_ACT_CONTENTS. Check the documentation for the
ISecurityAdmin interface for details.
ServiceException
- If a service level error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public java.util.List getIdentitiesOnObj(java.lang.String resource, int flags) throws ServiceException, java.rmi.RemoteException
getIdentitiesOnObj
in interface OMIRepositoryInterface
resource
- The resource string of the object to test. A resource string should
be of the form OMSOBJ:obj_type/obj_ID (e.g., OMSOBJ:PhysicalTable/A5DRX6L4.AJ00001Z).flags
- Zero or ISecurityAdmin.SECAD_ACT_CONTENTS. See the javadoc for
ISecurityAdmin for more information.
examples:
Person/Gary Williams
IdentityGroup/PUBLIC
ServiceException
- If a service level error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public java.util.List getACTsOnObj(java.lang.String resource) throws ServiceException, java.rmi.RemoteException
getACTsOnObj
in interface OMIRepositoryInterface
resource
- The resource string of the object to test. A resource string should
be of the form OMSOBJ:obj_type/obj_ID (e.g., OMSOBJ:PhysicalTable/A5DRX6L4.AJ00001Z).
ServiceException
- If a service level error occurs.
java.rmi.RemoteException
- In the event of a remote object failure.public void appyACTToObj(java.lang.String resource, java.lang.String act) throws ServiceException, java.rmi.RemoteException
appyACTToObj
in interface OMIRepositoryInterface
resource
- The resource string of the object to modify. A resource string should
be of the form OMSOBJ:obj_type/obj_ID (e.g., OMSOBJ:PhysicalTable/A5DRX6L4.AJ00001Z).act
- The resource string representing the AccessControlTemplate. It's the same
format as the resource parameter.
ServiceException
- If a service level error occurs.
java.rmi.RemoteException
- In the event of a remote object failure.public void removeACTFromObj(java.lang.String resource, java.lang.String act) throws ServiceException, java.rmi.RemoteException
removeACTFromObj
in interface OMIRepositoryInterface
resource
- The resource string of the object to modify. A resource string should
be of the form OMSOBJ:obj_type/obj_ID (e.g., OMSOBJ:PhysicalTable/A5DRX6L4.AJ00001Z).act
- The resource string representing the AccessControlTemplate. It's the same
format as the resource parameter.
ServiceException
- If a service level error occurs.
java.rmi.RemoteException
- In the event of a remote object failure.public java.util.List getAccessControlTemplateList(int flags) throws ServiceException, java.rmi.RemoteException
getAccessControlTemplateList
in interface OMIRepositoryInterface
flags
- zero or ISecurityAdmin.SECAD_REPOSITORY_DEPENDENCY_USES to
get AccessControlTemplates for repositories up the dependency chain from
this one.
ServiceException
- If a service level error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public void createAccessControTemplate(ACTEntry act) throws ServiceException, java.rmi.RemoteException
createAccessControTemplate
in interface OMIRepositoryInterface
act
- An ACTEntry describing the new entry. The name must be
set. The description may be set, and the use parameter should be
left null, or set to "REPOS" if this is to become the new repository
default ACT (if you have permission to perform that operation).
ServiceException
- If a service level error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public void destroyAccessControlTemplate(java.lang.String act) throws ServiceException, java.rmi.RemoteException
destroyAccessControlTemplate
in interface OMIRepositoryInterface
act
- The resource ID of the ACT. A resource string should
be of the form OMSOBJ:obj_type/obj_ID (e.g., OMSOBJ:AccessControlTemplate/A5DRX6L4.AJ00001Z).
ServiceException
- If a service level error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public void setAccessControlTemplateAttribs(ACTEntry act) throws ServiceException, java.rmi.RemoteException
setAccessControlTemplateAttribs
in interface OMIRepositoryInterface
act
- An ACTEntry object with the new information about the ACT.
Set the use parameter in the ACTEntry to "REPOS" to make it the repository
default, and be sure you have the necessary permissions to do it or expect
an exception.
ServiceException
- If a service level error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public ACTEntry getAccessControlTemplateAttribs(java.lang.String act) throws ServiceException, java.rmi.RemoteException
getAccessControlTemplateAttribs
in interface OMIRepositoryInterface
act
- The resource ID of the ACT. A resource string should
be of the form OMSOBJ:obj_type/obj_ID (e.g., OMSOBJ:AccessControlTemplate/A5DRX6L4.AJ00001Z).
ServiceException
- If a service level error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public AuthResult isAuthorizedWithConditions(java.lang.String credential, java.lang.String resource, java.lang.String permission) throws ServiceException, java.rmi.RemoteException
OMIRepositoryInterface
isAuthorizedWithConditions
in interface OMIRepositoryInterface
credential
- A credential handle. If this is null, the current
authenticated user is checked for permission.resource
- A resource string of the form OMSOBJ:type/FQID which represents
the object whose permissions are being checked.permission
- A permission or comma-separated list of permissions to check
against the user's authorized permissions for the resource.
ServiceException
- in the event of repository errors.
java.rmi.RemoteException
- in the event of remote object failure.public java.lang.String[][] getAuthorizations(java.lang.String authType, java.lang.String credHandle, java.lang.String resource, java.lang.String permission) throws ServiceException, java.rmi.RemoteException
OMIRepositoryInterface
getAuthorizations
in interface OMIRepositoryInterface
authType
- The type of authorization check to perform.credHandle
- A credential handle. If null, the current user's authorizations
for the resource are checked.resource
- A string of the form OMSOBJ:type/FQID representing the metadata
object to be checked.permission
- A permission string, or a comma-separated list of permissions
to check.
ServiceException
- in the event of repository errors.
java.rmi.RemoteException
- in the event of remote object failure.public java.util.Date getCreateDate(MetadataInterface mi) throws ServiceException, java.rmi.RemoteException
getCreateDate
in interface OMIRepositoryInterface
ServiceException
java.rmi.RemoteException
public java.util.Date getModifiedDate(MetadataInterface mi) throws ServiceException, java.rmi.RemoteException
getModifiedDate
in interface OMIRepositoryInterface
ServiceException
java.rmi.RemoteException
public java.lang.String getRepositoryType() throws java.rmi.RemoteException
getRepositoryType
in interface OMIRepositoryInterface
java.rmi.RemoteException
- in the event of remote object failure.public boolean isChild(java.lang.String repositoryID) throws java.rmi.RemoteException
isChild
in interface OMIRepositoryInterface
repositoryID
- The ID of the repository to check.
java.rmi.RemoteException
- In the event of remote object failure.public boolean isChild(RepositoryInterface repos) throws java.rmi.RemoteException
isChild
in interface OMIRepositoryInterface
repos
- The repository to check.
java.rmi.RemoteException
- In the event of remote object failure.public boolean isInChild(MetadataInterface metadata) throws java.rmi.RemoteException
isInChild
in interface OMIRepositoryInterface
metadata
- The metadata object to check.
java.rmi.RemoteException
- In the event of remote object failure.public boolean isParent(java.lang.String repositoryID) throws java.rmi.RemoteException
isParent
in interface OMIRepositoryInterface
repositoryID
- The ID of the repository to check.
java.rmi.RemoteException
- In the event of remote object failure.public boolean isParent(RepositoryInterface repos) throws java.rmi.RemoteException
isParent
in interface OMIRepositoryInterface
repos
- The repository to check.
java.rmi.RemoteException
- In the event of remote object failure.public boolean isInParent(MetadataInterface metadata) throws java.rmi.RemoteException
isInParent
in interface OMIRepositoryInterface
metadata
- The metadata object to check.
java.rmi.RemoteException
- In the event of remote object failure.public boolean isInProject(MetadataInterface metadata) throws java.rmi.RemoteException
OMIRepositoryInterface
isInProject
in interface OMIRepositoryInterface
metadata
- The object to check for project membership.
java.rmi.RemoteException
- In the event of remote object failure.public java.util.List getParents() throws java.rmi.RemoteException
OMIRepositoryInterface
getParents
in interface OMIRepositoryInterface
java.rmi.RemoteException
- In the event of remote object failure.public java.util.List getChildren() throws java.rmi.RemoteException
OMIRepositoryInterface
getChildren
in interface OMIRepositoryInterface
java.rmi.RemoteException
- In the event of remote object failure.public java.lang.String getUniqueId() throws java.rmi.RemoteException
RepositoryInterface
getUniqueId
in interface RepositoryInterface
java.rmi.RemoteException
- In the event of remote object failure.public void setFolderItemRefreshInterval(long msecInterval) throws java.rmi.RemoteException
OMIRepositoryInterface
setFolderItemRefreshInterval
in interface OMIRepositoryInterface
msecInterval
- The interval in milliseconds after which a folder's item
information is considered stale.
java.rmi.RemoteException
- In the event of remote object failure.public long getFolderItemRefreshInterval() throws java.rmi.RemoteException
OMIRepositoryInterface
getFolderItemRefreshInterval
in interface OMIRepositoryInterface
java.rmi.RemoteException
- In the event of remote object failure.public void setFolderSubfolderRefreshInterval(long msecInterval) throws java.rmi.RemoteException
OMIRepositoryInterface
setFolderSubfolderRefreshInterval
in interface OMIRepositoryInterface
msecInterval
- The interval in milliseconds after which a folder's subfolder
information is considered stale.
java.rmi.RemoteException
- In the event of remote object failure.public long getFolderSubfolderRefreshInterval() throws java.rmi.RemoteException
OMIRepositoryInterface
getFolderSubfolderRefreshInterval
in interface OMIRepositoryInterface
java.rmi.RemoteException
- In the event of remote object failure.public void setParentRefreshInterval(long msecInterval) throws java.rmi.RemoteException
OMIRepositoryInterface
setParentRefreshInterval
in interface OMIRepositoryInterface
msecInterval
- The interval in milliseconds after which an object's
parent information is considered stale.
java.rmi.RemoteException
- In the event of remote object failure.public long getParentRefreshInterval() throws java.rmi.RemoteException
OMIRepositoryInterface
getParentRefreshInterval
in interface OMIRepositoryInterface
java.rmi.RemoteException
- In the event of remote object failure.public int getCountNoSecurity(Filter filter, java.lang.String association) throws ServiceException, java.rmi.RemoteException
OMIRepositoryInterface
getCountNoSecurity
in interface OMIRepositoryInterface
filter
- A Filter specifying the selection criteria as well as any
template that's desired for the operation.association
- An optional parameter that requests that a specific
association be counted rather than the top level objects. If
this is used, only one top level object can be returned by the
filter, and a template must be supplied to return the
association to count.
ServiceException
- In the event of a server error.
java.rmi.RemoteException
- In the event of remote object failure.public java.lang.String[][] getInheritedPermissions(IdentityInterface identity, MetadataInterface metadata, java.util.List permissions) throws ServiceException, java.rmi.RemoteException
getInheritedPermissions
in interface OMIRepositoryInterface
ServiceException
java.rmi.RemoteException
public java.lang.String[][] getInheritedIdentities(MetadataInterface mi) throws ServiceException, java.rmi.RemoteException
getInheritedIdentities
in interface OMIRepositoryInterface
ServiceException
java.rmi.RemoteException
public boolean isAuthorized(MetadataInterface mi, java.lang.String permission) throws ServiceException, java.rmi.RemoteException
isAuthorized
in interface OMIRepositoryInterface
ServiceException
java.rmi.RemoteException
public MetadataInterface factoryProcess(java.lang.Object o) throws ServiceException, java.rmi.RemoteException
RepositoryInterface
factoryProcess
in interface RepositoryInterface
o
- The repository object that needs to be processed into a smart object.
ServiceException
- If a factory error or repository error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public void addToCache(MetadataInterface newMetadata) throws ServiceException, java.rmi.RemoteException
OMIRepositoryInterface
addToCache
in interface OMIRepositoryInterface
newMetadata
- The new metadata object to add to the cache.
ServiceException
- If an error occurs while adding the new object to the cache.
java.rmi.RemoteException
- In the event of remote object failure.protected final void pulseCheck() throws ServiceException
ServiceException
public void MdObjectCreated(com.sas.metadata.remote.MdEvent e, java.lang.String id) throws java.rmi.RemoteException
java.rmi.RemoteException
public void MdObjectDeleted(com.sas.metadata.remote.MdEvent e, java.lang.String id) throws java.rmi.RemoteException
java.rmi.RemoteException
public void MdObjectsCreated(com.sas.metadata.remote.MdEvent e, java.util.List ids) throws java.rmi.RemoteException
java.rmi.RemoteException
public byte[] toByteArray() throws java.rmi.RemoteException, ServiceException
RepositoryInterface
toByteArray
in interface RepositoryInterface
java.rmi.RemoteException
- In the event of remote object failure.
ServiceException
- If a factory error or repository error occurs.public void fromByteArry(UserContextInterface uci, byte[] data) throws java.rmi.RemoteException, ServiceException
RepositoryInterface
fromByteArry
in interface RepositoryInterface
uci
- A UserContext to use to get credentials and other information.data
- The data array with the repository state.
java.rmi.RemoteException
- In the event of remote object failure.
ServiceException
- If a factory error or repository error occurs.public boolean isDestroyed() throws java.rmi.RemoteException
RepositoryInterface
isDestroyed
in interface RepositoryInterface
java.rmi.RemoteException
- In the event of remote object failure.public com.sas.services.cache.CacheStatistics getCacheStatistics() throws ServiceException, java.rmi.RemoteException
RepositoryInterface
getCacheStatistics
in interface RepositoryInterface
ServiceException
- If a factory error or repository error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public java.lang.String getFactoryKey(java.lang.Object o) throws ServiceException, java.rmi.RemoteException
RepositoryInterface
getFactoryKey
in interface RepositoryInterface
o
- The object to return the factory key for.
ServiceException
- If a service level error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public MetadataInterface produceDefaultMetadata(java.lang.Object o) throws java.rmi.RemoteException, ServiceException
RepositoryInterface
produceDefaultMetadata
in interface RepositoryInterface
o
- The data layer object to return a default smart object for.
java.rmi.RemoteException
- In the event of remote object failure.
ServiceException
- If a repository or service level error occurs.public boolean factoryTest(java.lang.Object testObject, java.lang.String filterString) throws java.rmi.RemoteException, ServiceException
RepositoryInterface
factoryTest
in interface RepositoryInterface
testObject
- The data layer object to test.filterString
- The Factory filter string.
java.rmi.RemoteException
- In the event of remote object failure.
ServiceException
- If a repository or service level error occurs.public com.sas.services.information.rules.EvaluatorInterface getEvaluator(java.lang.Object o)
RepositoryInterface
getEvaluator
in interface RepositoryInterface
o
- The object to test against the rule.
public int isProfileRepository(java.lang.String url) throws java.rmi.RemoteException
RepositoryInterface
isProfileRepository
in interface RepositoryInterface
url
- The URL of the configured repository. This may be null.
java.rmi.RemoteException
- In the event of remote object failure.public int getOMRVersion() throws ServiceException, java.rmi.RemoteException
OMIRepositoryInterface
getOMRVersion
in interface OMIRepositoryInterface
ServiceException
- If a server error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public java.util.List getPermissions() throws ServiceException, java.rmi.RemoteException
OMIRepositoryInterface
getPermissions
in interface OMIRepositoryInterface
MetadataInterface
objects
representing the Permissions in the metadata server.
ServiceException
- If a repository error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public java.util.List getPredefinedPropertyTypes() throws ServiceException, java.rmi.RemoteException
OMIRepositoryInterface
getPredefinedPropertyTypes
in interface OMIRepositoryInterface
MetadataInterface
objects
representing the defined property types.
ServiceException
- If a repository error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public void MdObjectsCreated(com.sas.metadata.remote.MdFactoryEvent e)
public void MdObjectsDeleted(com.sas.metadata.remote.MdFactoryEvent e)
public void MdObjectsModified(com.sas.metadata.remote.MdFactoryEvent e)
public void MdObjectsAdded(com.sas.metadata.remote.MdEvent e, java.util.List items) throws java.rmi.RemoteException
java.rmi.RemoteException
public void MdObjectsRemoved(com.sas.metadata.remote.MdEvent e, java.util.List items) throws java.rmi.RemoteException
java.rmi.RemoteException
public void MdObjectsModified(com.sas.metadata.remote.MdEvent e, java.util.List items) throws java.rmi.RemoteException
java.rmi.RemoteException
public ServerInterface getServer() throws ServiceException, java.rmi.RemoteException
RepositoryInterface
getServer
in interface RepositoryInterface
ServerInterface
that controls this repository.
ServiceException
- If a service level error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public void refreshAllData() throws ServiceException, java.rmi.RemoteException
RepositoryInterface
refreshAllData
in interface RepositoryInterface
ServiceException
- If a repository error occurs during the refresh.
java.rmi.RemoteException
- In the event of remote object failure.public boolean isUserAuthorizedInRepository(java.lang.String permission) throws ServiceException, java.rmi.RemoteException
OMIRepositoryInterface
isUserAuthorizedInRepository
in interface OMIRepositoryInterface
permission
- The permission to check. Usually "WriteMetadata" or
PermissionInterface.PERMISSION_WRITEMETADATA.
ServiceException
- If the permission string is invalid, or a server
error occurs.
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 |