Liferay 6.0-ee-sp2

com.liferay.portlet.tasks.service
Interface TasksProposalLocalService

All Superinterfaces:
PersistedModelLocalService
All Known Implementing Classes:
TasksProposalLocalServiceWrapper

@Transactional(isolation=PORTAL,
               rollbackFor={PortalException.class,SystemException.class})
public interface TasksProposalLocalService
extends PersistedModelLocalService

The interface for the tasks proposal local service.

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:
TasksProposalLocalServiceUtil, com.liferay.portlet.tasks.service.base.TasksProposalLocalServiceBaseImpl, com.liferay.portlet.tasks.service.impl.TasksProposalLocalServiceImpl

Method Summary
 TasksProposal addProposal(long userId, long groupId, String className, String classPK, String name, String description, long reviewUserId, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 TasksProposal addProposal(long userId, long groupId, String className, String classPK, String name, String description, long reviewUserId, Boolean addCommunityPermissions, Boolean addGuestPermissions, String[] communityPermissions, String[] guestPermissions)
           
 TasksProposal addProposal(long userId, long groupId, String className, String classPK, String name, String description, long reviewUserId, String[] communityPermissions, String[] guestPermissions)
           
 void addProposalResources(long proposalId, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addProposalResources(long proposalId, String[] communityPermissions, String[] guestPermissions)
           
 void addProposalResources(TasksProposal proposal, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addProposalResources(TasksProposal proposal, String[] communityPermissions, String[] guestPermissions)
           
 TasksProposal addTasksProposal(TasksProposal tasksProposal)
          Adds the tasks proposal to the database.
 TasksProposal createTasksProposal(long proposalId)
          Creates a new tasks proposal with the primary key.
 void deleteProposal(long proposalId)
           
 void deleteProposal(long classNameId, String classPK)
           
 void deleteProposal(String className, String classPK)
           
 void deleteProposal(TasksProposal proposal)
           
 void deleteProposals(long groupId)
           
 void deleteTasksProposal(long proposalId)
          Deletes the tasks proposal with the primary key from the database.
 void deleteTasksProposal(TasksProposal tasksProposal)
          Deletes the tasks proposal from the database.
 List dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
 List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
 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.
 long dynamicQueryCount(DynamicQuery dynamicQuery)
          Returns the number of rows that match the dynamic query.
 String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
 PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
 TasksProposal getProposal(long proposalId)
           
 TasksProposal getProposal(long classNameId, String classPK)
           
 TasksProposal getProposal(String className, String classPK)
           
 List<TasksProposal> getProposals(long groupId, int start, int end)
           
 int getProposalsCount(long groupId)
           
 List<TasksProposal> getReviewProposals(long groupId, long userId, int start, int end)
           
 int getReviewProposalsCount(long groupId, long userId)
           
 TasksProposal getTasksProposal(long proposalId)
          Returns the tasks proposal with the primary key.
 List<TasksProposal> getTasksProposals(int start, int end)
          Returns a range of all the tasks proposals.
 int getTasksProposalsCount()
          Returns the number of tasks proposals.
 List<TasksProposal> getUserProposals(long groupId, long userId, int start, int end)
           
 int getUserProposalsCount(long groupId, long userId)
           
 void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
 TasksProposal updateProposal(long userId, long proposalId, String description, int dueDateMonth, int dueDateDay, int dueDateYear, int dueDateHour, int dueDateMinute)
           
 TasksProposal updateTasksProposal(TasksProposal tasksProposal)
          Updates the tasks proposal in the database or adds it if it does not yet exist.
 TasksProposal updateTasksProposal(TasksProposal tasksProposal, boolean merge)
          Updates the tasks proposal in the database or adds it if it does not yet exist.
 

Method Detail

addTasksProposal

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

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

createTasksProposal

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

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
Throws:
PortalException - if a tasks proposal with the primary key could not be found
SystemException - if a system exception occurred

deleteTasksProposal

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

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

dynamicQuery

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

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

dynamicQuery

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
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (not inclusive)
Returns:
the range of matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

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
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching rows
Throws:
SystemException - if a system exception occurred

dynamicQueryCount

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

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

getTasksProposal

@Transactional(propagation=SUPPORTS,
               readOnly=true)
TasksProposal getTasksProposal(long proposalId)
                               throws PortalException,
                                      SystemException
Returns the tasks proposal with the primary key.

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

getPersistedModel

@Transactional(propagation=SUPPORTS,
               readOnly=true)
PersistedModel getPersistedModel(Serializable primaryKeyObj)
                                 throws PortalException,
                                        SystemException
Specified by:
getPersistedModel in interface PersistedModelLocalService
Throws:
PortalException
SystemException

getTasksProposals

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<TasksProposal> getTasksProposals(int start,
                                                                               int end)
                                      throws SystemException
Returns 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
end - the upper bound of the range of tasks proposals (not inclusive)
Returns:
the range of tasks proposals
Throws:
SystemException - if a system exception occurred

getTasksProposalsCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getTasksProposalsCount()
                           throws SystemException
Returns the number of tasks proposals.

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

updateTasksProposal

TasksProposal updateTasksProposal(TasksProposal tasksProposal)
                                  throws SystemException
Updates the tasks proposal in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

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

updateTasksProposal

TasksProposal updateTasksProposal(TasksProposal tasksProposal,
                                  boolean merge)
                                  throws SystemException
Updates the tasks proposal in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Parameters:
tasksProposal - the tasks proposal
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

getBeanIdentifier

String getBeanIdentifier()
Returns the Spring bean ID for this bean.

Returns:
the Spring bean ID for this bean

setBeanIdentifier

void setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean.

Parameters:
beanIdentifier - the Spring bean ID for this bean

addProposal

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

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

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

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

addProposalResources

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

addProposalResources

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

addProposalResources

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

deleteProposal

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

deleteProposal

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

deleteProposal

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

deleteProposal

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

deleteProposals

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

getProposal

@Transactional(propagation=SUPPORTS,
               readOnly=true)
TasksProposal getProposal(long proposalId)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

getProposal

@Transactional(propagation=SUPPORTS,
               readOnly=true)
TasksProposal getProposal(long classNameId,
                                                                   String classPK)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

getProposal

@Transactional(propagation=SUPPORTS,
               readOnly=true)
TasksProposal getProposal(String className,
                                                                   String classPK)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

getProposals

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<TasksProposal> getProposals(long groupId,
                                                                          int start,
                                                                          int end)
                                 throws SystemException
Throws:
SystemException

getProposalsCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getProposalsCount(long groupId)
                      throws SystemException
Throws:
SystemException

getReviewProposals

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<TasksProposal> getReviewProposals(long groupId,
                                                                                long userId,
                                                                                int start,
                                                                                int end)
                                       throws SystemException
Throws:
SystemException

getReviewProposalsCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getReviewProposalsCount(long groupId,
                                                                     long userId)
                            throws SystemException
Throws:
SystemException

getUserProposals

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<TasksProposal> getUserProposals(long groupId,
                                                                              long userId,
                                                                              int start,
                                                                              int end)
                                     throws SystemException
Throws:
SystemException

getUserProposalsCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getUserProposalsCount(long groupId,
                                                                   long userId)
                          throws SystemException
Throws:
SystemException

updateProposal

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

Liferay 6.0-ee-sp2