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

Class PersonalRepository

java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
All Implemented Interfaces:
FolderInterface, MetadataInterface, PersonalRepositoryInterface, MutableContainerInterface, PublicObjectContainerInterface, PublicObjectInterface, com.sas.services.util.UpgradeInterface, com.sas.storage.editableproperties.LocalizableProperties, Serializable, Remote

@SASScope("ALL") @BinaryCompatibilityOnly public class PersonalRepository extends Folder 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:
  • Field Details

  • Constructor Details

    • PersonalRepository

      public PersonalRepository() throws RemoteException
      Creates a new PersonalRepository folder.
      Throws:
      RemoteException - if unable to export the remote object.
    • PersonalRepository

      public PersonalRepository(DAVPersonalrepository o) throws RemoteException
      Creates a new PersonalRepository folder that incorporates the DAV personal repository object passed to the constructor.
      Parameters:
      o - DAV personal repository.
      Throws:
      RemoteException - if unable to export the remote object.
    • PersonalRepository

      protected PersonalRepository(Class theClass) throws RemoteException
      Creates a new PersonalRepository folder.
      Parameters:
      theClass - The subclass's class which will be used to determine appropriate RMI socket factories.
      Throws:
      RemoteException - if unable to export the remote object.
    • PersonalRepository

      protected PersonalRepository(DAVPersonalrepository o, Class theClass) throws 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:
      RemoteException - if unable to export the remote object.
  • Method Details

    • getApplicationManager

      public FolderInterface getApplicationManager(String applname) throws ServiceException, 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.
      RemoteException - in the event of remote object failure.
    • getApplicationManager

      public FolderInterface getApplicationManager(int applId) throws ServiceException, 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.
      RemoteException - in the event of remote object failure.
    • registerApplication

      public boolean registerApplication(String applname, String FolderManagerClassName) throws 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:
      RemoteException - in the event of remote object failure.
    • getSupportedApplications

      public List getSupportedApplications() throws 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:
      RemoteException - in the event of remote object failure.
    • getType

      public String getType() throws RemoteException
      Get the smartobject type.
      Specified by:
      getType in interface MetadataInterface
      Overrides:
      getType in class Folder
      Returns:
      The type string ("Folder").
      Throws:
      RemoteException - in the case of network failures