@Security public class GroupServiceSecurity extends CRUDServiceSecurity<BasicGroupDTO,BasicGroup,BasicGroupData,BasicGroupNature> implements GroupService
GroupServiceentityClass| Constructor and Description |
|---|
GroupServiceSecurity() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canPerformOperation(BasicGroup entity,
CRUDOperation operation)
Returns whether the logged user can perform the given operation over the given entity
|
void |
changeConfiguration(BasicGroupVO basicGroupVO,
ConfigurationVO configurationVO)
Changes the configuration for the specified BasicGroup by assigning a new Configuration.
|
protected void |
checkCreateNew(BasicGroupNature params)
Checks whether creating new entities with the given context parameters is allowed, throwing
PermissionDeniedException if not |
protected void |
customizeData(BasicGroupData data)
Can be overridden in order to process the returned data object for the given entity
|
protected boolean |
doHasManageAccess(BasicGroup entity)
Should be implemented in order to return whether the caller is allowed to manage the given entity, for the given
operation
|
boolean |
doHasViewAccess(BasicGroup entity)
Should be implemented in order to return whether the caller is allowed to view the given entity.
|
ActiveConfigurationForGroupsData |
getActiveConfiguration(BasicGroupVO basicGroupVO)
Returns the
ActiveConfigurationForGroupsData, containing all the actual configuration for the given group
or group set |
protected GroupServiceLocal |
getImplementation()
Should be implemented in order to return the actual implementation of the service
|
GroupSearchData |
getSearchData()
Returns the data for searching groups
|
boolean |
isAccessible(SessionData sessionData,
BasicGroup basicGroup)
Must be implemented in order to determine whether the given entity is accessible for the given session data.
|
Page<BasicGroupVO> |
search(BasicGroupQuery query)
Searches for groups, returning results hierarchically
|
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, isMemberOnly, 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, mailContentBuilder, message, message, persist, processBatch, refresh, remove, selectFrom, subQuery, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetData, getDataForNew, load, remove, removeAll, savepublic boolean canPerformOperation(BasicGroup entity, CRUDOperation operation)
CRUDServiceSecuritycanPerformOperation in class CRUDServiceSecurity<BasicGroupDTO,BasicGroup,BasicGroupData,BasicGroupNature>public void changeConfiguration(BasicGroupVO basicGroupVO, ConfigurationVO configurationVO) throws FrameworkException
GroupServicechangeConfiguration in interface GroupServiceIllegalActionException - If the given configuration is not enabled for logged usersFrameworkExceptionpublic boolean doHasViewAccess(BasicGroup entity)
CRUDServiceSecuritydoHasViewAccess in class CRUDServiceSecurity<BasicGroupDTO,BasicGroup,BasicGroupData,BasicGroupNature>public ActiveConfigurationForGroupsData getActiveConfiguration(BasicGroupVO basicGroupVO) throws EntityNotFoundException
GroupServiceActiveConfigurationForGroupsData, containing all the actual configuration for the given group
or group setgetActiveConfiguration in interface GroupServiceEntityNotFoundExceptionpublic GroupSearchData getSearchData()
GroupServicegetSearchData in interface GroupServicepublic boolean isAccessible(SessionData sessionData, BasicGroup basicGroup)
CRUDServiceSecurityCRUDServiceSecurity.hasViewAccess(BaseEntity). If the only condition for an entity is
CRUDServiceSecurity.hasViewAccess(BaseEntity), this method
should return false.isAccessible in class CRUDServiceSecurity<BasicGroupDTO,BasicGroup,BasicGroupData,BasicGroupNature>public Page<BasicGroupVO> search(BasicGroupQuery query)
GroupServicesearch in interface GroupServiceprotected void checkCreateNew(BasicGroupNature params)
CRUDServiceSecurityPermissionDeniedException if notcheckCreateNew in class CRUDServiceSecurity<BasicGroupDTO,BasicGroup,BasicGroupData,BasicGroupNature>protected void customizeData(BasicGroupData data)
CRUDServiceSecuritycustomizeData in class CRUDServiceSecurity<BasicGroupDTO,BasicGroup,BasicGroupData,BasicGroupNature>protected boolean doHasManageAccess(BasicGroup entity)
CRUDServiceSecuritydoHasManageAccess in class CRUDServiceSecurity<BasicGroupDTO,BasicGroup,BasicGroupData,BasicGroupNature>protected GroupServiceLocal getImplementation()
CRUDServiceSecuritygetImplementation in class CRUDServiceSecurity<BasicGroupDTO,BasicGroup,BasicGroupData,BasicGroupNature>