is.idega.idegaweb.golf.business
Class UserSynchronizationBusinessBean

java.lang.Object
  extended by com.idega.business.IBOServiceBean
      extended by is.idega.idegaweb.golf.business.UserSynchronizationBusinessBean
All Implemented Interfaces:
com.idega.business.IBOService, com.idega.user.business.UserGroupPlugInBusiness, UserSynchronizationBusiness, GolfConstants, java.io.Serializable, java.rmi.Remote, javax.ejb.EJBObject, javax.ejb.EnterpriseBean, javax.ejb.SessionBean

public class UserSynchronizationBusinessBean
extends com.idega.business.IBOServiceBean
implements UserSynchronizationBusiness, com.idega.user.business.UserGroupPlugInBusiness, GolfConstants

This UserGroupPlugin is used to synchronize the golf data tables with the user system.
Methods in this plugin are called after the LDAPReplicator has replicated a user.

Author:
Grimur Jonsson,Eirikur S. Hrafnsson
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface is.idega.idegaweb.golf.util.GolfConstants
ATTRIBUTE_REGISTRATION_MAP, ATTRIBUTE_STARTINGTIME_RESERVATIONS, CLUB_PARAMETER_URL, FIELD_TYPE_CHILD, FIELD_TYPE_MAIN, FIELD_TYPE_TRAINING, GROUP_TYPE_CLUB, GROUP_TYPE_UNION, HANDICAP_META_DATA_KEY, IW_BUNDLE_IDENTIFIER, MAIN_CLUB_META_DATA_KEY, MAX_DEFAULT_HANDICAP_FEMALE, MAX_DEFAULT_HANDICAP_MALE, MEMBER_DATE_OF_BIRTH, MEMBER_EDITORS_KEY, MEMBER_GENDER, MEMBER_GENDER_FEMALE, MEMBER_GENDER_MALE, MEMBER_ID, MEMBER_NAME, MEMBER_PIN, MEMBER_UUID, META_PREFIX, OTHER_TYPE_FOREIGN, OTHER_TYPE_FREE_CARD, OTHER_TYPE_FRIEND_CLUB, OTHER_TYPE_GUEST_CARD, OTHER_TYPE_OTHER, PARAMETER_CLUB, PARAMETER_DO_CLUB_REDIRECT, PARAMETER_TOURNAMENT, PROPERTY_CURRENT_TOUR, PROPERTY_GOLF_SYSTEM_SENDER_ADDRESS, PROPERTY_GOLF_SYSTEM_SENDER_ADDRESS_VALUE, PROPERTY_LEADERBOARD_URL, PROPERTY_REGISTRATION_DAEMON_TIMEOUT, PROPERTY_REGISTRATION_TIMEOUT, PROPERTY_TEE_TIME_SEARCH_URL, PROPERTY_TOURNAMENT_SELECTOR_URL, SUB_CLUBS_META_DATA_KEY, UNION_TYPE_CLUB, UNION_TYPE_EXTRA_CLUB, UNION_TYPE_NONE, UNION_TYPE_UNION, URI_FELIX_MEMBER_SAVE_SERVICE, URI_FELIX_MEMBER_SERVICE, URI_GOLF_MEMBER_SAVE_IMAGE_SERVICE, URI_GOLF_MEMBER_SAVE_SERVICE, URI_GOLF_MEMBER_SAVE_WITH_IMAGE_ID_SERVICE, URI_GOLF_MEMBER_SERVICE, URL_FELIX_REST, URL_GOLF_REST
 
Constructor Summary
UserSynchronizationBusinessBean()
           
 
Method Summary
 void afterGroupCreateOrUpdate(com.idega.user.data.Group group, com.idega.user.data.Group parentGroup)
           
 void afterUserCreateOrUpdate(com.idega.user.data.User user, com.idega.user.data.Group parentGroup)
           
 void beforeGroupRemove(com.idega.user.data.Group group, com.idega.user.data.Group parentGroup)
           
 void beforeUserRemove(com.idega.user.data.User user, com.idega.user.data.Group parentGroup)
           
 java.lang.String canCreateSubGroup(com.idega.user.data.Group group, java.lang.String groupTypeOfSubGroup)
           
 java.util.List getGroupPropertiesTabs(com.idega.user.data.Group group)
           
 java.util.List getGroupToolbarElements(com.idega.user.data.Group group)
           
 java.util.List getMainToolbarElements()
           
 com.idega.user.business.UserBusiness getUserBusiness()
           
 java.util.List getUserPropertiesTabs(com.idega.user.data.User user)
           
 com.idega.presentation.PresentationObject instanciateEditor(com.idega.user.data.Group group)
           
 com.idega.presentation.PresentationObject instanciateViewer(com.idega.user.data.Group group)
           
 java.lang.String isUserAssignableFromGroupToGroup(com.idega.user.data.User user, com.idega.user.data.Group sourceGroup, com.idega.user.data.Group targetGroup)
           
 java.lang.String isUserSuitedForGroup(com.idega.user.data.User user, com.idega.user.data.Group targetGroup)
           
 boolean sync()
           
 boolean synchronize()
           
 void syncUserFromRequest(com.idega.presentation.IWContext iwc)
           
 
Methods inherited from class com.idega.business.IBOServiceBean
addActionListener, debug, ejbActivate, ejbCreate, ejbCreateIBO, ejbHomeCreateIBO, ejbHomeIboCreate, ejbPassivate, ejbPostCreate, ejbPostCreateIBO, ejbRemove, getAccessController, getBundle, getBundleIdentifier, getCurrentUser, getDebugLogLevel, getDefaultLogLevel, getEJBHome, getEJBObject, getErrorLogLevel, getHandle, getIDOHome, getIWApplicationContext, getIWMainApplication, getLocalizedServiceDescription, getLogger, getPrimaryKey, getServiceDescription, getServiceInstance, getSessionContext, getSessionInstance, initializeBean, isIdentical, log, log, log, log, logConfig, logDebug, logError, logSevere, logWarning, remove, setIWApplicationContext, setSessionContext, triggerActionEvent, triggerActionEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.idega.business.IBOService
addActionListener, getIWApplicationContext, getLocalizedServiceDescription, getServiceDescription, initializeBean
 
Methods inherited from interface javax.ejb.EJBObject
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove
 

Constructor Detail

UserSynchronizationBusinessBean

public UserSynchronizationBusinessBean()
Method Detail

sync

public boolean sync()
Specified by:
sync in interface UserSynchronizationBusiness

synchronize

public boolean synchronize()

beforeUserRemove

public void beforeUserRemove(com.idega.user.data.User user,
                             com.idega.user.data.Group parentGroup)
                      throws javax.ejb.RemoveException,
                             java.rmi.RemoteException
Specified by:
beforeUserRemove in interface com.idega.user.business.UserGroupPlugInBusiness
Throws:
javax.ejb.RemoveException
java.rmi.RemoteException

afterUserCreateOrUpdate

public void afterUserCreateOrUpdate(com.idega.user.data.User user,
                                    com.idega.user.data.Group parentGroup)
                             throws javax.ejb.CreateException,
                                    java.rmi.RemoteException
Specified by:
afterUserCreateOrUpdate in interface com.idega.user.business.UserGroupPlugInBusiness
Throws:
javax.ejb.CreateException
java.rmi.RemoteException

syncUserFromRequest

public void syncUserFromRequest(com.idega.presentation.IWContext iwc)
Specified by:
syncUserFromRequest in interface UserSynchronizationBusiness

beforeGroupRemove

public void beforeGroupRemove(com.idega.user.data.Group group,
                              com.idega.user.data.Group parentGroup)
                       throws javax.ejb.RemoveException,
                              java.rmi.RemoteException
Specified by:
beforeGroupRemove in interface com.idega.user.business.UserGroupPlugInBusiness
Throws:
javax.ejb.RemoveException
java.rmi.RemoteException

afterGroupCreateOrUpdate

public void afterGroupCreateOrUpdate(com.idega.user.data.Group group,
                                     com.idega.user.data.Group parentGroup)
                              throws javax.ejb.CreateException,
                                     java.rmi.RemoteException
Specified by:
afterGroupCreateOrUpdate in interface com.idega.user.business.UserGroupPlugInBusiness
Throws:
javax.ejb.CreateException
java.rmi.RemoteException

instanciateEditor

public com.idega.presentation.PresentationObject instanciateEditor(com.idega.user.data.Group group)
                                                            throws java.rmi.RemoteException
Specified by:
instanciateEditor in interface com.idega.user.business.UserGroupPlugInBusiness
Throws:
java.rmi.RemoteException

instanciateViewer

public com.idega.presentation.PresentationObject instanciateViewer(com.idega.user.data.Group group)
                                                            throws java.rmi.RemoteException
Specified by:
instanciateViewer in interface com.idega.user.business.UserGroupPlugInBusiness
Throws:
java.rmi.RemoteException

getUserPropertiesTabs

public java.util.List getUserPropertiesTabs(com.idega.user.data.User user)
                                     throws java.rmi.RemoteException
Specified by:
getUserPropertiesTabs in interface com.idega.user.business.UserGroupPlugInBusiness
Throws:
java.rmi.RemoteException

getGroupPropertiesTabs

public java.util.List getGroupPropertiesTabs(com.idega.user.data.Group group)
                                      throws java.rmi.RemoteException
Specified by:
getGroupPropertiesTabs in interface com.idega.user.business.UserGroupPlugInBusiness
Throws:
java.rmi.RemoteException

getMainToolbarElements

public java.util.List getMainToolbarElements()
                                      throws java.rmi.RemoteException
Specified by:
getMainToolbarElements in interface com.idega.user.business.UserGroupPlugInBusiness
Throws:
java.rmi.RemoteException

getGroupToolbarElements

public java.util.List getGroupToolbarElements(com.idega.user.data.Group group)
                                       throws java.rmi.RemoteException
Specified by:
getGroupToolbarElements in interface com.idega.user.business.UserGroupPlugInBusiness
Throws:
java.rmi.RemoteException

isUserAssignableFromGroupToGroup

public java.lang.String isUserAssignableFromGroupToGroup(com.idega.user.data.User user,
                                                         com.idega.user.data.Group sourceGroup,
                                                         com.idega.user.data.Group targetGroup)
                                                  throws java.rmi.RemoteException
Specified by:
isUserAssignableFromGroupToGroup in interface com.idega.user.business.UserGroupPlugInBusiness
Throws:
java.rmi.RemoteException

isUserSuitedForGroup

public java.lang.String isUserSuitedForGroup(com.idega.user.data.User user,
                                             com.idega.user.data.Group targetGroup)
                                      throws java.rmi.RemoteException
Specified by:
isUserSuitedForGroup in interface com.idega.user.business.UserGroupPlugInBusiness
Throws:
java.rmi.RemoteException

canCreateSubGroup

public java.lang.String canCreateSubGroup(com.idega.user.data.Group group,
                                          java.lang.String groupTypeOfSubGroup)
                                   throws java.rmi.RemoteException
Specified by:
canCreateSubGroup in interface com.idega.user.business.UserGroupPlugInBusiness
Throws:
java.rmi.RemoteException

getUserBusiness

public com.idega.user.business.UserBusiness getUserBusiness()
                                                     throws com.idega.business.IBOLookupException
Throws:
com.idega.business.IBOLookupException


Copyright © 2000-2014 idega software. All Rights Reserved.