Package org.cyclos.security.system
Class SystemReportPreferencesServiceSecurity
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.security.BaseServiceSecurity
-
- org.cyclos.security.CRUDServiceSecurity<DTO,E,D,DP>
-
- org.cyclos.security.SimpleCRUDServiceSecurity<SystemReportPreferencesDTO,SystemReportPreferences,SystemReportPreferencesData,Void>
-
- org.cyclos.security.system.SystemReportPreferencesServiceSecurity
-
- All Implemented Interfaces:
CRUDService<SystemReportPreferencesDTO,SystemReportPreferencesData,Void>,CRUDWithConfirmationPasswordService<SystemReportPreferencesDTO,SystemReportPreferencesData,Void>,Service,SystemReportPreferencesService
@Security public class SystemReportPreferencesServiceSecurity extends SimpleCRUDServiceSecurity<SystemReportPreferencesDTO,SystemReportPreferences,SystemReportPreferencesData,Void> implements SystemReportPreferencesService
-
-
Field Summary
-
Fields inherited from class org.cyclos.security.SimpleCRUDServiceSecurity
managePermission, viewPermission
-
Fields inherited from class org.cyclos.security.CRUDServiceSecurity
entityClass
-
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 SystemReportPreferencesServiceSecurity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CRUDServiceLocal<SystemReportPreferences,SystemReportPreferencesDTO,SystemReportPreferencesData,Void>getImplementation()Should be implemented in order to return the actual implementation of the servicebooleanisAccessible(SessionData sessionData, SystemReportPreferences entity)Must be implemented in order to determine whether the given entity is accessible for the given session data.List<SystemReportPreferencesVO>list()List all available preferences-
Methods inherited from class org.cyclos.security.SimpleCRUDServiceSecurity
checkCreateNew, checkManagePermission, checkViewPermission, doHasManageAccess, doHasViewAccess, hasManagePermission, hasViewPermission
-
Methods inherited from class org.cyclos.security.CRUDServiceSecurity
canPerformOperation, canViewData, checkManageAccess, checkOperation, checkSave, checkViewAccess, customizeData, find, getConfirmationPasswordInputForRemove, getData, getDataForNew, getEntityClass, hasManageAccess, hasViewAccess, load, onBeforeSave, remove, removeAll, removeAllWithConfirmationPassword, removeWithConfirmationPassword, resolveEntityCheck, save, saveWithConfirmationPassword
-
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, setAlreadyValidated, toDate, toDateTime, validate
-
Methods inherited from class org.cyclos.impl.AbstractServerComponent
dataTranslationProxy, dataTranslationProxy, delete, detach, doDataTranslationProxy, find, flush, from, getApplicationContext, getFormatter, getFormatter, getFormatter, getLogger, getRemoteAddress, getSessionData, mailContentBuilder, message, message, persist, processBatch, processBatch, refresh, remove, selectFrom, subQuery, update
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.cyclos.services.CRUDService
getData, getDataForNew, load, remove, removeAll, save
-
-
-
-
Method Detail
-
isAccessible
public boolean isAccessible(SessionData sessionData, SystemReportPreferences entity)
Description copied from class:CRUDServiceSecurityMust be implemented in order to determine whether the given entity is accessible for the given session data. This method shouldn't check the same condition asCRUDServiceSecurity.hasViewAccess(BaseEntity). If the only condition for an entity isCRUDServiceSecurity.hasViewAccess(BaseEntity), this method should return false.- Specified by:
isAccessiblein classCRUDServiceSecurity<SystemReportPreferencesDTO,SystemReportPreferences,SystemReportPreferencesData,Void>
-
list
public List<SystemReportPreferencesVO> list() throws FrameworkException
Description copied from interface:SystemReportPreferencesServiceList all available preferences- Specified by:
listin interfaceSystemReportPreferencesService- Throws:
FrameworkException
-
getImplementation
protected CRUDServiceLocal<SystemReportPreferences,SystemReportPreferencesDTO,SystemReportPreferencesData,Void> getImplementation()
Description copied from class:CRUDServiceSecurityShould be implemented in order to return the actual implementation of the service- Specified by:
getImplementationin classCRUDServiceSecurity<SystemReportPreferencesDTO,SystemReportPreferences,SystemReportPreferencesData,Void>
-
-