public static AuditEntryBean planVersionCreated(PlanVersionBean bean,
            ISecurityContext securityContext) {
        AuditEntryBean entry = newEntry(bean.getPlan().getOrganization().getId(), AuditEntityType.Plan, securityContext);
        entry.setEntityId(bean.getPlan().getId());
        entry.setEntityVersion(bean.getVersion());
        entry.setWhat(AuditEntryType.Create);
        return entry;
    }
public static AuditEntryBean planVersionCreated ( PlanVersionBean bean , ISecurityContext securityContext ) { AuditEntryBean entry = newEntry ( bean . getPlan ( ) . getOrganization ( ) . getId ( ) , AuditEntityType . Plan , securityContext ) ; entry . setEntityId ( bean . getPlan ( ) . getId ( ) ) ; entry . setEntityVersion ( bean . getVersion ( ) ) ; entry . setWhat ( AuditEntryType . Create ) ; return entry ; }
Creates an audit entry for the 'plan version created' event.
@param bean the bean
@param securityContext the security context
@return the audit entry