Examples of RoleDAO


Examples of com.ateam.webstore.dao.RoleDAO

public class RoleService implements RepositoryService<Role> {

  @Override
  public Role store(Role role) {
   
    RoleDAO repository = new RoleDAO();
    return repository.save(role);
  }
View Full Code Here

Examples of com.ateam.webstore.dao.RoleDAO

  }

  @Override
  public void remove(Role role) {
   
    RoleDAO repository = new RoleDAO();
    repository.delete(role);
   
  }
View Full Code Here

Examples of com.ateam.webstore.dao.RoleDAO

  }

  @Override
  public Collection<Role> getAll() {
   
    RoleDAO repository = new RoleDAO();
    return repository.getAll();
  }
View Full Code Here

Examples of com.ateam.webstore.dao.RoleDAO

    return repository.getAll();
  }

  @Override
  public Role getById(Serializable id) {
    RoleDAO repository = new RoleDAO();
    return repository.get(id);
  }
View Full Code Here

Examples of com.eforce.baby.auth.dao.RoleDAO

      log.debug("dsName: [" + dsName + "] " + "dbType: [" + dbType + "] " + "linkCol: [" + linkCol + "]" + "startPos: [" + page.getStartPosition() + "] " + "rowCount: [" + page.getCount() + "]");
       ReportResultsVO roleData = new ReportResultsVO();
       try
       {
         //fetch report results
        RoleDAO dao = (RoleDAO) DAOFactory.getInstance().getDAO("com.eteam.ems.auth.dao.RoleDAO");
        roleData = dao.findRoleByName(dsName, dbType, page, sort,userId,profileRepId);
        roleData = super.getDataForDisplay(roleData, linkCol);
       
        //    set report specific header keys and their default value keys
        roleData.addColumnInfo(1, IConstants.HEADER_KEY_ROLE, IConstants.DEFAULT_DATA_KEY_NR);
        roleData.addColumnInfo(2, IConstants.HEADER_KEY_GROUP, IConstants.DEFAULT_DATA_KEY_NR);
View Full Code Here

Examples of com.eforce.baby.auth.dao.RoleDAO

   * @param dbType
   * @param roleVO
   */
  public void createDistGroup(String dsName, String dbType, RoleVO roleVO) throws BusinessException, DAOException
  {
    RoleDAO dao = (RoleDAO) DAOFactory.getInstance().getDAO("com.eteam.ems.auth.dao.RoleDAO");
    dao.createRole(dsName,dbType,roleVO);
   
  }
View Full Code Here

Examples of com.eforce.baby.auth.dao.RoleDAO

   */
  public RoleVO getRole(String dsName, String dbType, String roleID) throws BusinessException
  {
    RoleVO roleVO = null;
       
        RoleDAO dao = (RoleDAO)DAOFactory.getInstance().getDAO("com.eteam.ems.auth.dao.RoleDAO");
        try
        {
          log.debug("calling  dao.findRole");
          roleVO = dao.findRole(dsName, dbType, roleID);
          log.debug("returning  dao.findRole");
        }
        catch (DAOException e)
        {
          BusinessException be=new BusinessException(e.getMessage());
View Full Code Here

Examples of com.eforce.baby.auth.dao.RoleDAO

   * @param dbType
   * @param roleVO
   */
  public void updateRole(String dsName, String dbType, RoleVO roleVOthrows BusinessException, DAOException
  {
    RoleDAO dao = (RoleDAO) DAOFactory.getInstance().getDAO("com.eteam.ems.auth.dao.RoleDAO");
    dao.updateRole(dsName,dbType,roleVO);
  }
View Full Code Here

Examples of com.eforce.baby.auth.dao.RoleDAO

    log.debug("dsName: [" + dsName + "] " + "dbType: [" + dbType + "] " + "SearchVO: [" + searchVO + "]");
    ReportResultsVO roleData = new ReportResultsVO();
    try
    {
          RoleDAO dao = (RoleDAO) DAOFactory.getInstance().getDAO("com.eteam.ems.auth.dao.RoleDAO");
          roleData = dao.searchReportResult(dsName, dbType, searchVO, userId, null);
          int i=1;
       
          if(searchVO.getSearchBy().equals(IConstants.SEARCH_ROLE))
          {
               
View Full Code Here

Examples of com.eforce.baby.auth.dao.RoleDAO

   * @param string
   */
  public void delete(String dsName, String dbType, String id) throws BusinessException
  {

    RoleDAO dao = (RoleDAO) DAOFactory.getInstance().getDAO("com.eteam.ems.auth.dao.RoleDAO");
    try
    {
      dao.delete(dsName,dbType,id);
    }
    catch (DAOException e)
    {
      log.error("ERROR in deleteRole ",e);
      BusinessException be=new BusinessException(e.getMessage());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.