@Security public class AccessClientServiceSecurity extends CRUDServiceSecurity<AccessClientDTO,AccessClient,AccessClientData,AccessClientDataParams> implements AccessClientService
AccessClientServiceentityClass| Constructor and Description |
|---|
AccessClientServiceSecurity() |
| Modifier and Type | Method and Description |
|---|---|
ActivateAccessClientDTO |
activate(java.lang.String activationCode,
java.lang.String prefix)
Activates an access client for the current user, using the given activation code.
|
void |
block(AccessClientActionParams params)
Blocks the given an access client
|
protected void |
checkCreateNew(AccessClientDataParams params)
Checks whether creating new entities with the given context parameters is allowed, throwing
PermissionDeniedException if not |
protected void |
checkSearch() |
protected void |
customizeData(AccessClientData data)
Can be overridden in order to process the returned data object for the given entity
|
protected boolean |
doHasAccess(AccessClient entity,
com.querydsl.core.types.Path<java.lang.Boolean> path) |
protected boolean |
doHasAccess(AccessClient entity,
com.querydsl.core.types.Path<java.lang.Boolean> path,
boolean forCreate) |
protected boolean |
doHasAccess(User user,
AccessClientPrincipalType type,
com.querydsl.core.types.Path<java.lang.Boolean> path) |
protected boolean |
doHasAccess(User user,
AccessClientPrincipalType type,
com.querydsl.core.types.Path<java.lang.Boolean> path,
boolean forCreate) |
protected boolean |
doHasManageAccess(AccessClient entity)
Should be implemented in order to return whether the caller is allowed to manage the given entity, for the given
operation
|
boolean |
doHasViewAccess(AccessClient entity)
Should be implemented in order to return whether the caller is allowed to view the given entity.
|
java.lang.String |
getActivationCode(AccessClientActionParams params)
Returns the code which can be used to activate the access client, connecting an application
|
protected CRUDServiceLocal<AccessClient,AccessClientDTO,AccessClientData,AccessClientDataParams> |
getImplementation()
Should be implemented in order to return the actual implementation of the service
|
AccessClientsListData |
getListData(PrincipalTypeVO principalTypeVO,
UserLocatorVO locator)
Returns data for listing access clients of a given type and user
|
AccessClientsSearchData |
getSearchData()
Returns data for searching access clients
|
java.util.List<AccessClientTypeData> |
getTypeData(UserLocatorVO locator,
ChannelVO channel)
Returns data each access client type the authenticated user can see for the given user.
|
boolean |
isAccessible(SessionData sessionData,
AccessClient entity)
Must be implemented in order to determine whether the given entity is accessible for the given session data.
|
AccessClientVO |
locate(AccessClientLocator locator)
Returns an access client by either id or token, but only if it belongs (or is managed by) the authenticated user
|
Page<AccessClientDetailedVO> |
search(AccessClientQuery query)
Searches for access clients according to the given criteria
|
void |
unassign(AccessClientActionParams params)
Unassigns the given access client from its connected application
|
void |
unassignCurrent(ActionWithConfirmationPassword action)
Unassigns the access client in the current authorization.
|
void |
unblock(AccessClientActionParams params)
Unblocks the given access client
|
canPerformOperation, canViewHistoryLog, checkManageAccess, checkOperation, checkViewAccess, find, getConfirmationPasswordInputForRemove, getData, getDataForNew, getEntityClass, hasManageAccess, hasViewAccess, load, onBeforeSave, remove, removeAll, removeAllWithConfirmationPassword, removeWithConfirmationPassword, resolveEntityCheck, save, saveWithConfirmationPasswordcheckGuest, 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, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetData, getDataForNew, load, remove, removeAll, savepublic ActivateAccessClientDTO activate(java.lang.String activationCode, java.lang.String prefix) throws FrameworkException
AccessClientServiceactivate in interface AccessClientServiceFrameworkExceptionpublic void block(AccessClientActionParams params) throws FrameworkException
AccessClientServiceblock in interface AccessClientServiceIllegalActionException - When the status is not activeFrameworkExceptionpublic boolean doHasViewAccess(AccessClient entity)
CRUDServiceSecuritydoHasViewAccess in class CRUDServiceSecurity<AccessClientDTO,AccessClient,AccessClientData,AccessClientDataParams>public java.lang.String getActivationCode(AccessClientActionParams params) throws FrameworkException
AccessClientServicegetActivationCode in interface AccessClientServiceIllegalActionException - When the status is not unassignedFrameworkExceptionpublic AccessClientsListData getListData(PrincipalTypeVO principalTypeVO, UserLocatorVO locator) throws FrameworkException
AccessClientServicegetListData in interface AccessClientServiceFrameworkExceptionpublic AccessClientsSearchData getSearchData() throws FrameworkException
AccessClientServicegetSearchData in interface AccessClientServiceFrameworkExceptionpublic java.util.List<AccessClientTypeData> getTypeData(UserLocatorVO locator, ChannelVO channel) throws FrameworkException
AccessClientServicegetTypeData in interface AccessClientServiceFrameworkExceptionpublic boolean isAccessible(SessionData sessionData, AccessClient entity)
CRUDServiceSecurityCRUDServiceSecurity.hasViewAccess(BaseEntity). If the only condition for an entity is
CRUDServiceSecurity.hasViewAccess(BaseEntity), this method
should return false.isAccessible in class CRUDServiceSecurity<AccessClientDTO,AccessClient,AccessClientData,AccessClientDataParams>public AccessClientVO locate(AccessClientLocator locator) throws FrameworkException
AccessClientServicelocate in interface AccessClientServiceFrameworkExceptionpublic Page<AccessClientDetailedVO> search(AccessClientQuery query) throws FrameworkException
AccessClientServicesearch in interface AccessClientServiceFrameworkExceptionpublic void unassign(AccessClientActionParams params) throws FrameworkException
AccessClientServiceunassign in interface AccessClientServiceIllegalActionException - When the status is unassignedFrameworkExceptionpublic void unassignCurrent(ActionWithConfirmationPassword action) throws FrameworkException
AccessClientServiceunassignCurrent in interface AccessClientServiceFrameworkExceptionpublic void unblock(AccessClientActionParams params) throws FrameworkException
AccessClientServiceunblock in interface AccessClientServiceIllegalActionException - When the status is not blockedFrameworkExceptionprotected void checkCreateNew(AccessClientDataParams params)
CRUDServiceSecurityPermissionDeniedException if notcheckCreateNew in class CRUDServiceSecurity<AccessClientDTO,AccessClient,AccessClientData,AccessClientDataParams>protected void checkSearch()
protected void customizeData(AccessClientData data)
CRUDServiceSecuritycustomizeData in class CRUDServiceSecurity<AccessClientDTO,AccessClient,AccessClientData,AccessClientDataParams>protected boolean doHasAccess(AccessClient entity, com.querydsl.core.types.Path<java.lang.Boolean> path)
protected boolean doHasAccess(AccessClient entity, com.querydsl.core.types.Path<java.lang.Boolean> path, boolean forCreate)
protected boolean doHasAccess(User user, AccessClientPrincipalType type, com.querydsl.core.types.Path<java.lang.Boolean> path)
protected boolean doHasAccess(User user, AccessClientPrincipalType type, com.querydsl.core.types.Path<java.lang.Boolean> path, boolean forCreate)
protected boolean doHasManageAccess(AccessClient entity)
CRUDServiceSecuritydoHasManageAccess in class CRUDServiceSecurity<AccessClientDTO,AccessClient,AccessClientData,AccessClientDataParams>protected CRUDServiceLocal<AccessClient,AccessClientDTO,AccessClientData,AccessClientDataParams> getImplementation()
CRUDServiceSecuritygetImplementation in class CRUDServiceSecurity<AccessClientDTO,AccessClient,AccessClientData,AccessClientDataParams>