@Security public class ContactServiceSecurity extends CRUDServiceSecurity<ContactDTO,Contact,ContactData,ContactDataParams> implements ContactService
ContactServiceentityClass| Constructor and Description |
|---|
ContactServiceSecurity() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkCreateNew(ContactDataParams params)
Checks whether creating new entities with the given context parameters is allowed, throwing
PermissionDeniedException if not |
protected void |
customizeData(ContactData data)
Can be overridden in order to process the returned data object for the given entity
|
protected boolean |
doHasManageAccess(Contact contact)
Should be implemented in order to return whether the caller is allowed to manage the given entity, for the given
operation
|
boolean |
doHasViewAccess(Contact contact)
Should be implemented in order to return whether the caller is allowed to view the given entity.
|
protected ContactServiceLocal |
getImplementation()
Should be implemented in order to return the actual implementation of the service
|
ContactSearchData |
getSearchData(UserLocatorVO ownerVO)
Returns data for searching contacts of the given owner.
|
boolean |
isAccessible(SessionData sessionData,
Contact entity)
Must be implemented in order to determine whether the given entity is accessible for the given session data.
|
boolean |
removeByOwnerAndContact(UserLocatorVO owner,
UserLocatorVO contact)
Removes the contact, if exists, for the given owner and contact users.
|
Page<ContactVO> |
search(ContactQuery query)
Searches the contacts according to the given query.
|
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, getBaseEntityManagerHandler, getChannelConfiguration, getConfiguration, getLoggedBasicUser, getLoggedUser, getProducts, getTranslatedName, getTranslatedValue, 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, 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, waitgetData, getDataForNew, load, remove, removeAll, savepublic boolean doHasViewAccess(Contact contact)
CRUDServiceSecuritydoHasViewAccess in class CRUDServiceSecurity<ContactDTO,Contact,ContactData,ContactDataParams>public ContactSearchData getSearchData(UserLocatorVO ownerVO) throws FrameworkException
ContactServicegetSearchData in interface ContactServiceFrameworkExceptionpublic boolean isAccessible(SessionData sessionData, Contact entity)
CRUDServiceSecurityCRUDServiceSecurity.hasViewAccess(BaseEntity). If the only condition for an entity is
CRUDServiceSecurity.hasViewAccess(BaseEntity), this method
should return false.isAccessible in class CRUDServiceSecurity<ContactDTO,Contact,ContactData,ContactDataParams>public boolean removeByOwnerAndContact(UserLocatorVO owner, UserLocatorVO contact) throws FrameworkException
ContactServiceremoveByOwnerAndContact in interface ContactServiceFrameworkExceptionpublic Page<ContactVO> search(ContactQuery query) throws FrameworkException
ContactServicesearch in interface ContactServiceFrameworkExceptionprotected void checkCreateNew(ContactDataParams params)
CRUDServiceSecurityPermissionDeniedException if notcheckCreateNew in class CRUDServiceSecurity<ContactDTO,Contact,ContactData,ContactDataParams>protected void customizeData(ContactData data)
CRUDServiceSecuritycustomizeData in class CRUDServiceSecurity<ContactDTO,Contact,ContactData,ContactDataParams>protected boolean doHasManageAccess(Contact contact)
CRUDServiceSecuritydoHasManageAccess in class CRUDServiceSecurity<ContactDTO,Contact,ContactData,ContactDataParams>protected ContactServiceLocal getImplementation()
CRUDServiceSecuritygetImplementation in class CRUDServiceSecurity<ContactDTO,Contact,ContactData,ContactDataParams>