}
private List<Restriction> getMyRestrictions(RestrictPattern pattern, RestrictionHolder holder) {
String type = get("restrictionType");
List<Restriction> restrictions = CollectUtils.newArrayList();
User me = getUser();
if (type.equals("user")) {
restrictions = CollectUtils.newArrayList(((RestrictionHolder) me).getRestrictions());
} else if (type.equals("group")) {
for (GroupMember group : me.getGroups()) {
restrictions.addAll(group.getGroup().getRestrictions());
}
} else if (type.equals("authority")) {
restrictions = restrictionService.getAuthorityRestrictions(me,
((Authority) holder).getResource());