@Security public class UserAddressServiceSecurity extends CRUDServiceSecurity<UserAddressDTO,UserAddress,UserAddressData,UserAddressDataParams> implements UserAddressService
UserAddressServiceentityClass| Constructor and Description |
|---|
UserAddressServiceSecurity() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canPerformOperation(UserAddress entity,
CRUDOperation operation)
Returns whether the logged user can perform the given operation over the given entity
|
protected void |
checkCreateNew(UserAddressDataParams params)
Checks whether creating new entities with the given context parameters is allowed, throwing
PermissionDeniedException if not |
boolean |
doHasManageAccess(UserAddress address)
Should be implemented in order to return whether the caller is allowed to manage the given entity, for the given
operation
|
boolean |
doHasViewAccess(UserAddress address)
Should be implemented in order to return whether the caller is allowed to view the given entity.
|
UserAddressListData |
getAddressListData(UserLocatorVO locator)
Returns all the user addresses.
|
protected UserAddressServiceLocal |
getImplementation()
Should be implemented in order to return the actual implementation of the service
|
boolean |
isAccessible(SessionData sessionData,
UserAddress entity)
Must be implemented in order to determine whether the given entity is accessible for the given session data.
|
void |
markAsDefault(java.lang.Long addressId)
Marks the given address as default for it's owner
|
protected void |
onBeforeSave(UserAddressDTO dto,
UserAddress address) |
canViewData, checkManageAccess, checkOperation, checkSave, checkViewAccess, customizeData, find, getConfirmationPasswordInputForRemove, getData, getDataForNew, getEntityClass, hasManageAccess, hasViewAccess, load, remove, removeAll, removeAllWithConfirmationPassword, removeWithConfirmationPassword, resolveEntityCheck, save, saveWithConfirmationPasswordcheckGuest, checkId, checkIds, checkInternalName, checkLoggedIn, checkManagesUser, checkRelatesToUser, checkScope, checkVO, checkVOs, doInitialize, getEntityCheckRegistry, getUser, initializecanManage, checkManagesUser, checkPermission, checkRelatesToUser, checkValue, clearAlreadyValidated, getBaseEntityManagerHandler, getConfiguration, getLoggedBasicUser, getLoggedUser, getProducts, getTranslatedName, getTranslatedValue, 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, getFormatter, getFormatter, getFormatter, getLogger, getRemoteAddress, getSessionData, mailContentBuilder, message, message, persist, processBatch, processBatch, refresh, remove, selectFrom, subQuery, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfirmationPasswordInputForRemove, removeAllWithConfirmationPassword, removeWithConfirmationPassword, saveWithConfirmationPasswordgetData, getDataForNew, load, remove, removeAll, savepublic boolean canPerformOperation(UserAddress entity, CRUDOperation operation)
CRUDServiceSecuritycanPerformOperation in class CRUDServiceSecurity<UserAddressDTO,UserAddress,UserAddressData,UserAddressDataParams>public boolean doHasManageAccess(UserAddress address)
CRUDServiceSecuritydoHasManageAccess in class CRUDServiceSecurity<UserAddressDTO,UserAddress,UserAddressData,UserAddressDataParams>public boolean doHasViewAccess(UserAddress address)
CRUDServiceSecuritydoHasViewAccess in class CRUDServiceSecurity<UserAddressDTO,UserAddress,UserAddressData,UserAddressDataParams>public UserAddressListData getAddressListData(UserLocatorVO locator)
UserAddressServicegetAddressListData in interface UserAddressServicepublic boolean isAccessible(SessionData sessionData, UserAddress entity)
CRUDServiceSecurityCRUDServiceSecurity.hasViewAccess(BaseEntity). If the only condition for an entity is
CRUDServiceSecurity.hasViewAccess(BaseEntity), this method
should return false.isAccessible in class CRUDServiceSecurity<UserAddressDTO,UserAddress,UserAddressData,UserAddressDataParams>public void markAsDefault(java.lang.Long addressId)
UserAddressServicemarkAsDefault in interface UserAddressServiceprotected void checkCreateNew(UserAddressDataParams params)
CRUDServiceSecurityPermissionDeniedException if notcheckCreateNew in class CRUDServiceSecurity<UserAddressDTO,UserAddress,UserAddressData,UserAddressDataParams>protected UserAddressServiceLocal getImplementation()
CRUDServiceSecuritygetImplementation in class CRUDServiceSecurity<UserAddressDTO,UserAddress,UserAddressData,UserAddressDataParams>protected void onBeforeSave(UserAddressDTO dto, UserAddress address)
onBeforeSave in class CRUDServiceSecurity<UserAddressDTO,UserAddress,UserAddressData,UserAddressDataParams>