com.mizar.trinidad.components.faces
Class ApplicationLogTable

java.lang.Object
  extended by com.mizar.persistence.jpa.facade.JPAFacade
      extended by com.mizar.faces.jpa.facade.FacesCollection
          extended by com.mizar.trinidad.components.TrinidadCollection<RowInterface>
              extended by com.mizar.trinidad.components.TrinidadTable
                  extended by com.mizar.trinidad.components.faces.ApplicationLogTable

public class ApplicationLogTable
extends TrinidadTable


Nested Class Summary
 
Nested classes/interfaces inherited from class com.mizar.trinidad.components.TrinidadCollection
TrinidadCollection.UpdateListReasons
 
Field Summary
 
Fields inherited from class com.mizar.trinidad.components.TrinidadTable
detach, displayedRows, endRow, filterVisible, freeze, lastQueryDescription, model, panelCollectionFeaturesOff, selectionModel, startRow, whereClause, wrap
 
Fields inherited from class com.mizar.trinidad.components.TrinidadCollection
disclosedRowKeys, exceptionThrown, pkeyMask, selectedRowKeys
 
Fields inherited from class com.mizar.faces.jpa.facade.FacesCollection
currentRow, list, previousRow, selectionList
 
Fields inherited from class com.mizar.persistence.jpa.facade.JPAFacade
em, emf, persistenceUnitName, schemaName, sequencesValidated, silent, verbose
 
Constructor Summary
ApplicationLogTable()
          This class should ONLY be constructed through a faces-config.xml file Its behavior depends on it being a JSF Application Scoped Bean
 
Method Summary
static void addSessionLog(SessionLogRow sessionLog)
          This is a NPE safe method, if ApplicationLogTable is not instantiated no error will occur
static ApplicationLogTable getInstance()
          This method is called getInstance instead of getCurrentInstance to emphasis that it is an APPLICATOIN scoped bean
static java.lang.String getKillPermission()
           
 java.lang.String getKillPrivilege()
           
static java.lang.String getLockPermission()
           
 java.lang.String getLockPrivilege()
           
static java.lang.String getReadPermission()
           
 java.lang.String getReadPrivilege()
           
static java.util.Map<java.lang.String,SessionLogRow> getSessionLogs()
          This is a NPE safe method, if ApplcationLogTable is not instantiated no error will occur
static void removeSessionLog(SessionLogRow sessionLog)
          This is a NPE safe method, if ApplcationLogTable is not instantiated no error will occur
static void removeSessionLog(java.lang.String sessionId)
           
 java.util.Map<java.lang.String,SessionLogRow> sessionLogsGet()
           
 void setKillPrivilege(java.lang.String killPrivilege)
          This should normally be set only by faces-config.xml
 void setLockPrivilege(java.lang.String lockPrivilege)
          This should normally be set only by faces-config.xml
 void setReadPrivilege(java.lang.String readPrivilege)
          This should normally be set only by faces-config.xml
 
Methods inherited from class com.mizar.trinidad.components.TrinidadTable
addRow, addRowUniquely, addRowUniquely, attributeChangeListener, buildEl, clearLastQueryDescription, clearList, decrementPosition, finalize, getDisplayedRows, getEndRow, getLastQueryDescription, getModel, getPanelCollectionFeaturesOff, getSelectedRow, getSelectionModel, getStartRow, getTable, getWhereClause, incrementPosition, isDetach, isEnableAllDetails, isFilterVisible, isFreeze, isInitialized, isPanelCollectionWanted, isShowOneOnly, isWrap, rangeChangeListener, redrawTable, redrawTable, refreshBean, refreshList, removeRow, removeRow, selectionListener, setCurrentRow, setDetach, setDisplayedRows, setEnableAllDetails, setEndRow, setFilterVisible, setFreeze, setLastQueryDescription, setLastQueryDescription, setList, setList, setPanelCollectionFeaturesOff, setPanelCollectionFeaturesOff, setPanelCollectionWanted, setSelectedRow, setSelectedRow, setShowOneOnly, setStartRow, setTable, setWhereClause, setWrap, sortListener, toggleCollectionTools, toggleFilterVisibility
 
Methods inherited from class com.mizar.trinidad.components.TrinidadCollection
accept, addTrinidadCollectionListener, cancel, cancelEditing, clearList, dirtyDependentTables, downloadCSV, downloadPDF, downloadXLS, downloadXML, exportToDbaseFile, fireCurrentRowValueChanged, getDependentTables, getDisclosedRowKeys, getPersistenceUnitName, getPkeyMask, getPostUpdateListMethod, getRedrawComponentId, getSelectedRowKeys, getTableName, getUpdateListReason, isEditable, isExceptionThrown, isNewRowEditing, mergeBean, persistBean, persistBean, redrawCollection, removeBean, removeRow, resetGoToDashboard, resetGoToDashboard, setDisclosedRowKeys, setExceptionThrown, setList, setNewRowEditing, setPkeyMask, setPostUpdateListMethod, setPostUpdateListMethod, setRedrawComponentId, setSelectedRowKeys, setUpdateListReason, startEditing, startEditingNew
 
Methods inherited from class com.mizar.faces.jpa.facade.FacesCollection
closeEm, createNamedQuery, createNativeQuery, createNativeQuery, createNativeQuery, createQuery, decrementPosition, downloadFile, exportToExcel, find, getBean, getBeanClass, getBeanFromRow, getBeanList, getClassNameRoot, getCurrentMutableRow, getCurrentRow, getEm, getEmScope, getExportName, getGeom, getList, getListSize, getManagedBeanName, getMaxDownloadSize, getMaxResults, getReference, getResultList, getRowClass, getRowConstructor, getRowSQL, getSelectionList, getSingleResult, getTrackedQuery, getTruncatedList, getValue, incrementPosition, isDefaultRowConstructor, isFileDownloadable, isListDirty, isSelectionListDirty, maxResultsOff, maxResultsOff, maxResultsOn, newRow, newRow, refresh, resetCurrentRow, selectRows, selectRows, selectRowsExpression, selectRowsExpression, selectRowsJPQL, selectRowsJPQL, selectRowsJPQL, selectRowsJPQL, selectRowsSQL, selectRowsSQL, selectRowsSQL, selectRowsSQL, selectRowsSQL, selectRowsSQL, setBeanClass, setCurrentRow, setCurrentRow, setCurrentRow, setDefaultRowConstructor, setEmScope, setExportName, setListDirty, setManagedBeanName, setMaxDownloadSize, setMaxResults, setRowClass, setRowConstructor, setSelectionList, setSelectionListDirty, setTrackedQuery
 
Methods inherited from class com.mizar.persistence.jpa.facade.JPAFacade
closeEm, closeEmf, executeDDL, executeNativeUpdate, executeNativeUpdate, executeUpdate, getClosableConnectionAccessor, getConnection, getConnection, getEm, getEmf, getEmf, getLogger, getPassword, getPassword, getSchemaName, getSequencesValidated, getSid, getSilent, getTableName, getToleratedErrorCodes, getUrl, getUser, getVerbose, mergeBean, persist, persistBean, printAnyBean, queryTester, queryTester, refreshBean, remove, removeBean, removeBean, setEmf, setPersistenceUnitName, setSilent, setToleratedErrorCodes, setVerbose, validateSequences
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationLogTable

public ApplicationLogTable()
This class should ONLY be constructed through a faces-config.xml file Its behavior depends on it being a JSF Application Scoped Bean

Method Detail

getInstance

public static ApplicationLogTable getInstance()
This method is called getInstance instead of getCurrentInstance to emphasis that it is an APPLICATOIN scoped bean

Returns:
the instance of ApplicationLogTable, if it has been created as a Faces Scoped Bean and null if not.

addSessionLog

public static void addSessionLog(SessionLogRow sessionLog)
This is a NPE safe method, if ApplicationLogTable is not instantiated no error will occur

Parameters:
sessionLog -

removeSessionLog

public static void removeSessionLog(SessionLogRow sessionLog)
This is a NPE safe method, if ApplcationLogTable is not instantiated no error will occur

Parameters:
sessionLog -

removeSessionLog

public static void removeSessionLog(java.lang.String sessionId)

getSessionLogs

public static java.util.Map<java.lang.String,SessionLogRow> getSessionLogs()
This is a NPE safe method, if ApplcationLogTable is not instantiated no error will occur

Returns:
the sessionLog Map is ApplicationLogTable is instantiated otherwise null

sessionLogsGet

public java.util.Map<java.lang.String,SessionLogRow> sessionLogsGet()
Returns:
the sessionLog Map

setReadPrivilege

public void setReadPrivilege(java.lang.String readPrivilege)
This should normally be set only by faces-config.xml

Parameters:
readPrivilege - the privilege required by userList to read ApplicationLog or SessionLog properties

getReadPermission

public static java.lang.String getReadPermission()

getReadPrivilege

public java.lang.String getReadPrivilege()

setKillPrivilege

public void setKillPrivilege(java.lang.String killPrivilege)
This should normally be set only by faces-config.xml

Parameters:
killPrivilege - the privilege required by userList before they can KILL a session

getKillPermission

public static java.lang.String getKillPermission()

getKillPrivilege

public java.lang.String getKillPrivilege()

setLockPrivilege

public void setLockPrivilege(java.lang.String lockPrivilege)
This should normally be set only by faces-config.xml

Parameters:
lockPrivilege - the privilege required by userList before they can LOCK out new userList;

getLockPermission

public static java.lang.String getLockPermission()

getLockPrivilege

public java.lang.String getLockPrivilege()