| java.lang.Object dlog4j.ManagerBase dlog4j.SiteManager
SiteManager | public class SiteManager extends ManagerBase (Code) | | author: Liudong author: 用于管理子站点的类,例如通过它来获取当前正在访问的站点 |
Field Summary | |
final static Log | log |
Method Summary | |
public static SiteForm | getCurrentSite(ServletRequest request) | protected static Calendar | getFirstDate(Calendar cal) | protected static Calendar | getLastDate(Calendar cal) | public static List | listSites(Session ssn, int status, int count) | public static SiteForm | loadSite(String sitename) | public static SiteForm | loadSite(Session ssn, String sitename) | public static SiteForm | loadSite(int id) | public static SiteForm | loadSite(Session ssn, int id) | public static void | main(String[] args) | public static int[] | statSiteLogs(ServletRequest req, int year, int month) | public static int[] | statSiteLogs(Session ssn, SiteForm site, int year, int month) | public static int[] | statSiteReplies(ServletRequest req, int year, int month) | public static int[] | statSiteReplies(Session ssn, SiteForm site, int year, int month) |
listSites | public static List listSites(Session ssn, int status, int count) throws HibernateException(Code) | | 列出所有的个人Dlog,注意:不包括id=0的dlogcn这条记录
Parameters: ssn - Parameters: status - 只列出status值为该参数值的个人Dlog,如果该值为-1则列出所有的个人Dlog throws: HibernateException - |
loadSite | public static SiteForm loadSite(String sitename) throws HibernateException, SQLException(Code) | | 读取一个网站的详细信息
Parameters: ssn - Parameters: sitename - throws: HibernateException - |
loadSite | public static SiteForm loadSite(Session ssn, String sitename) throws HibernateException(Code) | | 读取一个网站的详细信息
Parameters: ssn - Parameters: sitename - throws: HibernateException - |
loadSite | public static SiteForm loadSite(int id) throws HibernateException, SQLException(Code) | | 读取一个网站的详细信息
Parameters: ssn - Parameters: id - throws: HibernateException - |
loadSite | public static SiteForm loadSite(Session ssn, int id) throws HibernateException(Code) | | 读取一个网站的详细信息
Parameters: ssn - Parameters: id - throws: HibernateException - |
statSiteLogs | public static int[] statSiteLogs(Session ssn, SiteForm site, int year, int month) throws HibernateException(Code) | | 某年某月的网站日记数统计
Parameters: ssn - Parameters: site - Parameters: year - Parameters: month - throws: HibernateException - |
statSiteReplies | public static int[] statSiteReplies(Session ssn, SiteForm site, int year, int month) throws HibernateException(Code) | | 某年某月的网站评论数统计
Parameters: ssn - Parameters: site - Parameters: year - Parameters: month - throws: HibernateException - |
|
|