Upon certain events my robot try to make all participant (in a wave
which was created by the robot) READ_ONLY. Upon other events the robot
try to make all participants FULL. Making everybody READ_ONLY works
fine.Making everybody FULL does not work - no one is able to create
response blips.
Here is my code:
private void changeEverybodyRole(Wavelet wavelet,Participants.Role
role)
{
log.info("About to change everybody's role to: " + role);
Participants participants = wavelet.getParticipants();
Iterator<String> participantsIter = participants.iterator();
while(participantsIter.hasNext())
{
final String participant = participantsIter.next();
participants.setParticipantRole(participant, role);
log.info("participant: [" + participant + "] role: [" +
participants.getParticipantRole(participant)+ "]");
}
}
Below are the outgoing operations:
com.google.wave.api.AbstractRobot serializeOperations: Outgoing
operations:
[{"method":"robot.notifyCapabilitiesHash","id":"op31","params":
{"capabilitiesHash":"e16c63dbf7a7","protocolVersion":"0.21"}},
{"method":"wavelet.modifyParticipantRole","id":"op32","params":
{"waveId":"googlewave.com!w+4c7IFrZkBDs","waveletId":
"googlewave.com!conv
+root","participantId":"[email protected]","participantRole":"READ_ONLY"}},
{"method":"wavelet.modifyParticipantRole","id":"op33","params":
{"waveId":"googlewave.com!w+4c7IFrZkBDs","waveletId":"googlewave.com!
conv+root","participantId":
"[email protected]","participantRole":"READ_ONLY"}},
{"method":"wavelet.modifyParticipantRole","id":
"op34","params":{"waveId":"googlewave.com!w
+4c7IFrZkBDs","waveletId":"googlewave.com!conv+root","participantId":
"[email protected]","participantRole":"READ_ONLY"}},
{"method":"wavelet.modifyParticipantRole","id"
:"op35","params":{"waveId":"googlewave.com!w
+4c7IFrZkBDs","waveletId":"googlewave.com!conv+root","participantId":
"[email protected]","participantRole":"READ_ONLY"}},
{"method":"document.modify","id":"op36","params":
{"waveId":"googlewave.com!w+4c7IFrZkBDs","waveletId":"googlewave.com!
conv+root","blipId":"b+RfIXyavlT",
"modifyAction":
{"modifyHow":"DELETE","values":null,"annotationKey":null,"elements":null,"bundledAnnotations":null,
"useMarkup":false},"modifyQuery":{"elementMatch":"BUTTON","maxRes":
1,"textMatch":null,"restrictions":{}}}}]
Please advice -- Avishay
--
You received this message because you are subscribed to the Google Groups
"Google Wave API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-wave-api?hl=en.