public class BoxGroupMembership.Info extends BoxResource.Info
Constructor and Description |
---|
Info()
Constructs an empty Info object.
|
Info(String json)
Constructs an Info object by parsing information from a JSON string.
|
Modifier and Type | Method and Description |
---|---|
void |
appendConfigurablePermissions(BoxGroupMembership.Permission permission,
Boolean value)
append new configurable permissions to the previous existing list.
|
Map<BoxGroupMembership.Permission,Boolean> |
getConfigurablePermissions()
Gets the configurablePermissions that the current user has on the group as group admin.
|
Date |
getCreatedAt()
Gets the time the group membership was created.
|
BoxGroup.Info |
getGroup()
Gets the group the user belongs to.
|
BoxGroupMembership.GroupRole |
getGroupRole()
Gets the level of access the user has.
|
Date |
getModifiedAt()
Gets the time the group membership was last modified.
|
BoxGroupMembership |
getResource()
Gets the resource associated with this Info.
|
BoxUser.Info |
getUser()
Gets the user belonging to the group.
|
protected void |
parseJSONMember(JsonObject.Member member)
Invoked with a JSON member whenever this object is updated or created from a JSON object.
|
void |
setConfigurablePermissions(Map<BoxGroupMembership.Permission,Boolean> configurablePermissions)
Sets the configurablePermissions that the current user has on the group as group admin.
|
void |
setGroupRole(BoxGroupMembership.GroupRole role)
Sets the level of access the user has.
|
getID
clearPendingChanges, getJson, getPendingChanges, getPendingChangesAsJsonObject, getPendingJSONObject
public Info()
public BoxUser.Info getUser()
Note: the BoxUser.Info returned by this method will only have the ID, name, and login fields populated.
public BoxGroup.Info getGroup()
Note: the BoxGroup.Info returned by this method will only have the ID and name fields populated.
public BoxGroupMembership.GroupRole getGroupRole()
public void setGroupRole(BoxGroupMembership.GroupRole role)
role
- the new level of access to give the user.public Date getCreatedAt()
public Date getModifiedAt()
public Map<BoxGroupMembership.Permission,Boolean> getConfigurablePermissions()
public void setConfigurablePermissions(Map<BoxGroupMembership.Permission,Boolean> configurablePermissions)
configurablePermissions
- a Map representing the group admin configurable permissionspublic void appendConfigurablePermissions(BoxGroupMembership.Permission permission, Boolean value)
permission
- the group admin permission one wants to enable or disable of the user on the group.value
- the true/false value of the attribute to set.public BoxGroupMembership getResource()
getResource
in class BoxResource.Info
protected void parseJSONMember(JsonObject.Member member)
Subclasses should override this method in order to parse any JSON members it knows about. This method is a no-op by default.
member
- the JSON member to be parsed.