1 53 54 106 107 package com.Yasna.forum; 108 109 import java.util.*; 110 111 114 class GroupIteratorProxy extends IteratorProxy { 115 116 public GroupIteratorProxy(Iterator iterator, Authorization 117 authorization, ForumPermissions permissions) 118 { 119 super(iterator, authorization, permissions); 120 } 121 122 public Object next() throws java.util.NoSuchElementException { 123 Group group = (Group)iterator.next(); 124 ForumPermissions groupPermissions = group.getPermissions(authorization); 125 ForumPermissions newPermissions = 126 new ForumPermissions(permissions, groupPermissions); 127 return new GroupProxy(group, authorization, newPermissions); 128 } 129 } 130 | Popular Tags |