public class JDBCReporter extends Reporter
Modifier and Type | Field and Description |
---|---|
protected int |
actCount |
protected BasicJDBCBridge |
bridge |
protected String |
currentSessionId |
static String |
DRIVER |
protected ActivityReg |
lastActivity |
static String |
SYSTEM_PWD |
static String |
SYSTEM_USER |
static String |
URL |
ALLOW_CREATE_GROUPS, ALLOW_CREATE_USERS, bUserBased, CONTEXT, ELEMENT_NAME, GROUP_CODE_FILTER, initiated, KEY, SHOW_GROUP_LIST, SHOW_USER_LIST, TIME_LAP, USER_CODE_FILTER, USER_ID, USER_TABLES
Constructor and Description |
---|
JDBCReporter()
Creates new ODBCReporter
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkBridge() |
void |
createDBSession() |
void |
end() |
GroupData |
getGroupData(String groupId) |
List<GroupData> |
getGroups() |
String |
getProperty(String key,
String defaultValue)
Method use to retrieve specific properties of the reports system
|
UserData |
getUserData(String userId) |
List<UserData> |
getUsers(String groupId) |
void |
init(HashMap properties,
Component parent,
Messages msg) |
void |
newActivity(Activity act) |
String |
newGroup(GroupData gd) |
void |
newSession(JClicProject jcp,
Component parent,
Messages msg) |
String |
newUser(UserData ud) |
protected void |
reportActivity() |
endActivity, endSequence, endSession, finalize, getBooleanProperty, getCurrentSequenceInfo, getCurrentSequenceTag, getReporter, getReporter, newAction, newSequence, promptForNewGroup, promptForNewUser, promptGroupId, promptUserId, toHtmlString, userBased
protected String currentSessionId
protected int actCount
protected ActivityReg lastActivity
protected BasicJDBCBridge bridge
public static final String DRIVER
public static final String URL
public static final String SYSTEM_USER
public static final String SYSTEM_PWD
public String getProperty(String key, String defaultValue) throws Exception
Reporter
getProperty
in class Reporter
key
- Property keydefaultValue
- Default value for this keyException
- Throwed when the system was unable to read the specified propertypublic UserData getUserData(String userId) throws Exception
getUserData
in class Reporter
Exception
public GroupData getGroupData(String groupId) throws Exception
getGroupData
in class Reporter
Exception
public void newSession(JClicProject jcp, Component parent, Messages msg)
newSession
in class Reporter
public void createDBSession()
protected void reportActivity()
public void newActivity(Activity act)
newActivity
in class Reporter
Copyright © 2004-15 Francesc Busquets (fbusquets@xtec.cat) & Departament d'Educació de la Generalitat de Catalunya (info@xtec.cat)
Licensed under the terms of the GNU General Public License.