本文整理了Java中org.sakaiproject.site.api.Group.getProperties()
方法的一些代码示例,展示了Group.getProperties()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Group.getProperties()
方法的具体详情如下:
包路径:org.sakaiproject.site.api.Group
类名称:Group
方法名:getProperties
暂无
代码示例来源:origin: sakaiproject/sakai
public String getEid() {
if (!lazy_eid) {
// Get the EID from the group. If the EID property exists, use it. If it doesn't
// exist, but the group has a provider ID, copy the provider ID to the EID field.
ResourceProperties props = group.getProperties();
String groupEid = StringUtils.trimToNull(props.getProperty(CourseSectionImpl.EID));
if(groupEid == null) {
// Try the provider ID
String providerId = StringUtils.trimToNull(group.getProviderGroupId());
if(providerId != null) {
// There is a provider id, so update the group and this section
props.addProperty(CourseSectionImpl.EID, providerId);
this.eid = providerId;
}
} else {
this.eid = groupEid;
}
lazy_eid = true;
}
return eid;
}
代码示例来源:origin: org.sakaiproject.edu-services.sections/sections-model
public String getEid() {
if (!lazy_eid) {
// Get the EID from the group. If the EID property exists, use it. If it doesn't
// exist, but the group has a provider ID, copy the provider ID to the EID field.
ResourceProperties props = group.getProperties();
String groupEid = StringUtils.trimToNull(props.getProperty(CourseSectionImpl.EID));
if(groupEid == null) {
// Try the provider ID
String providerId = StringUtils.trimToNull(group.getProviderGroupId());
if(providerId != null) {
// There is a provider id, so update the group and this section
props.addProperty(CourseSectionImpl.EID, providerId);
this.eid = providerId;
}
} else {
this.eid = groupEid;
}
lazy_eid = true;
}
return eid;
}
代码示例来源:origin: sakaiproject/sakai
ResourceProperties props = group.getProperties();
group.setTitle(title);
group.setDescription(description);
代码示例来源:origin: org.sakaiproject.edu-services.sections/sections-model
ResourceProperties props = group.getProperties();
group.setTitle(title);
group.setDescription(description);
代码示例来源:origin: org.sakaiproject.kernel/sakai-kernel-impl
/**
* Construct as a copy of another.
*
* @param other
* The other to copy.
* @param site
* The site in which this group lives.
* @param exact
* If true, we copy id - else we generate a new one.
*/
protected BaseGroup(BaseSiteService siteService, Group other, Site site, boolean exact)
{
this.siteService = siteService;
if (site == null) log.warn("BaseGroup(other, site...) created with null site");
BaseGroup bOther = (BaseGroup) other;
m_site = (Site) site;
if (exact)
{
m_id = bOther.m_id;
}
else
{
m_id = siteService.idManager().createUuid();
}
m_title = bOther.m_title;
m_description = bOther.m_description;
m_properties = new BaseResourcePropertiesEdit();
m_properties.addAll(other.getProperties());
((BaseResourcePropertiesEdit) m_properties).setLazy(((BaseResourceProperties) other.getProperties()).isLazy());
}
代码示例来源:origin: org.sakaiproject.basiclti/basiclti-impl
sakaiGroup.getProperties().addProperty(sakaiGroup.GROUP_PROP_WSETUP_CREATED, Boolean.TRUE.toString());
sakaiGroup.setTitle(consumerGroupTitle);
代码示例来源:origin: sakaiproject/sakai
this.isLockedForDeletion = group.isLocked(Group.LockMode.DELETE);
ResourceProperties props = group.getProperties();
this.category = props.getProperty(CourseSectionImpl.CATEGORY);
this.meetings = new ArrayList<Meeting>();
代码示例来源:origin: org.sakaiproject.edu-services.sections/sections-model
this.isLocked = group.isLocked();
ResourceProperties props = group.getProperties();
this.category = props.getProperty(CourseSectionImpl.CATEGORY);
this.meetings = new ArrayList<Meeting>();
代码示例来源:origin: org.sakaiproject.signup/signup-impl
String gProp = grp.getProperties().getProperty(GROUP_PROP_SIGNUP_IGNORE);
if (gProp != null && gProp.equals(Boolean.TRUE.toString())) {
continue;
代码示例来源:origin: org.sakaiproject.signup/signup-impl
group.getProperties().addProperty(GROUP_PROP_SITEINFO_VISIBLE, Boolean.TRUE.toString());
代码示例来源:origin: org.sakaiproject.kernel/sakai-kernel-impl
writeProperties("SAKAI_SITE_GROUP_PROPERTY", "GROUP_ID", group.getId(), "SITE_ID", caseId(edit.getId()), group.getProperties(),
deleteAgain);
内容来源于网络,如有侵权,请联系作者删除!