com.semarchy.mdm.runtime.model.security
Class AttributeAuthorization
java.lang.Object
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
FULL_ACCESS
public static final AttributeAuthorization FULL_ACCESS
DENIED
public static final AttributeAuthorization DENIED
FULL_READ_ONLY
public static final AttributeAuthorization FULL_READ_ONLY
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.