Get Collaboration list completed.

This commit is contained in:
Paulo Gustavo Veiga
2012-06-09 22:49:54 -03:00
parent 6c8664ada4
commit aeb0ef0668
26 changed files with 268 additions and 555 deletions

View File

@@ -36,7 +36,7 @@ public class Collaboration {
this.collaborator = collaborator;
// Guarantee referential integrity
mindmap.addMindmapUser(this);
mindmap.addCollaboration(this);
collaborator.addMindmapUser(this);
}
@@ -60,6 +60,10 @@ public class Collaboration {
return role;
}
public void setRole(@NotNull CollaborationRole role) {
this.role = role;
}
public boolean isOwner() {
return getRole() == CollaborationRole.OWNER;
}