|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drupal.project.async_command.deprecated.AbstractDrupalAppDeprecated
@Deprecated public abstract class AbstractDrupalAppDeprecated
all external program/script should extends this class for easier access. If using SQL queries, please follow SQL-92 standard to allow maximum compatibility.
Nested Class Summary | |
---|---|
static class |
AbstractDrupalAppDeprecated.EncryptionMethod
Deprecated. |
static class |
AbstractDrupalAppDeprecated.RunningMode
Deprecated. |
Field Summary | |
---|---|
protected java.util.Properties |
config
Deprecated. |
protected javax.sql.DataSource |
dataSource
Deprecated. |
protected DrupalConnection |
drupalConnection
Deprecated. |
protected java.util.logging.Logger |
logger
Deprecated. |
protected int |
maxBatchSize
Deprecated. |
protected AbstractDrupalAppDeprecated.RunningMode |
runningMode
Deprecated. |
Constructor Summary | |
---|---|
AbstractDrupalAppDeprecated()
Deprecated. |
Method Summary | |
---|---|
protected int[] |
batch(java.lang.String sql,
java.lang.Object[][] params)
Deprecated. |
protected java.lang.String |
convertBlobValueToString(java.lang.Object blobValue)
Deprecated. |
protected java.lang.String |
d(java.lang.String sql)
Deprecated. |
protected java.lang.Object |
drupalVariableGet(java.lang.String varName)
Deprecated. |
protected void |
drupalVariableSet(java.lang.String varName,
java.lang.String varValue)
Deprecated. |
protected java.lang.String |
evalPhp(java.lang.String phpCode)
Deprecated. |
protected java.lang.String |
evalPhp(java.lang.String pattern,
java.lang.Object... params)
Deprecated. |
protected java.io.File |
getDefaultSettingsPhpFile()
Deprecated. |
protected java.lang.String |
getReaderContent(java.io.Reader input)
Deprecated. |
void |
handleCLI(java.lang.String[] args)
Deprecated. this function handles CLI; users of the class should call this function. |
abstract java.lang.String |
identifier()
Deprecated. |
void |
initConfig(java.lang.String configString)
Deprecated. |
void |
initDrupalConnection()
Deprecated. |
protected void |
loadSettingsPhp(java.io.File settingsPhp)
Deprecated. |
Result |
pingMe()
Deprecated. |
protected void |
prepareApp()
Deprecated. Subclass can choose to run some code in order to prepare for the DrupalApp. |
protected void |
prepareCommand(int uid,
int eid,
int created,
java.lang.String command)
Deprecated. |
protected java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
query(java.lang.String sql,
java.lang.Object... params)
Deprecated. |
protected java.lang.Object |
queryValue(java.lang.String sql,
java.lang.Object... params)
Deprecated. |
protected java.util.Properties |
readEncryptedSettingsField(java.lang.String value)
Deprecated. |
protected java.util.Properties |
readEncryptedSettingsField(java.lang.String value,
AbstractDrupalAppDeprecated.EncryptionMethod encryptionMethod)
Deprecated. |
java.util.List<CommandDeprecated> |
retrievePendingCommand(java.lang.String app)
Deprecated. |
void |
run(java.lang.String[] args)
Deprecated. This is the same as handleCLI() |
void |
runApp()
Deprecated. run the Drupal application using the default settings |
protected Result |
runCommand(java.lang.String command)
Deprecated. Run the async command. |
void |
testConnection()
Deprecated. |
protected java.util.Map<java.lang.String,java.lang.Object> |
unserializePhpArray(java.lang.String serialized)
Deprecated. |
protected int |
update(java.lang.String sql,
java.lang.Object... params)
Deprecated. |
protected void |
updateRecord(int id,
boolean status,
java.lang.String message)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected javax.sql.DataSource dataSource
protected java.util.logging.Logger logger
protected DrupalConnection drupalConnection
protected AbstractDrupalAppDeprecated.RunningMode runningMode
protected java.util.Properties config
protected int maxBatchSize
Constructor Detail |
---|
public AbstractDrupalAppDeprecated()
Method Detail |
---|
public abstract java.lang.String identifier()
public void runApp()
public java.util.List<CommandDeprecated> retrievePendingCommand(java.lang.String app)
protected void prepareApp()
protected Result runCommand(java.lang.String command) throws EvaluationFailureException
EvaluationFailureException
protected void prepareCommand(int uid, int eid, int created, java.lang.String command)
protected void updateRecord(int id, boolean status, java.lang.String message)
public Result pingMe()
@Deprecated public void initDrupalConnection()
@Deprecated public void initConfig(java.lang.String configString)
@Deprecated protected java.io.File getDefaultSettingsPhpFile()
@Deprecated public void testConnection()
@Deprecated protected java.lang.String d(java.lang.String sql)
@Deprecated protected java.util.List<java.util.Map<java.lang.String,java.lang.Object>> query(java.lang.String sql, java.lang.Object... params) throws java.sql.SQLException
java.sql.SQLException
@Deprecated protected java.lang.Object queryValue(java.lang.String sql, java.lang.Object... params) throws java.sql.SQLException
java.sql.SQLException
@Deprecated protected int update(java.lang.String sql, java.lang.Object... params) throws java.sql.SQLException
java.sql.SQLException
@Deprecated protected int[] batch(java.lang.String sql, java.lang.Object[][] params) throws java.sql.SQLException
java.sql.SQLException
public void handleCLI(java.lang.String[] args)
args
- arguments from main()public void run(java.lang.String[] args)
args
- @Deprecated protected java.util.Properties readEncryptedSettingsField(java.lang.String value, AbstractDrupalAppDeprecated.EncryptionMethod encryptionMethod)
@Deprecated protected java.util.Properties readEncryptedSettingsField(java.lang.String value)
@Deprecated protected void loadSettingsPhp(java.io.File settingsPhp) throws java.io.IOException
java.io.IOException
@Deprecated protected java.lang.String evalPhp(java.lang.String pattern, java.lang.Object... params)
@Deprecated protected java.lang.String evalPhp(java.lang.String phpCode)
@Deprecated protected java.lang.String getReaderContent(java.io.Reader input) throws java.io.IOException
java.io.IOException
@Deprecated protected java.util.Map<java.lang.String,java.lang.Object> unserializePhpArray(java.lang.String serialized)
@Deprecated protected java.lang.String convertBlobValueToString(java.lang.Object blobValue)
@Deprecated protected java.lang.Object drupalVariableGet(java.lang.String varName)
@Deprecated protected void drupalVariableSet(java.lang.String varName, java.lang.String varValue)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |