ajjava.c


Function Ajax.seqType

Return length, weight and type information for a sequence

Synopsis

Prototype
jboolean Ajax.seqType (
      JNIEnv* env,
      jobject obj,
      jstring usa
);

TypeNameRead/WriteDescription
JNIEnv*envModifyjava environment
jobjectobjInputjava object
jstringusaInputusa
jboolean RETURNtrue if the sequence exists

Input
obj:(Input)java object
usa:(Input)usa
Input & Output
env:(Modify)java environment
Returns
jboolean:true if the sequence exists

Description

Return length, weight and type information for a sequence

See Also

See other functions in this section

Availability

In release 6.4.0

Function Ajax.seqsetType

Return length, weight and type information for a seqset

Synopsis

Prototype
jboolean Ajax.seqsetType (
      JNIEnv* env,
      jobject obj,
      jstring usa
);

TypeNameRead/WriteDescription
JNIEnv*envModifyjava environment
jobjectobjInputjava object
jstringusaInputusa
jboolean RETURNtrue if the sequences exist

Input
obj:(Input)java object
usa:(Input)usa
Input & Output
env:(Modify)java environment
Returns
jboolean:true if the sequences exist

Description

Return length, weight and type information for a seqset

See Also

See other functions in this section

Availability

In release 6.4.0

Function Ajax.userInfo

Return the uid, gid and home directory of a user

Synopsis

Prototype
jboolean Ajax.userInfo (
      JNIEnv* env,
      jobject obj,
      jstring door,
      jstring key
);

TypeNameRead/WriteDescription
JNIEnv*envModifyjava environment
jobjectobjInputjava object
jstringdoorInputusername
jstringkeyInputpassword
jboolean RETURNtrue if the username/password are valid

Input
obj:(Input)java object
door:(Input)username
key:(Input)password
Input & Output
env:(Modify)java environment
Returns
jboolean:true if the username/password are valid

Description

Return the uid, gid and home directory of a user

See Also

See other functions in this section

Availability

In release 6.4.0

Function Ajax.setuid

Set the uid of the current process

Synopsis

Prototype
jint Ajax.setuid (
      JNIEnv* env,
      jclass j,
      jint uid
);

TypeNameRead/WriteDescription
JNIEnv*envModifyjava environment
jclassjInputjava class
jintuidInputuid
jint RETURN0 on success, -1 if failure

Input
j:(Input)java class
uid:(Input)uid
Input & Output
env:(Modify)java environment
Returns
jint:0 on success, -1 if failure

Description

Set the uid of the current process

See Also

See other functions in this section

Availability

In release 6.4.0

Function Ajax.seteuid

Set the effective uid of the current process

Synopsis

Prototype
jint Ajax.seteuid (
      JNIEnv* env,
      jclass j,
      jint uid
);

TypeNameRead/WriteDescription
JNIEnv*envModifyjava environment
jclassjInputjava class
jintuidInputuid
jint RETURN0 on success, -1 if failure

Input
j:(Input)java class
uid:(Input)uid
Input & Output
env:(Modify)java environment
Returns
jint:0 on success, -1 if failure

Description

Set the effective uid of the current process

See Also

See other functions in this section

Availability

In release 6.4.0

Function Ajax.setgid

Set the gid of the current process

Synopsis

Prototype
jint Ajax.setgid (
      JNIEnv* env,
      jclass j,
      jint gid
);

TypeNameRead/WriteDescription
JNIEnv*envModifyjava environment
jclassjInputjava class
jintgidInputgid
jint RETURN0 on success, -1 if failure

Input
j:(Input)java class
gid:(Input)gid
Input & Output
env:(Modify)java environment
Returns
jint:0 on success, -1 if failure

Description

Set the gid of the current process

See Also

See other functions in this section

Availability

In release 6.4.0

Function Ajax.setegid

Set the effective gid of the current process

Synopsis

Prototype
jint Ajax.setegid (
      JNIEnv* env,
      jclass j,
      jint gid
);

TypeNameRead/WriteDescription
JNIEnv*envModifyjava environment
jclassjInputjava class
jintgidInputgid
jint RETURN0 on success, -1 if failure

Input
j:(Input)java class
gid:(Input)gid
Input & Output
env:(Modify)java environment
Returns
jint:0 on success, -1 if failure

Description

Set the effective gid of the current process

See Also

See other functions in this section

Availability

In release 6.4.0

Function Ajax.getuid

Return the uid of the current process

Synopsis

Prototype
jint Ajax.getuid (
      JNIEnv* env,
      jclass j
);

TypeNameRead/WriteDescription
JNIEnv*envModifyjava environment
jclassjInputjava class
jint RETURNuid

Input
j:(Input)java class
Input & Output
env:(Modify)java environment
Returns
jint:uid

Description

Return the uid of the current process

See Also

See other functions in this section

Availability

In release 6.4.0

Function Ajax.getgid

Return the gid of the current process

Synopsis

Prototype
jint Ajax.getgid (
      JNIEnv* env,
      jclass j
);

TypeNameRead/WriteDescription
JNIEnv*envModifyjava environment
jclassjInputjava class
jint RETURNgid

Input
j:(Input)java class
Input & Output
env:(Modify)java environment
Returns
jint:gid

Description

Return the gid of the current process

See Also

See other functions in this section

Availability

In release 6.4.0

Function Ajax.geteuid

Return the effective uid of the current process

Synopsis

Prototype
jint Ajax.geteuid (
      JNIEnv* env,
      jclass j
);

TypeNameRead/WriteDescription
JNIEnv*envModifyjava environment
jclassjInputjava class
jint RETURNuid

Input
j:(Input)java class
Input & Output
env:(Modify)java environment
Returns
jint:uid

Description

Return the effective uid of the current process

See Also

See other functions in this section

Availability

In release 6.4.0

Function Ajax.getegid

Return the effective gid of the current process

Synopsis

Prototype
jint Ajax.getegid (
      JNIEnv* env,
      jclass j
);

TypeNameRead/WriteDescription
JNIEnv*envModifyjava environment
jclassjInputjava class
jint RETURNgid

Input
j:(Input)java class
Input & Output
env:(Modify)java environment
Returns
jint:gid

Description

Return the effective gid of the current process

See Also

See other functions in this section

Availability

In release 6.4.0

Function Ajax.fork

Fork off new process with given uid & gid, chdir and execute command return stdout and stderr of the child process

Synopsis

Prototype
jboolean Ajax.fork (
      JNIEnv* env,
      jobject obj,
      jstring commandline,
      jstring environment,
      jstring directory,
      jint uid,
      jint gid
);

TypeNameRead/WriteDescription
JNIEnv*envModifyjava environment
jobjectobjInputjava object
jstringcommandlineInputcommand to execute
jstringenvironmentInputshell environment
jstringdirectoryInputchdir here before execution
jintuidInputuid for setuid
jintgidInputgid for setgid
jboolean RETURNtrue if success

Input
obj:(Input)java object
commandline:(Input)command to execute
environment:(Input)shell environment
directory:(Input)chdir here before execution
uid:(Input)uid for setuid
gid:(Input)gid for setgid
Input & Output
env:(Modify)java environment
Returns
jboolean:true if success

Description

Fork off new process with given uid & gid, chdir and execute command return stdout and stderr of the child process

See Also

See other functions in this section

Availability

In release 6.4.0

Function Ajax.userAuth

Verify user and retrieve home directory Loads outStd,errStd within java. Sets 'home' in Java

Synopsis

Prototype
jboolean Ajax.userAuth (
      JNIEnv* env,
      jobject obj,
      jstring door,
      jbyteArray key,
      jstring environment
);

TypeNameRead/WriteDescription
JNIEnv*envModifyjava environment
jobjectobjInputjava object
jstringdoorInputusername
jbyteArraykeyInputpassword
jstringenvironmentInputenvironment
jboolean RETURNtrue if success

Input
obj:(Input)java object
door:(Input)username
key:(Input)password
environment:(Input)environment
Input & Output
env:(Modify)java environment
Returns
jboolean:true if success

Description

Verify user and retrieve home directory Loads outStd,errStd within java. Sets 'home' in Java

See Also

See other functions in this section

Availability

In release 6.4.0

Function Ajax.forkBatch

Run an EMBOSS program detached Loads outStd,errStd within java.

Synopsis

Prototype
jboolean Ajax.forkBatch (
      JNIEnv* env,
      jobject obj,
      jstring door,
      jbyteArray key,
      jstring environment,
      jstring cline,
      jstring direct
);

TypeNameRead/WriteDescription
JNIEnv*envModifyjava environment
jobjectobjInputjava object
jstringdoorInputusername
jbyteArraykeyInputpassword
jstringenvironmentInputenvironment
jstringclineInputcommand line
jstringdirectInputdirectory to create
jboolean RETURNtrue if success

Input
obj:(Input)java object
door:(Input)username
key:(Input)password
environment:(Input)environment
cline:(Input)command line
direct:(Input)directory to create
Input & Output
env:(Modify)java environment
Returns
jboolean:true if success

Description

Run an EMBOSS program detached Loads outStd,errStd within java.

See Also

See other functions in this section

Availability

In release 6.4.0

Function Ajax.forkEmboss

Run an EMBOSS program Loads outStd,errStd within java.

Synopsis

Prototype
jboolean Ajax.forkEmboss (
      JNIEnv* env,
      jobject obj,
      jstring door,
      jbyteArray key,
      jstring environment,
      jstring cline,
      jstring direct
);

TypeNameRead/WriteDescription
JNIEnv*envModifyjava environment
jobjectobjInputjava object
jstringdoorInputusername
jbyteArraykeyInputpassword
jstringenvironmentInputenvironment
jstringclineInputcommand line
jstringdirectInputdirectory to create
jboolean RETURNtrue if success

Input
obj:(Input)java object
door:(Input)username
key:(Input)password
environment:(Input)environment
cline:(Input)command line
direct:(Input)directory to create
Input & Output
env:(Modify)java environment
Returns
jboolean:true if success

Description

Run an EMBOSS program Loads outStd,errStd within java.

See Also

See other functions in this section

Availability

In release 6.4.0

Function Ajax.makeDir

Create a directory Loads outStd,errStd within java.

Synopsis

Prototype
jboolean Ajax.makeDir (
      JNIEnv* env,
      jobject obj,
      jstring door,
      jbyteArray key,
      jstring environment,
      jstring direct
);

TypeNameRead/WriteDescription
JNIEnv*envModifyjava environment
jobjectobjInputjava object
jstringdoorInputusername
jbyteArraykeyInputpassword
jstringenvironmentInputenvironment
jstringdirectInputdirectory to create
jboolean RETURNtrue if success

Input
obj:(Input)java object
door:(Input)username
key:(Input)password
environment:(Input)environment
direct:(Input)directory to create
Input & Output
env:(Modify)java environment
Returns
jboolean:true if success

Description

Create a directory Loads outStd,errStd within java.

See Also

See other functions in this section

Availability

In release 6.4.0

Function Ajax.delFile

Delete a file Loads outStd,errStd within java.

Synopsis

Prototype
jboolean Ajax.delFile (
      JNIEnv* env,
      jobject obj,
      jstring door,
      jbyteArray key,
      jstring environment,
      jstring filename
);

TypeNameRead/WriteDescription
JNIEnv*envModifyjava environment
jobjectobjInputjava object
jstringdoorInputusername
jbyteArraykeyInputpassword
jstringenvironmentInputenvironment
jstringfilenameInputfile to delete
jboolean RETURNtrue if success

Input
obj:(Input)java object
door:(Input)username
key:(Input)password
environment:(Input)environment
filename:(Input)file to delete
Input & Output
env:(Modify)java environment
Returns
jboolean:true if success

Description

Delete a file Loads outStd,errStd within java.

See Also

See other functions in this section

Availability

In release 6.4.0

Function Ajax.renameFile

Rename a file Loads outStd,errStd within java.

Synopsis

Prototype
jboolean Ajax.renameFile (
      JNIEnv* env,
      jobject obj,
      jstring door,
      jbyteArray key,
      jstring environment,
      jstring filename,
      jstring filename2
);

TypeNameRead/WriteDescription
JNIEnv*envModifyjava environment
jobjectobjInputjava object
jstringdoorInputusername
jbyteArraykeyInputpassword
jstringenvironmentInputenvironment
jstringfilenameInputold filename
jstringfilename2Inputnew filename
jboolean RETURNtrue if success

Input
obj:(Input)java object
door:(Input)username
key:(Input)password
environment:(Input)environment
filename:(Input)old filename
filename2:(Input)new filename
Input & Output
env:(Modify)java environment
Returns
jboolean:true if success

Description

Rename a file Loads outStd,errStd within java.

See Also

See other functions in this section

Availability

In release 6.4.0

Function Ajax.delDir

Recursively delete a directory Loads outStd,errStd within java.

Synopsis

Prototype
jboolean Ajax.delDir (
      JNIEnv* env,
      jobject obj,
      jstring door,
      jbyteArray key,
      jstring environment,
      jstring direct
);

TypeNameRead/WriteDescription
JNIEnv*envModifyjava environment
jobjectobjInputjava object
jstringdoorInputusername
jbyteArraykeyInputpassword
jstringenvironmentInputenvironment
jstringdirectInputdirectory to delete
jboolean RETURNtrue if success

Input
obj:(Input)java object
door:(Input)username
key:(Input)password
environment:(Input)environment
direct:(Input)directory to delete
Input & Output
env:(Modify)java environment
Returns
jboolean:true if success

Description

Recursively delete a directory Loads outStd,errStd within java.

See Also

See other functions in this section

Availability

In release 6.4.0

Function Ajax.listFiles

Lists regular files Loads outStd,errStd within java. outStd contains the list

Synopsis

Prototype
jboolean Ajax.listFiles (
      JNIEnv* env,
      jobject obj,
      jstring door,
      jbyteArray key,
      jstring environment,
      jstring direct
);

TypeNameRead/WriteDescription
JNIEnv*envModifyjava environment
jobjectobjInputjava object
jstringdoorInputusername
jbyteArraykeyInputpassword
jstringenvironmentInputenvironment
jstringdirectInputdirectory to scan
jboolean RETURNtrue if success

Input
obj:(Input)java object
door:(Input)username
key:(Input)password
environment:(Input)environment
direct:(Input)directory to scan
Input & Output
env:(Modify)java environment
Returns
jboolean:true if success

Description

Lists regular files Loads outStd,errStd within java. outStd contains the list

See Also

See other functions in this section

Availability

In release 6.4.0

Function Ajax.listDirs

Lists files of type 'directory' Loads outStd,errStd within java. outStd contains the list

Synopsis

Prototype
jboolean Ajax.listDirs (
      JNIEnv* env,
      jobject obj,
      jstring door,
      jbyteArray key,
      jstring environment,
      jstring direct
);

TypeNameRead/WriteDescription
JNIEnv*envModifyjava environment
jobjectobjInputjava object
jstringdoorInputusername
jbyteArraykeyInputpassword
jstringenvironmentInputenvironment
jstringdirectInputdirectory to scan
jboolean RETURNtrue if success

Input
obj:(Input)java object
door:(Input)username
key:(Input)password
environment:(Input)environment
direct:(Input)directory to scan
Input & Output
env:(Modify)java environment
Returns
jboolean:true if success

Description

Lists files of type 'directory' Loads outStd,errStd within java. outStd contains the list

See Also

See other functions in this section

Availability

In release 6.4.0

Function Ajax.getFile

Get a user file Loads outStd,errStd within java Sets size (of file),fileok (success) & prnt ([non]printable] variables in java

Synopsis

Prototype
jbyteArray Ajax.getFile (
      JNIEnv* env,
      jobject obj,
      jstring door,
      jbyteArray key,
      jstring environment,
      jstring filename
);

TypeNameRead/WriteDescription
JNIEnv*envModifyjava environment
jobjectobjInputjava object
jstringdoorInputusername
jbyteArraykeyInputpassword
jstringenvironmentInputenvironment
jstringfilenameInputfilename to get
jbyteArray RETURNcontents of file

Input
obj:(Input)java object
door:(Input)username
key:(Input)password
environment:(Input)environment
filename:(Input)filename to get
Input & Output
env:(Modify)java environment
Returns
jbyteArray:contents of file

Description

Get a user file Loads outStd,errStd within java Sets size (of file),fileok (success) & prnt ([non]printable] variables in java

See Also

See other functions in this section

Availability

In release 6.4.0

Function Ajax.putFile

Write a user file Loads outStd,errStd within java

Synopsis

Prototype
jboolean Ajax.putFile (
      JNIEnv* env,
      jobject obj,
      jstring door,
      jbyteArray key,
      jstring environment,
      jstring filename,
      jbyteArray arr
);

TypeNameRead/WriteDescription
JNIEnv*envModifyjava environment
jobjectobjInputjava object
jstringdoorInputusername
jbyteArraykeyInputpassword
jstringenvironmentInputenvironment
jstringfilenameInputfilename to create
jbyteArrayarrInputcontents for the file
jboolean RETURNtrue if the file was written

Input
obj:(Input)java object
door:(Input)username
key:(Input)password
environment:(Input)environment
filename:(Input)filename to create
arr:(Input)contents for the file
Input & Output
env:(Modify)java environment
Returns
jboolean:true if the file was written

Description

Write a user file Loads outStd,errStd within java

See Also

See other functions in this section

Availability

In release 6.4.0

Function Ajax.seqAttrib

Return sequence attributes Loads outStd,errStd within java.

Synopsis

Prototype
jboolean Ajax.seqAttrib (
      JNIEnv* env,
      jobject obj,
      jstring door,
      jbyteArray key,
      jstring environment,
      jstring filename
);

TypeNameRead/WriteDescription
JNIEnv*envModifyjava environment
jobjectobjInputjava object
jstringdoorInputusername
jbyteArraykeyInputpassword
jstringenvironmentInputenvironment
jstringfilenameInputfile to delete
jboolean RETURNtrue if success

Input
obj:(Input)java object
door:(Input)username
key:(Input)password
environment:(Input)environment
filename:(Input)file to delete
Input & Output
env:(Modify)java environment
Returns
jboolean:true if success

Description

Return sequence attributes Loads outStd,errStd within java.

See Also

See other functions in this section

Availability

In release 6.4.0

Function Ajax.seqsetAttrib

Return seqset attributes Loads outStd,errStd within java.

Synopsis

Prototype
jboolean Ajax.seqsetAttrib (
      JNIEnv* env,
      jobject obj,
      jstring door,
      jbyteArray key,
      jstring environment,
      jstring filename
);

TypeNameRead/WriteDescription
JNIEnv*envModifyjava environment
jobjectobjInputjava object
jstringdoorInputusername
jbyteArraykeyInputpassword
jstringenvironmentInputenvironment
jstringfilenameInputusa
jboolean RETURNtrue if success

Input
obj:(Input)java object
door:(Input)username
key:(Input)password
environment:(Input)environment
filename:(Input)usa
Input & Output
env:(Modify)java environment
Returns
jboolean:true if success

Description

Return seqset attributes Loads outStd,errStd within java.

See Also

See other functions in this section

Availability

In release 6.4.0