Package sk.iway.iwcm.system
Class ModuleInfo
java.lang.Object
sk.iway.iwcm.system.ModuleInfo
ModuleInfo.java - info o module
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addComponent
(LabelValueDetails component) void
addSubmenu
(String nameKey, String path) void
addSubmenu
(ModuleInfo subModule) getGroup()
boolean
int
getPath()
getSubmenus
(Identity user) Vrati zoznam submenu podla prav daneho pouzivatelaboolean
boolean
isCustom()
boolean
boolean
boolean
boolean
boolean
void
setAvailable
(boolean available) void
setCustom
(boolean custom) void
setDefaultDisabled
(boolean defaultDisabled) void
setDomainName
(String domainName) void
setFromDatabase
(boolean fromDatabase) void
setHideSubmenu
(boolean hideSubmenu) void
setItemKey
(String itemKey) void
setLeftMenuLink
(String leftMenuLink) void
setLeftMenuNameKey
(String leftMenuNameKey) setMenuIcon
(String menuIcon) setMenuOrder
(int menuOrder) void
setNameKey
(String nameKey) void
void
setRequireConstantsKey
(String requireConstantsKey) void
setRootModule
(String rootModule) void
setShowInLeftMenu
(boolean showInLeftMenu) void
setShowSubCategories
(boolean showCategories) void
setUserItem
(boolean userItem) void
setWjVersions
(String wjVersions) toString()
-
Constructor Details
-
ModuleInfo
public ModuleInfo() -
ModuleInfo
public ModuleInfo(String nameKey, String itemKey, String path, String requireConstantsKey, boolean userItem, boolean showInLeftMenu, String leftMenuLink, String wjWersions, int menuOrder) Konstruktor- Parameters:
nameKey
- - kluc do text.properties pre nazov moduluitemKey
- - kluc pre pravapath
- - cesta k suboru, ktory sa kontroluje na existenciurequireConstantsKey
- - kontrola ci existuje Constants.getString(...)userItem
- - ak true, je mozne to volit v nastaveni pouzivatelashowInLeftMenu
- - ak je true, zobrazuje sa v lavom menu pouzivatelaleftMenuLink
- - linka, ktora sa pouziva pre lave menuwjWersions
- - na ake verzie WJ sa to pouziva B=basic, P=Pro, E=EnterprisemenuOrder
- - poradie, v akom sa menu zobrazi
-
-
Method Details
-
isAvailable
public boolean isAvailable()- Returns:
- Returns the available.
-
addComponent
-
setAvailable
public void setAvailable(boolean available) - Parameters:
available
- The available to set.
-
getPath
- Returns:
- Returns the fileCheck.
-
setPath
- Parameters:
path
-
-
getItemKey
- Returns:
- Returns the itemKey.
-
setItemKey
- Parameters:
itemKey
- The itemKey to set.
-
getNameKey
- Returns:
- Returns the nameKey.
-
setNameKey
- Parameters:
nameKey
- The nameKey to set.
-
isFromDatabase
public boolean isFromDatabase()- Returns:
- Returns the fromDatabase.
-
setFromDatabase
public void setFromDatabase(boolean fromDatabase) - Parameters:
fromDatabase
- The fromDatabase to set.
-
getRequireConstantsKey
- Returns:
- Returns the requireConstantsKey.
-
setRequireConstantsKey
- Parameters:
requireConstantsKey
- The requireConstantsKey to set.
-
isUserItem
public boolean isUserItem()- Returns:
- Returns the userItem.
-
setUserItem
public void setUserItem(boolean userItem) - Parameters:
userItem
- The userItem to set.
-
getWjVersions
-
setWjVersions
-
getLeftMenuNameKey
-
setLeftMenuNameKey
-
getMenuOrder
public int getMenuOrder() -
setMenuOrder
-
isShowInLeftMenu
public boolean isShowInLeftMenu() -
setShowInLeftMenu
public void setShowInLeftMenu(boolean showInLeftMenu) -
getLeftMenuLink
-
setLeftMenuLink
-
isDefaultDisabled
public boolean isDefaultDisabled()- Returns:
- Returns the defaultDisabled.
-
setDefaultDisabled
public void setDefaultDisabled(boolean defaultDisabled) - Parameters:
defaultDisabled
- The defaultDisabled to set.
-
getComponents
-
setRootModule
-
getRootModule
-
isShowSubCategories
public boolean isShowSubCategories() -
setShowSubCategories
public void setShowSubCategories(boolean showCategories) -
toString
-
getGroup
-
setGroup
-
getMenuIcon
-
setMenuIcon
-
getDomainName
-
setDomainName
-
isCustom
public boolean isCustom() -
setCustom
public void setCustom(boolean custom)
-