use of org.apache.jackrabbit.rmi.remote.RemoteIterator in project jackrabbit by apache.
the class ClientGroup method members.
public Enumeration<? extends Principal> members() {
try {
final RemoteIterator remote = ((RemoteGroup) getRemotePrincipal()).members();
final Iterator<Principal> pi = factory.getPrincipalIterator(remote);
return new Enumeration<Principal>() {
public boolean hasMoreElements() {
return pi.hasNext();
}
public Principal nextElement() {
return pi.next();
}
};
} catch (RemoteException re) {
throw new RemoteRuntimeException(re);
}
}
Aggregations