public Collection getDeletedSpaces() {
   try {
     return getWorkspacesManager().getDeletedSpaces(context);
   } catch (WorkspacesManagerException e) {
     context.put("haserror", "1");
     context.put("lasterror", e.getMessage());
     return Collections.EMPTY_LIST;
   }
 }
 public String getApplicationName(String docFullname) {
   try {
     return getWorkspacesManager().getApplicationName(docFullname, context);
   } catch (WorkspacesManagerException e) {
     context.put("haserror", "1");
     context.put("lasterror", e.getMessage());
     return new String();
   }
 }
 /** @deprecated */
 public List getStories(String spaceName, int howMany, int startAt) {
   try {
     return getWorkspacesManager().getStoriesForSpace(spaceName, startAt, howMany, context);
   } catch (WorkspacesManagerException e) {
     context.put("haserror", "1");
     context.put("lasterror", e.getMessage());
     return Collections.EMPTY_LIST;
   }
 }
 /**
  * @param spaceName the wiki name of the workspace to retrieve the readers of
  * @return the list of wiki name of members of the space with the role reader
  */
 public Collection getReaders(String spaceName) {
   try {
     return getWorkspacesManager().getReaders(spaceName, context);
   } catch (WorkspacesManagerException e) {
     context.put("haserror", "1");
     context.put("lasterror", e.getMessage());
     return Collections.EMPTY_LIST;
   }
 }
 public String getApplicationURL(
     String spaceName, String appName, String docName, String queryString) {
   try {
     return getWorkspacesManager()
         .getApplicationURL(spaceName, appName, docName, queryString, context);
   } catch (WorkspacesManagerException e) {
     context.put("haserror", "1");
     context.put("lasterror", e.getMessage());
     return new String();
   }
 }
 /**
  * @param matching the sequence of letters that either the first name or the last name of the
  *     potential members to retrieve must contains.
  * @see #getPotentialMembers(String, int, int)
  * @return the potential members for the workspace, whose first name or last name is matching the
  *     passed pattern
  */
 public Collection getPotentialMembers(
     String spaceName, String matching, int howMany, int startAt) {
   try {
     return getWorkspacesManager()
         .getPotentialMembersForSpace(spaceName, matching, howMany, startAt, context);
   } catch (WorkspacesManagerException e) {
     context.put("haserror", "1");
     context.put("lasterror", e.getMessage());
     return Collections.EMPTY_LIST;
   }
 }
 public boolean makeSpacePrivate(String spaceName) {
   if (this.hasProgrammingRights()) {
     try {
       getWorkspacesManager().makeSpacePrivate(spaceName, context);
       return true;
     } catch (WorkspacesManagerException e) {
       context.put("haserror", "1");
       context.put("lasterror", e.getMessage());
       return false;
     }
   }
   return false;
 }