public class ModuleUI<T> extends Object implements IModuleFeature<ModuleUI>
Module
.Module
may have one or more ModuleUI
. The generic type T for this class describes the nature of the Reference Page/Component.
It is recommended that the this#defaultRefPathToString()
be override for complex variants of T since the default transformation uses ".defaultRefPathToString()".
Module
s should ideally define an instance of this in their Spring XML config.IMenuGenerator}
,
Serialized FormConstructor and Description |
---|
ModuleUI() |
ModuleUI(Module module)
For Proxy mappins.
|
ModuleUI(T reference,
Module module,
String[] paths) |
ModuleUI(T reference,
Module module,
String[] paths,
boolean navigatable) |
Modifier and Type | Method and Description |
---|---|
Boolean |
getEnabled()
Check related
Module that this belongs to, if it is enabled or not. |
Module |
getModule()
The module that this item is related to in terms of Authorization
|
String |
getName()
Alternate/Overrides Module Name, if provided
|
String[] |
getPaths()
Path by which the UI is referred, by the app or external world
|
T |
getReference()
Default physical Page or component reference that represents this Module UI
|
Boolean |
isEnabled()
Check if the Feature instance is enabled or disabled.
|
boolean |
isNavigatable()
If the UI can be/will be available on a navigation.
Note a false value will still reverse-map it. |
String |
moduleName() |
String |
referenceToString()
Get the reference classpath/path/URL in String.
|
void |
setEnabled(Boolean enabled)
Enable or disable the feature.
|
ModuleUI |
setModule(Module module)
The module that this item is related to in terms of Authorization
|
void |
setName(String name)
Alternate/Overrides Module Name, if provided
|
void |
setNavigatable(boolean navigatable)
If the UI can be/will be available on a navigation
|
void |
setPaths(String[] paths)
Path by which the UI is referred, by the app or external world
|
void |
setReference(T reference)
Default physical Page or component reference that represents this Module UI
|
public ModuleUI()
public ModuleUI(Module module)
module
- as Module
public Module getModule()
getModule
in interface IModuleFeature<ModuleUI>
Module
public ModuleUI setModule(Module module)
setModule
in interface IModuleFeature<ModuleUI>
module
- The Module this object belongs topublic Boolean isEnabled()
IModuleFeature
isEnabled
in interface IModuleFeature<ModuleUI>
public Boolean getEnabled()
Module
that this belongs to, if it is enabled or not.public void setEnabled(Boolean enabled)
IModuleFeature
setEnabled
in interface IModuleFeature<ModuleUI>
public void setReference(T reference)
public T getReference()
public String getName()
public void setName(String name)
name
- public String referenceToString()
IMenuGenerator}
public String[] getPaths()
public void setPaths(String[] paths)
public boolean isNavigatable()
public void setNavigatable(boolean navigatable)
public String moduleName()
moduleName
in interface IModuleAware
Copyright © 2018. All rights reserved.