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
37ba51db
Commit
37ba51db
authored
Apr 16, 2024
by
Sonawane Amol Madhjuar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete DoumentHandlerUtility.java
parent
c7b8288c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
58 deletions
+0
-58
Amol/API/DoumentHandlerUtility.java
Amol/API/DoumentHandlerUtility.java
+0
-58
No files found.
Amol/API/DoumentHandlerUtility.java
deleted
100644 → 0
View file @
c7b8288c
package
ibase
.
webitm
.
utility
;
import
javax.servlet.http.HttpServletRequest
;
import
ibase.utility.BaseLogger
;
import
ibase.utility.UserInfoBean
;
import
ibase.webitm.ejb.DocumentHandlerWrapperEJB
;
import
org.json.JSONException
;
import
org.json.JSONObject
;
public
class
DoumentHandlerUtility
extends
RestAPIServiceUtility
{
private
UserInfoBean
userInfo
=
null
;
//change the method name
public
byte
[]
getAttachConfigData
(
String
objName
,
String
refser
,
String
refId
,
String
checkObjName
,
HttpServletRequest
request
,
String
tokenIDfromHeader
)
{
BaseLogger
.
log
(
"3"
,
null
,
null
,
"Insidet the getAttachConfigData() :"
);
String
returnData
=
null
;
RestAPIServiceUtility
utility
=
new
RestAPIServiceUtility
();
if
(
userInfo
==
null
)
{
APIUtility
apiUtility
=
new
APIUtility
();
userInfo
=
apiUtility
.
createUserInfoFromJWTToken
(
tokenIDfromHeader
);
BaseLogger
.
log
(
"3"
,
null
,
null
,
"USER_INFO created from TOKEN: ["
+
userInfo
+
"]"
);
}
BaseLogger
.
log
(
"3"
,
null
,
null
,
"objName :: : ["
+
objName
+
"]"
);
try
{
if
(!
""
.
equals
(
utility
.
checkNull
(
objName
)))
{
DocumentHandlerWrapperEJB
docWrapperHandler
=
new
DocumentHandlerWrapperEJB
();
docWrapperHandler
.
setUserInfo
(
userInfo
);
returnData
=
docWrapperHandler
.
getAttachmentsMetaData
(
objName
,
refId
,
userInfo
,
checkObjName
);
BaseLogger
.
log
(
"3"
,
null
,
null
,
"returnData :: : ["
+
returnData
+
"]"
);
}
else
{
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"EXCEPTION"
,
"ObjName is invalid ["
+
objName
+
"]."
);
returnData
=
jsonObject
.
toString
();
}
}
catch
(
Exception
ex
)
{
BaseLogger
.
log
(
"3"
,
userInfo
,
null
,
"Exception in DocumentHandlerServlet :: handleDocument() : "
+
ex
);
JSONObject
jsonObject
=
new
JSONObject
();
try
{
jsonObject
.
put
(
"EXCEPTION"
,
ex
);
}
catch
(
JSONException
e
)
{
e
.
printStackTrace
();
}
returnData
=
jsonObject
.
toString
();
}
return
returnData
.
getBytes
();
}
}
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