@Security public class OperatorServiceSecurity extends CRUDServiceSecurity<OperatorDTO,Operator,OperatorData,OperatorDataParams> implements OperatorService
OperatorServiceentityClass| Constructor and Description |
|---|
OperatorServiceSecurity() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canManageOperators(User user) |
boolean |
canPerformOperation(Operator operator,
CRUDOperation operation)
Returns whether the logged user can perform the given operation over the given entity
|
boolean |
canViewOperators(User user) |
protected void |
checkCreateNew(OperatorDataParams params)
Checks whether creating new entities with the given context parameters is allowed, throwing
PermissionDeniedException if not |
protected boolean |
doHasManageAccess(Operator operator)
Should be implemented in order to return whether the caller is allowed to manage the given entity, for the given
operation
|
boolean |
doHasViewAccess(Operator operator)
Should be implemented in order to return whether the caller is allowed to view the given entity.
|
protected CRUDServiceLocal<Operator,OperatorDTO,OperatorData,OperatorDataParams> |
getImplementation()
Should be implemented in order to return the actual implementation of the service
|
OperatorsSearchData |
getSearchData(UserLocatorVO locator)
Returns data for searching operators of the given user
|
ViewOperatorProfileData |
getViewProfileData(UserLocatorVO locator)
Returns data for viewing an operator profile
|
boolean |
isAccessible(SessionData sessionData,
Operator operator)
Must be implemented in order to determine whether the given entity is accessible for the given session data.
|
UserRegistrationResult |
register(OperatorRegistrationDTO dto)
Registers an operator, returning the status and generated data
|
Page<OperatorVO> |
search(OperatorQuery params)
Searches for operators according to the given criteria
|
canViewHistoryLog, checkManageAccess, checkOperation, checkViewAccess, customizeData, 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 boolean canManageOperators(User user)
public boolean canPerformOperation(Operator operator, CRUDOperation operation)
CRUDServiceSecuritycanPerformOperation in class CRUDServiceSecurity<OperatorDTO,Operator,OperatorData,OperatorDataParams>public boolean canViewOperators(User user)
public boolean doHasViewAccess(Operator operator)
CRUDServiceSecuritydoHasViewAccess in class CRUDServiceSecurity<OperatorDTO,Operator,OperatorData,OperatorDataParams>public OperatorsSearchData getSearchData(UserLocatorVO locator) throws FrameworkException
OperatorServicegetSearchData in interface OperatorServiceFrameworkExceptionpublic ViewOperatorProfileData getViewProfileData(UserLocatorVO locator) throws FrameworkException
OperatorServicegetViewProfileData in interface OperatorServiceFrameworkExceptionpublic boolean isAccessible(SessionData sessionData, Operator operator)
CRUDServiceSecurityCRUDServiceSecurity.hasViewAccess(BaseEntity). If the only condition for an entity is
CRUDServiceSecurity.hasViewAccess(BaseEntity), this method
should return false.isAccessible in class CRUDServiceSecurity<OperatorDTO,Operator,OperatorData,OperatorDataParams>public UserRegistrationResult register(OperatorRegistrationDTO dto) throws FrameworkException
OperatorServiceregister in interface OperatorServiceFrameworkExceptionpublic Page<OperatorVO> search(OperatorQuery params) throws FrameworkException
OperatorServicesearch in interface OperatorServiceFrameworkExceptionprotected void checkCreateNew(OperatorDataParams params)
CRUDServiceSecurityPermissionDeniedException if notcheckCreateNew in class CRUDServiceSecurity<OperatorDTO,Operator,OperatorData,OperatorDataParams>protected boolean doHasManageAccess(Operator operator)
CRUDServiceSecuritydoHasManageAccess in class CRUDServiceSecurity<OperatorDTO,Operator,OperatorData,OperatorDataParams>protected CRUDServiceLocal<Operator,OperatorDTO,OperatorData,OperatorDataParams> getImplementation()
CRUDServiceSecuritygetImplementation in class CRUDServiceSecurity<OperatorDTO,Operator,OperatorData,OperatorDataParams>