Interface AccessManagementService
-
- All Known Implementing Classes:
AccessManagementServiceImpl
public interface AccessManagementService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ProfilegetLoggedProfile()This method does return database entity which logged in system.SellergetLoggedSeller()This method does return database entity which logged in system.UsergetLoggedUser()This method does return database entity which logged in system.booleanhasAccessToOrder(Order order)Checks if current user has rights to edit the order or to view detailsbooleanisAdmin()This method checks access for admin rightsbooleanisAllSellerSkusAllowsToProcess(java.util.List<java.lang.String> sellerSkuIds)This method checks access to perform actions with SellerSKU's itembooleanisAllSellerSkusBelongsToLoggedUser(java.util.List<java.lang.String> sellerSkuIds)This method checks access to perform actions with SellerSKU's itembooleanisLogged()This method checks user is loggedbooleanisSellerSkuAllowsToProcess(java.lang.String sellerSkuId)This method checks access to perform actions with SellerSKU itembooleanisSellerSkuBelongsToLoggedUser(java.lang.String sellerSkuId)This method checks access to perform actions with SellerSKU item
-
-
-
Method Detail
-
isLogged
boolean isLogged()
This method checks user is logged- Returns:
- true or false
-
isAdmin
boolean isAdmin()
This method checks access for admin rights- Returns:
- true or false
-
getLoggedSeller
Seller getLoggedSeller()
This method does return database entity which logged in system.- Returns:
- database entity
-
getLoggedProfile
Profile getLoggedProfile()
This method does return database entity which logged in system.- Returns:
- database entity
-
getLoggedUser
User getLoggedUser()
This method does return database entity which logged in system.- Returns:
- database user entity
-
isSellerSkuBelongsToLoggedUser
boolean isSellerSkuBelongsToLoggedUser(java.lang.String sellerSkuId)
This method checks access to perform actions with SellerSKU item- Parameters:
sellerSkuId- - this is identification for entity item- Returns:
- true or false
-
isSellerSkuAllowsToProcess
boolean isSellerSkuAllowsToProcess(java.lang.String sellerSkuId)
This method checks access to perform actions with SellerSKU item- Parameters:
sellerSkuId- - this is identification for entity item- Returns:
- true or false
-
isAllSellerSkusBelongsToLoggedUser
boolean isAllSellerSkusBelongsToLoggedUser(java.util.List<java.lang.String> sellerSkuIds)
This method checks access to perform actions with SellerSKU's item- Parameters:
sellerSkuIds- - this is identifications for entity items- Returns:
- true or false
-
isAllSellerSkusAllowsToProcess
boolean isAllSellerSkusAllowsToProcess(java.util.List<java.lang.String> sellerSkuIds)
This method checks access to perform actions with SellerSKU's item- Parameters:
sellerSkuIds- - this is identifications for entity items- Returns:
- true or false
-
hasAccessToOrder
boolean hasAccessToOrder(Order order)
Checks if current user has rights to edit the order or to view details- Parameters:
order- order to check- Returns:
true— if has access
-
-