| |
|
| org.tigris.scarab.om.BaseQuery org.tigris.scarab.om.Query
Query | public class Query extends BaseQuery implements Persistent(Code) | | This class manages the Query table.
author: John McNally version: $Id: Query.java 9977 2005-12-09 00:40:59Z hair $ |
approve | public void approve(ScarabUser user, boolean approved) throws TorqueException, ScarabException(Code) | | Checks permission and approves or rejects query. If query
is approved, query type set to "module", else set to "personal".
|
copyQuery | public void copyQuery(ScarabUser user) throws TorqueException(Code) | | Checks if user has permission to delete query.
Only the creating user can delete a personal query.
Only project owner or admin can delete a project-wide query.
|
delete | public void delete(ScarabUser user) throws TorqueException, ScarabException(Code) | | Checks if user has permission to delete query.
Only the creating user can delete a personal query.
Only project owner or admin can delete a project-wide query.
|
getInstance | public static Query getInstance()(Code) | | A new Query object
|
getMITList | public MITList getMITList() throws TorqueException(Code) | | |
getModule | public Module getModule() throws TorqueException(Code) | | Module getter. Use this method instead of getScarabModule().
a Module value |
getRQueryUser | public RQueryUser getRQueryUser(ScarabUser user) throws TorqueException(Code) | | Gets RQueryUser object for this query and user.
|
getScarabModule | public ScarabModule getScarabModule()(Code) | | Throws UnsupportedOperationException. Use
getModule() instead.
a ScarabModule value |
getScarabUser | public ScarabUser getScarabUser() throws TorqueException(Code) | | Get the value of scarabUser.
value of scarabUser. |
saveAndSendEmail | public boolean saveAndSendEmail(ScarabUser user, Module module, TemplateContext context) throws TorqueException, ScarabException(Code) | | Either returns true, if no email problem occured,
or throws an appropriate Exception. Note: If an email
exception occured, the query is still saved.
Parameters: user - Parameters: module - Parameters: context - throws: TorqueException - |
setModule | public void setModule(Module me) throws TorqueException(Code) | | Use this instead of setScarabModule. Note: module cannot be new.
|
setScarabModule | public void setScarabModule(ScarabModule module)(Code) | | Throws UnsupportedOperationException. Use
setModule(Module) instead.
|
setScarabUser | public void setScarabUser(ScarabUser v) throws TorqueException(Code) | | Set the value of scarabUser.
Parameters: v - Value to assign to scarabUser. |
subscribe | public void subscribe(ScarabUser user, Integer frequencyId) throws TorqueException(Code) | | Subscribes user to query.
|
unSubscribe | public void unSubscribe(ScarabUser user) throws TorqueException(Code) | | Unsubscribes user from query.
|
|
|
|