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