Package org.intermine.web.task
Class ModelUpdateTask
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- org.intermine.web.task.ModelUpdateTask
-
public class ModelUpdateTask extends org.apache.tools.ant.Task
Task updating savedquery, savedtemplatequery and savedbag in the userprofile (identified by the userProfileAlias) when the model has been changed- Author:
- butano
-
-
Constructor Summary
Constructors Constructor Description ModelUpdateTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
Update savedquery, savedtemplatequery and savedbag in the userprofile through ModelUpdate objectvoid
setOldModelLocation(java.lang.String oldModel)
Set the location of the previous model.void
setOSAlias(java.lang.String osAlias)
Set the alias of the main object store.void
setUserProfileAlias(java.lang.String userProfileAlias)
Set the alias of the userprofile object store.-
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
-
setOSAlias
public void setOSAlias(java.lang.String osAlias)
Set the alias of the main object store.- Parameters:
osAlias
- the object store alias
-
setUserProfileAlias
public void setUserProfileAlias(java.lang.String userProfileAlias)
Set the alias of the userprofile object store.- Parameters:
userProfileAlias
- the object store alias of the userprofile database
-
setOldModelLocation
public void setOldModelLocation(java.lang.String oldModel)
Set the location of the previous model.- Parameters:
oldModel
- the location
-
execute
public void execute()
Update savedquery, savedtemplatequery and savedbag in the userprofile through ModelUpdate object- Overrides:
execute
in classorg.apache.tools.ant.Task
-
-