@Security public class LoginServiceSecurity extends BaseServiceSecurity implements LoginService
LoginService| Constructor and Description |
|---|
LoginServiceSecurity() |
| Modifier and Type | Method and Description |
|---|---|
LoginData |
getLoginData(java.lang.String channelName)
Returns the data for user login according to the given channel name
and based in the current session configuration
|
UserLoginResult |
login()
Creates a session for the currently authenticated user
|
UserLoginDetailedResult |
loginUser(UserLoginDTO params)
Creates a session for an user, indicating a remote address (from the client connection) and a channel.
|
void |
logout()
Invalidates the current user session, if the current request was authenticated with a session
|
boolean |
logoutUser(java.lang.String token)
Removes the session with the given token, returning whether the sessions was actually removed
|
java.lang.String |
replaceSession()
Replaces the current session token with another one.
|
protected org.cyclos.impl.access.EntityCheck<?> |
resolveEntityCheck()
Must be implemented in order to return the
EntityCheck managed by this security component, or null if
none |
checkGuest, checkId, checkIds, checkInternalName, checkLoggedIn, checkManagesUser, checkRelatesToUser, checkVO, checkVOs, doInitialize, getEntityCheckRegistry, getUser, initializecanManage, checkManagesUser, checkPermission, checkRelatesToUser, checkValue, clearAlreadyValidated, getAccountHandler, getAuthHandler, getBaseEntityManagerHandler, getChannelConfiguration, getConfiguration, getConversionHandler, getCustomFieldValueHandler, getEntityManagerHandler, getGroupsHandler, getLoggedBasicUser, getLoggedUser, getProducts, getProductsHandler, getReportHandler, getTranslatedName, getTranslatedValue, getUserLocatorHandler, getValidationResult, hasPermission, hasValue, inSameNetwork, inSameNetworkOrGlobal, isAdmin, isAlreadyValidated, isBroker, isGlobalAdmin, isGlobalAdminInNetwork, isGuest, isLoggedIn, isMember, isNetworkAdmin, isOperator, isRelatedToUser, isSystem, isUserManager, isUserManagerOf, message, message, permission, permission, permissionOptionalValue, permissionOptionalValue, toDate, toDateTime, validatedelete, detach, find, flush, from, getApplicationContext, getConfigurationHandler, getDataTranslationHandler, getFormatter, getFormatter, getFormatter, getLogger, getNotificationHandler, getProfileFieldHandler, getRemoteAddress, getSessionData, getTransactionHandler, getTranslationHandler, message, message, persist, processBatch, refresh, remove, subQuery, updatepublic LoginData getLoginData(java.lang.String channelName)
LoginServicegetLoginData in interface LoginServicepublic UserLoginResult login() throws FrameworkException, LoginException, RemoteAddressBlockedException
LoginServicelogin in interface LoginServiceFrameworkExceptionLoginExceptionRemoteAddressBlockedExceptionpublic UserLoginDetailedResult loginUser(UserLoginDTO params) throws FrameworkException, LoginException, RemoteAddressBlockedException
LoginServiceloginUser in interface LoginServiceFrameworkExceptionLoginExceptionRemoteAddressBlockedExceptionpublic void logout()
throws FrameworkException
LoginServicelogout in interface LoginServiceFrameworkExceptionpublic boolean logoutUser(java.lang.String token)
throws FrameworkException
LoginServicelogoutUser in interface LoginServiceFrameworkExceptionpublic java.lang.String replaceSession()
throws FrameworkException
LoginServicereplaceSession in interface LoginServiceFrameworkExceptionprotected org.cyclos.impl.access.EntityCheck<?> resolveEntityCheck()
BaseServiceSecurityEntityCheck managed by this security component, or null if
noneresolveEntityCheck in class BaseServiceSecurity