public Contact getCandidate() { if (candidate == null) { if (getLoggedInUser() != null) { candidate = SFDCAccessController.getCandidateById(getLoggedInUser().getSF_Contact_ID()); } if (candidate == null) { candidate = SFDCAccessController.getCandidateBySessionKey(paramSessionKey); } if (candidate == null) { candidate = new Contact(); } } return candidate; }
public Ts2__Application__c getApplication() { if (application == null) { if (paramAppId != null && !paramAppId.isEmpty()) { application = SFDCAccessController.getApplicationById(paramAppId); } if (application == null) { application = new Ts2__Application__c(); } } return application; }
public Ts2__Submittal__c getSubmittal() { if (submittal == null) { submittal = SFDCAccessController.getSubmittalByKey(paramSubmittalKey); } return submittal; }