put some logs at debug level
git-svn-id: https://svn.research-infrastructures.eu/d4science/gcube/trunk/portal/portal-manager@141381 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
40b43f6c8f
commit
f0cc8edf7f
|
@ -34,17 +34,17 @@ public class ContextUserUtil {
|
|||
if ("COMPANY_ID".equals(c.getName())) {
|
||||
companyId = c.getValue();
|
||||
} else if ("ID".equals(c.getName())) {
|
||||
_log.info("User id before ascii conversion is " + c.getValue());
|
||||
_log.debug("User id before ascii conversion is " + c.getValue());
|
||||
userId = hexStringToStringByAscii(c.getValue());
|
||||
}
|
||||
}
|
||||
if (userId != null && companyId != null) {
|
||||
try {
|
||||
Company company = CompanyLocalServiceUtil.getCompany(Long.parseLong(companyId));
|
||||
_log.info("company is " + company);
|
||||
_log.debug("company is " + company);
|
||||
Key key = company.getKeyObj();
|
||||
_log.info("key is " + company.getKey());
|
||||
_log.info("User id after ascii conversion is " + userId);
|
||||
_log.debug("key is " + company.getKey());
|
||||
_log.debug("User id after ascii conversion is " + userId);
|
||||
String userIdPlain = Encryptor.decrypt(key, userId);
|
||||
return Long.valueOf(userIdPlain);
|
||||
|
||||
|
|
Loading…
Reference in New Issue