org.sakaiproject.entity.api.ResourceProperties.removeProperty()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(59)

本文整理了Java中org.sakaiproject.entity.api.ResourceProperties.removeProperty方法的一些代码示例,展示了ResourceProperties.removeProperty的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ResourceProperties.removeProperty方法的具体详情如下:
包路径:org.sakaiproject.entity.api.ResourceProperties
类名称:ResourceProperties
方法名:removeProperty

ResourceProperties.removeProperty介绍

[英]Remove a property.
[中]移除一个属性。

代码示例

代码示例来源:origin: org.sakaiproject.kernel/sakai-kernel-impl

public void unlockGroup() {
  this.getProperties().removeProperty(GROUP_PROP_LOCKED_BY);
}

代码示例来源:origin: sakaiproject/sakai

props.addProperty(CourseSectionImpl.CATEGORY, category);
if(maxEnrollments == null) {
  props.removeProperty(CourseSectionImpl.MAX_ENROLLMENTS);
} else {
  props.addProperty(CourseSectionImpl.MAX_ENROLLMENTS, maxEnrollments.toString());

代码示例来源:origin: org.sakaiproject.edu-services.sections/sections-model

props.addProperty(CourseSectionImpl.CATEGORY, category);
if(maxEnrollments == null) {
  props.removeProperty(CourseSectionImpl.MAX_ENROLLMENTS);
} else {
  props.addProperty(CourseSectionImpl.MAX_ENROLLMENTS, maxEnrollments.toString());

代码示例来源:origin: org.sakaiproject.kernel/sakai-kernel-impl

page.getProperties().removeProperty(SitePage.PAGE_CATEGORY_PROP);

代码示例来源:origin: org.sakaiproject.kernel/sakai-kernel-impl

resourceProps.removeProperty(SATISFIES_RULE);
List<String> prop = resourceProps.getPropertyList(ContentHostingService.CONDITIONAL_ACCESS_LIST);
if (prop == null) prop = new ArrayList<String>();
  resourceProps.removeProperty(ContentHostingService.CONDITIONAL_ACCESS_LIST);
  for (String id : acl) {
    resourceProps.addPropertyToList(ContentHostingService.CONDITIONAL_ACCESS_LIST, id);
resourceProps.removeProperty(SATISFIES_RULE);
resourceProps.removeProperty(ContentHostingService.CONDITIONAL_ACCESS_LIST);
for (String id : acl) {
  resourceProps.addPropertyToList(ContentHostingService.CONDITIONAL_ACCESS_LIST, id);

相关文章