public class BasicAccessor extends Accessor
Accessor
class it defines basic access statements
and encapsulates critical name space names, like those ones addressing
authorization information located in the database. It serves, indeed, for the
most part, the visual objects of the org.joty.workstation.authorization
and
of the org.joty.mobile.authorization
packages.
It can be said also that the framework must provide the minimum of an Accessor instance because some built-in visual class, always instantiated in a regular Joty application, works in Accessor mode.
The content definition for the UsersDialog
instance is such that only
the users not having the 'Administrators' role are listed in the result.
However the available set for role attribution includes the 'Administrators'
item: if an administrator elects another user to be administrator he/she
cannot anymore remove that user from having the role, a super user is needed
(typically a database administrator}.
Accessor
,
LangLiteralRetCodeMapper
,
org.joty.workstation.authorization.UsersDialog
,
org.joty.workstation.authorization.RolesDialog
,
org.joty.workstation.gui.AppOptionsDialog
Accessor.DataDef, Accessor.DialogDataDef, Accessor.ExprHolder, Accessor.PanelDataDef, Accessor.ParamActuator
m_conn, m_connGrabber, m_ddNotFoundMsg, m_dialogDataDefs, m_errorCarrier, m_langLiteralRetCodeMapper, m_literalSubsts, m_paramContext, m_searchQueryBuilder, m_shared, m_sharingKeyField, m_statementDefs
Constructor and Description |
---|
BasicAccessor() |
Modifier and Type | Method and Description |
---|---|
long |
__isDateExpired(java.lang.String sqlText) |
long |
__mustPasswordBeChanged(java.lang.String sqlText) |
long |
isDateExpired(java.lang.String userName) |
long |
isDateExpired(java.lang.String userName,
java.lang.String sharingKey) |
protected void |
loadDefs() |
long |
mustPasswordBeChanged(java.lang.String userName) |
long |
mustPasswordBeChanged(java.lang.String userName,
java.lang.String sharingKey) |
void |
setFromConfiguration(org.joty.common.ConfigFile configFile) |
long |
verifyLogin(java.lang.String userName,
java.lang.String password) |
long |
verifyLogin(java.lang.String userName,
java.lang.String password,
java.lang.String sharingKey) |
clearParamContext, customInit, dataDefFound, getDataDef, getPanelDataDef, getPanelDataDef, getParamContext, getQueryFromPostStatement, getSharingAlias, getUpdatableSetFromDataDef, init, init, isMissingContextParam, namer, paramValue, setConn, setDbConnectionGrabber, setLangLiteralRetCodeMapper, setPaginationQuery, setPostStatement, setPostStatement, setSharingData, setSharingKey, sharingClause, sharingViolation, substitutingLiteral
public void setFromConfiguration(org.joty.common.ConfigFile configFile)
setFromConfiguration
in class Accessor
public long verifyLogin(java.lang.String userName, java.lang.String password, java.lang.String sharingKey) throws java.sql.SQLException
java.sql.SQLException
public long verifyLogin(java.lang.String userName, java.lang.String password) throws java.sql.SQLException
java.sql.SQLException
public long isDateExpired(java.lang.String userName) throws java.sql.SQLException
java.sql.SQLException
public long isDateExpired(java.lang.String userName, java.lang.String sharingKey) throws java.sql.SQLException
java.sql.SQLException
public long __isDateExpired(java.lang.String sqlText) throws java.sql.SQLException
java.sql.SQLException
public long mustPasswordBeChanged(java.lang.String userName, java.lang.String sharingKey) throws java.sql.SQLException
java.sql.SQLException
public long mustPasswordBeChanged(java.lang.String userName) throws java.sql.SQLException
java.sql.SQLException
public long __mustPasswordBeChanged(java.lang.String sqlText) throws java.sql.SQLException
java.sql.SQLException