| com.projity.script.ScriptRunner
ScriptRunner | public interface ScriptRunner (Code) | | Will be subclassed for client and server (ajax) versions
This will be used for:
AJAX communication to server
Real-time collaboration
and later on
as an API (with the advantage of being a sandbox - only can access this package
Macros
Logging
Journaling
Possibly using journaling as a way of saving projects instead of sending all data?
Should this be tied to undo?
And wrapped by bsh or groovy for formulas and filters
Need to add exception handling where needed
|
Method Summary | |
public void | closeProject(long projectId) | public void | closeProject(Long ids) | public LiteProject | createProject(String name) | public List<LiteResource> | getChildrenResource(long projectId, long id) | public List<LiteTask> | getChildrenTasks(long projectId, long id) | public List<LiteField> | getFieldArray(int type, String id) | public List<String> | getFieldArrays(long projectId, int type) | public List<LiteField> | getFields(long projectId, int type) | public LiteProject | getProject(long projectId) Returns all the tasks of a project. | public List | getProjectDescriptors() | public ReportData | getReport(String reportId, String fieldArrayId) | public LiteResource | getResource(long projectId, long id) | public LiteTask | getTask(long projectId, long id) | public List | getUsers() | public LiteProject | indent(long projectId, Long ids) | public LiteProject | insertBefore(long projectId, int type, long previousId, boolean returnChanges) | public LiteProject | link(long projectId, Long ids, int type) | public LiteProject | outdent(long projectId, Long ids) | public List<Long> | remove(long projectId, int type, long id, boolean returnRemovedIds) | public void | saveProject(long projectId) | public void | saveProjectAs(long projectId, String name) | public LiteProject | setCompleted(long projectId, long id, long completed, boolean returnChanges) | public void | setFieldArray(long projectId, int type, String fieldArrayId) | public LiteProject | setInterval(long projectId, long id, long newStart, long newEnd, long oldStart, long oldEnd, boolean returnChanges) | public LiteProject | setValue(long projectId, String fieldId, int type, long id, String value, boolean returnChanges) | public Object | translateWindow(long projectId, int amount, float center, boolean returnChange) | public LiteProject | unlink(long projectId, Long ids) | public Object | zoomTimeScale(long projectId, int amount, float center, boolean returnChange) |
ASSIGNMENT | final public static int ASSIGNMENT(Code) | | |
PORTFOLIO_PROJECT_ID | final public static long PORTFOLIO_PROJECT_ID(Code) | | |
PROJECT | final public static int PROJECT(Code) | | |
PROJECT_DESCRIPTOR | final public static int PROJECT_DESCRIPTOR(Code) | | |
PROJECT_DESCRIPTOR_AS_TASK | final public static int PROJECT_DESCRIPTOR_AS_TASK(Code) | | |
RESOURCE | final public static int RESOURCE(Code) | | |
RESOURCE_ASSIGNMENT_PROJECT_ID | final public static long RESOURCE_ASSIGNMENT_PROJECT_ID(Code) | | |
RESOURCE_AS_TASK | final public static int RESOURCE_AS_TASK(Code) | | |
RESOURCE_USAGE | final public static int RESOURCE_USAGE(Code) | | |
RESOURCE_USAGE_PROJECT_ID | final public static long RESOURCE_USAGE_PROJECT_ID(Code) | | |
TASK | final public static int TASK(Code) | | |
USER | final public static int USER(Code) | | |
closeProject | public void closeProject(long projectId) throws Exception(Code) | | |
getProject | public LiteProject getProject(long projectId) throws Exception(Code) | | Returns all the tasks of a project.
Opens the project if it's not already opened
Parameters: projectId - the content of the project |
getProjectDescriptors | public List getProjectDescriptors()(Code) | | |
insertBefore | public LiteProject insertBefore(long projectId, int type, long previousId, boolean returnChanges) throws Exception(Code) | | Parameters: projectId - Parameters: type - Parameters: previousId - Parameters: returnChanges - a project with the new task only if returnChanges is true throws: Exception - |
setCompleted | public LiteProject setCompleted(long projectId, long id, long completed, boolean returnChanges) throws Exception(Code) | | |
setFieldArray | public void setFieldArray(long projectId, int type, String fieldArrayId) throws Exception(Code) | | |
setInterval | public LiteProject setInterval(long projectId, long id, long newStart, long newEnd, long oldStart, long oldEnd, boolean returnChanges) throws Exception(Code) | | |
translateWindow | public Object translateWindow(long projectId, int amount, float center, boolean returnChange) throws Exception(Code) | | |
zoomTimeScale | public Object zoomTimeScale(long projectId, int amount, float center, boolean returnChange) throws Exception(Code) | | |
|
|