com.semarchy.mdm.runtime.model.logical
Interface IEntityPrivGrant

All Superinterfaces:
IUniquelyNamed, Serializable

public interface IEntityPrivGrant
extends IUniquelyNamed, Serializable

This class represent a IModelPrivGrant as defined during design time. NOTE: this class should not be used directly by application to check security.

Author:
sarod

Field Summary
static String ENTITY_PRIV_GRANT_PREFIX
           
 
Fields inherited from interface com.semarchy.mdm.runtime.model.logical.IUniquelyNamed
SEP
 
Method Summary
 AttributeAccessType getAccessType(IEntityAttribute pAttribute)
          The access type granted for this IEntityAttribute.
 AttributeAccessType getDefaultAccessType()
          The default AttributeAccessType for this Entity.
 IEntity getEntity()
          The entity for which this grant is defined
 String getFilter()
          The SemQL condition that defines records to which the authorization applies.
 String getName()
          The entity priv grant name
 boolean isCheckoutAllowed()
          Indicates wether this privilege grant provide the authorization to checkout getEntity().
 boolean isCreateAllowed()
          Indicates whether this privilege grant provide the authorization to create getEntity().
 boolean isExportAllowed()
          Indicates whether this privilege grant provide the authorization to export getEntity().
 boolean isRemoveAllowed()
          Indicates whether this privilege grant provide the authorization to remove getEntity().
 
Methods inherited from interface com.semarchy.mdm.runtime.model.logical.IUniquelyNamed
getPrefixedUniqueName, getUniqueName
 

Field Detail

ENTITY_PRIV_GRANT_PREFIX

static final String ENTITY_PRIV_GRANT_PREFIX
See Also:
Constant Field Values
Method Detail

getName

String getName()
The entity priv grant name

Returns:

getEntity

IEntity getEntity()
The entity for which this grant is defined

Returns:

isCreateAllowed

boolean isCreateAllowed()
Indicates whether this privilege grant provide the authorization to create getEntity().

Returns:
true if this privilege grant provide the authorization to create getEntity() false otherwise.

isCheckoutAllowed

boolean isCheckoutAllowed()
Indicates wether this privilege grant provide the authorization to checkout getEntity().

Returns:
true if this privilege grant provide the authorization to checkout getEntity() false otherwise.

isExportAllowed

boolean isExportAllowed()
Indicates whether this privilege grant provide the authorization to export getEntity().

Returns:
true if this privilege grant provide the authorization to export getEntity() false otherwise.

isRemoveAllowed

boolean isRemoveAllowed()
Indicates whether this privilege grant provide the authorization to remove getEntity().

Returns:
true if this privilege grant provide the authorization to remove getEntity() false otherwise.

getDefaultAccessType

AttributeAccessType getDefaultAccessType()
The default AttributeAccessType for this Entity.

Returns:
default accesstype for this entity

getAccessType

AttributeAccessType getAccessType(IEntityAttribute pAttribute)
The access type granted for this IEntityAttribute.

Parameters:
pAttribute - the IEntityAttribute. The IEntityAttribute should be declared by getEntity()
Returns:
the AttributeAccessType for the IEntityAttribute or null if this attribute uses the getDefaultAccessType().

getFilter

String getFilter()
The SemQL condition that defines records to which the authorization applies. When not null the scope of authorizations is limited to records matching the SemQL condition.

Returns:


Copyright © 2015. All Rights Reserved.