Liferay 6.0.5

com.liferay.portlet.tasks.service
Class TasksProposalLocalServiceUtil

java.lang.Object
  extended by com.liferay.portlet.tasks.service.TasksProposalLocalServiceUtil

public class TasksProposalLocalServiceUtil
extends Object

The utility for the tasks proposal local service. This utility wraps TasksProposalLocalServiceImpl and is the primary access point for service operations in application layer code running on the local server.

Never modify this class directly. Add custom service methods to TasksProposalLocalServiceImpl and rerun ServiceBuilder to regenerate this class.

This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.

See Also:
TasksProposalLocalService, TasksProposalLocalServiceBaseImpl, TasksProposalLocalServiceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Constructor Summary
TasksProposalLocalServiceUtil()
           
 
Method Summary
static TasksProposal addProposal(long userId, long groupId, String className, String classPK, String name, String description, long reviewUserId, boolean addCommunityPermissions, boolean addGuestPermissions)
           
static TasksProposal addProposal(long userId, long groupId, String className, String classPK, String name, String description, long reviewUserId, Boolean addCommunityPermissions, Boolean addGuestPermissions, String[] communityPermissions, String[] guestPermissions)
           
static TasksProposal addProposal(long userId, long groupId, String className, String classPK, String name, String description, long reviewUserId, String[] communityPermissions, String[] guestPermissions)
           
static void addProposalResources(long proposalId, boolean addCommunityPermissions, boolean addGuestPermissions)
           
static void addProposalResources(long proposalId, String[] communityPermissions, String[] guestPermissions)
           
static void addProposalResources(TasksProposal proposal, boolean addCommunityPermissions, boolean addGuestPermissions)
           
static void addProposalResources(TasksProposal proposal, String[] communityPermissions, String[] guestPermissions)
           
static TasksProposal addTasksProposal(TasksProposal tasksProposal)
          Adds the tasks proposal to the database.
static TasksProposal createTasksProposal(long proposalId)
          Creates a new tasks proposal with the primary key.
static void deleteProposal(long proposalId)
           
static void deleteProposal(long classNameId, String classPK)
           
static void deleteProposal(String className, String classPK)
           
static void deleteProposal(TasksProposal proposal)
           
static void deleteProposals(long groupId)
           
static void deleteTasksProposal(long proposalId)
          Deletes the tasks proposal with the primary key from the database.
static void deleteTasksProposal(TasksProposal tasksProposal)
          Deletes the tasks proposal from the database.
static List dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
static List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
static List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
          Performs a dynamic query on the database and returns an ordered range of the matching rows.
static long dynamicQueryCount(DynamicQuery dynamicQuery)
          Counts the number of rows that match the dynamic query.
static TasksProposal getProposal(long proposalId)
           
static TasksProposal getProposal(long classNameId, String classPK)
           
static TasksProposal getProposal(String className, String classPK)
           
static List<TasksProposal> getProposals(long groupId, int start, int end)
           
static int getProposalsCount(long groupId)
           
static List<TasksProposal> getReviewProposals(long groupId, long userId, int start, int end)
           
static int getReviewProposalsCount(long groupId, long userId)
           
static TasksProposalLocalService getService()
           
static TasksProposal getTasksProposal(long proposalId)
          Gets the tasks proposal with the primary key.
static List<TasksProposal> getTasksProposals(int start, int end)
          Gets a range of all the tasks proposals.
static int getTasksProposalsCount()
          Gets the number of tasks proposals.
static List<TasksProposal> getUserProposals(long groupId, long userId, int start, int end)
           
static int getUserProposalsCount(long groupId, long userId)
           
 void setService(TasksProposalLocalService service)
           
static TasksProposal updateProposal(long userId, long proposalId, String description, int dueDateMonth, int dueDateDay, int dueDateYear, int dueDateHour, int dueDateMinute)
           
static TasksProposal updateTasksProposal(TasksProposal tasksProposal)
          Updates the tasks proposal in the database.
static TasksProposal updateTasksProposal(TasksProposal tasksProposal, boolean merge)
          Updates the tasks proposal in the database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TasksProposalLocalServiceUtil

public TasksProposalLocalServiceUtil()
Method Detail

addTasksProposal

public static TasksProposal addTasksProposal(TasksProposal tasksProposal)
                                      throws SystemException
Adds the tasks proposal to the database. Also notifies the appropriate model listeners.

Parameters:
tasksProposal - the tasks proposal to add
Returns:
the tasks proposal that was added
Throws:
SystemException - if a system exception occurred

createTasksProposal

public static TasksProposal createTasksProposal(long proposalId)
Creates a new tasks proposal with the primary key. Does not add the tasks proposal to the database.

Parameters:
proposalId - the primary key for the new tasks proposal
Returns:
the new tasks proposal

deleteTasksProposal

public static void deleteTasksProposal(long proposalId)
                                throws PortalException,
                                       SystemException
Deletes the tasks proposal with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
proposalId - the primary key of the tasks proposal to delete
Throws:
PortalException - if a tasks proposal with the primary key could not be found
SystemException - if a system exception occurred

deleteTasksProposal

public static void deleteTasksProposal(TasksProposal tasksProposal)
                                throws SystemException
Deletes the tasks proposal from the database. Also notifies the appropriate model listeners.

Parameters:
tasksProposal - the tasks proposal to delete
Throws:
SystemException - if a system exception occurred

dynamicQuery

public static List dynamicQuery(DynamicQuery dynamicQuery)
                         throws SystemException
Performs a dynamic query on the database and returns the matching rows.

Parameters:
dynamicQuery - the dynamic query to search with
Returns:
the matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

public static List dynamicQuery(DynamicQuery dynamicQuery,
                                int start,
                                int end)
                         throws SystemException
Performs a dynamic query on the database and returns a range of the matching rows.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
dynamicQuery - the dynamic query to search with
start - the lower bound of the range of model instances to return
end - the upper bound of the range of model instances to return (not inclusive)
Returns:
the range of matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

public static List dynamicQuery(DynamicQuery dynamicQuery,
                                int start,
                                int end,
                                OrderByComparator orderByComparator)
                         throws SystemException
Performs a dynamic query on the database and returns an ordered range of the matching rows.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
dynamicQuery - the dynamic query to search with
start - the lower bound of the range of model instances to return
end - the upper bound of the range of model instances to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching rows
Throws:
SystemException - if a system exception occurred

dynamicQueryCount

public static long dynamicQueryCount(DynamicQuery dynamicQuery)
                              throws SystemException
Counts the number of rows that match the dynamic query.

Parameters:
dynamicQuery - the dynamic query to search with
Returns:
the number of rows that match the dynamic query
Throws:
SystemException - if a system exception occurred

getTasksProposal

public static TasksProposal getTasksProposal(long proposalId)
                                      throws PortalException,
                                             SystemException
Gets the tasks proposal with the primary key.

Parameters:
proposalId - the primary key of the tasks proposal to get
Returns:
the tasks proposal
Throws:
PortalException - if a tasks proposal with the primary key could not be found
SystemException - if a system exception occurred

getTasksProposals

public static List<TasksProposal> getTasksProposals(int start,
                                                    int end)
                                             throws SystemException
Gets a range of all the tasks proposals.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
start - the lower bound of the range of tasks proposals to return
end - the upper bound of the range of tasks proposals to return (not inclusive)
Returns:
the range of tasks proposals
Throws:
SystemException - if a system exception occurred

getTasksProposalsCount

public static int getTasksProposalsCount()
                                  throws SystemException
Gets the number of tasks proposals.

Returns:
the number of tasks proposals
Throws:
SystemException - if a system exception occurred

updateTasksProposal

public static TasksProposal updateTasksProposal(TasksProposal tasksProposal)
                                         throws SystemException
Updates the tasks proposal in the database. Also notifies the appropriate model listeners.

Parameters:
tasksProposal - the tasks proposal to update
Returns:
the tasks proposal that was updated
Throws:
SystemException - if a system exception occurred

updateTasksProposal

public static TasksProposal updateTasksProposal(TasksProposal tasksProposal,
                                                boolean merge)
                                         throws SystemException
Updates the tasks proposal in the database. Also notifies the appropriate model listeners.

Parameters:
tasksProposal - the tasks proposal to update
merge - whether to merge the tasks proposal with the current session. See BatchSession.update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean) for an explanation.
Returns:
the tasks proposal that was updated
Throws:
SystemException - if a system exception occurred

addProposal

public static TasksProposal addProposal(long userId,
                                        long groupId,
                                        String className,
                                        String classPK,
                                        String name,
                                        String description,
                                        long reviewUserId,
                                        boolean addCommunityPermissions,
                                        boolean addGuestPermissions)
                                 throws PortalException,
                                        SystemException
Throws:
PortalException
SystemException

addProposal

public static TasksProposal addProposal(long userId,
                                        long groupId,
                                        String className,
                                        String classPK,
                                        String name,
                                        String description,
                                        long reviewUserId,
                                        Boolean addCommunityPermissions,
                                        Boolean addGuestPermissions,
                                        String[] communityPermissions,
                                        String[] guestPermissions)
                                 throws PortalException,
                                        SystemException
Throws:
PortalException
SystemException

addProposal

public static TasksProposal addProposal(long userId,
                                        long groupId,
                                        String className,
                                        String classPK,
                                        String name,
                                        String description,
                                        long reviewUserId,
                                        String[] communityPermissions,
                                        String[] guestPermissions)
                                 throws PortalException,
                                        SystemException
Throws:
PortalException
SystemException

addProposalResources

public static void addProposalResources(long proposalId,
                                        boolean addCommunityPermissions,
                                        boolean addGuestPermissions)
                                 throws PortalException,
                                        SystemException
Throws:
PortalException
SystemException

addProposalResources

public static void addProposalResources(long proposalId,
                                        String[] communityPermissions,
                                        String[] guestPermissions)
                                 throws PortalException,
                                        SystemException
Throws:
PortalException
SystemException

addProposalResources

public static void addProposalResources(TasksProposal proposal,
                                        boolean addCommunityPermissions,
                                        boolean addGuestPermissions)
                                 throws PortalException,
                                        SystemException
Throws:
PortalException
SystemException

addProposalResources

public static void addProposalResources(TasksProposal proposal,
                                        String[] communityPermissions,
                                        String[] guestPermissions)
                                 throws PortalException,
                                        SystemException
Throws:
PortalException
SystemException

deleteProposal

public static void deleteProposal(long proposalId)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

deleteProposal

public static void deleteProposal(long classNameId,
                                  String classPK)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

deleteProposal

public static void deleteProposal(String className,
                                  String classPK)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

deleteProposal

public static void deleteProposal(TasksProposal proposal)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

deleteProposals

public static void deleteProposals(long groupId)
                            throws PortalException,
                                   SystemException
Throws:
PortalException
SystemException

getProposal

public static TasksProposal getProposal(long proposalId)
                                 throws PortalException,
                                        SystemException
Throws:
PortalException
SystemException

getProposal

public static TasksProposal getProposal(long classNameId,
                                        String classPK)
                                 throws PortalException,
                                        SystemException
Throws:
PortalException
SystemException

getProposal

public static TasksProposal getProposal(String className,
                                        String classPK)
                                 throws PortalException,
                                        SystemException
Throws:
PortalException
SystemException

getProposals

public static List<TasksProposal> getProposals(long groupId,
                                               int start,
                                               int end)
                                        throws SystemException
Throws:
SystemException

getProposalsCount

public static int getProposalsCount(long groupId)
                             throws SystemException
Throws:
SystemException

getReviewProposals

public static List<TasksProposal> getReviewProposals(long groupId,
                                                     long userId,
                                                     int start,
                                                     int end)
                                              throws SystemException
Throws:
SystemException

getReviewProposalsCount

public static int getReviewProposalsCount(long groupId,
                                          long userId)
                                   throws SystemException
Throws:
SystemException

getUserProposals

public static List<TasksProposal> getUserProposals(long groupId,
                                                   long userId,
                                                   int start,
                                                   int end)
                                            throws SystemException
Throws:
SystemException

getUserProposalsCount

public static int getUserProposalsCount(long groupId,
                                        long userId)
                                 throws SystemException
Throws:
SystemException

updateProposal

public static TasksProposal updateProposal(long userId,
                                           long proposalId,
                                           String description,
                                           int dueDateMonth,
                                           int dueDateDay,
                                           int dueDateYear,
                                           int dueDateHour,
                                           int dueDateMinute)
                                    throws PortalException,
                                           SystemException
Throws:
PortalException
SystemException

getService

public static TasksProposalLocalService getService()

setService

public void setService(TasksProposalLocalService service)

Liferay 6.0.5