Package org.cyclos.security.system
Class ServiceInterceptorServiceSecurity
- 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.ConfigurationEntityCRUDServiceSecurity<ServiceInterceptorDTO,ServiceInterceptor,ServiceInterceptorData,Void>
-
- org.cyclos.security.system.ServiceInterceptorServiceSecurity
-
- All Implemented Interfaces:
CRUDService<ServiceInterceptorDTO,ServiceInterceptorData,Void>,CRUDWithConfirmationPasswordService<ServiceInterceptorDTO,ServiceInterceptorData,Void>,Service,ServiceInterceptorService
@Security public class ServiceInterceptorServiceSecurity extends ConfigurationEntityCRUDServiceSecurity<ServiceInterceptorDTO,ServiceInterceptor,ServiceInterceptorData,Void> implements ServiceInterceptorService
Security layer forServiceInterceptorService
-
-
Field Summary
-
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 ServiceInterceptorServiceSecurity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckCreateNew(Void params)Checks whether creating new entities with the given context parameters is allowed, throwingPermissionDeniedExceptionif notvoiddisableAllInterceptorsInNetwork(NetworkVO vo)Disables all service interceptors in the given network.protected booleandoHasManageAccess(ServiceInterceptor entity)Should be implemented in order to return whether the caller is allowed to manage the given entity, for the given operationbooleandoHasViewAccess(ServiceInterceptor entity)Should be implemented in order to return whether the caller is allowed to view the given entity.protected CRUDServiceLocal<ServiceInterceptor,ServiceInterceptorDTO,ServiceInterceptorData,Void>getImplementation()Should be implemented in order to return the actual implementation of the serviceList<ServiceInterceptorVO>list()Lists all available service interceptorsvoidsaveOrder(List<Long> ids)Updates the order field according to the given ids sequence-
Methods inherited from class org.cyclos.security.ConfigurationEntityCRUDServiceSecurity
isAccessible
-
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
-
disableAllInterceptorsInNetwork
public void disableAllInterceptorsInNetwork(NetworkVO vo) throws FrameworkException
Description copied from interface:ServiceInterceptorServiceDisables all service interceptors in the given network. As a last resort, if an interceptor script is preventing the usage of the system, it is possible to switch to global mode and call this on the specific network. Must be in global mode to run.- Specified by:
disableAllInterceptorsInNetworkin interfaceServiceInterceptorService- Throws:
FrameworkException
-
doHasViewAccess
public boolean doHasViewAccess(ServiceInterceptor entity)
Description copied from class:CRUDServiceSecurityShould be implemented in order to return whether the caller is allowed to view the given entity.- Specified by:
doHasViewAccessin classCRUDServiceSecurity<ServiceInterceptorDTO,ServiceInterceptor,ServiceInterceptorData,Void>
-
list
public List<ServiceInterceptorVO> list() throws FrameworkException
Description copied from interface:ServiceInterceptorServiceLists all available service interceptors- Specified by:
listin interfaceServiceInterceptorService- Throws:
FrameworkException
-
saveOrder
public void saveOrder(List<Long> ids) throws FrameworkException
Description copied from interface:ServiceInterceptorServiceUpdates the order field according to the given ids sequence- Specified by:
saveOrderin interfaceServiceInterceptorService- Throws:
FrameworkException
-
checkCreateNew
protected void checkCreateNew(Void params)
Description copied from class:CRUDServiceSecurityChecks whether creating new entities with the given context parameters is allowed, throwingPermissionDeniedExceptionif not- Specified by:
checkCreateNewin classCRUDServiceSecurity<ServiceInterceptorDTO,ServiceInterceptor,ServiceInterceptorData,Void>
-
doHasManageAccess
protected boolean doHasManageAccess(ServiceInterceptor entity)
Description copied from class:CRUDServiceSecurityShould be implemented in order to return whether the caller is allowed to manage the given entity, for the given operation- Specified by:
doHasManageAccessin classCRUDServiceSecurity<ServiceInterceptorDTO,ServiceInterceptor,ServiceInterceptorData,Void>
-
getImplementation
protected CRUDServiceLocal<ServiceInterceptor,ServiceInterceptorDTO,ServiceInterceptorData,Void> getImplementation()
Description copied from class:CRUDServiceSecurityShould be implemented in order to return the actual implementation of the service- Specified by:
getImplementationin classCRUDServiceSecurity<ServiceInterceptorDTO,ServiceInterceptor,ServiceInterceptorData,Void>
-
-