com.semarchy.mdm.runtime.model.security
Interface IApplicationSecurityProvider


public interface IApplicationSecurityProvider


Method Summary
 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.
 

Method Detail

isCreateDataRowAuthorized

boolean isCreateDataRowAuthorized(IBOTransition pBOTransition)
Parameters:
pBOTransition -
Returns:

isCreateRootDataRowAuthorized

boolean isCreateRootDataRowAuthorized(IBusinessObject pBusinessObject)
Parameters:
pBusinessObject -
Returns:

isReadAuthorized

boolean isReadAuthorized(IBusinessObjectView pBOView)
Check if user can read this IBusinessObjectView. FIXME should we hide it if user cannot read any attribute of the FormView/TAbleVieW?

Parameters:
pBOView -
Returns:

isCheckoutAuthorized

boolean isCheckoutAuthorized(IBOEntity boEntity)
Returns whether current user is authorized to checkout data related to the provided boEntity, or not.

In order for this this method to return true, the current user must be granted to checkout data from all IEntitys in the hierarchy defined by boEntity.

Parameters:
boEntity - the type of data to checkout
Returns:
true if checkout is authorized, false otherwise

isCheckoutAuthorized

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.

In order for this this method to return true, the current user must be granted to checkout data from all IEntitys in the hierarchy defined by boTransition's target IBOEntity , AND granted to write into boTransition's foreign attribute.

Parameters:
boTransition - the transition referencing checkout data, or null
Returns:
true if checkout is authorized, false otherwise

isCheckoutAuthorized

boolean isCheckoutAuthorized(IBOEntity boEntity,
                             IBOTransition targetTransition)
Deprecated. As of release 3.1, replaced by either isCheckoutAuthorized(IBOEntity), or isCheckoutAuthorized(IBOTransition)

Checkout is authorized:

isCheckoutAuthorized

boolean isCheckoutAuthorized(IEntity entity)
Returns whether current user is authorized to checkout data related to the provided entity, or not.

Parameters:
entity - the type of data to checkout
Returns:
true if checkout from the given entity is authorized, false otherwise

isLocalRemoveAuthorized

boolean isLocalRemoveAuthorized(IEntity pBOEntity,
                                Collection<IBusinessObjectView> pBOViews)
Return true if this type of entity can be removed from a DataEntry transaction

Parameters:
pBOEntity -
pBOViews -
Returns:


Copyright © 2015. All Rights Reserved.