public final class DefaultApplication extends java.lang.Object implements Application
Modifier and Type | Class and Description |
---|---|
static class |
DefaultApplication.Builder
Default application builder.
|
Modifier and Type | Method and Description |
---|---|
static DefaultApplication.Builder |
builder()
Returns a default application builder.
|
static DefaultApplication.Builder |
builder(Application application)
Creates a new builder as a copy of an existing application.
|
static DefaultApplication.Builder |
builder(ApplicationDescription appDesc)
Creates a new builder as a copy of an existing application description.
|
static DefaultApplication.Builder |
builder(DefaultApplication.Builder builder)
Creates a new builder as a copy of an existing builder.
|
java.lang.String |
category()
Returns category of the application.
|
java.lang.String |
description()
Returns description of the application.
|
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.String> |
features()
Returns the list of features comprising the application.
|
java.util.Optional<java.net.URI> |
featuresRepo()
Returns the feature repository URI.
|
int |
hashCode() |
byte[] |
icon()
Returns icon of the application.
|
ApplicationId |
id()
Returns the application name id.
|
java.lang.String |
origin()
Returns the name of the application origin, group or company.
|
java.util.Set<Permission> |
permissions()
Returns the permissions requested by the application.
|
java.lang.String |
readme()
Returns readme of the application.
|
java.util.List<java.lang.String> |
requiredApps()
Returns list of required application names.
|
ApplicationRole |
role()
Returns the role of the application.
|
java.lang.String |
title()
Returns the title of the application.
|
java.lang.String |
toString() |
java.lang.String |
url()
Returns url of the application.
|
Version |
version()
Returns the application version.
|
public ApplicationId id()
Application
id
in interface Application
public Version version()
Application
version
in interface Application
public java.lang.String title()
Application
Application.id()
.title
in interface Application
public java.lang.String description()
Application
description
in interface Application
public java.lang.String category()
Application
category
in interface Application
public java.lang.String url()
Application
url
in interface Application
public java.lang.String readme()
Application
readme
in interface Application
public byte[] icon()
Application
icon
in interface Application
public java.lang.String origin()
Application
origin
in interface Application
public ApplicationRole role()
Application
role
in interface Application
public java.util.Set<Permission> permissions()
Application
permissions
in interface Application
public java.util.Optional<java.net.URI> featuresRepo()
Application
featuresRepo
in interface Application
public java.util.List<java.lang.String> features()
Application
features
in interface Application
public java.util.List<java.lang.String> requiredApps()
Application
requiredApps
in interface Application
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public static DefaultApplication.Builder builder()
public static DefaultApplication.Builder builder(DefaultApplication.Builder builder)
builder
- existing builder to copypublic static DefaultApplication.Builder builder(Application application)
application
- existing application to copypublic static DefaultApplication.Builder builder(ApplicationDescription appDesc)
appDesc
- existing application description