Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
logger |
Modifier and Type | Method and Description |
---|---|
static LogicalModelAuthorizations |
createLogicalModelAuthorizations(IModel model,
Set<String> platformRoles)
Creates a new
LogicalModelAuthorizations |
AttributeAuthorization |
getAttributeAuthorization(IAttribute attribute)
Get the authorizations for a given attribute
|
EntityAuthorization |
getEntityAuthorization(IEntity entity)
Get the authorizations for a given entity.
|
Set<String> |
getRoleNames()
Return the list of role names for which this
LogicalModelAuthorizations has been built. |
boolean |
isDataAdmin()
Return true if any of the set of roles is DataAdmin.
|
boolean |
isDupsMgmtCheckoutAuthorized(IEntity entity)
Indicates whether checkout into dups mgmt activity is authorized for
given entity.
|
boolean |
isDupsMgmtConfirmAuthorized(IEntity entity)
Indicates whether DupsMgmt confirm related actions (confirm/unconfirm) are authorized for a
given entity given entity.
|
boolean |
isDupsMgmtMoveAuthorized(IEntity entity)
Indicates whether DupsMgmt move (split/merge/unmerge...) actions are
authorized for a given entity given entity.
|
public static LogicalModelAuthorizations createLogicalModelAuthorizations(IModel model, Set<String> platformRoles)
LogicalModelAuthorizations
model
- platformRoles
- public Set<String> getRoleNames()
LogicalModelAuthorizations
has been built.
Caller should generally rely on more specific methods to check
authorizations.public boolean isDataAdmin()
public EntityAuthorization getEntityAuthorization(IEntity entity)
entity
- public AttributeAuthorization getAttributeAuthorization(IAttribute attribute)
attribute
- public boolean isDupsMgmtCheckoutAuthorized(IEntity entity)
entity
- public boolean isDupsMgmtConfirmAuthorized(IEntity entity)
entity
- public boolean isDupsMgmtMoveAuthorized(IEntity entity)
entity
- Copyright © 2016. All Rights Reserved.