Class LabelDAOImpl

    • Constructor Detail

      • LabelDAOImpl

        public LabelDAOImpl()
    • Method Detail

      • delete

        public void delete​(Label entity)
        Specified by:
        delete in interface org.exoplatform.commons.api.persistence.GenericDAO<Label,​Long>
        Overrides:
        delete in class org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<Label,​Long>
      • deleteAll

        public void deleteAll​(List<Label> entities)
        Specified by:
        deleteAll in interface org.exoplatform.commons.api.persistence.GenericDAO<Label,​Long>
        Overrides:
        deleteAll in class org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<Label,​Long>
      • deleteAll

        public void deleteAll()
        Specified by:
        deleteAll in interface org.exoplatform.commons.api.persistence.GenericDAO<Label,​Long>
        Overrides:
        deleteAll in class org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<Label,​Long>
      • findLabelsByUser

        public org.exoplatform.commons.utils.ListAccess<Label> findLabelsByUser​(String username)
        Specified by:
        findLabelsByUser in interface LabelHandler
        Parameters:
        username - user name
        Returns:
        List of labels
      • findLabelsByProject

        public org.exoplatform.commons.utils.ListAccess<Label> findLabelsByProject​(long projectId)
        Specified by:
        findLabelsByProject in interface LabelHandler
      • findLabelsByTask

        public org.exoplatform.commons.utils.ListAccess<Label> findLabelsByTask​(long taskId,
                                                                                long projectId)
        Specified by:
        findLabelsByTask in interface LabelHandler