Preferences

public class Preferences

User-specific preferences.

Constructors

Preferences

public Preferences(APIClient client)

Preferences

protected Preferences(APIClient client, long objectId)

Internal constructor

Methods

finalize

protected void finalize()

getObjectId

public long getObjectId()

Internal method

getOrCreate

public static Preferences getOrCreate(APIClient client, long objectId)

Internal method

organisationRemotePolicy

public io.cocotec.coco.platform.OrganisationRemotePolicy organisationRemotePolicy()

organisationRemoteServerUrl

public String organisationRemoteServerUrl()

proxy

public String proxy()

remotePolicy

public io.cocotec.coco.platform.RemotePolicy remotePolicy()

remoteServerUrl

public String remoteServerUrl()

resetToDefaults

public void resetToDefaults()

Resets the options to their default values. This does not save the options.

save

public String save()

Saves the current preferences, returning an error as a string if they cannot be.

setProxy

public String setProxy(String url)

Sets the proxy, returning an error if the proxy is not allowed.

setRemotePolicy

public void setRemotePolicy(io.cocotec.coco.platform.RemotePolicy remotePolicy)

setRemoteServerUrl

public void setRemoteServerUrl(String url)