gov.nih.nci.caarray.domain.audit
Class AuditLogSecurity

java.lang.Object
  extended by gov.nih.nci.caarray.domain.audit.AuditLogSecurity

public class AuditLogSecurity
extends java.lang.Object

This object maps access to an audit log record based on project permissions.

Author:
wcheng

Field Summary
static java.lang.String GROUP
          Security based on group membership.
static java.lang.String PROJECT
          Security based on project permissions.
 
Constructor Summary
AuditLogSecurity()
          For UI / Hibernate Usage only.
AuditLogSecurity(java.lang.String entityName, java.lang.Long entityId, java.lang.Long privilegeId, com.fiveamsolutions.nci.commons.audit.AuditLogRecord record)
          Constructor.
 
Method Summary
 java.lang.Long getEntityId()
           
 java.lang.String getEntityName()
           
 java.lang.Long getId()
          Returns the id.
 java.lang.Long getPrivilegeId()
           
 com.fiveamsolutions.nci.commons.audit.AuditLogRecord getRecord()
           
 void setEntityId(java.lang.Long entityId)
           
 void setEntityName(java.lang.String entityName)
           
 void setId(java.lang.Long id)
          Deprecated. should only be used by castor and hibernate
 void setPrivilegeId(java.lang.Long privilegeId)
           
 void setRecord(com.fiveamsolutions.nci.commons.audit.AuditLogRecord record)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROJECT

public static final java.lang.String PROJECT
Security based on project permissions.

See Also:
Constant Field Values

GROUP

public static final java.lang.String GROUP
Security based on group membership.

See Also:
Constant Field Values
Constructor Detail

AuditLogSecurity

public AuditLogSecurity()
For UI / Hibernate Usage only.


AuditLogSecurity

public AuditLogSecurity(java.lang.String entityName,
                        java.lang.Long entityId,
                        java.lang.Long privilegeId,
                        com.fiveamsolutions.nci.commons.audit.AuditLogRecord record)
Constructor.

Parameters:
entityName - the type of entity this security entry is based on
entityId - the id of the entity
privilegeId - the privilege that restricts access to the record
record - the audit log record this applies to
Method Detail

getId

public java.lang.Long getId()
Returns the id.

Returns:
the id

setId

@Deprecated
public void setId(java.lang.Long id)
Deprecated. should only be used by castor and hibernate

Sets the id.

Parameters:
id - the id to set

getEntityName

public java.lang.String getEntityName()
Returns:
the entityName

setEntityName

public void setEntityName(java.lang.String entityName)
Parameters:
entityName - the entityName to set

getEntityId

public java.lang.Long getEntityId()
Returns:
the entityId

setEntityId

public void setEntityId(java.lang.Long entityId)
Parameters:
entityId - the entityId to set

getPrivilegeId

public java.lang.Long getPrivilegeId()
Returns:
the privilegeId

setPrivilegeId

public void setPrivilegeId(java.lang.Long privilegeId)
Parameters:
privilegeId - the privilegeId to set

getRecord

@NotNull
public com.fiveamsolutions.nci.commons.audit.AuditLogRecord getRecord()
Returns:
the audit log record to which this security object applies.

setRecord

public void setRecord(com.fiveamsolutions.nci.commons.audit.AuditLogRecord record)
Parameters:
record - the audit log record to set