public abstract class BaseServiceSecurity
extends org.cyclos.impl.AbstractNetworkedServerComponent
| Constructor and Description |
|---|
BaseServiceSecurity() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkGuest()
Makes sure that a guest is invoking the method
|
protected void |
checkId(java.lang.Class<? extends BaseEntity> entityType,
java.lang.Long id)
Makes sure that the entity with the given id is valid, ignoring if id is null
|
protected void |
checkIds(java.lang.Class<? extends BaseEntity> entityType,
java.util.Collection<java.lang.Long> ids)
Makes sure that all entities with the given ids are valid, ignoring nulls / empty collections
|
protected void |
checkInternalName(java.lang.Class<? extends BaseEntity> entityType,
java.lang.String internalName)
Makes sure that the entity with the given internal name is valid, ignoring if internal name is null
|
protected void |
checkLoggedIn()
Makes sure that a logged user is invoking the method
|
protected BasicUser |
checkManagesUser(IUser user) |
protected BasicUser |
checkRelatesToUser(IUser user) |
protected void |
checkVO(java.lang.Class<? extends BaseEntity> entityType,
EntityVO vo)
Makes sure that the given vo is valid, either attempting to load the entity by id or internal name
|
protected void |
checkVOs(java.lang.Class<? extends BaseEntity> entityType,
java.util.Collection<? extends EntityVO> vos)
Makes sure that all entities with the given ids are valid, ignoring nulls / empty collections
|
protected void |
doInitialize() |
protected org.cyclos.impl.access.EntityCheckRegistry |
getEntityCheckRegistry() |
protected BasicUser |
getUser(IUser user) |
void |
initialize() |
protected abstract org.cyclos.impl.access.EntityCheck<?> |
resolveEntityCheck()
Must be implemented in order to return the
EntityCheck managed by this security component, or null if
none |
canManage, 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, update@PostConstruct public final void initialize()
protected void checkGuest()
protected void checkId(java.lang.Class<? extends BaseEntity> entityType, java.lang.Long id)
protected void checkIds(java.lang.Class<? extends BaseEntity> entityType, java.util.Collection<java.lang.Long> ids)
protected void checkInternalName(java.lang.Class<? extends BaseEntity> entityType, java.lang.String internalName)
protected void checkLoggedIn()
protected void checkVO(java.lang.Class<? extends BaseEntity> entityType, EntityVO vo)
protected void checkVOs(java.lang.Class<? extends BaseEntity> entityType, java.util.Collection<? extends EntityVO> vos)
protected void doInitialize()
protected org.cyclos.impl.access.EntityCheckRegistry getEntityCheckRegistry()
protected abstract org.cyclos.impl.access.EntityCheck<?> resolveEntityCheck()
EntityCheck managed by this security component, or null if
none