当前位置: 首页>>代码示例>>Java>>正文


Java Provider.setSignedConfidentiality方法代码示例

本文整理汇总了Java中org.oscarehr.common.model.Provider.setSignedConfidentiality方法的典型用法代码示例。如果您正苦于以下问题:Java Provider.setSignedConfidentiality方法的具体用法?Java Provider.setSignedConfidentiality怎么用?Java Provider.setSignedConfidentiality使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.oscarehr.common.model.Provider的用法示例。


在下文中一共展示了Provider.setSignedConfidentiality方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: execute

import org.oscarehr.common.model.Provider; //导入方法依赖的package包/类
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws ServletException {

        String userAgreement = request.getParameter("submit");
        String user = (String)request.getSession().getAttribute("user");
        if( userAgreement.equalsIgnoreCase("refuse") ) {
            _logger.debug(user + " refused agreement");
            LogAction.addLog(user, LogConst.REFUSED, LogConst.CON_LOGIN_AGREEMENT, userAgreement, request.getRemoteAddr(),null,AcceptableUseAgreementManager.getAUAText());
            return mapping.findForward("Logout");
            
        }else if( userAgreement.equalsIgnoreCase("accept") ) {
            _logger.debug(user + " accepted agreement");
            Provider provider = providerDao.getProvider(user);
            Date now = new Date();
            provider.setSignedConfidentiality(now);
            providerDao.updateProvider(provider);
        }

        LogAction.addLog(user, LogConst.ACK, LogConst.CON_LOGIN_AGREEMENT, userAgreement, request.getRemoteAddr(),null,AcceptableUseAgreementManager.getAUAText());

        String proceedURL = (String)request.getSession().getAttribute("proceedURL");
        request.getSession().setAttribute("proceedURL", null);
        ActionForward fwd = new ActionForward();
        fwd.setPath(proceedURL);
        fwd.setRedirect(true);
        return fwd;
    }
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:27,代码来源:LoginAgreementAction.java

示例2: getAsDomainObject

import org.oscarehr.common.model.Provider; //导入方法依赖的package包/类
@Override
public Provider getAsDomainObject(LoggedInInfo loggedInInfo,ProviderTo1 t) throws ConversionException {
	Provider d = new Provider();
	
	d.setProviderNo(t.getProviderNo());
	d.setComments(t.getComments());
	d.setPhone(t.getPhone());
	d.setBillingNo(t.getBillingNo());
	d.setWorkPhone(t.getWorkPhone());
	d.setAddress(t.getAddress().getAddress());
	d.setTeam(t.getTeam());
	d.setStatus(ConversionUtils.toBoolString(t.isEnabled()));
	d.setLastUpdateDate(t.getLastUpdateDate());
	d.setProviderType(t.getProviderActivity());
	if (t.getSex() != null) {
		d.setSex(t.getSex().name());
	}
	d.setOhipNo(t.getOhipNo());
	d.setSpecialty(t.getSpecialty());
	d.setDob(t.getDob());
	d.setHsoNo(t.getHsoNo());
	d.setProviderActivity(t.getProviderActivity());
	d.setFirstName(t.getFirstName());
	d.setLastName(t.getLastName());
	d.setRmaNo(t.getRmaNo());
	d.setSignedConfidentiality(t.getSignedConfidentiality());
	d.setPractitionerNo(t.getPractitionerNo());
	d.setEmail(t.getEmail());
	d.setTitle(t.getTitle());
	d.setLastUpdateUser(t.getLastUpdateUser());
	d.setLastUpdateDate(t.getLastUpdateDate());

	return d;
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:35,代码来源:ProviderConverter.java

示例3: getProvider

import org.oscarehr.common.model.Provider; //导入方法依赖的package包/类
Provider getProvider(String firstName,String lastName,String providerNo,String ohipNo,String providerType,String specialty,String sex){
	Provider provider = new Provider();
	provider.setFirstName(firstName);
	provider.setLastName(lastName);
	provider.setProviderNo(providerNo);
	provider.setOhipNo(ohipNo);
	provider.setSpecialty(specialty);
	provider.setProviderType(providerType);
	provider.setSex(sex);
	provider.setSignedConfidentiality(new Date());
	provider.setStatus("1");
	return provider;
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:14,代码来源:RemoteIntegratedDataCopyDaoTest.java


注:本文中的org.oscarehr.common.model.Provider.setSignedConfidentiality方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。