This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.vass.search.util; | |
import com.liferay.portal.kernel.dao.orm.Criterion; | |
import com.liferay.portal.kernel.dao.orm.Disjunction; | |
import com.liferay.portal.kernel.dao.orm.DynamicQuery; | |
import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil; | |
import com.liferay.portal.kernel.dao.orm.OrderFactoryUtil; | |
import com.liferay.portal.kernel.dao.orm.ProjectionFactoryUtil; | |
import com.liferay.portal.kernel.dao.orm.PropertyFactoryUtil; | |
import com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.movistar.latam.colportal.util; | |
import com.liferay.portal.kernel.util.GetterUtil; | |
import com.liferay.portal.kernel.util.StringPool; | |
import com.liferay.portal.kernel.util.Validator; | |
import com.liferay.portal.kernel.xml.Element; | |
import com.liferay.portal.kernel.xml.Node; | |
import com.liferay.portal.kernel.xml.SAXReaderUtil; | |
import com.liferay.portlet.journal.model.JournalArticle; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// **************************** | |
// ******** Layou Map ********* | |
// **************************** | |
private static Map<String, String> creatLayoutMap(long gId, Locale locale) | |
throws Exception { | |
Map<String, String> result = new LinkedHashMap<String, String>(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.test; | |
import com.liferay.portal.kernel.dao.orm.DynamicQuery; | |
import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil; | |
import com.liferay.portal.kernel.dao.orm.PropertyFactoryUtil; | |
import com.liferay.portal.kernel.log.Log; | |
import com.liferay.portal.kernel.log.LogFactoryUtil; | |
import com.liferay.portal.kernel.util.StringPool; | |
import com.liferay.portal.kernel.util.Validator; | |
import com.liferay.portal.kernel.util.WebKeys; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ******************************* | |
// ***** JS Login cabecera ****** | |
// ******************************* | |
var baseCheckDniUrl = '/c/portal/check-dni?p='; | |
var loginPortletName = "_58_"; | |
$('.nav-functions .no-logged-user a').click(function(e){ | |
e.preventDefault(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
List<Becari> becarisTaula1 = ..; | |
List<Becari> becarisTaula2 = ..; | |
List<Becari> becarisTaula2 = ..; | |
Map<Long, Integer> becarisTaules = new HashMap<Long, Integer>(); | |
for (Becari dec : becarisTaula1) { | |
incrementValue(dec.getBecariId(), becarisTaules); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($) { try { | |
var DEF_TMPL = | |
'<div class="clndr-controls">' + | |
' <div class="clndr-previous-button">‹</div>' + | |
' <div class="month"><%= month %> <%= year %></div>' + | |
' <div class="clndr-next-button">›</div>' + | |
'</div>' + | |
'<div class="clndr-grid">' + | |
' <div class="days-of-the-week">' + |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window['safeInit'] = function(callback) { | |
AUI().use('aui-base', 'aui-modal', 'aui-dropdown', function(A) { | |
A.on("domready", function() { | |
$(document).ready(function() { | |
try { | |
callback(A); | |
} catch (e) { | |
if(console){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static User createNewBecariUser(String name, String surname, String mail, String becariId, String pwd, Date birthDate) { | |
try { | |
pwd = Validator.isBlank(pwd) ? becariId : pwd; | |
Calendar cal = Calendar.getInstance(); | |
cal.setTime(birthDate); | |
ServiceContext serviceContext = new ServiceContext(); | |
serviceContext.setUuid(UUID.randomUUID().toString()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.movistar.latam.colportal.util; | |
import javax.xml.ws.BindingProvider; | |
/** | |
* Utils relacionadas con las llamadas a servicios web | |
* @author sergio | |
*/ | |
public class WsUtil { | |