Interface ComponentDescriptor
- All Superinterfaces:
Descriptor,Serializable
- All Known Implementing Classes:
LibraryDescriptor,ProjectAppDescriptor,PublicClassDescriptor,ServiceDescriptor,WebAppDescriptor,WebServerDescriptor
The component descriptor contains name, type, class and other information of a
Component.- Since:
- 4.1
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThe scope describes the place where the component is available: server-wide, project-local or web-local.static enumComponent type. -
Method Summary
Modifier and TypeMethodDescription@Nullable StringReturnscomponentclass-name.@Nullable StringReturns configuration string.@Nullable StringReturnsconfigurationclass-name.Returns an english component description.Returns the component displayname.@NotNull StringReturns module name.getName()Returns the component name which has to be unique inside a single module.Returns resources (jar-files) necessary for this component.getScope()Returns component scope.getType()Returns component type.Returns component version (multiple numbers separated only by dots, e.g.booleanisHidden()Returns true if component is hidden in adminconsole, and false (by default) otherwisebooleanReturns true if this component descriptor is unknown, occurs when an imported project has a module installed, which is unknown on the firstspirit server.
-
Method Details
-
isUnknown
boolean isUnknown()Returns true if this component descriptor is unknown, occurs when an imported project has a module installed, which is unknown on the firstspirit server. Returns false otherwise (default)- Returns:
- boolean which describes the unknown state of this component
- Since:
- 4.1
-
isHidden
boolean isHidden()Returns true if component is hidden in adminconsole, and false (by default) otherwise- Returns:
- true if component is hidden in adminconsole, and false (by default) otherwise
- Since:
- 4.1
-
getConfiguration
Returns configuration string.- Specified by:
getConfigurationin interfaceDescriptor- Since:
- 4.2.400
-
getDescription
String getDescription()Returns an english component description.- Specified by:
getDescriptionin interfaceDescriptor- Returns:
- component description.
- Since:
- 4.1
-
getName
String getName()Returns the component name which has to be unique inside a single module.- Specified by:
getNamein interfaceDescriptor- Returns:
- component name.
- Since:
- 4.1
-
getDisplayName
String getDisplayName()Returns the component displayname.- Specified by:
getDisplayNamein interfaceDescriptor- Returns:
- component displayname.
- Since:
- 5.0.203
-
getModuleName
Returns module name.- Returns:
- module name.
- Since:
- 4.1
-
getVersion
String getVersion()Returns component version (multiple numbers separated only by dots, e.g."1.2.3.4").- Specified by:
getVersionin interfaceDescriptor- Returns:
- component version.
- Since:
- 4.1
-
getComponentClass
Returnscomponentclass-name.- Returns:
componentclass-name.- Since:
- 4.1
-
getConfigurationClass
Returnsconfigurationclass-name.- Returns:
configurationclass-name.- Since:
- 4.1
-
getScope
ComponentDescriptor.Scope getScope()Returns component scope.- Returns:
- component scope.
- Since:
- 4.1
-
getType
ComponentDescriptor.Type getType()Returns component type.- Returns:
- component type.
- Since:
- 4.1
-
getResources
AbstractDescriptor.ResourceDescriptor[] getResources()Returns resources (jar-files) necessary for this component.- Returns:
- necessary resources (jar-files).
- Since:
- 4.1
-