Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
Component Sharing
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Gagandeep Singh Bhatia
Component Sharing
Commits
26e72cb6
Commit
26e72cb6
authored
Oct 11, 2024
by
Omkar Ingale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolved issue of itm_default in mailingListIC.java
parent
bdc7516d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
3 deletions
+40
-3
Task/Mailing List/Java component/mailingListIC.java
Task/Mailing List/Java component/mailingListIC.java
+40
-3
No files found.
Task/Mailing List/Java component/mailingListIC.java
View file @
26e72cb6
...
@@ -82,10 +82,30 @@ public class MailingListIC extends ValidatorEJB {
...
@@ -82,10 +82,30 @@ public class MailingListIC extends ValidatorEJB {
case
1
:
case
1
:
valueXmlString
.
append
(
"<Detail1>"
);
valueXmlString
.
append
(
"<Detail1>"
);
if
(
"mail_list_type"
.
equalsIgnoreCase
(
currentColumn
.
trim
()))
{
if
(
"itm_default"
.
equalsIgnoreCase
(
currentColumn
.
trim
())){
BaseLogger
.
log
(
"3"
,
null
,
null
,
"MailingListPostSave in itm default "
);
if
(
"e"
.
equalsIgnoreCase
(
editFlag
)
||
"a"
.
equalsIgnoreCase
(
editFlag
))
{
String
mailListType
=
checkNull
(
genericUtility
.
getColumnValue
(
"mail_list_type"
,
dom
));
String
mailListType
=
checkNull
(
genericUtility
.
getColumnValue
(
"mail_list_type"
,
dom
));
BaseLogger
.
log
(
"3"
,
null
,
null
,
"MailingListPostSave : in default edit flag :: ["
+
editFlag
+
"]"
);
// Check for 'S' or 'P'
if
(
"S"
.
equalsIgnoreCase
(
mailListType
)
||
"I"
.
equalsIgnoreCase
(
mailListType
))
{
valueXmlString
.
append
(
"<sql_str protect='0'>"
).
append
(
"<![CDATA[]]>"
).
append
(
"</sql_str>\r\n"
);
}
else
if
(
"P"
.
equalsIgnoreCase
(
mailListType
))
{
valueXmlString
.
append
(
"<sql_str protect='1'>"
).
append
(
"<![CDATA[]]>"
).
append
(
"</sql_str>\r\n"
);
}
}
}
if
(
"itm_defaultedit"
.
equalsIgnoreCase
(
currentColumn
.
trim
())){
BaseLogger
.
log
(
"3"
,
null
,
null
,
"MailingListPostSave in itm default edit "
);
if
(
"e"
.
equalsIgnoreCase
(
editFlag
)
||
"a"
.
equalsIgnoreCase
(
editFlag
))
{
String
mailListType
=
checkNull
(
genericUtility
.
getColumnValue
(
"mail_list_type"
,
dom
));
BaseLogger
.
log
(
"3"
,
null
,
null
,
"MailingListPostSave : in default edit flag :: ["
+
editFlag
+
"]"
);
// Check for 'S' or 'P'
// Check for 'S' or 'P'
if
(
"S"
.
equalsIgnoreCase
(
mailListType
)
||
"I"
.
equalsIgnoreCase
(
mailListType
))
{
if
(
"S"
.
equalsIgnoreCase
(
mailListType
)
||
"I"
.
equalsIgnoreCase
(
mailListType
))
{
...
@@ -93,8 +113,25 @@ public class MailingListIC extends ValidatorEJB {
...
@@ -93,8 +113,25 @@ public class MailingListIC extends ValidatorEJB {
}
else
if
(
"P"
.
equalsIgnoreCase
(
mailListType
))
{
}
else
if
(
"P"
.
equalsIgnoreCase
(
mailListType
))
{
valueXmlString
.
append
(
"<sql_str protect='1'>"
).
append
(
"<![CDATA[]]>"
).
append
(
"</sql_str>\r\n"
);
valueXmlString
.
append
(
"<sql_str protect='1'>"
).
append
(
"<![CDATA[]]>"
).
append
(
"</sql_str>\r\n"
);
}
}
}
}
}
//BaseLogger.log("3", null, null, "MailingListPostSave : DOM :: [" + editFlag + "]");
if
(
"mail_list_type"
.
equalsIgnoreCase
(
currentColumn
.
trim
()))
{
if
(
"e"
.
equalsIgnoreCase
(
editFlag
)
||
"a"
.
equalsIgnoreCase
(
editFlag
))
{
String
mailListType
=
checkNull
(
genericUtility
.
getColumnValue
(
"mail_list_type"
,
dom
));
BaseLogger
.
log
(
"3"
,
null
,
null
,
"MailingListPostSave : in mail_list_type editFlag :: ["
+
editFlag
+
"]"
);
// Check for 'S' or 'P'
if
(
"S"
.
equalsIgnoreCase
(
mailListType
)
||
"I"
.
equalsIgnoreCase
(
mailListType
))
{
valueXmlString
.
append
(
"<sql_str protect='0'>"
).
append
(
"<![CDATA[]]>"
).
append
(
"</sql_str>\r\n"
);
}
else
if
(
"P"
.
equalsIgnoreCase
(
mailListType
))
{
valueXmlString
.
append
(
"<sql_str protect='1'>"
).
append
(
"<![CDATA[]]>"
).
append
(
"</sql_str>\r\n"
);
}
}
}
valueXmlString
.
append
(
"</Detail1>\r\n"
);
valueXmlString
.
append
(
"</Detail1>\r\n"
);
break
;
break
;
...
@@ -351,7 +388,7 @@ public class MailingListIC extends ValidatorEJB {
...
@@ -351,7 +388,7 @@ public class MailingListIC extends ValidatorEJB {
"(?:[a-zA-Z0-9-]+\\.)+[a-zA-Z]{2,7}$"
;
"(?:[a-zA-Z0-9-]+\\.)+[a-zA-Z]{2,7}$"
;
if
(!
emailId
.
matches
(
emailRegex
))
{
if
(!
emailId
.
matches
(
emailRegex
))
{
errorString
=
getErrorString
(
"email_id"
,
"INVEMAIL"
,
userId
);
// Error for invalid email
errorString
=
getErrorString
(
"email_id"
,
"INVEMAIL"
,
userId
);
break
;
break
;
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment