com.semarchy.mdm.runtime.model.security
Class AttributeAuthorization

java.lang.Object
  extended by com.semarchy.mdm.runtime.model.security.AttributeAuthorization
All Implemented Interfaces:
Serializable

public class AttributeAuthorization
extends Object
implements Serializable

AttributeAuthorization provides RowScope for Read and for Write Immutable class

Author:
sarod
See Also:
Serialized Form

Field Summary
static AttributeAuthorization DENIED
           
static AttributeAuthorization FULL_ACCESS
           
static AttributeAuthorization FULL_READ_ONLY
           
 
Method Summary
static AttributeAuthorization create(RowScope readScope, RowScope writeScope)
           
 boolean equals(Object obj)
           
 RowScope getReadAuthorizedScope()
           
 RowScope getWriteAuthorizedScope()
          Write authorization is always more equal or more restricted than read authorizations
 int hashCode()
           
 boolean isDenied()
          Return true if attribute is totally denied
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

FULL_ACCESS

public static final AttributeAuthorization FULL_ACCESS

DENIED

public static final AttributeAuthorization DENIED

FULL_READ_ONLY

public static final AttributeAuthorization FULL_READ_ONLY
Method Detail

create

public static AttributeAuthorization create(RowScope readScope,
                                            RowScope writeScope)

getReadAuthorizedScope

public RowScope getReadAuthorizedScope()

getWriteAuthorizedScope

public RowScope getWriteAuthorizedScope()
Write authorization is always more equal or more restricted than read authorizations

Returns:

isDenied

public boolean isDenied()
Return true if attribute is totally denied

Returns:

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2015. All Rights Reserved.