public class MoxtraBinder extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
binderId
Binder ID.
|
protected Date |
createdTime |
protected boolean |
deleted |
protected Boolean |
isNew |
protected String |
name
Meet name, also known as binder name.
|
protected Long |
revision |
protected String |
thumbnailUrl |
protected Date |
updatedTime |
static String |
USER_STATUS_BOARD_INVITED
Invited user status in a binder.
|
static String |
USER_STATUS_BOARD_MEMBER
Creator user status in a binder.
|
static String |
USER_TYPE_BOARD_OWNER
Creator user type in a binder.
|
static String |
USER_TYPE_BOARD_READ_WRITE
Invited user type in a binder with read/writer permissions.
|
protected List<MoxtraUser> |
users
Binder users.
|
| Modifier | Constructor and Description |
|---|---|
|
MoxtraBinder()
New binder constructor.
|
protected |
MoxtraBinder(MoxtraBinder other)
Editor constructor.
|
|
MoxtraBinder(String binderId,
String name,
Long revision,
Date createdTime,
Date updatedTime)
Existing binder constructor (for reading from Binder REST API).
|
protected |
MoxtraBinder(String binderId,
String name,
Long revision,
String thumbnailUrl,
Date createdTime,
Date updatedTime) |
| Modifier and Type | Method and Description |
|---|---|
void |
addUser(MoxtraUser user) |
void |
delete()
Mark this binder as such that should be deleted in Moxtra.
|
void |
editName(String newName) |
MoxtraBinder |
editor()
Return an editor instance for this binder.
|
List<MoxtraUser> |
getAddedUsers() |
String |
getBinderId() |
Date |
getCreatedTime() |
String |
getName() |
List<MoxtraUser> |
getRemovedUsers() |
Long |
getRevision() |
String |
getThumbnailUrl() |
Date |
getUpdatedTime() |
List<MoxtraUser> |
getUsers() |
boolean |
hasDeleted()
Answers is this binder should be deleted in Moxtra.
|
boolean |
hasNameChanged() |
boolean |
hasUsersAdded() |
boolean |
hasUsersRemoved() |
boolean |
isEditor() |
boolean |
isNew()
Answers is this a new binder (not yet saved) for Moxtra.
|
void |
removeUser(MoxtraUser user) |
protected void |
setBinderId(String binderId) |
protected void |
setCreatedTime(Date createdTime) |
protected void |
setName(String name) |
protected void |
setRevision(Long revision) |
protected void |
setThumbnailUrl(String url) |
protected void |
setUpdatedTime(Date updatedTime) |
protected void |
setUsers(List<MoxtraUser> users)
Set binder users.
|
String |
toString() |
void |
undelete()
Mark this binder as such that should not be deleted in Moxtra.
|
public static final String USER_TYPE_BOARD_OWNER
public static final String USER_TYPE_BOARD_READ_WRITE
public static final String USER_STATUS_BOARD_MEMBER
public static final String USER_STATUS_BOARD_INVITED
protected String binderId
protected String name
protected Long revision
protected String thumbnailUrl
protected Date createdTime
protected Date updatedTime
protected List<MoxtraUser> users
setUsers(List).protected final transient Boolean isNew
protected transient boolean deleted
protected MoxtraBinder(String binderId, String name, Long revision, String thumbnailUrl, Date createdTime, Date updatedTime)
public MoxtraBinder()
public MoxtraBinder(String binderId, String name, Long revision, Date createdTime, Date updatedTime)
binderId - name - revision - createdTime - updatedTime - protected MoxtraBinder(MoxtraBinder other)
other - public MoxtraBinder editor()
MoxtraBinder edit instancepublic boolean isNew()
true if it is a new meet, false otherwisepublic boolean hasDeleted()
true if meet should be deleted, false otherwisepublic void delete()
public void undelete()
isNew() result.public String getBinderId()
public String getName()
public Long getRevision()
public String getThumbnailUrl()
public Date getCreatedTime()
public Date getUpdatedTime()
public void addUser(MoxtraUser user)
user - public void removeUser(MoxtraUser user)
user - public List<MoxtraUser> getUsers()
public List<MoxtraUser> getAddedUsers()
public boolean hasUsersAdded()
public List<MoxtraUser> getRemovedUsers()
public boolean hasUsersRemoved()
public void editName(String newName)
public boolean hasNameChanged()
public boolean isEditor()
protected void setUsers(List<MoxtraUser> users)
users - protected void setBinderId(String binderId)
String - the binder id to setprotected void setName(String name)
name - the name to setprotected void setRevision(Long revision)
revision - the revision to setprotected void setThumbnailUrl(String url)
String - the thumbnailUrl to setprotected void setCreatedTime(Date createdTime)
createdTime - the createdTime to setprotected void setUpdatedTime(Date updatedTime)
updatedTime - the updatedTime to setCopyright © 2003–2015 eXo Platform SAS. All rights reserved.