/** * Access the attachments of the event. * * @return An copy of the set of attachments (a ReferenceVector containing Reference objects) (may be empty). */ public List getAttachments() { return m_entityManager.newReferenceList(m_attachments); } // getAttachments
/** * Access the attachments of the event. * * @return An copy of the set of attachments (a ReferenceVector containing Reference objects) (may be empty). */ public List getAttachments() { return m_entityManager.newReferenceList(m_attachments); } // getAttachments
/** * Access the attachments of the event. * * @return An copy of the set of attachments (a ReferenceVector containing Reference objects) (may be empty). */ public List getAttachments() { return m_entityManager.newReferenceList(m_attachments); } // getAttachments
public static java.util.List newReferenceList() { org.sakaiproject.entity.api.EntityManager service = getInstance(); if (service == null) return null; return service.newReferenceList(); }
public static java.util.List newReferenceList(java.util.List param0) { org.sakaiproject.entity.api.EntityManager service = getInstance(); if (service == null) return null; return service.newReferenceList(param0); }
public static java.util.List newReferenceList() { org.sakaiproject.entity.api.EntityManager service = getInstance(); if (service == null) return null; return service.newReferenceList(); }
public static java.util.List newReferenceList(java.util.List param0) { org.sakaiproject.entity.api.EntityManager service = getInstance(); if (service == null) return null; return service.newReferenceList(param0); }
m_submissionLog = new ArrayList(); m_grades = new ArrayList(); m_feedbackAttachments = m_entityManager.newReferenceList(); m_submittedAttachments = m_entityManager.newReferenceList(); m_submitted = false; m_returned = false;
m_attachments = m_entityManager.newReferenceList();
m_attachments = m_entityManager.newReferenceList();
m_attachments = m_entityManager.newReferenceList();
/** * Handle legacy submissions with no 'isUserSubmission' attribute gracefully. * You must ensure that both m_submittedText and m_sumbittedAttachments have * been set prior to calling this method. If they are not set, this algorithm * will likely return false negatives. * * @see SAK-30644 */ private void getIsUserSubmission( String isUserSubmission ) { if( StringUtils.isBlank( isUserSubmission ) ) { // Initialize the list if it's null, to avoid NPE's in check below if( m_submittedAttachments == null ) { m_submittedAttachments = m_entityManager.newReferenceList(); } // If there is submitted text, attachments, or if the type is 'non-electronic', this is considered an actual user submission m_isUserSubmission = StringUtils.isNotBlank( m_submittedText ) || getAssignment().getContent().getTypeOfSubmission() == Assignment.NON_ELECTRONIC_ASSIGNMENT_SUBMISSION || !m_submittedAttachments.isEmpty(); } else { m_isUserSubmission = getBool( isUserSubmission ); } }
/** * Constructor used in addAssignmentContent. */ public BaseAssignmentContent(String id, String context) { m_id = id; m_context = context; m_properties = new BaseResourcePropertiesEdit(); addLiveProperties(m_properties); m_authors = new ArrayList(); m_attachments = m_entityManager.newReferenceList(); m_title = ""; m_instructions = ""; m_honorPledge = Assignment.HONOR_PLEDGE_NOT_SET; m_typeOfSubmission = Assignment.ASSIGNMENT_SUBMISSION_TYPE_NOT_SET; m_typeOfGrade = Assignment.GRADE_TYPE_NOT_SET; m_maxGradePoint = 0; m_factor = getScaleFactor(); m_timeCreated = TimeService.newTime(); m_timeLastModified = TimeService.newTime(); }
/** * Construct. Time and From set automatically. * * @param id * The message id. */ public BaseMessageHeaderEdit(Message msg, String id) { m_message = msg; m_id = id; m_message_order=0; m_date = m_timeService.newTime(); try { m_from = m_userDirectoryService.getUser(m_sessionManager.getCurrentSessionUserId()); } catch (UserNotDefinedException e) { m_from = m_userDirectoryService.getAnonymousUser(); } // init the AttachmentContainer m_attachments = m_entityManager.newReferenceList(); } // BaseMessageHeaderEdit
/** * Construct. Time and From set automatically. * * @param id * The message id. */ public BaseMessageHeaderEdit(Message msg, String id) { m_message = msg; m_id = id; m_message_order=0; m_date = m_timeService.newTime(); try { m_from = m_userDirectoryService.getUser(m_sessionManager.getCurrentSessionUserId()); } catch (UserNotDefinedException e) { m_from = m_userDirectoryService.getAnonymousUser(); } // init the AttachmentContainer m_attachments = m_entityManager.newReferenceList(); } // BaseMessageHeaderEdit
/** * Construct. Time and From set automatically. * * @param id * The message id. */ public BaseMessageHeaderEdit(Message msg, String id) { m_message = msg; m_id = id; m_message_order=0; m_date = m_timeService.newTime(); try { m_from = m_userDirectoryService.getUser(m_sessionManager.getCurrentSessionUserId()); } catch (UserNotDefinedException e) { m_from = m_userDirectoryService.getAnonymousUser(); } // init the AttachmentContainer m_attachments = m_entityManager.newReferenceList(); } // BaseMessageHeaderEdit
/** * Construct as a copy of another header. * * @param other * The other message header to copy. */ public BaseMessageHeaderEdit(Message msg, MessageHeader other) { m_message = msg; m_id = other.getId(); m_date = m_timeService.newTime(other.getDate().getTime()); m_from = other.getFrom(); m_draft = other.getDraft(); m_access = other.getAccess(); m_message_order=other.getMessage_order(); m_attachments = m_entityManager.newReferenceList(); replaceAttachments(other.getAttachments()); m_groups = new Vector(other.getGroups()); } // BaseMessageHeaderEdit
/** * Construct as a copy of another header. * * @param other * The other message header to copy. */ public BaseMessageHeaderEdit(Message msg, MessageHeader other) { m_message = msg; m_id = other.getId(); m_date = m_timeService.newTime(other.getDate().getTime()); m_from = other.getFrom(); m_draft = other.getDraft(); m_access = other.getAccess(); m_message_order=other.getMessage_order(); m_attachments = m_entityManager.newReferenceList(); replaceAttachments(other.getAttachments()); m_groups = new Vector(other.getGroups()); } // BaseMessageHeaderEdit
/** * Construct as a copy of another header. * * @param other * The other message header to copy. */ public BaseMessageHeaderEdit(Message msg, MessageHeader other) { m_message = msg; m_id = other.getId(); m_date = m_timeService.newTime(other.getDate().getTime()); m_from = other.getFrom(); m_draft = other.getDraft(); m_access = other.getAccess(); m_message_order=other.getMessage_order(); m_attachments = m_entityManager.newReferenceList(); replaceAttachments(other.getAttachments()); m_groups = new Vector(other.getGroups()); } // BaseMessageHeaderEdit
List<Reference> attachments = entityManager.newReferenceList();