本文整理了Java中org.dspace.eperson.Group.isMember()
方法的一些代码示例,展示了Group.isMember()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Group.isMember()
方法的具体详情如下:
包路径:org.dspace.eperson.Group
类名称:Group
方法名:isMember
暂无
代码示例来源:origin: org.dspace/dspace-jspui-api
protected void doDSPost(Context c,
HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException, SQLException, AuthorizeException
{
// check to see if the statistics are restricted to administrators
boolean publicise = ConfigurationManager.getBooleanProperty("report.public");
// determine the navigation bar to be displayed
String navbar = (!publicise ? "admin" : "default");
request.setAttribute("navbar", navbar);
// is the user a member of the Administrator (1) group
boolean admin = Group.isMember(c, 1);
if (publicise || admin)
{
showStatistics(c, request, response);
}
else
{
throw new AuthorizeException();
}
}
代码示例来源:origin: org.dspace/dspace-jspui-api
protected void doDSGet(Context context, HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException,
SQLException, AuthorizeException
{
// is the statistics data publically viewable?
boolean privatereport = ConfigurationManager.getBooleanProperty("solr-statistics", "authorization.admin");
// is the user a member of the Administrator (1) group?
boolean admin = Group.isMember(context, 1);
if (!privatereport || admin)
{
displayStatistics(context, request, response);
}
else
{
throw new AuthorizeException();
}
}
代码示例来源:origin: org.dspace/dspace-xmlui-api
if (!administrators.isMember(realEPerson))
代码示例来源:origin: org.dspace/dspace-xmlui-api
boolean pendingAddition = !parent.isMember(group);
boolean pendingRemoval = !memberGroupIDs.contains(groupID);
addMemberRow(table, group, highlight,pendingAddition,pendingRemoval);
boolean pendingAddition = !parent.isMember(eperson);
boolean pendingRemoval = !memberEPeopleIDs.contains(epersonID);
addMemberRow(table,eperson,highlight,pendingAddition,pendingRemoval);
代码示例来源:origin: org.dspace/dspace-xmlui-api
if (administrators.isMember(loginAs))
代码示例来源:origin: org.dspace/dspace-xmlui-api
if (parent != null && parent.isMember(group))
代码示例来源:origin: org.dspace/dspace-xmlui-api
if (group != null && group.isMember(person))
内容来源于网络,如有侵权,请联系作者删除!