|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.services.information.DAVRepository
public class DAVRepository
The DAV Repository is a single persistent store for information used by client applications. It interfaces to a webDAV server to add, retrieve and update data. DAVRepository documentation
Repositories are defined in the Information Service configuration metadata. NB. Do not specify a trailing slash in the base parameter.
Field Summary |
---|
Fields inherited from interface com.sas.services.information.RepositoryInterface |
---|
PROFILE_BEST, PROFILE_NO, PROFILE_POSSIBLE |
Constructor Summary | |
---|---|
|
DAVRepository()
Constructs a default instance. |
protected |
DAVRepository(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 mi)
|
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. |
void |
checkin(MetadataInterface entity)
Check in the entity |
void |
checkin(MetadataInterface entity,
java.lang.String comment)
Check in the entity |
void |
checkout(MetadataInterface entity)
Check out the entity |
static void |
clearInformationService()
|
void |
close()
Close the connection to the DAV server. |
boolean |
connect(java.lang.String host,
int port,
java.lang.String id,
java.lang.String password,
java.lang.String base)
Connect a user to a repository. |
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)
Connect a user to a repository. |
MetadataInterface |
copyTo(DAVEntityInterface de,
DAVFolderInterface f)
Deprecated. |
MetadataInterface |
copyTo(DAVEntityInterface de,
DAVFolderInterface f,
java.lang.String name)
Copy a smart object. |
void |
deleteEntity(MetadataInterface input)
Delete an entity 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 with this repository key (reposKey). |
MetadataInterface |
fetch(java.lang.String repositoryKey,
boolean bypassCache)
Fetch an object from the repository with this repository key (reposKey). |
MetadataInterface |
fetchByUrl(java.lang.String entityURL,
boolean bypassCache)
Fetch an object from the repository given the URL. |
java.io.InputStream |
fetchContents(java.lang.String repositoryId)
Fetch an object's content from the repository. |
void |
fetchContents(java.lang.String repositoryId,
java.io.File fout)
Fetch an object's content from the repository. |
com.sas.services.information.RepositoryData |
fetchRepositoryData(java.lang.String repositoryKey)
|
protected MetadataInterface |
fetchUsingUrl(java.lang.String url,
java.util.Map extraProperties)
|
void |
freeResource()
Free the resource previously acquired. |
void |
fromByteArry(UserContextInterface uci,
byte[] data)
Initialize an instance of a repository from state saved in a byte array. |
java.lang.String |
getBase()
Get the search base. |
com.sas.services.cache.CacheStatistics |
getCacheStatistics()
Get the cache statistics for the repository cache. |
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. |
java.lang.String |
getHost()
Get the name of the host this repository is running on. |
boolean |
getHttps()
Return whether this repository is using SSL (https://) or not |
java.lang.String |
getHttpUrl()
Get the HTTP URL that represents the specific instance for a repository. |
IdentityInterface |
getIdentity()
Get the authenticated user identity. |
static InformationServiceInterface |
getInformationService()
Gets the informationService attribute of the DAVRepository class |
java.lang.String |
getISName()
Get the Information Service configuration name for this repository if it exists. |
java.util.List |
getItems(DAVFolderInterface d)
|
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. |
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 by path. |
PersonalRepositoryInterface |
getPersonalRepository()
Get the personal repository. |
int |
getPort()
Get the port number of the server this repository is using. |
java.util.List |
getPreviousVersionNames(MetadataInterface entity)
Returns a list of version names for the object |
java.lang.String |
getPrincipal()
Get the principal name this instance connected with. |
java.lang.String |
getReposIdwoTypeFromUrl(java.lang.String fullUrl)
Extract the reposId without the type appended from the url provided. |
FolderInterface |
getRootFolder(java.lang.String name)
Get a root folder in the repository. |
java.util.List |
getRootFolders()
Get all the root folders int the repository. |
ServerInterface |
getServer()
Get the ServerInterface that controls this repository. |
java.lang.String |
getServerString()
Returns the identifier string from the connected WebDAV server |
com.sas.services.webdav.SharedResourceInterface |
getSharedResource()
Get an object that represents the shared resource |
MetadataInterface |
getTrackedObject(int trackingId)
Deprecated. |
java.lang.String |
getUniqueId()
Get a unique identifier for this repository instance. |
java.lang.String |
getUrl()
Get the URL that represents the specific instance for a repository. |
static java.lang.String |
getUrlFromEntityKey(java.lang.String entityKey)
Converts a DAV entity key to an HTTP url. |
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. |
static java.lang.String |
getUserPRInbox(java.lang.String userid,
UserContextInterface uc)
Used to get the URL for the user's inbox. |
MetadataInterface |
getVersion(MetadataInterface entity,
java.lang.String versionName)
Retrieves a particular version of the specified object |
boolean |
isDestroyed()
Check if the repostiory instance has been closed. |
boolean |
isEqual(java.lang.Object o)
Check to see whether the two repositories point to the same url |
int |
isProfileRepository(java.lang.String url)
Returns true if this repository supports profile storage. |
PersonInterface |
makePersonalAnchor()
|
FolderInterface |
makeRootFolder(java.lang.String name)
Make a root folder in the repository. |
void |
metadataChange(MetadataChangeEvent event)
|
MetadataInterface |
moveTo(DAVEntityInterface de,
DAVFolderInterface f)
Deprecated. |
MetadataInterface |
moveTo(DAVEntityInterface de,
DAVFolderInterface f,
java.lang.String name)
Move a smart object. |
java.lang.Object |
narrow(com.sas.services.information.RepositoryData entity)
Narrow down the type of this entity and return a class that represents this type via the DAVFactory. |
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. |
MetadataInterface |
newMetadata(java.lang.String repositoryId,
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. |
void |
refreshAllData()
Refresh all of the data that's in the cache. |
void |
refreshEntity(MetadataInterface mi)
Refresh an existing entity in the repository. |
void |
removeListener(RepositoryListenerInterface listener)
Remove a listener from the list of active event listeners for this repository. |
FolderInterface |
removeRootFolder(java.lang.String folderName)
Root DAV folders cannot be removed dynamically. |
void |
runInformationServiceTimer()
|
java.util.List |
search(FilterInterface filter)
Search the repository using the provided filter. |
FilteredFolderInterface |
searchTree(DAVFolderInterface folder,
FilterInterface filter,
int levels)
Search the specified folder tree in 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 |
setACLFromStore(DAVEntityInterface entity)
Retrieve the ACL property information and create the access control list for manipulating smart object access control information |
void |
setDomain(java.lang.String domain)
Set the string for the security domain this server is running in. |
void |
setISName(java.lang.String name)
Set the name that was used to connect to the repository. |
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. |
boolean |
supportsACL()
Return whether this repository supports ACL or not |
boolean |
supportsSEARCH()
Return whether this repository supports SEARCH or not |
byte[] |
toByteArray()
Write the current state of the repository to a byte array. |
java.lang.String |
toString()
Return a printable string to represent this instance. |
int |
trackEntity(MetadataInterface entity)
Add a new object to the tracking cache. |
void |
uncheckout(MetadataInterface entity)
Uncheck out/Cancel update |
void |
updateEntity(DAVEntityInterface input)
Update an existing entity in the repository. |
void |
version(MetadataInterface entity)
Put the entity under version control |
Constructor Detail |
---|
public DAVRepository() throws java.rmi.RemoteException
java.rmi.RemoteException
- if unable to export the remote object.protected DAVRepository(java.lang.Class theClass) throws java.rmi.RemoteException
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 static java.lang.String getUrlFromEntityKey(java.lang.String entityKey)
entityKey
- The entity key to be converted
public static java.lang.String getUserPRInbox(java.lang.String userid, UserContextInterface uc) throws ServiceException, java.rmi.RemoteException
userid
- userid of the inbox you want: format is userid, domain\\userid, user@domainuc
- userContext that can be used to obtain information about the webDAV server
ServiceException
- If a repository error occurs.
java.rmi.RemoteException
- In the event of remote object failure.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
- in case of network failurespublic java.lang.String getISName() throws java.rmi.RemoteException
RepositoryInterface
getISName
in interface RepositoryInterface
java.rmi.RemoteException
- in the event of remote object failure.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 PersonInterface getUser() throws java.rmi.RemoteException
getUser
in interface RepositoryInterface
java.rmi.RemoteException
- in the event of remote access errors.public IdentityInterface getIdentity() throws java.rmi.RemoteException
RepositoryInterface
getIdentity
in interface RepositoryInterface
java.rmi.RemoteException
- In the event of remote object failure.public MetadataInterface newMetadata(java.lang.String repositoryId, java.lang.String name, java.lang.String type) throws ServiceException, java.rmi.RemoteException
newMetadata
in interface RepositoryInterface
repositoryId
- 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 repository 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, boolean bypassCache) throws ServiceException, java.rmi.RemoteException
If the 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 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) throws ServiceException, java.rmi.RemoteException
fetch
in interface RepositoryInterface
repositoryKey
- The identifier for the object from the repository.
ServiceException
- in the event of repository failures
java.rmi.RemoteException
- in the event of network failurespublic 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
- in the case of repository failures
java.rmi.RemoteException
- in the case of network failurespublic 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 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
The host, port, and base make up the repository url which has the format "dav://host:port/base" in DAVRepository. Each entity in the repository is then known by a reposId, which is the path of the resource relative to this repository url. The id and password are used to authenticate against the DAV/HTTP server.
connectWithProxy
in interface RepositoryInterface
host
- The host name for the DAV serverport
- The port to be used in the url for the DAV serverid
- The user name to be used for authenticationpassword
- The password to be used for authenticationbase
- The virtual root. Generally authentication domains are created for different virtual
roots in a web/DAV server. So the authentication is tried against the url that contains this base.proxy
- The proxy URL string if a proxy is to be usedisSecure
- SSL to be used or not
ServiceException
- in the case of repository failures
java.rmi.RemoteException
- in the case of network failurespublic 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
The host, port, and base make up the repository url which has the format "dav://host:port/base" in DAVRepository. Each entity in the repository is then known by a reposId, which is the path of the resource relative to this repository url. The id and password are used to authenticate against the DAV/HTTP server.
connect
in interface RepositoryInterface
host
- The host name for the DAV serverport
- The port to be used in the url for the DAV serverid
- The user name to be used for authenticationpassword
- The password to be used for authenticationbase
- The virtual root. Generally authentication domains are created for different virtual
roots in a web/DAV server. So the authentication is tried against the url that contains this base.
ServiceException
- in the case of repository failures
java.rmi.RemoteException
- in the case of network failurespublic void deleteEntity(MetadataInterface input) throws ServiceException, java.rmi.RemoteException
deleteEntity
in interface RepositoryInterface
input
- The metadata object to delete from the repository
ServiceException
- in the case of repository failures
java.rmi.RemoteException
- in the case of network failurespublic void addEntity(MetadataInterface input) throws ServiceException, java.rmi.RemoteException
addEntity
in interface RepositoryInterface
input
- The metadata object to be added to the repository
ServiceException
- in the case of repository failures
java.rmi.RemoteException
- in the case of network failurespublic java.lang.String getUrl() throws java.rmi.RemoteException
getUrl
in interface RepositoryInterface
java.rmi.RemoteException
- in case of network failurespublic java.lang.String getDomain() throws java.rmi.RemoteException
getDomain
in interface RepositoryInterface
java.rmi.RemoteException
- in case of network failurespublic void setDomain(java.lang.String domain) throws java.rmi.RemoteException
setDomain
in interface RepositoryInterface
domain
- The new domain value
java.rmi.RemoteException
- in case of network failurespublic java.lang.String getHost() throws java.rmi.RemoteException
getHost
in interface RepositoryInterface
java.rmi.RemoteException
- in case of network failurespublic int getPort() throws java.rmi.RemoteException
getPort
in interface RepositoryInterface
java.rmi.RemoteException
- in case of network failurespublic java.lang.String getPrincipal() throws java.rmi.RemoteException
getPrincipal
in interface RepositoryInterface
java.rmi.RemoteException
- in case of network failurespublic java.lang.String getBase() throws java.rmi.RemoteException
getBase
in interface RepositoryInterface
java.rmi.RemoteException
- in the event of a network failure.public MetadataInterface getTrackedObject(int trackingId) throws java.rmi.RemoteException
getTrackedObject
in interface RepositoryInterface
trackingId
- Description of the Parameter
java.rmi.RemoteException
- in case of network failurespublic void close() throws java.rmi.RemoteException
close
in interface RepositoryInterface
java.rmi.RemoteException
- in the event of a network failurepublic 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 getRootFolder(java.lang.String name) throws ServiceException, java.rmi.RemoteException
Root folders are uniquely identified by a string name.
getRootFolder
in interface RepositoryInterface
name
-
ServiceException
- in the case of repository failures
java.rmi.RemoteException
- in the case of network failurespublic 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 MetadataInterface getObjectByPath(PathUrl url) throws ServiceException, java.rmi.RemoteException
RepositoryInterface
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
- path
- type
-
ServiceException
- in the case of repository failures
java.rmi.RemoteException
- in the case of network failurespublic MetadataInterface getObjectByPath(java.lang.String rootFolderName, java.lang.String path, java.lang.String 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
- path
- type
-
ServiceException
- in the case of repository failures
java.rmi.RemoteException
- in the case of network failurespublic MetadataInterface getObjectByPathString(java.lang.String rootFolderName, java.lang.String path, java.lang.String 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.
getObjectByPathString
in interface RepositoryInterface
rootFolderName
- path
- type
-
ServiceException
- in the case of repository failures
java.rmi.RemoteException
- in the case of network failurespublic FilteredFolderInterface searchTree(java.lang.String rootFolderName, FilterInterface filter) throws ServiceException, java.rmi.RemoteException
searchTree
in interface RepositoryInterface
rootFolderName
- Name of the root folder.filter
- A filter to use to limit the returned data.
ServiceException
- in the case of repository failures
java.rmi.RemoteException
- in the case of network failurespublic 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 FilteredFolderInterface searchTree(DAVFolderInterface folder, FilterInterface filter, int levels) throws ServiceException, java.rmi.RemoteException
folder
- 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 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, but no other associated objects.
browseSearch
in interface RepositoryInterface
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 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
- Ignored.
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.
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.
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
- Ignored for this implementation
ServiceException
- If a repository error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public void addListener(RepositoryListenerInterface listener) throws ServiceException, java.rmi.RemoteException
RepositoryInterface
addListener
in interface RepositoryInterface
listener
- The object to add to the repository's list of
event listeners.
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of network errors.public void removeListener(RepositoryListenerInterface listener) throws ServiceException, java.rmi.RemoteException
RepositoryInterface
removeListener
in interface RepositoryInterface
listener
- The object to remove from the repository's list of
event listeners.
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of network errors.public ChildRepositoryInterface newChild() throws ServiceException, java.rmi.RemoteException
RepositoryInterface
newChild
in interface RepositoryInterface
ServiceException
- if a repository error occurs.
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 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 boolean isDestroyed() throws java.rmi.RemoteException
RepositoryInterface
isDestroyed
in interface RepositoryInterface
java.rmi.RemoteException
- In the event of remote object failure.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 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 java.rmi.RemoteException, ServiceException
RepositoryInterface
getFactoryKey
in interface RepositoryInterface
o
- The object to return the factory key for.
java.rmi.RemoteException
- In the event of remote object failure.
ServiceException
- If a service level error occurs.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 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 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 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 java.io.InputStream fetchContents(java.lang.String repositoryId) throws ServiceException, java.rmi.RemoteException
fetchContents
in interface DAVRepositoryInterface
repositoryId
- The identifier for the object from the repository.
ServiceException
- in the event of repository failures
java.rmi.RemoteException
- in the event of network failurespublic void fetchContents(java.lang.String repositoryId, java.io.File fout) throws ServiceException, java.rmi.RemoteException
DAVRepositoryInterface
fetchContents
in interface DAVRepositoryInterface
fout
- The file to which the content should be written
ServiceException
- in the event of repository failures
java.rmi.RemoteException
- in the event of network failurespublic java.lang.String getHttpUrl() throws java.rmi.RemoteException
getHttpUrl
in interface DAVRepositoryInterface
java.rmi.RemoteException
- in case of network failurespublic void updateEntity(DAVEntityInterface input) throws ServiceException, java.rmi.RemoteException
updateEntity
in interface DAVRepositoryInterface
input
- The entity to be updated on the backing store
ServiceException
- in the case of repository failures
java.rmi.RemoteException
- in the case of network failurespublic java.lang.String getReposIdwoTypeFromUrl(java.lang.String fullUrl)
getReposIdwoTypeFromUrl
in interface DAVRepositoryInterface
fullUrl
- The url that needs to be broken up into the repository
url and the reposId without a type qualifier
public PersonInterface makePersonalAnchor() throws ServiceException, java.rmi.RemoteException
makePersonalAnchor
in interface DAVRepositoryInterface
ServiceException
java.rmi.RemoteException
public PersonalRepositoryInterface getPersonalRepository() throws ServiceException, java.rmi.RemoteException
getPersonalRepository
in interface DAVRepositoryInterface
ServiceException
- in the case of repository failures
java.rmi.RemoteException
- in the case of network failurespublic boolean getHttps()
getHttps
in interface DAVRepositoryInterface
public boolean supportsACL()
DAVRepositoryInterface
supportsACL
in interface DAVRepositoryInterface
public boolean supportsSEARCH()
DAVRepositoryInterface
supportsSEARCH
in interface DAVRepositoryInterface
public java.util.List getItems(DAVFolderInterface d)
getItems
in interface DAVRepositoryInterface
public com.sas.services.information.RepositoryData fetchRepositoryData(java.lang.String repositoryKey) throws ServiceException, java.rmi.RemoteException
fetchRepositoryData
in interface DAVRepositoryInterface
ServiceException
java.rmi.RemoteException
public MetadataInterface copyTo(DAVEntityInterface de, DAVFolderInterface f) throws ServiceException, java.rmi.RemoteException
copyTo
in interface DAVRepositoryInterface
ServiceException
- in the case of repository failures
java.rmi.RemoteException
- in case of network failurespublic MetadataInterface moveTo(DAVEntityInterface de, DAVFolderInterface f) throws ServiceException, java.rmi.RemoteException
moveTo
in interface DAVRepositoryInterface
ServiceException
- in the case of repository failures
java.rmi.RemoteException
- in case of network failurespublic MetadataInterface copyTo(DAVEntityInterface de, DAVFolderInterface f, java.lang.String name) throws ServiceException, java.rmi.RemoteException
DAVRepositoryInterface
copyTo
in interface DAVRepositoryInterface
de
- The repository entity to be copiedf
- The folder to contain the new objectname
- The object's new name - null or blank takes name of existing object
ServiceException
- in the case of repository failures
java.rmi.RemoteException
- in the case of network failurespublic MetadataInterface moveTo(DAVEntityInterface de, DAVFolderInterface f, java.lang.String name) throws ServiceException, java.rmi.RemoteException
DAVRepositoryInterface
moveTo
in interface DAVRepositoryInterface
de
- The repository entity to be movedf
- The folder to contain the new objectname
- The object's new name - null or blank takes name of existing object
ServiceException
- in the case of repository failures
java.rmi.RemoteException
- in the case of network failurespublic void setACLFromStore(DAVEntityInterface entity) throws java.rmi.RemoteException
setACLFromStore
in interface DAVRepositoryInterface
entity
- The "in memory" smart object
java.rmi.RemoteException
- if a networking issue is encountered.public void version(MetadataInterface entity) throws ServiceException, java.rmi.RemoteException
version
in interface DAVRepositoryInterface
entity
- The entity that represents the item to be put under version control
ServiceException
- in the case of repository failures
java.rmi.RemoteException
- in the case of network failurespublic void checkout(MetadataInterface entity) throws ServiceException, java.rmi.RemoteException
checkout
in interface DAVRepositoryInterface
entity
- The entity to be checked out of the repository
ServiceException
- in the case of repository failures
java.rmi.RemoteException
- in the case of network failurespublic void checkin(MetadataInterface entity) throws ServiceException, java.rmi.RemoteException
checkin
in interface DAVRepositoryInterface
entity
- The entity to be checked in to the repository
ServiceException
- in the case of repository failures
java.rmi.RemoteException
- in the case of network failurespublic void checkin(MetadataInterface entity, java.lang.String comment) throws ServiceException, java.rmi.RemoteException
checkin
in interface DAVRepositoryInterface
entity
- The entity to be checked in to the repositorycomment
- A comment for the new version that will be created
ServiceException
- in the case of repository failures
java.rmi.RemoteException
- in the case of network failurespublic void uncheckout(MetadataInterface entity) throws ServiceException, java.rmi.RemoteException
uncheckout
in interface DAVRepositoryInterface
entity
- The entity to be unchecked out
ServiceException
- in the case of repository failures
java.rmi.RemoteException
- in the case of network failurespublic int trackEntity(MetadataInterface entity) throws java.rmi.RemoteException
trackEntity
in interface DAVRepositoryInterface
java.rmi.RemoteException
- in the case of network failurespublic void addToCache(MetadataInterface mi) throws java.rmi.RemoteException
addToCache
in interface DAVRepositoryInterface
java.rmi.RemoteException
public com.sas.services.webdav.SharedResourceInterface getSharedResource() throws java.rmi.RemoteException
getSharedResource
in interface DAVRepositoryInterface
java.rmi.RemoteException
- in the case of network failurespublic java.util.List getPreviousVersionNames(MetadataInterface entity) throws ServiceException, java.rmi.RemoteException
getPreviousVersionNames
in interface DAVRepositoryInterface
entity
- The object for which a list of versions is required
ServiceException
- in the case of repository failures
java.rmi.RemoteException
- in the case of network failurespublic MetadataInterface getVersion(MetadataInterface entity, java.lang.String versionName) throws ServiceException, java.rmi.RemoteException
getVersion
in interface DAVRepositoryInterface
entity
- The object for which the specified version is being requestedversionName
- The name of the version (one obtained from getPreviousVersionNames)
ServiceException
- in the case of repository failures
java.rmi.RemoteException
- in the case of network failurespublic void metadataChange(MetadataChangeEvent event) throws java.rmi.RemoteException
metadataChange
in interface MetadataChangeListener
java.rmi.RemoteException
public void runInformationServiceTimer()
runInformationServiceTimer
in interface com.sas.services.information.InformationServiceTimerClient
public java.lang.Object narrow(com.sas.services.information.RepositoryData entity) throws java.rmi.RemoteException
narrow
in interface RepositoryInterface
entity
- The general entity to be narrowed
java.rmi.RemoteException
- in case of network failurespublic boolean isEqual(java.lang.Object o) throws java.rmi.RemoteException
isEqual
in interface RepositoryInterface
o
- The repository to be compared against
java.rmi.RemoteException
- in case of network failurespublic FolderInterface makeRootFolder(java.lang.String name) throws ServiceException, java.rmi.RemoteException
DAV root folders cannot be created dynamically. They have to be created using the server configuration tools.
makeRootFolder
in interface RepositoryInterface
name
- The name of the folder
null
if a folder
was not created.
ServiceException
- if unable to create the root folder.
java.rmi.RemoteException
- if a network error occurs.public void refreshEntity(MetadataInterface mi) throws ServiceException, java.rmi.RemoteException
refreshEntity
in interface RepositoryInterface
mi
- The entity to be updated on the backing store
ServiceException
- in the case of network failures
java.rmi.RemoteException
- in the case of repository failurespublic void freeResource() throws java.rmi.RemoteException
java.rmi.RemoteException
- In the event of remote object failure.protected MetadataInterface fetchUsingUrl(java.lang.String url, java.util.Map extraProperties) throws ServiceException, java.rmi.RemoteException
ServiceException
java.rmi.RemoteException
public java.lang.String toString()
toString
in class java.rmi.server.RemoteObject
public java.lang.String getServerString()
DAVRepositoryInterface
getServerString
in interface DAVRepositoryInterface
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |