Repository
Class SubscribeBean

java.lang.Object
  extended byRepository.SubscribeBean

public class SubscribeBean
extends java.lang.Object

Model used in subscribe.jsp, asubscribe.jsp and aselect.jsp.

Changes:

alexis.grandemange@pagebox.net

Copyright (c) 2002-2004 Alexis Grandemange

This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU Lesser General Public License
 as published by the Free Software Foundation; version 2.1 of the
 License.
 This library is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 GNU Lesser General Public License for more details.
 A copy of the GNU Lesser General Public License lesser.txt should be
 included in the distribution.

Version:
0, 0, 11
Author:
Alexis Grandemange

Field Summary
static int SORTARCH
          Default value of sortType.
static int SORTDATE
          Sorted on date
(package private)  java.util.TreeMap subscribers
          Repository subscribers Key: subscriber URL Value: Subscriber object
 
Constructor Summary
SubscribeBean()
           
 
Method Summary
static java.lang.String getArchives(java.lang.String subscriber, HttpServletRequest request)
          Returns archives in HTML format.
private  java.lang.String getArchs(java.lang.String subscriber, int sortType, HttpServletRequest request)
          Returns archives in HTML format.
private  java.lang.String getASubs(HttpServletRequest request)
          Returns archive subscribers in HTML format.
static java.lang.String getASubscribers(HttpServletRequest request)
          Returns archive subscribers in HTML format.
private  java.lang.String getSubs(HttpServletRequest request)
          Returns subscribers in HTML format.
static java.lang.String getSubscribers(HttpServletRequest request)
          Returns subscribers in HTML format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

subscribers

java.util.TreeMap subscribers
Repository subscribers


SORTARCH

public static final int SORTARCH
Default value of sortType. Sorted on archive name.

See Also:
Constant Field Values

SORTDATE

public static final int SORTDATE
Sorted on date

See Also:
Constant Field Values
Constructor Detail

SubscribeBean

public SubscribeBean()
Method Detail

getSubscribers

public static java.lang.String getSubscribers(HttpServletRequest request)
Returns subscribers in HTML format. Used by subscribe.jsp.

Parameters:
request - HttpServletRequest.
Returns:
HTML string

getASubscribers

public static java.lang.String getASubscribers(HttpServletRequest request)
Returns archive subscribers in HTML format. Used by asubscribe.jsp.

Parameters:
request - HttpServletRequest.
Returns:
HTML string

getArchives

public static java.lang.String getArchives(java.lang.String subscriber,
                                           HttpServletRequest request)
Returns archives in HTML format. Used by aselect.jsp.

Parameters:
subscriber - subscriber name
request - HttpServletRequest.
Returns:
HTML string

getSubs

private java.lang.String getSubs(HttpServletRequest request)
Returns subscribers in HTML format. Used by subscribe.jsp.

Parameters:
request - HttpServletRequest.
Returns:
HTML string

getASubs

private java.lang.String getASubs(HttpServletRequest request)
Returns archive subscribers in HTML format. Used by asubscribe.jsp.

Parameters:
request - HttpServletRequest.
Returns:
HTML string

getArchs

private java.lang.String getArchs(java.lang.String subscriber,
                                  int sortType,
                                  HttpServletRequest request)
Returns archives in HTML format. Used by aselect.jsp.

Parameters:
subscriber - subscriber name
sortType - SORTDATE or SORTARCH
request - HttpServletRequest.
Returns:
HTML string