Package org.cyclos.security.messaging
Class AlertServiceSecurity
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.security.BaseServiceSecurity
-
- org.cyclos.security.messaging.AlertServiceSecurity
-
- All Implemented Interfaces:
AlertService,Service
@Security public class AlertServiceSecurity extends BaseServiceSecurity implements AlertService
Security layer forAlertService
-
-
Field Summary
-
Fields inherited from class org.cyclos.impl.AbstractNetworkedServerComponent
authHandler, conversionHandler, customFieldValueHandler, entityManagerHandler, groupsHandler, productsHandler, restBeanPropertyMapping, userLocatorHandler
-
Fields inherited from class org.cyclos.impl.AbstractServerComponent
accountHandler, configurationHandler, dataTranslationHandler, notificationHandler, profileFieldHandler, transactionHandler, translationHandler
-
-
Constructor Summary
Constructors Constructor Description AlertServiceSecurity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SystemAlertSearchDatagetSystemSearchData()Returns data for searching the system alerts historyUserAlertSearchDatagetUserSearchData()Returns data for searching the user alerts historyvoidremove(Long id)Removes the given alertvoidremoveAll(Set<Long> ids)Removes all the given alertsprotected EntityCheck<?>resolveEntityCheck()Must be implemented in order to return theEntityCheckmanaged by this security component, or null if nonePage<SystemAlertVO>searchSystem(SystemAlertQuery alertQuery)Searches for system alerts historyPage<UserAlertVO>searchUser(UserAlertQuery alertQuery)Searches for user alerts history-
Methods inherited from class org.cyclos.security.BaseServiceSecurity
checkGuest, checkId, checkIds, checkInternalName, checkLoggedIn, checkManagesUser, checkRelatesToUser, checkScope, checkVO, checkVOs, doInitialize, getEntityCheckRegistry, getUser, initialize
-
Methods inherited from class org.cyclos.impl.AbstractNetworkedServerComponent
canManage, 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, validate
-
Methods inherited from class org.cyclos.impl.AbstractServerComponent
dataTranslationProxy, delete, detach, find, flush, from, getApplicationContext, getFormatter, getFormatter, getFormatter, getLogger, getRemoteAddress, getSessionData, mailContentBuilder, message, message, persist, processBatch, processBatch, refresh, remove, selectFrom, subQuery, update
-
-
-
-
Method Detail
-
getSystemSearchData
public SystemAlertSearchData getSystemSearchData() throws FrameworkException
Description copied from interface:AlertServiceReturns data for searching the system alerts history- Specified by:
getSystemSearchDatain interfaceAlertService- Throws:
FrameworkException
-
getUserSearchData
public UserAlertSearchData getUserSearchData() throws FrameworkException
Description copied from interface:AlertServiceReturns data for searching the user alerts history- Specified by:
getUserSearchDatain interfaceAlertService- Throws:
FrameworkException
-
remove
public void remove(Long id)
Description copied from interface:AlertServiceRemoves the given alert- Specified by:
removein interfaceAlertService
-
removeAll
public void removeAll(Set<Long> ids)
Description copied from interface:AlertServiceRemoves all the given alerts- Specified by:
removeAllin interfaceAlertService
-
searchSystem
public Page<SystemAlertVO> searchSystem(SystemAlertQuery alertQuery)
Description copied from interface:AlertServiceSearches for system alerts history- Specified by:
searchSystemin interfaceAlertService
-
searchUser
public Page<UserAlertVO> searchUser(UserAlertQuery alertQuery)
Description copied from interface:AlertServiceSearches for user alerts history- Specified by:
searchUserin interfaceAlertService
-
resolveEntityCheck
protected EntityCheck<?> resolveEntityCheck()
Description copied from class:BaseServiceSecurityMust be implemented in order to return theEntityCheckmanaged by this security component, or null if none- Specified by:
resolveEntityCheckin classBaseServiceSecurity
-
-