com.aliction.gitproviders.bitbucket.objects.BitbucketTeamPermission Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bitbucket-client Show documentation
Show all versions of bitbucket-client Show documentation
Java Implementation to Bitbucket REST API
package com.aliction.gitproviders.bitbucket.objects;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* This class contains the role of the user to the team
* @author Aly Ibrahim
* Date: Oct 25, 2019
*
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class BitbucketTeamPermission extends BitbucketObject {
private BitbucketRole permission;
private BitbucketObjectType type;
private BitbucketUser user;
private BitbucketTeam team;
/**
*
* @param uuid - String uuid
* @param created_on - String reation date
* @param permission - BitbucketRole role
* @param type - BitbucketObjectType - type
* @param user - BitbucketUser - user
* @param team - BitbucketTeam - team
*/
public BitbucketTeamPermission(@JsonProperty("uuid") String uuid,
@JsonProperty("created_on") String created_on,
@JsonProperty("permission") BitbucketRole permission,
@JsonProperty("type") BitbucketObjectType type,
@JsonProperty("user") BitbucketUser user,
@JsonProperty("team") BitbucketTeam team) {
super(uuid, created_on, type);
this.permission = permission;
this.user = user;
this.team = team;
}
/**
*
* @return user role/permission to the team
*/
public BitbucketRole getPermission() {
return permission;
}
/**
*
* @return user object
*/
public BitbucketUser getUser() {
return user;
}
/**
*
* @return team object
*/
public BitbucketTeam getTeam() {
return team;
}
}