Package org.intermine.task
Class GrantTask
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- org.intermine.task.GrantTask
-
public class GrantTask extends org.apache.tools.ant.Task
Task to grant permissions on all tables in a database to a given user.- Author:
- Andrew Varley, Richard Smith
-
-
Constructor Summary
Constructors Constructor Description GrantTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
void
setDatabase(java.lang.String database)
Set the database aliasvoid
setPerm(java.lang.String perm)
The permission to grant: SELECT, INSERT, UPDATE, DELETE, RULE, REFERENCES, TRIGGER, ALLvoid
setUser(java.lang.String user)
Set user to grant permissions to-
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
-
-
-
-
Method Detail
-
setDatabase
public void setDatabase(java.lang.String database)
Set the database alias- Parameters:
database
- the database alias
-
setUser
public void setUser(java.lang.String user)
Set user to grant permissions to- Parameters:
user
- a username
-
setPerm
public void setPerm(java.lang.String perm)
The permission to grant: SELECT, INSERT, UPDATE, DELETE, RULE, REFERENCES, TRIGGER, ALL- Parameters:
perm
- the permission to set
-
execute
public void execute()
- Overrides:
execute
in classorg.apache.tools.ant.Task
-
-