public class

Permissions

extends Model
java.lang.Object
   ↳ java.util.Observable
     ↳ fm.audiobox.core.models.Model
       ↳ fm.audiobox.core.models.Permissions

Class Overview

A user can subscribe and manage multiple remote storage services.

This hash defines the boolean permissions the user has access to, depending on subscription state if it's a paid feature.

In case the User has been created through a Partner it will inherit permissions depending on the Partner requested features.

Such attributes are automatically set by the system and cannot be changed manually.

Summary

Constants
String BOX
String CLOUD
String DROPBOX
String FACEBOOK
String GDRIVE
String LASTFM
String LOCAL
String LYRICS
String MEGA
String PLAYER
String SKYDRIVE
String SONGKICK
String SOUNDCLOUD
String TWITCHTV
String TWITTER
String YOUTUBE
Public Constructors
Permissions()
Public Methods
boolean hasBox()
Checks if user can access the Box feature.
boolean hasCloud()
Checks if user can access the AudioBox Cloud feature.
boolean hasDropbox()
Checks if user can access the Dropbox feature.
boolean hasFacebook()
Checks if user can access the Facebook feature.
boolean hasGdrive()
Checks if user can access the Google Drive feature.
boolean hasLastfm()
Checks if user can access the Last.fm feature.
boolean hasLocal()
Checks if user can access the AudioBox Desktop feature.
boolean hasLyrics()
Checks if user can access the lyrics feature.
boolean hasMega()
Checks if user can access the Mega feature.
boolean hasPlayer()
Checks if user can access the Cloud Web Player.
boolean hasSkydrive()
Checks if user can access the SkyDrive feature.
boolean hasSongkick()
Checks if user can access the Songkick feature.
boolean hasSoundcloud()
Checks if user can access the Soundcloud feature.
boolean hasTwitchtv()
Checks if user can access the Twitch.tv feature.
boolean hasTwitter()
Checks if user can access the Twitter feature.
boolean hasYoutube()
Checks if user can access the YouTube feature.
[Expand]
Inherited Methods
From class fm.audiobox.core.models.Model
From class java.util.Observable
From class java.lang.Object

Constants

public static final String BOX

Constant Value: "box"

public static final String CLOUD

Constant Value: "cloud"

public static final String DROPBOX

Constant Value: "dropbox"

public static final String FACEBOOK

Constant Value: "facebook"

public static final String GDRIVE

Constant Value: "gdrive"

public static final String LASTFM

Constant Value: "lastfm"

public static final String LOCAL

Constant Value: "local"

public static final String LYRICS

Constant Value: "lyrics"

public static final String MEGA

Constant Value: "mega"

public static final String PLAYER

Constant Value: "player"

public static final String SKYDRIVE

Constant Value: "skydrive"

public static final String SONGKICK

Constant Value: "songkick"

public static final String SOUNDCLOUD

Constant Value: "soundcloud"

public static final String TWITCHTV

Constant Value: "twitchtv"

public static final String TWITTER

Constant Value: "twitter"

public static final String YOUTUBE

Constant Value: "youtube"

Public Constructors

public Permissions ()

Public Methods

public boolean hasBox ()

Checks if user can access the Box feature.

Returns
  • the true if access is granted, false otherwise.

public boolean hasCloud ()

Checks if user can access the AudioBox Cloud feature.

Returns
  • the true if access is granted, false otherwise.

public boolean hasDropbox ()

Checks if user can access the Dropbox feature.

Returns
  • the true if access is granted, false otherwise.

public boolean hasFacebook ()

Checks if user can access the Facebook feature.

Returns
  • the true if access is granted, false otherwise.

public boolean hasGdrive ()

Checks if user can access the Google Drive feature.

Returns
  • the true if access is granted, false otherwise.

public boolean hasLastfm ()

Checks if user can access the Last.fm feature.

Returns
  • the true if access is granted, false otherwise.

public boolean hasLocal ()

Checks if user can access the AudioBox Desktop feature.

Returns
  • the true if access is granted, false otherwise.

public boolean hasLyrics ()

Checks if user can access the lyrics feature.

Returns
  • the true if access is granted, false otherwise.

public boolean hasMega ()

Checks if user can access the Mega feature.

Returns
  • the true if access is granted, false otherwise.

public boolean hasPlayer ()

Checks if user can access the Cloud Web Player.

Returns
  • the true if access is granted, false otherwise.

public boolean hasSkydrive ()

Checks if user can access the SkyDrive feature.

Returns
  • the true if access is granted, false otherwise.

public boolean hasSongkick ()

Checks if user can access the Songkick feature.

Returns
  • the true if access is granted, false otherwise.

public boolean hasSoundcloud ()

Checks if user can access the Soundcloud feature.

Returns
  • the true if access is granted, false otherwise.

public boolean hasTwitchtv ()

Checks if user can access the Twitch.tv feature.

Returns
  • the true if access is granted, false otherwise.

public boolean hasTwitter ()

Checks if user can access the Twitter feature.

Returns
  • the true if access is granted, false otherwise.

public boolean hasYoutube ()

Checks if user can access the YouTube feature.

Returns
  • the true if access is granted, false otherwise.