***  This class provides Binary Compatibility only, not Source Compatibility  ***

com.sas.services.information.metadata
Class PersonalRepository

com.sas.services.information.metadata.PersonalRepository
All Implemented Interfaces:
FolderInterface, MetadataInterface, PersonalRepositoryInterface, MutableContainerInterface, PublicObjectContainerInterface, PublicObjectInterface, com.sas.services.util.UpgradeInterface, com.sas.storage.editableproperties.LocalizableProperties, java.io.Serializable, java.rmi.Remote

public class PersonalRepository
implements PersonalRepositoryInterface

Implements the personal repository.

Each user is allocated a personal repository, located at http://davserver/userpath/$uid/PR

Since:
1.1
See Also:
Serialized Form

Field Summary
static java.lang.String DOC_PATH
           
static int DOCUMENTS
           
static int INBOX
           
static java.lang.String INBOX_PATH
           
static int RESULTS
           
static java.lang.String RESULTS_PATH
           
 
Fields inherited from class com.sas.services.information.metadata.Folder
CREATION_DATE, CURRENT_VERSION, MODIFIED_DATE, OLDEST_VERSION, REPOSITORY_CONTENT_MAPPING
 
Fields inherited from class com.sas.services.information.metadata.Metadata
_actionInterfaces, _children, _isCompatible, _isDestroyPending, _isReadCompatible, _myRefreshInterval, _myState, _omrCreateDate, _omrModifyDate, _repository, _repositoryFlag, _repositoryObject, _treeRefreshTime, formats, gmtZone, OMSOBJ_STRING, REPOSITORY_DAV, REPOSITORY_LOMR, REPOSITORY_NONE, REPOSITORY_OMR, SLASH
 
Fields inherited from interface com.sas.services.information.metadata.FolderInterface
FOLDER_TYPE_BIP
 
Fields inherited from interface com.sas.services.information.metadata.MetadataInterface
METADATA_STATE_DELETED, METADATA_STATE_DESTROYED, METADATA_STATE_NEW, METADATA_STATE_NORMAL, PERMISSION_READMETADATA, PERMISSION_WRITEMETADATA
 
Constructor Summary
  PersonalRepository()
          Creates a new PersonalRepository folder.
protected PersonalRepository(java.lang.Class theClass)
          Creates a new PersonalRepository folder.
  PersonalRepository(DAVPersonalrepository o)
          Creates a new PersonalRepository folder that incorporates the DAV personal repository object passed to the constructor.
protected PersonalRepository(DAVPersonalrepository o, java.lang.Class theClass)
          Creates a new PersonalRepository folder that incorporates the DAV personal repository object passed to the constructor.
 
Method Summary
 FolderInterface getApplicationManager(int applId)
          Each folder in the personal repository is managed by an application manager.
 FolderInterface getApplicationManager(java.lang.String applname)
          Each folder in the personal repository is managed by an application manager.
 java.util.List getSupportedApplications()
          Return a list of the currently supported applications.
 java.lang.String getType()
          Get the smartobject type.
 boolean registerApplication(java.lang.String applname, java.lang.String FolderManagerClassName)
          Register an application.
 
Methods inherited from class com.sas.services.information.metadata.Folder
addChild, addItem, addNewItem, addSubfolder, copyTo, delete, deleteItem, deleteSubfolder, getChildAt, getChildCount, getChildren, getChildren, getContentCreateDate, getContentInfo, getContentModifyDate, getFolderRefresh, getFolderType, getItem, getItemByClass, getItemByType, getItemRefresh, getItems, getItemsByClass, getItemsByType, getItemSublist, getItemSublist, getLocalizableProperties, getParent, getPath, getSubfolder, getSubfolders, getTotalNumberOfItems, hasContentBackedItems, hasContentBacking, hasDuplicate, hasDuplicateSubfolder, hasDuplicateSubfolder, insertChild, isEmpty, isItemNameUnique, makeSubfolder, makeSubfolder, mapNameToFilesystem, mapUrlToFilesystem, moveMembersOnOverflow, moveTo, newChild, newServiceObject, refresh, removeChild, removeItem, removeSubfolder, setContentCreateDate, setContentModifyDate, setFolderRefresh, setFolderType, setItemRefresh, setLocalizableProperties, setName, setRepository, upgradeFromPreviousVersion
 
Methods inherited from class com.sas.services.information.metadata.Metadata
add, addAccessControl, addAttribute, addAttributes, addDocument, addExtension, addGroup, addImplementor, addKeyword, addObjectProperty, addObjectProperty, addPermissions, addProcessorInterface, addPrompt, addPropertySet, addRemark, addResponsibleParty, addToList, addTransactionListener, addUsedByPrototype, checkin, checkout, checkPulse, clearInformationService, commit, countAssociatedObjects, deleteAttribute, deleteAttributes, deleteRootObject, destroy, fromByteArray, getAccessControls, getAttribute, getAttributes, getAuthorizationUtil, getContainer, getCreateDate, getDefaultLocalizableProperties, getDescription, getDocuments, getEntityKey, getEntityURL, getExtensions, getGroups, getGUID, getIdentifier, getIdentities, getImplementors, getInformationService, getKeywords, getLockedBy, getModifyDate, getName, getObjectProperties, getObjectURI, getParentPath, getParents, getPath, getPaths, getPathUrl, getPathUrl, getPermission, getPermissions, getPermissions, getPreviousVersionNames, getPrimaryPropertyGroup, getProcessorInterface, getPrompt, getPrompts, getPropertyBag, getPropertySets, getRemarksList, getReposId, getRepository, getRepositoryEntity, getRepositoryName, getReposKey, getResponsibleParties, getState, getTrackingId, getTreeRefresh, getTypeDescriptor, getUsageVersion, getUsedByPrototypes, getUsingPrototype, getVersion, hashCode, isAuthorized, isCompatible, isConnectionException, isDeleted, isDestroyed, isLoggingEnabled, isLoggingEnabled, isObjectAlive, isReadCompatible, logFormat, logFormat, logFormat, logFormat, logFormat, logFormat, logFormat, logFormat, logMessage, logMessage, logMessage, logMessage, logThrowable, logThrowable, notifyTransactionListeners, removeAccessControl, removeDocument, removeExtension, removeFromList, removeGroup, removeImplementor, removeKeyword, removeObjectProperty, removePermissions, removePrompt, removePropertySet, removeResponsibleParty, removeUsedByPrototype, rollback, setAttribute, setAttributes, setCompatibility, setDefaultLocalizableProperties, setDeleted, setDescription, setDocuments, setExtensions, setGroups, setGUID, setKeywords, setObjectProperties, setPermission, setPrimaryPropertyGroup, setPrompt, setPrompts, setRemarksList, setTreeRefresh, setUsingPrototype, startTransaction, toByteArray, toString, transactionEvent, uncheckout, update, updateFromBag, validateNameAndFolder, validateNameAndFolder, version
 
Methods inherited from interface com.sas.services.information.metadata.FolderInterface
addItem, addNewItem, addSubfolder, deleteItem, deleteSubfolder, getContentCreateDate, getContentInfo, getContentModifyDate, getFolderType, getItem, getItemByClass, getItemByType, getItems, getItemsByClass, getItemsByType, getItemSublist, getItemSublist, getParent, getPath, getSubfolder, getSubfolders, getTotalNumberOfItems, hasDuplicate, hasDuplicateSubfolder, isEmpty, isItemNameUnique, makeSubfolder, makeSubfolder, moveMembersOnOverflow, removeItem, removeSubfolder, setContentCreateDate, setContentModifyDate, setFolderType
 
Methods inherited from interface com.sas.services.information.metadata.MetadataInterface
add, addAccessControl, addAttribute, addAttributes, addDocument, addExtension, addGroup, addImplementor, addKeyword, addObjectProperty, addObjectProperty, addPermissions, addPrompt, addPropertySet, addRemark, addResponsibleParty, addTransactionListener, addUsedByPrototype, checkin, checkout, commit, copyTo, countAssociatedObjects, delete, deleteAttribute, deleteAttributes, destroy, getAccessControls, getAttribute, getAttributes, getAuthorizationUtil, getCreateDate, getDescription, getDocuments, getEntityKey, getEntityURL, getExtensions, getGroups, getGUID, getIdentities, getImplementors, getKeywords, getLockedBy, getModifyDate, getObjectProperties, getParentPath, getParents, getPath, getPaths, getPermission, getPermissions, getPermissions, getPreviousVersionNames, getPrimaryPropertyGroup, getPrompt, getPrompts, getPropertyBag, getPropertySets, getRemarksList, getReposId, getRepository, getRepositoryEntity, getRepositoryName, getReposKey, getResponsibleParties, getState, getTrackingId, getUsageVersion, getUsedByPrototypes, getUsingPrototype, getVersion, isAuthorized, isCompatible, isDeleted, isDestroyed, isLoggingEnabled, isObjectAlive, isReadCompatible, logMessage, mapNameToFilesystem, mapUrlToFilesystem, moveTo, newServiceObject, refresh, removeAccessControl, removeDocument, removeExtension, removeGroup, removeImplementor, removeKeyword, removeObjectProperty, removePermissions, removePrompt, removePropertySet, removeResponsibleParty, removeUsedByPrototype, rollback, setAttribute, setAttributes, setDeleted, setDescription, setDocuments, setExtensions, setGroups, setGUID, setKeywords, setName, setObjectProperties, setPermission, setPrimaryPropertyGroup, setPrompt, setPrompts, setRemarksList, setRepository, setUsingPrototype, startTransaction, toByteArray, transactionEvent, uncheckout, update, updateFromBag, version
 
Methods inherited from interface com.sas.services.information.publicobject.MutableContainerInterface
addChild, insertChild, removeChild
 
Methods inherited from interface com.sas.services.information.publicobject.PublicObjectContainerInterface
getChildAt, getChildCount, getChildren, getChildren, newChild
 
Methods inherited from interface com.sas.services.information.publicobject.PublicObjectInterface
addProcessorInterface, getContainer, getIdentifier, getName, getObjectURI, getPathUrl, getProcessorInterface, getTypeDescriptor
 

Field Detail

INBOX

public static final int INBOX
See Also:
Constant Field Values

DOCUMENTS

public static final int DOCUMENTS
See Also:
Constant Field Values

RESULTS

public static final int RESULTS
See Also:
Constant Field Values

INBOX_PATH

public static final java.lang.String INBOX_PATH
See Also:
Constant Field Values

RESULTS_PATH

public static final java.lang.String RESULTS_PATH
See Also:
Constant Field Values

DOC_PATH

public static final java.lang.String DOC_PATH
See Also:
Constant Field Values
Constructor Detail

PersonalRepository

public PersonalRepository()
                   throws java.rmi.RemoteException
Creates a new PersonalRepository folder.

Throws:
java.rmi.RemoteException - if unable to export the remote object.

PersonalRepository

public PersonalRepository(DAVPersonalrepository o)
                   throws java.rmi.RemoteException
Creates a new PersonalRepository folder that incorporates the DAV personal repository object passed to the constructor.

Parameters:
o - DAV personal repository.
Throws:
java.rmi.RemoteException - if unable to export the remote object.

PersonalRepository

protected PersonalRepository(java.lang.Class theClass)
                      throws java.rmi.RemoteException
Creates a new PersonalRepository folder.

Parameters:
theClass - The subclass's class which will be used to determine appropriate RMI socket factories.
Throws:
java.rmi.RemoteException - if unable to export the remote object.

PersonalRepository

protected PersonalRepository(DAVPersonalrepository o,
                             java.lang.Class theClass)
                      throws java.rmi.RemoteException
Creates a new PersonalRepository folder that incorporates the DAV personal repository object passed to the constructor.

Parameters:
o - DAV personal repository.
theClass - The subclass's class which will be used to determine appropriate RMI socket factories.
Throws:
java.rmi.RemoteException - if unable to export the remote object.
Method Detail

getApplicationManager

public FolderInterface getApplicationManager(java.lang.String applname)
                                      throws ServiceException,
                                             java.rmi.RemoteException
Each folder in the personal repository is managed by an application manager. The application manager class is registered using the registerApplication method.

Specified by:
getApplicationManager in interface PersonalRepositoryInterface
Parameters:
applname - The name of the application (eg. MyInbox)
Returns:
FolderInterface An instance of the registered application manager class
Throws:
ServiceException - if a service level error occurs.
java.rmi.RemoteException - in the event of remote object failure.

getApplicationManager

public FolderInterface getApplicationManager(int applId)
                                      throws ServiceException,
                                             java.rmi.RemoteException
Each folder in the personal repository is managed by an application manager. The application manager class is registered using the registerApplication method.

Specified by:
getApplicationManager in interface PersonalRepositoryInterface
Parameters:
applId - The name of the application (eg. MyInbox)
Returns:
FolderInterface An instance of the registered application manager class
Throws:
ServiceException - If a service level error occurs.
java.rmi.RemoteException - in the event of remote object failure.

registerApplication

public boolean registerApplication(java.lang.String applname,
                                   java.lang.String FolderManagerClassName)
                            throws java.rmi.RemoteException
Register an application. To register an application pass an application name and a class name that implements the FolderManagerInterface for this application.

Specified by:
registerApplication in interface PersonalRepositoryInterface
Parameters:
applname - A string that represents the application's name.
FolderManagerClassName - A string class name. The class provides the implementation for this application and will be loaded on demand.
Returns:
boolean true if the registration was successful, false otherwise
Throws:
java.rmi.RemoteException - in the event of remote object failure.

getSupportedApplications

public java.util.List getSupportedApplications()
                                        throws java.rmi.RemoteException
Return a list of the currently supported applications. The list contains the names of the applications.

Specified by:
getSupportedApplications in interface PersonalRepositoryInterface
Returns:
List A list of application names that are currently registered
Throws:
java.rmi.RemoteException - in the event of remote object failure.

getType

public java.lang.String getType()
                         throws java.rmi.RemoteException
Get the smartobject type.

Specified by:
getType in interface MetadataInterface
Overrides:
getType in class Folder
Returns:
The type string ("Folder").
Throws:
java.rmi.RemoteException - in the case of network failures

***  This class provides Binary Compatibility only, not Source Compatibility  ***




Copyright © 2009 SAS Institute Inc. All Rights Reserved.