public interface IApplicationSecurityProvider
Modifier and Type | Method and Description |
---|---|
boolean |
isCheckoutAuthorized(IBOEntity boEntity)
Returns whether current user is authorized to checkout data related to
the provided
boEntity , or not. |
boolean |
isCheckoutAuthorized(IBOEntity boEntity,
IBOTransition targetTransition)
Deprecated.
As of release 3.1, replaced by either
isCheckoutAuthorized(IBOEntity) , or
isCheckoutAuthorized(IBOTransition) |
boolean |
isCheckoutAuthorized(IBOTransition boTransition)
Returns whether current user is authorized to checkout data related to
boTransition 's target IBOEntity , and to make root of
them referenced through boTransition . |
boolean |
isCheckoutAuthorized(IEntity entity)
Returns whether current user is authorized to checkout data related to
the provided
entity , or not. |
boolean |
isCreateDataRowAuthorized(IBOTransition pBOTransition) |
boolean |
isCreateRootDataRowAuthorized(IBusinessObject pBusinessObject) |
boolean |
isLocalRemoveAuthorized(IEntity pBOEntity,
Collection<IBusinessObjectView> pBOViews)
Return true if this type of entity can be removed from a DataEntry
transaction
|
boolean |
isReadAuthorized(IBusinessObjectView pBOView)
Check if user can read this
IBusinessObjectView . |
boolean isCreateDataRowAuthorized(IBOTransition pBOTransition)
pBOTransition
- boolean isCreateRootDataRowAuthorized(IBusinessObject pBusinessObject)
pBusinessObject
- boolean isReadAuthorized(IBusinessObjectView pBOView)
IBusinessObjectView
. FIXME should we
hide it if user cannot read any attribute of the FormView/TAbleVieW?pBOView
- boolean isCheckoutAuthorized(IBOEntity boEntity)
boEntity
, or not.
In order for this this method to return true
, the current
user must be granted to checkout data from all IEntity
s in the
hierarchy defined by boEntity
.
boEntity
- the type of data to checkouttrue
if checkout is authorized, false
otherwiseboolean isCheckoutAuthorized(IBOTransition boTransition)
boTransition
's target IBOEntity
, and to make root of
them referenced through boTransition
.
In order for this this method to return true
, the current
user must be granted to checkout data from all IEntity
s in the
hierarchy defined by boTransition
's target IBOEntity
, AND granted to write into boTransition
's foreign attribute.
boTransition
- the transition referencing checkout data, or null
true
if checkout is authorized, false
otherwiseboolean isCheckoutAuthorized(IBOEntity boEntity, IBOTransition targetTransition)
isCheckoutAuthorized(IBOEntity)
, or
isCheckoutAuthorized(IBOTransition)
#isCreateAllowed(IEntity))
return true for
IBOEntity.getEntity()
and all the children entity in the BO
Hierarchy
#isWriteAuthorized(IAttribute)
return true for the Foreign
Attribute of the IBOTransition reference.pBOEntity
- pIntoTransition
- into which transition or null if rootboolean isCheckoutAuthorized(IEntity entity)
entity
, or not.entity
- the type of data to checkouttrue
if checkout from the given entity is
authorized, false
otherwiseboolean isLocalRemoveAuthorized(IEntity pBOEntity, Collection<IBusinessObjectView> pBOViews)
pBOEntity
- pBOViews
- Copyright © 2017. All rights reserved.