Package org.cyclos.security.users
Class ConnectedUserServiceSecurity
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.security.BaseServiceSecurity
-
- org.cyclos.security.users.ConnectedUserServiceSecurity
-
- All Implemented Interfaces:
Service,ConnectedUserService
@Security public class ConnectedUserServiceSecurity extends BaseServiceSecurity implements ConnectedUserService
Security forConnectedUserService
-
-
Field Summary
-
Fields inherited from class org.cyclos.impl.AbstractNetworkedServerComponent
authHandler, conversionHandler, customFieldValueHandler, entityManagerHandler, groupsHandler, productsHandler, restBeanPropertyMapping, userLocatorHandler
-
Fields inherited from class org.cyclos.impl.AbstractServerComponent
accountHandler, configurationHandler, dataTranslationHandler, notificationHandler, profileFieldHandler, transactionHandler, translationHandler
-
-
Constructor Summary
Constructors Constructor Description ConnectedUserServiceSecurity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdisconnect(UserLocatorVO userLocator)Disconnects the given user.intdisconnectBySessionTokens(Set<String> tokens)Removes all sessions with the given tokens, returning the number of sessions actually removedConnectedUserSearchDatagetSearchData()Returns data for searching connected usersprotected EntityCheck<?>resolveEntityCheck()Must be implemented in order to return theEntityCheckmanaged by this security component, or null if nonePage<ConnectedUserVO>search(ConnectedUserQuery query)Searches users connected to the application-
Methods inherited from class org.cyclos.security.BaseServiceSecurity
checkGuest, checkId, checkIds, checkInternalName, checkLoggedIn, checkManagesUser, checkRelatesToUser, checkScope, checkVO, checkVOs, doInitialize, getEntityCheckRegistry, getUser, initialize
-
Methods inherited from class org.cyclos.impl.AbstractNetworkedServerComponent
canManage, checkManagesUser, checkPermission, checkRelatesToUser, checkValue, clearAlreadyValidated, getBaseEntityManagerHandler, getConfiguration, getLoggedBasicUser, getLoggedUser, getProducts, getTranslatedName, getTranslatedValue, hasPermission, hasValue, inSameNetwork, inSameNetworkOrGlobal, isAdmin, isAlreadyValidated, isBroker, isGlobalAdmin, isGlobalAdminInNetwork, isGuest, isLoggedIn, isMember, isMemberOnly, isNetworkAdmin, isOperator, isRelatedToUser, isSystem, isUserManager, isUserManagerOf, message, message, permission, permission, permissionOptionalValue, permissionOptionalValue, setAlreadyValidated, toDate, toDateTime, validate
-
Methods inherited from class org.cyclos.impl.AbstractServerComponent
dataTranslationProxy, dataTranslationProxy, delete, detach, doDataTranslationProxy, find, flush, from, getApplicationContext, getFormatter, getFormatter, getFormatter, getLogger, getRemoteAddress, getSessionData, mailContentBuilder, message, message, persist, processBatch, processBatch, refresh, remove, selectFrom, subQuery, update
-
-
-
-
Method Detail
-
disconnect
public int disconnect(UserLocatorVO userLocator) throws FrameworkException
Description copied from interface:ConnectedUserServiceDisconnects the given user. Returns the number of sessions actually removed- Specified by:
disconnectin interfaceConnectedUserService- Throws:
FrameworkException
-
disconnectBySessionTokens
public int disconnectBySessionTokens(Set<String> tokens) throws FrameworkException
Description copied from interface:ConnectedUserServiceRemoves all sessions with the given tokens, returning the number of sessions actually removed- Specified by:
disconnectBySessionTokensin interfaceConnectedUserService- Throws:
FrameworkException
-
getSearchData
public ConnectedUserSearchData getSearchData() throws FrameworkException
Description copied from interface:ConnectedUserServiceReturns data for searching connected users- Specified by:
getSearchDatain interfaceConnectedUserService- Throws:
FrameworkException
-
search
public Page<ConnectedUserVO> search(ConnectedUserQuery query) throws FrameworkException
Description copied from interface:ConnectedUserServiceSearches users connected to the application- Specified by:
searchin interfaceConnectedUserService- Throws:
FrameworkException
-
resolveEntityCheck
protected EntityCheck<?> resolveEntityCheck()
Description copied from class:BaseServiceSecurityMust be implemented in order to return theEntityCheckmanaged by this security component, or null if none- Specified by:
resolveEntityCheckin classBaseServiceSecurity
-
-