implemented "Subscribe To Topic"

This commit is contained in:
Eric J. Bowersox
2001-11-29 04:55:48 +00:00
parent c7edf62aae
commit 239321bb61
18 changed files with 430 additions and 14 deletions

View File

@@ -216,6 +216,24 @@ public class TopicOperations extends VeniceServlet
} // end if (remove bozo)
if (cmd.equals("SY") || cmd.equals("SN"))
{ // "SY", "SN" - Set subscription status
try
{ // call down to set the topic!
topic.setSubscribed(cmd.equals("SY"));
setMyLocation(request,"topicops?" + locator);
return new ManageTopic(user,comm,conf,topic);
} // end try
catch (DataException de)
{ // there was a database error
return new ErrorBox("Database Error","Database error setting subscription status: " + de.getMessage(),
location);
} // end catch
} // end if (subscription control)
// unrecognized command - load the "Manage Topic menu"
try
{ // return that "Manage Topic" page

View File

@@ -173,4 +173,10 @@ public class ManageTopic implements JSPRender
} // end getBozosIterator
public boolean isSubscribed()
{
return topic.isSubscribed();
} // end isSubscribed
} // end class ManageTopic