Interface AccessManagementService
-
- All Known Implementing Classes:
AccessManagementServiceImpl
public interface AccessManagementService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Profile
getLoggedProfile()
This method does returns database entity which logged in system.Seller
getLoggedSeller()
This method does returns database entity which logged in system.User
getLoggedUser()
This method does returns database entity which logged in system.boolean
hasAccessToOrder(Order order)
Checks if current user has rights to edit the order or to view detailsboolean
isAdmin()
This method checks access for admin rightsboolean
isAllSellerSkusAllowsToProcess(java.util.List<java.lang.String> sellerSkuIds)
This method checks access to perform actions with SellerSKU's itemboolean
isAllSellerSkusBelongsToLoggedUser(java.util.List<java.lang.String> sellerSkuIds)
This method checks access to perform actions with SellerSKU's itemboolean
isLogged()
This method checks user is loggedboolean
isSellerSkuAllowsToProcess(java.lang.String sellerSkuId)
This method checks access to perform actions with SellerSKU itemboolean
isSellerSkuBelongsToLoggedUser(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 returns database entity which logged in system.- Returns:
- database entity
-
getLoggedProfile
Profile getLoggedProfile()
This method does returns database entity which logged in system.- Returns:
- database entity
-
getLoggedUser
User getLoggedUser()
This method does returns 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
-
-