com.semarchy.mdm.runtime.model.logical
Class LogicalModelAuthorizations

java.lang.Object
  extended by com.semarchy.mdm.runtime.model.logical.LogicalModelAuthorizations

public final class LogicalModelAuthorizations
extends Object

Represents the authorizations related to a IModel for a set of roles.

Author:
sebastien.arod@semarchy.com

Field Summary
protected  org.slf4j.Logger logger
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final org.slf4j.Logger logger
Method Detail

createLogicalModelAuthorizations

public static LogicalModelAuthorizations createLogicalModelAuthorizations(IModel model,
                                                                          Set<String> platformRoles)
Creates a new LogicalModelAuthorizations

Parameters:
model -
platformRoles -
Returns:

getRoleNames

public Set<String> getRoleNames()
Return the list of role names for which this LogicalModelAuthorizations has been built. Caller should generally rely on more specific methods to check authorizations.

Returns:

isDataAdmin

public boolean isDataAdmin()
Return true if any of the set of roles is DataAdmin.

Returns:

getEntityAuthorization

public EntityAuthorization getEntityAuthorization(IEntity entity)
Get the authorizations for a given entity.

Parameters:
entity -
Returns:

getAttributeAuthorization

public AttributeAuthorization getAttributeAuthorization(IAttribute attribute)
Get the authorizations for a given attribute

Parameters:
attribute -
Returns:


Copyright © 2015. All Rights Reserved.