public class TCPReporter extends Reporter
Modifier and Type | Field and Description |
---|---|
protected int |
actCount |
protected String |
currentSessionId |
protected HashMap<String,String> |
dbProperties |
static String |
DEFAULT_SERVER_PATH |
static String |
DEFAULT_SERVER_PROTOCOL |
static String |
DEFAULT_SERVER_SERVICE |
static int |
DEFAULT_TIMER_LAP |
protected ActivityReg |
lastActivity |
protected Messages |
msg |
protected Component |
parent |
static String |
SERVER_PATH |
static String |
SERVER_PROTOCOL |
static String |
SERVER_SERVICE |
protected URL |
serviceUrl |
protected List<TCPReportBean> |
tasks |
protected Timer |
timer |
static String |
TIMER_LAP |
protected int |
timerLap |
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 |
---|
TCPReporter()
Creates new TCPReporter
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkUrl() |
void |
createDBSession() |
void |
end() |
protected void |
flushTasks() |
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() |
protected void |
stopReporting() |
protected TCPReportBean |
transaction(String key,
Domable[] data) |
protected TCPReportBean |
transaction(TCPReportBean request) |
endActivity, endSequence, endSession, finalize, getBooleanProperty, getCurrentSequenceInfo, getCurrentSequenceTag, getReporter, getReporter, newAction, newSequence, promptForNewGroup, promptForNewUser, promptGroupId, promptUserId, toHtmlString, userBased
protected String currentSessionId
protected ActivityReg lastActivity
protected int actCount
protected URL serviceUrl
protected List<TCPReportBean> tasks
protected Component parent
protected Messages msg
protected Timer timer
protected int timerLap
public static final String SERVER_PATH
public static final String DEFAULT_SERVER_PATH
public static final String SERVER_PROTOCOL
public static final String DEFAULT_SERVER_PROTOCOL
public static final String SERVER_SERVICE
public static final String DEFAULT_SERVER_SERVICE
public static final String TIMER_LAP
public static final int DEFAULT_TIMER_LAP
protected void flushTasks()
protected TCPReportBean transaction(String key, Domable[] data)
protected TCPReportBean transaction(TCPReportBean request)
protected void stopReporting()
public void newSession(JClicProject jcp, Component parent, Messages msg)
newSession
in class Reporter
public void createDBSession()
protected void reportActivity()
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 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.