本文整理了Java中org.sakaiproject.entity.api.EntityManager.newReferenceList()
方法的一些代码示例,展示了EntityManager.newReferenceList()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。EntityManager.newReferenceList()
方法的具体详情如下:
包路径:org.sakaiproject.entity.api.EntityManager
类名称:EntityManager
方法名:newReferenceList
[英]Create a new List specially designed to hold References.
[中]创建一个专为保存引用而设计的新列表。
代码示例来源:origin: sakaiproject/sakai
/**
* 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
代码示例来源:origin: org.sakaiproject.message/sakai-message-util
/**
* 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
代码示例来源:origin: org.sakaiproject.message/sakai-message-impl
/**
* 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
代码示例来源:origin: org.sakaiproject.kernel/sakai-kernel-api
public static java.util.List newReferenceList()
{
org.sakaiproject.entity.api.EntityManager service = getInstance();
if (service == null) return null;
return service.newReferenceList();
}
代码示例来源:origin: sakaiproject/sakai
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);
}
代码示例来源:origin: sakaiproject/sakai
public static java.util.List newReferenceList()
{
org.sakaiproject.entity.api.EntityManager service = getInstance();
if (service == null) return null;
return service.newReferenceList();
}
代码示例来源:origin: org.sakaiproject.kernel/sakai-kernel-api
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);
}
代码示例来源:origin: org.sakaiproject.assignment/sakai-assignment-impl
m_submissionLog = new ArrayList();
m_grades = new ArrayList();
m_feedbackAttachments = m_entityManager.newReferenceList();
m_submittedAttachments = m_entityManager.newReferenceList();
m_submitted = false;
m_returned = false;
代码示例来源:origin: sakaiproject/sakai
m_attachments = m_entityManager.newReferenceList();
代码示例来源:origin: org.sakaiproject.message/sakai-message-impl
m_attachments = m_entityManager.newReferenceList();
代码示例来源:origin: org.sakaiproject.message/sakai-message-util
m_attachments = m_entityManager.newReferenceList();
代码示例来源:origin: org.sakaiproject.assignment/sakai-assignment-impl
/**
* 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 );
}
}
代码示例来源:origin: org.sakaiproject.assignment/sakai-assignment-impl
/**
* 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();
}
代码示例来源:origin: sakaiproject/sakai
/**
* 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
代码示例来源:origin: org.sakaiproject.message/sakai-message-impl
/**
* 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
代码示例来源:origin: org.sakaiproject.message/sakai-message-util
/**
* 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
代码示例来源:origin: sakaiproject/sakai
/**
* 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
代码示例来源:origin: org.sakaiproject.message/sakai-message-impl
/**
* 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
代码示例来源:origin: org.sakaiproject.message/sakai-message-util
/**
* 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
代码示例来源:origin: org.sakaiproject/sakai-syllabus-impl
List<Reference> attachments = entityManager.newReferenceList();
内容来源于网络,如有侵权,请联系作者删除!