Package org.cyclos.security.access
Class AgreementServiceSecurity
- 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<DTO,E,D,DP>
-
- org.cyclos.security.SimpleConfigurationEntityCRUDServiceSecurity<AgreementDTO,Agreement,AgreementData,Void>
-
- org.cyclos.security.access.AgreementServiceSecurity
-
- All Implemented Interfaces:
AgreementService,CRUDService<AgreementDTO,AgreementData,Void>,CRUDWithConfirmationPasswordService<AgreementDTO,AgreementData,Void>,Service
@Security public class AgreementServiceSecurity extends SimpleConfigurationEntityCRUDServiceSecurity<AgreementDTO,Agreement,AgreementData,Void> implements AgreementService
Security forAgreementService
-
-
Field Summary
-
Fields inherited from class org.cyclos.security.SimpleConfigurationEntityCRUDServiceSecurity
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 AgreementServiceSecurity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AgreementContentVOgetContent(@NotNull AgreementVO agreement, Integer version, Long groupId)Returns the content of a given agreement, optionally with a specific version.protected AgreementServiceLocalgetImplementation()Should be implemented in order to return the actual implementation of the serviceList<AgreementVO>list()Lists all agreements.-
Methods inherited from class org.cyclos.security.SimpleConfigurationEntityCRUDServiceSecurity
checkCreateNew, checkManagePermission, checkViewPermission, doHasManageAccess, doHasViewAccess, hasManagePermission, hasViewPermission
-
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
-
getContent
public AgreementContentVO getContent(@NotNull @NotNull AgreementVO agreement, Integer version, Long groupId) throws FrameworkException
Description copied from interface:AgreementServiceReturns the content of a given agreement, optionally with a specific version. When no version is specified, returns the current content.- Specified by:
getContentin interfaceAgreementService- Throws:
FrameworkException
-
list
public List<AgreementVO> list()
Description copied from interface:AgreementServiceLists all agreements.- Specified by:
listin interfaceAgreementService
-
getImplementation
protected AgreementServiceLocal getImplementation()
Description copied from class:CRUDServiceSecurityShould be implemented in order to return the actual implementation of the service- Specified by:
getImplementationin classCRUDServiceSecurity<AgreementDTO,Agreement,AgreementData,Void>
-
-