@Entity public class ApplicationImpl extends Object implements AccessibleApplication, Auditable<Integer>
Application/AccessibleApplication-implementation| Constructor and Description |
|---|
ApplicationImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
closeContext() |
boolean |
containsBean(String beanName)
Checks whether a bean with the given name exists for this
Application. |
boolean |
equals(Object o) |
List<ApplicationSubject> |
getApplicationSubjects()
Returns the
ApplicationSubjects for this Application |
@Size(max=64,message="{validation.string.max}") String |
getApplicationVersion() |
@Size(max=64,message="{validation.string.max}") String |
getAppNGVersion()
Returns the version of appNG the
Application is compatible with. |
<T> T |
getBean(Class<T> clazz)
Returns the single bean of the given type, if any.
|
Object |
getBean(String beanName)
Returns the single bean with the given name, if any.
|
<T> T |
getBean(String name,
Class<T> clazz)
Retrieves the bean of the given name and type from the underlying
ApplicationContext, if any. |
String[] |
getBeanNames(Class<?> clazz)
Returns the names for all beans of the given type.
|
org.springframework.context.ConfigurableApplicationContext |
getContext() |
@Size(max=8192,message="{validation.string.max}") String |
getDescription()
Returns the description.
|
@Size(max=64,message="{validation.string.max}") String |
getDisplayName()
Returns the display name.
|
FeatureProvider |
getFeatureProvider()
Returns the
FeatureProvider for this Application. |
Integer |
getId()
Returns the id.
|
String |
getLongDescription()
Returns the description.
|
String |
getMessage(Locale locale,
String key,
Object... args)
Retrieves a message from the underlying
MessageSource. |
@NotNull(message="{validation.notNull}") @Pattern(regexp="[a-zA-Z0-9\\-]{3,}",message="{validation.nameStrict}") @Size(max=64,message="{validation.string.max}") String |
getName()
Returns the name.
|
String |
getPackageVersion()
Returns the version.
|
Set<Permission> |
getPermissions()
Returns the
Permissions for this Application. |
Properties |
getProperties()
Returns the
Propertiess for this Application. |
Resources |
getResources()
the
Resources for this Application. |
Set<Resource> |
getResourceSet()
Returns the
Resources for this Application. |
Set<Role> |
getRoles()
Returns
Roles for this Application. |
String |
getSessionParamKey(Site site)
Returns the key to retrieve the session-parameters for this
Application within the given Site
from an Environment. |
Map<String,String> |
getSessionParams(Site site,
Environment environment)
Retrieves the session-parameters for for this
Application within the given Site from the given
Environment. |
@Size(max=64,message="{validation.string.max}") String |
getTimestamp()
Returns the timestamp the
Application was build. |
Date |
getVersion()
Returns the version.
|
int |
hashCode() |
boolean |
isCoreApplication()
Deprecated.
|
boolean |
isFileBased()
Returns
true if this Application is filebased, which means it's original Resources are
stored on disk, false if the Resources are stored in the database. |
boolean |
isHidden()
Returns
true if this Application is hidden, which means it does not appear in the navigation
menu. |
boolean |
isInstalled()
Checks whether the
Application is installed. |
boolean |
isPrivileged()
Returns
true if this Application is a privileged application, which means it has access to the
platform's root context and the platform-scoped Environment. |
boolean |
isSnapshot()
Checks whether the
Application has a SNAPSHOT-version |
void |
setApplicationVersion(String applicationVersion) |
void |
setAppNGVersion(String appNGVersion) |
void |
setContext(org.springframework.context.ConfigurableApplicationContext applicationContext) |
void |
setCoreApplication(boolean isCoreApplication)
Deprecated.
|
void |
setDescription(String description) |
void |
setDisplayName(String displayName) |
void |
setFeatureProvider(FeatureProvider featureProvider) |
void |
setFileBased(boolean fileBased) |
void |
setHidden(boolean hidden) |
void |
setId(Integer id) |
void |
setLongDescription(String longDescription) |
void |
setName(String name) |
void |
setPermissions(Set<Permission> permissions) |
void |
setPrivileged(boolean isPrivileged) |
void |
setProperties(Properties properties) |
void |
setResources(Resources applicationResourceHolder) |
void |
setResourceSet(Set<Resource> applicationResources) |
void |
setRoles(Set<Role> roles) |
void |
setSnapshot(boolean isSnapshot) |
void |
setTimestamp(String timestamp) |
void |
setVersion(Date version) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAuditNamepublic Integer getId()
IdentifiablegetId in interface Identifiable<Integer>public void setId(Integer id)
setId in interface AccessibleApplication@NotNull(message="{validation.notNull}")
@Pattern(regexp="[a-zA-Z0-9\\-]{3,}",
message="{validation.nameStrict}")
@Size(max=64,
message="{validation.string.max}")
public @NotNull(message="{validation.notNull}") @Pattern(regexp="[a-zA-Z0-9\\-]{3,}",message="{validation.nameStrict}") @Size(max=64,message="{validation.string.max}") String getName()
Nameablepublic void setName(String name)
setName in interface AccessibleApplication@Size(max=8192,
message="{validation.string.max}")
public @Size(max=8192,message="{validation.string.max}") String getDescription()
NameablegetDescription in interface Nameablepublic void setDescription(String description)
setDescription in interface AccessibleApplicationpublic Date getVersion()
VersionablegetVersion in interface Versionable<Date>public void setVersion(Date version)
setVersion in interface AccessibleApplication@Size(max=64,
message="{validation.string.max}")
public @Size(max=64,message="{validation.string.max}") String getDisplayName()
IdentifiergetDisplayName in interface Identifierpublic void setDisplayName(String displayName)
@Size(max=64,
message="{validation.string.max}")
public @Size(max=64,message="{validation.string.max}") String getApplicationVersion()
public void setApplicationVersion(String applicationVersion)
public String getPackageVersion()
IdentifiergetPackageVersion in interface Identifier@Size(max=64,
message="{validation.string.max}")
public @Size(max=64,message="{validation.string.max}") String getTimestamp()
IdentifierApplication was build.getTimestamp in interface IdentifierApplication was buildpublic void setTimestamp(String timestamp)
public String getLongDescription()
IdentifiergetLongDescription in interface Identifierpublic void setLongDescription(String longDescription)
@Size(max=64,
message="{validation.string.max}")
public @Size(max=64,message="{validation.string.max}") String getAppNGVersion()
IdentifierApplication is compatible with.getAppNGVersion in interface IdentifierApplication is compatible withpublic void setAppNGVersion(String appNGVersion)
public boolean isInstalled()
IdentifierApplication is installed.isInstalled in interface Identifiertrue if the Application is installed, false otherwisepublic boolean isSnapshot()
IdentifierApplication has a SNAPSHOT-versionisSnapshot in interface Identifiertrue if the Application has a SNAPSHOT-version, false otherwisepublic void setSnapshot(boolean isSnapshot)
public boolean isFileBased()
Applicationtrue if this Application is filebased, which means it's original Resources are
stored on disk, false if the Resources are stored in the database.isFileBased in interface Applicationtrue if this Application is filebased, false otherwisepublic void setFileBased(boolean fileBased)
setFileBased in interface AccessibleApplicationpublic Set<Permission> getPermissions()
ApplicationPermissions for this Application.getPermissions in interface ApplicationPermissionspublic void setPermissions(Set<Permission> permissions)
setPermissions in interface AccessibleApplicationpublic Set<Role> getRoles()
ApplicationRoles for this Application.getRoles in interface ApplicationRolespublic void setRoles(Set<Role> roles)
setRoles in interface AccessibleApplicationpublic Set<Resource> getResourceSet()
ApplicationResources for this Application.getResourceSet in interface ApplicationResourcespublic Properties getProperties()
ApplicationPropertiess for this Application.getProperties in interface ApplicationPropertiesspublic void setProperties(Properties properties)
setProperties in interface AccessibleApplicationpublic org.springframework.context.ConfigurableApplicationContext getContext()
getContext in interface AccessibleApplicationpublic void setContext(org.springframework.context.ConfigurableApplicationContext applicationContext)
setContext in interface AccessibleApplicationpublic <T> T getBean(String name, Class<T> clazz)
ApplicationApplicationContext, if any.getBean in interface Applicationname - the name of the bean to retrieveclazz - the type of the bean to retrievepublic <T> T getBean(Class<T> clazz)
ApplicationgetBean in interface Applicationclazz - the type of the beannull if no such bean exists.public Object getBean(String beanName)
ApplicationgetBean in interface ApplicationbeanName - the name of the beannull if no such bean exists.public boolean containsBean(String beanName)
ApplicationApplication.containsBean in interface ApplicationbeanName - the name of the bean to check existencetrue if such a bean exists, false otherwisepublic String[] getBeanNames(Class<?> clazz)
ApplicationgetBeanNames in interface Applicationclazz - the type to get the bean names forpublic boolean isPrivileged()
Applicationtrue if this Application is a privileged application, which means it has access to the
platform's root context and the platform-scoped Environment.isPrivileged in interface Applicationtrue if this Application is a privileged application, false otherwise@Deprecated public boolean isCoreApplication()
Applicationtrue if this Application is a privileged application, which means it has access to the
platform's root context and the platform-scoped Environment.isCoreApplication in interface Applicationtrue if this Application is a privileged application, false otherwisepublic void setPrivileged(boolean isPrivileged)
setPrivileged in interface AccessibleApplication@Deprecated public void setCoreApplication(boolean isCoreApplication)
public void closeContext()
closeContext in interface AccessibleApplicationpublic String getMessage(Locale locale, String key, Object... args)
ApplicationMessageSource.getMessage in interface Applicationlocale - the Locale for the messagekey - the message-keyargs - the arguments for the messageResourceType.DICTIONARYpublic boolean isHidden()
Applicationtrue if this Application is hidden, which means it does not appear in the navigation
menu.isHidden in interface Applicationtrue if this Application is hiddenpublic void setHidden(boolean hidden)
public String getSessionParamKey(Site site)
ApplicationApplication within the given Site
from an Environment.getSessionParamKey in interface Applicationsite - the Site to retrieve the key forApplication.getSessionParams(Site, Environment)public Map<String,String> getSessionParams(Site site, Environment environment)
ApplicationApplication within the given Site from the given
Environment.getSessionParams in interface Applicationsite - the Site to retrieve the session parameters forenvironment - the current EnvironmentApplication within the given SiteApplication.getSessionParamKey(Site)public FeatureProvider getFeatureProvider()
ApplicationFeatureProvider for this Application.getFeatureProvider in interface ApplicationFeatureProviderpublic void setFeatureProvider(FeatureProvider featureProvider)
setFeatureProvider in interface AccessibleApplicationpublic void setResources(Resources applicationResourceHolder)
setResources in interface AccessibleApplicationpublic Resources getResources()
ApplicationResources for this Application.getResources in interface ApplicationgetResources in interface AccessibleApplicationResources for this Applicationpublic List<ApplicationSubject> getApplicationSubjects()
ApplicationApplicationSubjects for this ApplicationgetApplicationSubjects in interface ApplicationApplicationSubjectsCopyright © 2011–2022 aiticon GmbH. All rights reserved.