001: package com.technoetic.xplanner.domain;
002:
003: //DEBT(DATADRIVEN) Rename to ActionDef
004: public class ActionMapping {
005: private String name;
006: private String titleKey;
007: private String permission;
008: private String domainType;
009: private String targetPage;
010: private String iconPath;
011: private boolean passOidParam;
012: private String confirmationKey;
013: private boolean backToParent;
014:
015: public ActionMapping(String name, String titleKey,
016: String permission, String iconPath, String targetPage,
017: String domainType, boolean backToParent,
018: boolean passOidParam, String confirmationKey) {
019: this .name = name;
020: this .titleKey = titleKey;
021: this .permission = permission;
022: this .iconPath = iconPath;
023: this .targetPage = targetPage;
024: this .domainType = domainType;
025: this .confirmationKey = null;
026: this .backToParent = backToParent;
027: this .passOidParam = passOidParam;
028: this .confirmationKey = confirmationKey;
029: }
030:
031: public ActionMapping(String action, String actionKey,
032: String permission, String iconPath, String targetPage,
033: String domainType, boolean backToParent) {
034: this (action, actionKey, permission, iconPath, targetPage,
035: domainType, backToParent, true, null);
036: }
037:
038: public String getName() {
039: return name;
040: }
041:
042: public void setName(String name) {
043: this .name = name;
044: }
045:
046: public String getIconPath() {
047: return iconPath;
048: }
049:
050: public void setIconPath(String iconPath) {
051: this .iconPath = iconPath;
052: }
053:
054: public String getTargetPage() {
055: return targetPage;
056: }
057:
058: public void setTargetPage(String targetPage) {
059: this .targetPage = targetPage;
060: }
061:
062: public String getDomainType() {
063: return domainType;
064: }
065:
066: public void setDomainType(String domainType) {
067: this .domainType = domainType;
068: }
069:
070: public String getPermission() {
071: return permission;
072: }
073:
074: public void setPermission(String permission) {
075: this .permission = permission;
076: }
077:
078: public String getConfirmationKey() {
079: return confirmationKey;
080: }
081:
082: public void setConfirmationKey(String confirmationKey) {
083: this .confirmationKey = confirmationKey;
084: }
085:
086: public boolean isBackToParent() {
087: return backToParent;
088: }
089:
090: public void setBackToParent(boolean backToParent) {
091: this .backToParent = backToParent;
092: }
093:
094: public String getTitleKey() {
095: return titleKey;
096: }
097:
098: public void setTitleKey(String titleKey) {
099: this .titleKey = titleKey;
100: }
101:
102: public boolean shouldPassOidParam() {
103: return passOidParam;
104: }
105:
106: public void setPassOidParam(boolean passOidParam) {
107: this .passOidParam = passOidParam;
108: }
109:
110: public boolean isVisible(DomainObject object) {
111: return true;
112: }
113:
114: }
|