|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDataAccessModelSecurityProvider
Allows to check the actual privileges granted for a given dataAccessmodel and user
Method Summary | |
---|---|
AttributeAuthorization |
getAttributeAuthorization(IViewAttribute<? extends IAttribute> attribute)
Return the AttributeAuthorization for an IViewAttribute |
RowScope |
getCheckoutAuthorizationScope(IView view)
Get checkout RowScope for the given view |
RowScope |
getCreateAuthorizationScope(IView dataEntryView)
Get create RowScope for the given view |
RowScope |
getExportAuthorizationScope(IView view)
Returns the RowScope under which the view export is authorized. |
List<IViewAttribute<? extends IAttribute>> |
getReadableAttributes(List<IViewAttribute<? extends IAttribute>> attributes)
This method return a new list containing only attributes for which isReadAuthorized(IViewAttribute) returns true. |
RowScope |
getReadAuthorizationScope(IView view)
Get read RowScope for the given view |
Set<String> |
getRoleNames()
Return the list of role names for current user. |
String |
getUsername()
Authenticated user name |
boolean |
isCheckoutAuthorized(IView view)
Returns true if some rows can be checked out on view i.e. |
boolean |
isCreateAuthorized(IView dataEntryView)
Returns true if some rows can be created on view i.e. |
boolean |
isCreateChildAuthorized(IOneToManyNode navNode)
|
boolean |
isExportAuthorized(IView view)
Returns true if some rows are exportable on view i.e. |
boolean |
isNavigationAuthorized(INavigationNode node)
Return true if navigation on this node is authorized, false otherwise. |
boolean |
isReadAuthorized(IView view)
Returns true if some rows can be read on view i.e. |
boolean |
isReadAuthorized(IViewAttribute<? extends IAttribute> attribute)
Returns true if attribute can be read for some rows i.e. |
boolean |
isWriteAuthorized(IViewAttribute<? extends IAttribute> attribute)
Returns true if attribute can be written for some rows i.e. |
Method Detail |
---|
String getUsername()
Set<String> getRoleNames()
RowScope getExportAuthorizationScope(IView view)
RowScope
under which the view export is authorized.
view
-
boolean isExportAuthorized(IView view)
getExportAuthorizationScope(IView)
is not
RowScope.NO_ROWS
dataEntryView
-
RowScope getCreateAuthorizationScope(IView dataEntryView)
RowScope
for the given view
view
-
boolean isCreateAuthorized(IView dataEntryView)
getCreateAuthorizationScope(IView)
is not
RowScope.NO_ROWS
dataEntryView
-
RowScope getCheckoutAuthorizationScope(IView view)
RowScope
for the given view
view
-
boolean isCheckoutAuthorized(IView view)
getCheckoutAuthorizationScope(IView)
is not
RowScope.NO_ROWS
view
-
true
if authorized to checkout, false
otherwiseRowScope getReadAuthorizationScope(IView view)
RowScope
for the given view
view
-
boolean isReadAuthorized(IView view)
getReadAuthorizationScope(IView)
is not RowScope.NO_ROWS
view
- AttributeAuthorization getAttributeAuthorization(IViewAttribute<? extends IAttribute> attribute)
AttributeAuthorization
for an IViewAttribute
attribute
-
boolean isReadAuthorized(IViewAttribute<? extends IAttribute> attribute)
getAttributeAuthorization(IViewAttribute extends IAttribute)
.
AttributeAuthorization.getReadAuthorizedScope()
is not
RowScope.NO_ROWS
attribute
-
getAttributeAuthorization(IViewAttribute)
,
AttributeAuthorization.getReadAuthorizedScope()
boolean isWriteAuthorized(IViewAttribute<? extends IAttribute> attribute)
getAttributeAuthorization(IViewAttribute extends IAttribute)
.
AttributeAuthorization.getWriteAuthorizedScope()
is not
RowScope.NO_ROWS
attribute
-
getAttributeAuthorization(IViewAttribute)
,
AttributeAuthorization.getWriteAuthorizedScope()
boolean isNavigationAuthorized(INavigationNode node)
ILineageNode
s this method return true if the
INavigationNode.getToView()
is readable
IManyToOneNode
s and IOneToManyNode
this method
return true if the INavigationNode.getToView()
is readable and if
the underlying IForeignAttribute
is readable.
node
- isReadAuthorized(IView)
List<IViewAttribute<? extends IAttribute>> getReadableAttributes(List<IViewAttribute<? extends IAttribute>> attributes)
isReadAuthorized(IViewAttribute)
returns true.
attributes
-
boolean isCreateChildAuthorized(IOneToManyNode navNode)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |