com.wewebu.ow.server.app
Class OwAttrBagBasedUserOperationListener

java.lang.Object
  extended by com.wewebu.ow.server.app.OwAttrBagBasedUserOperationListener
All Implemented Interfaces:
OwUserOperationListener

public class OwAttrBagBasedUserOperationListener
extends Object
implements OwUserOperationListener

Listener for user operation. Details about user operation are saved in attribute bag.

Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.

For licensing information read the license.txt file or
go to: http://wiki.alfresco.com

Since:
3.1.0.3

Nested Class Summary
static class OwAttrBagBasedUserOperationListener.OwDateValue
          converter class for attribute bag value
 
Field Summary
static String USEROPERATION_BAG_NAME
          the bag name
 
Constructor Summary
OwAttrBagBasedUserOperationListener(org.springframework.jdbc.core.JdbcTemplate jdbc_p, String bagTableName_p)
          Constructor
 
Method Summary
protected  OwAttributeBagWriteable getAttributeBag(String userName_p, String bagName_p, String tableName_p)
          Obtain corresponding attribute bag to this user.
 void operationPerformed(OwUserOperationEvent event_p)
          Method called when login is performed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USEROPERATION_BAG_NAME

public static final String USEROPERATION_BAG_NAME
the bag name

Since:
3.2.0.0
See Also:
Constant Field Values
Constructor Detail

OwAttrBagBasedUserOperationListener

public OwAttrBagBasedUserOperationListener(org.springframework.jdbc.core.JdbcTemplate jdbc_p,
                                           String bagTableName_p)
Constructor

Parameters:
jdbc_p - - the JDBC accessor.
bagTableName_p - - the table name where bags are stored.
Method Detail

getAttributeBag

protected OwAttributeBagWriteable getAttributeBag(String userName_p,
                                                  String bagName_p,
                                                  String tableName_p)
                                           throws Exception
Obtain corresponding attribute bag to this user.

Parameters:
userName_p -
bagName_p -
tableName_p -
Returns:
the attribute bag corresponding to this user.
Throws:
Exception

operationPerformed

public void operationPerformed(OwUserOperationEvent event_p)
Description copied from interface: OwUserOperationListener
Method called when login is performed

Specified by:
operationPerformed in interface OwUserOperationListener
Parameters:
event_p - - the user operation template


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.