Package org.cyclos.security.users
Class ProductsGroupServiceSecurity
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.security.BaseServiceSecurity
-
- org.cyclos.security.users.ProductsGroupServiceSecurity
-
- All Implemented Interfaces:
Service,BaseProductsOwnerService<BasicGroupVO,GroupProductsCollections>,ProductsGroupService
@Security public class ProductsGroupServiceSecurity extends BaseServiceSecurity implements ProductsGroupService
Security forProductsGroupService
-
-
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 ProductsGroupServiceSecurity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanassign(ProductVO productVO, BasicGroupVO groupVO)Assigns the given product to the product owner.ActiveProductsDatagetActiveProducts(BasicGroupVO groupVO, ChannelVO channel, PrincipalTypeVO principalType)Returns theActiveProductsData, containing all the actual product data for the user/group with the given id and the specified channel (if null then it doesn't filter the products by channel) and principal type (if null then it doesn't filter the products by principal type).GroupProductsCollectionsgetData(BasicGroupVO owner)Returns the data used to view / manage an owner's individual productsList<ProductAssignmentLogVO>getLogs(@NotNull BasicGroupVO owner)Returns the log for the individually assigned products to the given user.protected EntityCheck<?>resolveEntityCheck()Must be implemented in order to return theEntityCheckmanaged by this security component, or null if nonebooleanunassign(ProductVO productVO, BasicGroupVO groupVO)Unassigns the given product from the owner-
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
-
assign
public boolean assign(ProductVO productVO, BasicGroupVO groupVO)
Description copied from interface:BaseProductsOwnerServiceAssigns the given product to the product owner.- Specified by:
assignin interfaceBaseProductsOwnerService<BasicGroupVO,GroupProductsCollections>
-
getActiveProducts
public ActiveProductsData getActiveProducts(BasicGroupVO groupVO, ChannelVO channel, PrincipalTypeVO principalType) throws FrameworkException
Description copied from interface:BaseProductsOwnerServiceReturns theActiveProductsData, containing all the actual product data for the user/group with the given id and the specified channel (if null then it doesn't filter the products by channel) and principal type (if null then it doesn't filter the products by principal type).- Specified by:
getActiveProductsin interfaceBaseProductsOwnerService<BasicGroupVO,GroupProductsCollections>- Throws:
FrameworkException
-
getData
public GroupProductsCollections getData(BasicGroupVO owner) throws FrameworkException
Description copied from interface:BaseProductsOwnerServiceReturns the data used to view / manage an owner's individual products- Specified by:
getDatain interfaceBaseProductsOwnerService<BasicGroupVO,GroupProductsCollections>- Throws:
FrameworkException
-
getLogs
public List<ProductAssignmentLogVO> getLogs(@NotNull @NotNull BasicGroupVO owner) throws FrameworkException
Description copied from interface:BaseProductsOwnerServiceReturns the log for the individually assigned products to the given user.- Specified by:
getLogsin interfaceBaseProductsOwnerService<BasicGroupVO,GroupProductsCollections>- Throws:
FrameworkException
-
unassign
public boolean unassign(ProductVO productVO, BasicGroupVO groupVO)
Description copied from interface:BaseProductsOwnerServiceUnassigns the given product from the owner- Specified by:
unassignin interfaceBaseProductsOwnerService<BasicGroupVO,GroupProductsCollections>
-
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
-
-