本文整理汇总了Java中org.kuali.rice.kim.document.IdentityManagementRoleDocument.setSearchResultMembers方法的典型用法代码示例。如果您正苦于以下问题:Java IdentityManagementRoleDocument.setSearchResultMembers方法的具体用法?Java IdentityManagementRoleDocument.setSearchResultMembers怎么用?Java IdentityManagementRoleDocument.setSearchResultMembers使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.kuali.rice.kim.document.IdentityManagementRoleDocument
的用法示例。
在下文中一共展示了IdentityManagementRoleDocument.setSearchResultMembers方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: loadRoleMembersBasedOnSearch
import org.kuali.rice.kim.document.IdentityManagementRoleDocument; //导入方法依赖的package包/类
@Override
public void loadRoleMembersBasedOnSearch(IdentityManagementRoleDocument identityManagementRoleDocument,
String memberSearchValue){
List<KimDocumentRoleMember> roleMembersRestricted = new ArrayList<KimDocumentRoleMember>();
List<KimDocumentRoleMember> members = identityManagementRoleDocument.getMembers();
for (KimDocumentRoleMember roleMember : members){
String memberName = roleMember.getMemberName().toLowerCase();
if (memberName.startsWith(memberSearchValue.toLowerCase())) {
roleMembersRestricted.add(roleMember);
}
}
identityManagementRoleDocument.setSearchResultMembers(roleMembersRestricted);
}
示例2: clearRestrictedRoleMembersSearchResults
import org.kuali.rice.kim.document.IdentityManagementRoleDocument; //导入方法依赖的package包/类
@Override
public void clearRestrictedRoleMembersSearchResults(IdentityManagementRoleDocument identityManagementRoleDocument) {
List<KimDocumentRoleMember> roleMembersRestricted = new ArrayList<KimDocumentRoleMember>();
List<KimDocumentRoleMember> members = identityManagementRoleDocument.getMembers();
identityManagementRoleDocument.setSearchResultMembers(roleMembersRestricted);
identityManagementRoleDocument.setMembers(members);
}
示例3: loadRoleMembersBasedOnSearch
import org.kuali.rice.kim.document.IdentityManagementRoleDocument; //导入方法依赖的package包/类
@SuppressWarnings("unchecked")
public void loadRoleMembersBasedOnSearch(IdentityManagementRoleDocument identityManagementRoleDocument,
String memberSearchValue){
List<KimDocumentRoleMember> roleMembersRestricted = new ArrayList<KimDocumentRoleMember>();
List<KimDocumentRoleMember> members = identityManagementRoleDocument.getMembers();
for (KimDocumentRoleMember roleMember : members){
String memberName = roleMember.getMemberName().toLowerCase();
if (memberName.startsWith(memberSearchValue.toLowerCase())) {
roleMembersRestricted.add(roleMember);
}
}
identityManagementRoleDocument.setSearchResultMembers(roleMembersRestricted);
}
示例4: clearRestrictedRoleMembersSearchResults
import org.kuali.rice.kim.document.IdentityManagementRoleDocument; //导入方法依赖的package包/类
@SuppressWarnings("unchecked")
public void clearRestrictedRoleMembersSearchResults(IdentityManagementRoleDocument identityManagementRoleDocument) {
List<KimDocumentRoleMember> roleMembersRestricted = new ArrayList<KimDocumentRoleMember>();
List<KimDocumentRoleMember> members = identityManagementRoleDocument.getMembers();
identityManagementRoleDocument.setSearchResultMembers(roleMembersRestricted);
identityManagementRoleDocument.setMembers(members);
}