dea.albums
Class AlbumManager

java.lang.Object
  extended bydea.albums.AlbumManager
All Implemented Interfaces:
IDebugLevels

public class AlbumManager
extends java.lang.Object
implements IDebugLevels

Title: Album Manager Description: Common Album methods Copyright: Copyright (c) 2004 Company: RMRR

Version:
1.0
Author:
David Abigt

Field Summary
static int TOCD
          publish the CD
static int TOWEB
          publish the web
 
Fields inherited from interface dea.common.IDebugLevels
BASIC, DEBUG_ALL, ERROR, METH_DETAIL, METH_ENTER, METH_EXIT, METH_EXT, METH_GET, METH_SET, METH_VARS, SHOW_PASS
 
Constructor Summary
AlbumManager()
           
 
Method Summary
static java.util.ArrayList getAllObjs()
           
static java.util.ArrayList getAttrsForCat(int catNum)
          Gets a ArrayList of Templates Objects ordered by Templates.SORT_ORDER
static java.util.HashMap getAttrsForObj(int objNum)
          Gets an HashMap of Options objects keyed by Attribs.ATTR_NUM which represents the attribute values for this object
static java.util.ArrayList getCatItems(HttpServletRequest request, Menus menu, int site)
           
static int getCatLinkCount(int catNum, int site)
          Get the number of pics linked to a catagory.
static int getKey(HttpServletRequest request, java.lang.String keyName)
          Pull the key from the request
static java.util.ArrayList getMenus()
          Get info on all the menus sorted by description
static int getObjLinkCount(int objKey, int site)
          Get object link count
static java.util.ArrayList getObjPics(HttpServletRequest request, int objNum, int site)
          Gets an ArrayList of MenuItem objects that are linked to the Objects record with the obj_num value of objNum .
static java.util.ArrayList getPicLinks(int pNum)
          get list of Objects (in Options objs) pic is linked to.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TOWEB

public static final int TOWEB
publish the web

See Also:
Constant Field Values

TOCD

public static final int TOCD
publish the CD

See Also:
Constant Field Values
Constructor Detail

AlbumManager

public AlbumManager()
Method Detail

getMenus

public static java.util.ArrayList getMenus()
Get info on all the menus sorted by description

Returns:
ArrayList of Menus objects

getAllObjs

public static java.util.ArrayList getAllObjs()

getPicLinks

public static java.util.ArrayList getPicLinks(int pNum)
get list of Objects (in Options objs) pic is linked to.

Parameters:
pNum -
Returns:
ArrayList of Options objs

getAttrsForCat

public static java.util.ArrayList getAttrsForCat(int catNum)
Gets a ArrayList of Templates Objects ordered by Templates.SORT_ORDER

Parameters:
catNum -
Returns:
ArrayList

getAttrsForObj

public static java.util.HashMap getAttrsForObj(int objNum)
Gets an HashMap of Options objects keyed by Attribs.ATTR_NUM which represents the attribute values for this object

Parameters:
objNum -
Returns:
HashMap

getKey

public static int getKey(HttpServletRequest request,
                         java.lang.String keyName)
Pull the key from the request

Parameters:
request -
keyName -
Returns:
the value of request attribute associated with keyName

getCatLinkCount

public static int getCatLinkCount(int catNum,
                                  int site)
Get the number of pics linked to a catagory.
A catNum of 0 means return the number of pics for a site / collection.

@param catNum
@param site bit mapped int

Note site could be a multiple as in 7 being for sites 1-3 (1,2,4) but it will only return the number of pics that are used on all 3 sites in this catagory.
@return number of pics / links


getCatItems

public static java.util.ArrayList getCatItems(HttpServletRequest request,
                                              Menus menu,
                                              int site)

getObjPics

public static java.util.ArrayList getObjPics(HttpServletRequest request,
                                             int objNum,
                                             int site)
Gets an ArrayList of MenuItem objects that are linked to the Objects record with the obj_num value of objNum .

Parameters:
request -
objNum -
site -
Returns:
ArrayList of MenuItem objects

getObjLinkCount

public static int getObjLinkCount(int objKey,
                                  int site)
Get object link count

Parameters:
objKey -
site -
Returns:
Number of objects linked to the pic on site


Copyright © 2001-2005 Round Mountain Rescue Ranch. All Rights Reserved.