Uses of Class
com.arsdigita.acs.db.Database

Packages that use Database
com.arsdigita.acs   
com.arsdigita.acs.bboard   
com.arsdigita.acs.calendar   
com.arsdigita.acs.chat   
com.arsdigita.acs.fs   
com.arsdigita.acs.generalcomments   
com.arsdigita.acs.news   
com.arsdigita.acs.portals   
com.arsdigita.acs.search   
com.arsdigita.acs.tags   
com.arsdigita.acs.ug   
 

Uses of Database in com.arsdigita.acs
 

Fields in com.arsdigita.acs declared as Database
protected  Database Selection.db
           
 

Methods in com.arsdigita.acs with parameters of type Database
static int GeneralPermissions.permissionCount(Database db, Integer onWhatId, String onWhichTable, String permissionType)
          Returns the number of permissions records there are on a certain object, of a certain permission type.
static void GeneralPermissions.grantPermission(Database db, String scope, Integer userId, Integer groupId, String role, String permissionType, Integer onWhatId, String onWhichTable)
          Grants a permission for a database object to the specified user or group/role, depending on what "scope" is.
static Integer GeneralPermissions.getPermissionId(Database db, String scope, Integer userId, Integer groupId, String role, String permissionType, Integer onWhatId, String onWhichTable)
          Returns the id in the general_permissions table for a database object, given the specified scope, user, group, etc.
 void GeneralPermissions.revokePermission(Database db, Integer permissionId)
          Revokes the given permission row (the desired id can be obtained by calling getPermissionId)
 

Constructors in com.arsdigita.acs with parameters of type Database
Selection(SqlStatement sql, Database db)
          Utility constructor to initialize from a result set created from a SqlStatement and a database handle.
 

Uses of Database in com.arsdigita.acs.bboard
 

Methods in com.arsdigita.acs.bboard with parameters of type Database
static String BBoard.getNextId(Database db)
          gets a message id for a new bboard message, using the msg_id_generator table.
 

Constructors in com.arsdigita.acs.bboard with parameters of type Database
MessagesDataSource(SqlStatement sql, Database db)
          Create a new MessagesDataSource out of a SqlStatement.
SingleMessageDataSource(SqlStatement sql, Database db)
           
TopicsDataSource(SqlStatement sql, Database db)
           
SingleTopicDataSource(Database db, Integer topicId)
          Initialize this from the database; gets all properties from bboard_topics where topic_id = topicId.
SingleTopicDataSource(Database db, String messageId)
          Returns the Topic datasource object for a given message; pulls in the topic to which that message belongs.
 

Uses of Database in com.arsdigita.acs.calendar
 

Methods in com.arsdigita.acs.calendar with parameters of type Database
static String CalendarProcs.calPrettyCurrentDate(String current_date, Database db)
          Yet another pretty date function.
 

Uses of Database in com.arsdigita.acs.chat
 

Methods in com.arsdigita.acs.chat with parameters of type Database
static ChatRoom Chat.getRoomProperties(Database db, Integer roomId)
           
static void Chat.postSystemNote(Database db, String msg, Integer userId, Integer roomId, String remoteAddr)
          Post message to the chat room marked as a system note.
static void Chat.postMessage(Database db, String msg, Integer userId, Integer roomId, String remoteAddr)
          Post a normal message to the chat room.
static void Chat.postPersonalMessage(Database db, String msg, Integer userId, Integer recipientId, String remoteAddr)
          Post a normal message to the chat room.
static Integer Chat.lastPost(Database db, Integer roomId)
          Returns chat_msg_id of most recent post in a room; used by JavaScript client to figure out whether an update to the main window is needed 5/28/2000 mbryzek added a unique index chat_msgs_room_approved_id_idx on chat_msgs(chat_room_id, approved_p, chat_msg_id) to avoid hitting the chat_msgs table at all when we're calling chat_last_post.
static Integer[] Chat.lastPersonalPost(Database db, Integer userId, Integer chatterId)
           
 

Constructors in com.arsdigita.acs.chat with parameters of type Database
ChatDataSource(SqlStatement sql, Database db, String nRows)
           
 

Uses of Database in com.arsdigita.acs.fs
 

Methods in com.arsdigita.acs.fs with parameters of type Database
 int StoredFile.getOlderVersions(Database db)
           
 void StoredFile.select(Database db, Integer fileId, Integer userId)
           
 StoredFileVersion[] StoredFile.getAllVersions(Database db, Integer userId)
          Returns all versions of a file visible to a given user.
 StoredFileVersion StoredFile.getLatestVersion(Database db, Integer userId)
          Returns the latest version of a file visible to a given user.
 ContextBarWs StoredFile.getNavbar(Database db, String source)
           
static String FileStorageProcs.fsFolderDefSelection(Database db, Integer user_id, Integer group_id, boolean public_p, Integer file_id, Integer folder_default)
           
static void FileStorageProcs.orderFiles(Database db)
           
static Integer FileStorageProcs.latestVersion(Database db, Integer file_id)
           
static String FileStorageProcs.guessSource(Database db, boolean public_p, Integer owner_id, Integer group_id, UserInfo local_user)
           
 

Constructors in com.arsdigita.acs.fs with parameters of type Database
FolderBox(Integer userId, String topmostOption, Database db)
           
 

Uses of Database in com.arsdigita.acs.generalcomments
 

Constructors in com.arsdigita.acs.generalcomments with parameters of type Database
GeneralCommentsDataSource(SqlStatement sql, Database db)
           
 

Uses of Database in com.arsdigita.acs.news
 

Constructors in com.arsdigita.acs.news with parameters of type Database
NewsDataSource(SqlStatement sql, Database db)
           
 

Uses of Database in com.arsdigita.acs.portals
 

Constructors in com.arsdigita.acs.portals with parameters of type Database
PortalsDataSource(SqlStatement sql, Database db)
           
 

Uses of Database in com.arsdigita.acs.search
 

Constructors in com.arsdigita.acs.search with parameters of type Database
SearchDataSource(SqlStatement sql, Database db, int nRows)
           
 

Uses of Database in com.arsdigita.acs.tags
 

Fields in com.arsdigita.acs.tags declared as Database
protected  Database SqlTag.db
           
 

Methods in com.arsdigita.acs.tags that return Database
 Database PageTag.getDatabase()
           
 

Uses of Database in com.arsdigita.acs.ug
 

Methods in com.arsdigita.acs.ug with parameters of type Database
 SingleSelection GroupDataSource.getSupplementalGroupInfo(Database db)
          Returns a list of supplemental fields and values for this group.
 MemberField GroupDataSource.getMemberFields(Database db)
          Returns the additional data collected about users in this group.
 int GroupDataSource.getMemberFieldCount(Database db)
          Returns the number of additional fields collected about users in this group.
 String GroupTypeDataSource.getHelperTableName(Database db)
          Returns the helper table name for this group type, creating it if it doesn't exist.
 GroupField GroupTypeDataSource.getGroupFields(Database db)
          Gets a list of supplemental fields stored for each group in a particular group type.
 MemberField GroupTypeDataSource.getMemberFields(Database db)
          Gets a list of data stored for each member belonging to a group of this type.
static String UserGroups.getGroupName(Database db, Integer groupId)
           
static void UserGroups.adminGroupAdd(Database db, String name, String module, String submodule, String url)
          adds an admin group to the database.
static String UserGroups.getAdminGroupId(Database db, String module, String submodule)
          Returns a group_id for an admin group from the database, given a module/submodule.
static void UserGroups.adminGroupAddUser(Database db, Object user_id, String role, String module, String submodule, String mapping_id, String mapping_ip)
          adds a user to an admin group in a certain role.
 

Constructors in com.arsdigita.acs.ug with parameters of type Database
GroupDataSource(SqlStatement s, Database db)
           
GroupTypeDataSource(SqlStatement s, Database db)
           
MemberField(SqlStatement sql, Database db)
           
GroupField(SqlStatement sql, Database db)