rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
public static void deleteResource(java.lang.String companyId, java.lang.String name, java.lang.String typeId, java.lang.String scope, java.lang.String primKey)
public static void deleteResource(java.lang.String resourceId)
public static void deleteResource(java.lang.String companyId, java.lang.String name, java.lang.String typeId, java.lang.String scope, java.lang.String primKey) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException { try { ResourceLocalService resourceLocalService = ResourceLocalService...
resourceLocalService.deleteResource(companyId, name, typeId, scope, primKey);
resourceLocalService.deleteResource(resourceId);
public static void deleteResource(java.lang.String companyId, java.lang.String name, java.lang.String typeId, java.lang.String scope, java.lang.String primKey) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException { try { ResourceLocalService resourceLocalService = ResourceLocalService...
setModified(true);
public void setAgreedToTermsOfUse(boolean agreedToTermsOfUse) { if (agreedToTermsOfUse != _agreedToTermsOfUse) { _agreedToTermsOfUse = agreedToTermsOfUse; setModified(true); } }
setModified(true);
public void setLastLoginDate(Date lastLoginDate) { if (((lastLoginDate == null) && (_lastLoginDate != null)) || ((lastLoginDate != null) && (_lastLoginDate == null)) || ((lastLoginDate != null) && (_lastLoginDate != null) && !lastLoginDate.equals(_lastLoginDate))) { _lastLoginDate = lastLoginDate; setMod...
setModified(true);
public void setLastLoginIP(String lastLoginIP) { if (((lastLoginIP == null) && (_lastLoginIP != null)) || ((lastLoginIP != null) && (_lastLoginIP == null)) || ((lastLoginIP != null) && (_lastLoginIP != null) && !lastLoginIP.equals(_lastLoginIP))) { if (!XSS_ALLOW_LASTLOGINIP) { lastLoginIP = XSSUtil.str...
setModified(true);
public void setLoginDate(Date loginDate) { if (((loginDate == null) && (_loginDate != null)) || ((loginDate != null) && (_loginDate == null)) || ((loginDate != null) && (_loginDate != null) && !loginDate.equals(_loginDate))) { _loginDate = loginDate; setModified(true); } }
setModified(true);
public void setLoginIP(String loginIP) { if (((loginIP == null) && (_loginIP != null)) || ((loginIP != null) && (_loginIP == null)) || ((loginIP != null) && (_loginIP != null) && !loginIP.equals(_loginIP))) { if (!XSS_ALLOW_LOGINIP) { loginIP = XSSUtil.strip(loginIP); } _loginIP = loginIP; setModi...
ImageServiceUtil.updateImage(id, bytes);
ImageLocalServiceUtil.updateImage(id, bytes);
public static void put(String id, byte[] bytes) { try { ImageServiceUtil.updateImage(id, bytes); } catch (Exception e) { _log.warn(e); } }
public PortletURLImpl(HttpServletRequest req, String portletName,
public PortletURLImpl(ActionRequestImpl req, String portletName,
public PortletURLImpl(HttpServletRequest req, String portletName, String plid, boolean action) { _req = req; _portletName = portletName; _plid = plid; _secure = req.isSecure(); _action = action; _params = new LinkedHashMap(); }
_req = req; _portletName = portletName; _plid = plid; _secure = req.isSecure(); _action = action; _params = new LinkedHashMap();
this(req.getHttpServletRequest(), portletName, plid, action); _portletReq = req;
public PortletURLImpl(HttpServletRequest req, String portletName, String plid, boolean action) { _req = req; _portletName = portletName; _plid = plid; _secure = req.isSecure(); _action = action; _params = new LinkedHashMap(); }
java.lang.String typeSettings)
java.lang.String parentLayoutId, java.lang.String name, java.lang.String languageId, java.lang.String type, boolean hidden, java.lang.String friendlyURL)
public static com.liferay.portal.model.Layout updateLayout( java.lang.String layoutId, java.lang.String ownerId, java.lang.String typeSettings) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException { try { LayoutService layoutService = LayoutServiceFactory.getService(); return layout...
return layoutService.updateLayout(layoutId, ownerId, typeSettings);
return layoutService.updateLayout(layoutId, ownerId, parentLayoutId, name, languageId, type, hidden, friendlyURL);
public static com.liferay.portal.model.Layout updateLayout( java.lang.String layoutId, java.lang.String ownerId, java.lang.String typeSettings) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException { try { LayoutService layoutService = LayoutServiceFactory.getService(); return layout...
value = getCreateDate().compareTo(shoppingOrder.getCreateDate());
value = DateUtil.compareTo(getCreateDate(), shoppingOrder.getCreateDate());
public int compareTo(Object obj) { if (obj == null) { return -1; } ShoppingOrder shoppingOrder = (ShoppingOrder)obj; int value = 0; value = getCreateDate().compareTo(shoppingOrder.getCreateDate()); value = value * -1; if (value != 0) { return value; } return 0; }
public static void copyFile(File source, File destination) {
public static void copyFile(String source, String destination) {
public static void copyFile(File source, File destination) { copyFile(source, destination, false); }
setModified(true);
public void setBuildDate(Date buildDate) { if (((buildDate == null) && (_buildDate != null)) || ((buildDate != null) && (_buildDate == null)) || ((buildDate != null) && (_buildDate != null) && !buildDate.equals(_buildDate))) { _buildDate = buildDate; setModified(true); } }
setModified(true);
public void setBuildNumber(int buildNumber) { if (buildNumber != _buildNumber) { _buildNumber = buildNumber; setModified(true); } }
setModified(true);
public void setReleaseId(String releaseId) { if (((releaseId == null) && (_releaseId != null)) || ((releaseId != null) && (_releaseId == null)) || ((releaseId != null) && (_releaseId != null) && !releaseId.equals(_releaseId))) { if (!XSS_ALLOW_RELEASEID) { releaseId = XSSUtil.strip(releaseId); } _re...
if (!(parent instanceof PreferenceDialog)) { throw new InvalidParentException(
if (!(parent instanceof PreferenceDialogImpl)) { throw new InvalidParentException(
public Object newInstance(Map properties, Object parent) throws GroovyException { // check location if (!(parent instanceof PreferenceDialog)) { throw new InvalidParentException( "preferenceDialog"); } PreferenceDialogImpl preferenceDialogImpl = (PreferenceDialogImpl) ...
if (shoppingOrderItem.isNew() || shoppingOrderItem.isModified()) { session = openSession(); if (shoppingOrderItem.isNew()) { ShoppingOrderItem shoppingOrderItemModel = new ShoppingOrderItem(); shoppingOrderItemModel.setOrderId(shoppingOrderItem.getOrderId()); shoppingOrderItemModel.setItemId(shoppingOrderItem.getItemI...
session = openSession(); session.saveOrUpdate(shoppingOrderItem); session.flush(); shoppingOrderItem.setNew(false);
public com.liferay.portlet.shopping.model.ShoppingOrderItem update( com.liferay.portlet.shopping.model.ShoppingOrderItem shoppingOrderItem) throws SystemException { Session session = null; try { if (shoppingOrderItem.isNew() || shoppingOrderItem.isModified()) { session = openSession(); if (shoppingOrderIte...
EntityColumn tempCol = tempEntity.getColumnByMappingTable(col.getMappingTable());
private void _createPersistence(Entity entity) throws IOException { List pkList = entity.getPKList(); List columnList = entity.getColumnList(); List finderList = entity.getFinderList(); String pkClassName = entity.getPKClassName(); String pkVarName = entity.getPKVarName(); StringBuffer sb = new StringBuffer(); ...
e instanceof DuplicateRoleException || e instanceof NoSuchRoleException || e instanceof RequiredRoleException || e instanceof RoleNameException) {
e instanceof PrincipalException) { SessionErrors.add(req, e.getClass().getName()); setForward(req, "portlet.enterprise_admin.error"); } else if (e != null && e instanceof DuplicateRoleException || e instanceof NoSuchRoleException || e instanceof RequiredRoleException || e instanceof RoleNameException) {
public void processAction( ActionMapping mapping, ActionForm form, PortletConfig config, ActionRequest req, ActionResponse res) throws Exception { String cmd = ParamUtil.getString(req, Constants.CMD); try { if (cmd.equals(Constants.ADD) || cmd.equals(Constants.UPDATE)) { updateRole(req); } else if (cmd...
public static void getRole(RenderRequest req) throws Exception {
public static void getRole(ActionRequest req) throws Exception {
public static void getRole(RenderRequest req) throws Exception { HttpServletRequest httpReq = ((RenderRequestImpl)req).getHttpServletRequest(); getRole(httpReq); }
((RenderRequestImpl)req).getHttpServletRequest();
((ActionRequestImpl)req).getHttpServletRequest();
public static void getRole(RenderRequest req) throws Exception { HttpServletRequest httpReq = ((RenderRequestImpl)req).getHttpServletRequest(); getRole(httpReq); }
String topicId = ParamUtil.getString(req, "topicId");
public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse res) throws Exception { try { String topicId = ParamUtil.getString(req, "topicId"); String messageId = ParamUtil.getString(req, "messageId"); PortletURL portletURL = new PortletURLImpl( req,...
portletURL.setParameter("topicId", topicId);
public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse res) throws Exception { try { String topicId = ParamUtil.getString(req, "topicId"); String messageId = ParamUtil.getString(req, "messageId"); PortletURL portletURL = new PortletURLImpl( req,...
if (wikiNode.isNew() || wikiNode.isModified()) { session = openSession(); if (wikiNode.isNew()) { WikiNode wikiNodeModel = new WikiNode(); wikiNodeModel.setNodeId(wikiNode.getNodeId()); wikiNodeModel.setGroupId(wikiNode.getGroupId()); wikiNodeModel.setCompanyId(wikiNode.getCompanyId()); wikiNodeModel.setUserId(wikiNod...
session = openSession(); session.saveOrUpdate(wikiNode); session.flush(); wikiNode.setNew(false);
public com.liferay.portlet.wiki.model.WikiNode update( com.liferay.portlet.wiki.model.WikiNode wikiNode) throws SystemException { Session session = null; try { if (wikiNode.isNew() || wikiNode.isModified()) { session = openSession(); if (wikiNode.isNew()) { WikiNode wikiNodeModel = new WikiNode(); ...
_log.warn(e.getMessage()); _log.error(StackTraceUtil.getStackTrace(e));
_log.error(e.getMessage());
public static void setThreadValues(SessionContext sc) { String userId = null; try { userId = PrincipalThreadLocal.getName(); if (userId == null) { userId = getUserId(sc); PrincipalThreadLocal.setName(userId); } } catch (PrincipalException pe) { } try { PermissionChecker permissionChecker = Permi...
java.lang.String topicId, java.lang.String messageId)
java.lang.String messageId)
public void deleteDiscussionMessage(java.lang.String groupId, java.lang.String className, java.lang.String classPK, java.lang.String topicId, java.lang.String messageId) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException, java.rmi.RemoteException { PrincipalSessionBean.setThreadValues...
topicId, messageId);
messageId);
public void deleteDiscussionMessage(java.lang.String groupId, java.lang.String className, java.lang.String classPK, java.lang.String topicId, java.lang.String messageId) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException, java.rmi.RemoteException { PrincipalSessionBean.setThreadValues...
public void deleteMessage(java.lang.String topicId, java.lang.String messageId)
public void deleteMessage(java.lang.String messageId)
public void deleteMessage(java.lang.String topicId, java.lang.String messageId) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException, java.rmi.RemoteException { PrincipalSessionBean.setThreadValues(_sc); getService().deleteMessage(topicId, messageId); }
getService().deleteMessage(topicId, messageId);
getService().deleteMessage(messageId);
public void deleteMessage(java.lang.String topicId, java.lang.String messageId) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException, java.rmi.RemoteException { PrincipalSessionBean.setThreadValues(_sc); getService().deleteMessage(topicId, messageId); }
java.lang.String topicId, java.lang.String messageId)
java.lang.String messageId)
public com.liferay.portlet.messageboards.model.MBMessage getMessage( java.lang.String topicId, java.lang.String messageId) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException, java.rmi.RemoteException { PrincipalSessionBean.setThreadValues(_sc); return getService().getMessage(topicId, ...
return getService().getMessage(topicId, messageId);
return getService().getMessage(messageId);
public com.liferay.portlet.messageboards.model.MBMessage getMessage( java.lang.String topicId, java.lang.String messageId) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException, java.rmi.RemoteException { PrincipalSessionBean.setThreadValues(_sc); return getService().getMessage(topicId, ...
public void subscribeMessage(java.lang.String topicId, java.lang.String messageId)
public void subscribeMessage(java.lang.String messageId)
public void subscribeMessage(java.lang.String topicId, java.lang.String messageId) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException, java.rmi.RemoteException { PrincipalSessionBean.setThreadValues(_sc); getService().subscribeMessage(topicId, messageId); }
getService().subscribeMessage(topicId, messageId);
getService().subscribeMessage(messageId);
public void subscribeMessage(java.lang.String topicId, java.lang.String messageId) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException, java.rmi.RemoteException { PrincipalSessionBean.setThreadValues(_sc); getService().subscribeMessage(topicId, messageId); }
public void unsubscribeMessage(java.lang.String topicId, java.lang.String messageId)
public void unsubscribeMessage(java.lang.String messageId)
public void unsubscribeMessage(java.lang.String topicId, java.lang.String messageId) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException, java.rmi.RemoteException { PrincipalSessionBean.setThreadValues(_sc); getService().unsubscribeMessage(topicId, messageId); }
getService().unsubscribeMessage(topicId, messageId);
getService().unsubscribeMessage(messageId);
public void unsubscribeMessage(java.lang.String topicId, java.lang.String messageId) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException, java.rmi.RemoteException { PrincipalSessionBean.setThreadValues(_sc); getService().unsubscribeMessage(topicId, messageId); }
java.lang.String classPK, java.lang.String topicId, java.lang.String messageId, java.lang.String subject, java.lang.String body)
java.lang.String classPK, java.lang.String messageId, java.lang.String subject, java.lang.String body)
public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage( java.lang.String groupId, java.lang.String className, java.lang.String classPK, java.lang.String topicId, java.lang.String messageId, java.lang.String subject, java.lang.String body) throws com.liferay.portal.PortalException, com...
classPK, topicId, messageId, subject, body);
classPK, messageId, subject, body);
public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage( java.lang.String groupId, java.lang.String className, java.lang.String classPK, java.lang.String topicId, java.lang.String messageId, java.lang.String subject, java.lang.String body) throws com.liferay.portal.PortalException, com...
java.lang.String topicId, java.lang.String messageId, java.lang.String categoryId, java.lang.String subject, java.lang.String body, java.util.List files)
java.lang.String messageId, java.lang.String categoryId, java.lang.String subject, java.lang.String body, java.util.List files)
public com.liferay.portlet.messageboards.model.MBMessage updateMessage( java.lang.String topicId, java.lang.String messageId, java.lang.String categoryId, java.lang.String subject, java.lang.String body, java.util.List files) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException, java.rm...
return getService().updateMessage(topicId, messageId, categoryId, subject, body, files);
return getService().updateMessage(messageId, categoryId, subject, body, files);
public com.liferay.portlet.messageboards.model.MBMessage updateMessage( java.lang.String topicId, java.lang.String messageId, java.lang.String categoryId, java.lang.String subject, java.lang.String body, java.util.List files) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException, java.rm...
java.lang.String topicId, java.lang.String messageId)
java.lang.String messageId)
public void deleteDiscussionMessage(java.lang.String groupId, java.lang.String className, java.lang.String classPK, java.lang.String topicId, java.lang.String messageId) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException, java.rmi.RemoteException;
public void deleteMessage(java.lang.String topicId, java.lang.String messageId)
public void deleteMessage(java.lang.String messageId)
public void deleteMessage(java.lang.String topicId, java.lang.String messageId) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException, java.rmi.RemoteException;
java.lang.String topicId, java.lang.String messageId)
java.lang.String messageId)
public com.liferay.portlet.messageboards.model.MBMessage getMessage( java.lang.String topicId, java.lang.String messageId) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException, java.rmi.RemoteException;
public void subscribeMessage(java.lang.String topicId, java.lang.String messageId)
public void subscribeMessage(java.lang.String messageId)
public void subscribeMessage(java.lang.String topicId, java.lang.String messageId) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException, java.rmi.RemoteException;
public void unsubscribeMessage(java.lang.String topicId, java.lang.String messageId)
public void unsubscribeMessage(java.lang.String messageId)
public void unsubscribeMessage(java.lang.String topicId, java.lang.String messageId) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException, java.rmi.RemoteException;
java.lang.String classPK, java.lang.String topicId, java.lang.String messageId, java.lang.String subject, java.lang.String body)
java.lang.String classPK, java.lang.String messageId, java.lang.String subject, java.lang.String body)
public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage( java.lang.String groupId, java.lang.String className, java.lang.String classPK, java.lang.String topicId, java.lang.String messageId, java.lang.String subject, java.lang.String body) throws com.liferay.portal.PortalException, com...
java.lang.String topicId, java.lang.String messageId, java.lang.String categoryId, java.lang.String subject, java.lang.String body, java.util.List files)
java.lang.String messageId, java.lang.String categoryId, java.lang.String subject, java.lang.String body, java.util.List files)
public com.liferay.portlet.messageboards.model.MBMessage updateMessage( java.lang.String topicId, java.lang.String messageId, java.lang.String categoryId, java.lang.String subject, java.lang.String body, java.util.List files) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException, java.rm...
int value = userTracker1.getModifiedDate().compareTo( userTracker2.getModifiedDate());
int value = DateUtil.compareTo( userTracker1.getModifiedDate(), userTracker2.getModifiedDate());
public int compare(Object obj1, Object obj2) { UserTracker userTracker1 = (UserTracker)obj1; UserTracker userTracker2 = (UserTracker)obj2; int value = userTracker1.getModifiedDate().compareTo( userTracker2.getModifiedDate()); if (_asc) { return value; } else { return -value; } }
try { _log.debug("Shutting down AIM"); AIMConnector.disconnect(); } catch (Exception e) { } try { _log.debug("Shutting down ICQ"); ICQConnector.disconnect(); } catch (Exception e) { } try { _log.debug("Shutting down MSN"); MSNConnector.disconnect(); } catch (Exception e) { } try { _log.debug("Shutting down ...
public void run() { // Disconnect AIM try { _log.debug("Shutting down AIM"); AIMConnector.disconnect(); } catch (Exception e) { } // Disconnect ICQ try { _log.debug("Shutting down ICQ"); ICQConnector.disconnect(); } catch (Exception e) { } // Disconnect MSN try { _log.debug("Shutting down MSN"); ...
BBCodeTag tag; StringBuffer sb;
BBCodeTag tag = null; StringBuffer sb = null;
public static String getHTML(String bbcode) { String html = StringUtil.replace(bbcode, _BBCODE_TAGS, _HTML_TAGS); BBCodeTag tag; StringBuffer sb; while ((tag = getFirstTag(html, "code")) != null) { String preTag = html.substring(0, tag.getStartPos()); String postTag = html.substring(tag.getEndPos()); String ...
sb.append(tag.getParameter() + "'>");
sb.append(tag.getParameter() + ";'>");
public static String getHTML(String bbcode) { String html = StringUtil.replace(bbcode, _BBCODE_TAGS, _HTML_TAGS); BBCodeTag tag; StringBuffer sb; while ((tag = getFirstTag(html, "code")) != null) { String preTag = html.substring(0, tag.getStartPos()); String postTag = html.substring(tag.getEndPos()); String ...
String mailto = GetterUtil.get(tag.getParameter(), tag.getElement().trim()); sb = new StringBuffer(preTag); sb.append("<a href='mailto:" + mailto + "'>");
String mailto = GetterUtil.getString( tag.getParameter(), tag.getElement().trim()); sb = new StringBuffer(preTag); sb.append("<a href='mailto: " + mailto + "'>");
public static String getHTML(String bbcode) { String html = StringUtil.replace(bbcode, _BBCODE_TAGS, _HTML_TAGS); BBCodeTag tag; StringBuffer sb; while ((tag = getFirstTag(html, "code")) != null) { String preTag = html.substring(0, tag.getStartPos()); String postTag = html.substring(tag.getEndPos()); String ...
sb.append(tag.getParameter() + "'>");
sb.append(tag.getParameter() + "';>");
public static String getHTML(String bbcode) { String html = StringUtil.replace(bbcode, _BBCODE_TAGS, _HTML_TAGS); BBCodeTag tag; StringBuffer sb; while ((tag = getFirstTag(html, "code")) != null) { String preTag = html.substring(0, tag.getStartPos()); String postTag = html.substring(tag.getEndPos()); String ...
String [] items = StringUtil.split(tag.getElement(), "[*]"); sb = new StringBuffer(preTag); if (tag.hasParameter() && _LIST_STYLE_MAP.containsKey(tag.getParameter())) { sb.append(_LIST_STYLE_MAP.get(tag.getParameter()));
String[] items = StringUtil.split(tag.getElement(), "[*]"); sb = new StringBuffer(preTag); if (tag.hasParameter() && listStyles.containsKey(tag.getParameter())) { sb.append(listStyles.get(tag.getParameter()));
public static String getHTML(String bbcode) { String html = StringUtil.replace(bbcode, _BBCODE_TAGS, _HTML_TAGS); BBCodeTag tag; StringBuffer sb; while ((tag = getFirstTag(html, "code")) != null) { String preTag = html.substring(0, tag.getStartPos()); String postTag = html.substring(tag.getEndPos()); String ...
sb.append("<ul style='list-style-type: disc'>");
sb.append("<ul style='list-style-type: disc';>");
public static String getHTML(String bbcode) { String html = StringUtil.replace(bbcode, _BBCODE_TAGS, _HTML_TAGS); BBCodeTag tag; StringBuffer sb; while ((tag = getFirstTag(html, "code")) != null) { String preTag = html.substring(0, tag.getStartPos()); String postTag = html.substring(tag.getEndPos()); String ...
if (_FONT_SIZE_MAP.containsKey(size)) { sb.append(_FONT_SIZE_MAP.get(size));
if (fontSizes.containsKey(size)) { sb.append(fontSizes.get(size));
public static String getHTML(String bbcode) { String html = StringUtil.replace(bbcode, _BBCODE_TAGS, _HTML_TAGS); BBCodeTag tag; StringBuffer sb; while ((tag = getFirstTag(html, "code")) != null) { String preTag = html.substring(0, tag.getStartPos()); String postTag = html.substring(tag.getEndPos()); String ...
String url = GetterUtil.get(tag.getParameter(), tag.getElement().trim()); sb = new StringBuffer(preTag);
String url = GetterUtil.getString( tag.getParameter(), tag.getElement().trim()); sb = new StringBuffer(preTag);
public static String getHTML(String bbcode) { String html = StringUtil.replace(bbcode, _BBCODE_TAGS, _HTML_TAGS); BBCodeTag tag; StringBuffer sb; while ((tag = getFirstTag(html, "code")) != null) { String preTag = html.substring(0, tag.getStartPos()); String postTag = html.substring(tag.getEndPos()); String ...
value = getCreateDate().compareTo(address.getCreateDate());
value = DateUtil.compareTo(getCreateDate(), address.getCreateDate());
public int compareTo(Object obj) { if (obj == null) { return -1; } Address address = (Address)obj; int value = 0; value = getCreateDate().compareTo(address.getCreateDate()); if (value != 0) { return value; } return 0; }
public void run()
public void run( final boolean synchronous )
public void run() { setMetadata(); if( metadata.getJobMode() == JobModes.UIJob ) { runUIJob(); return; } if( metadata.getJobMode() == JobModes.WorkspaceJob ) { runWorkspaceJob(); return; } runJob(); }
setMetadata(); if( metadata.getJobMode() == JobModes.UIJob ) { runUIJob(); return; } if( metadata.getJobMode() == JobModes.WorkspaceJob ) { runWorkspaceJob(); return; } runJob(); }
this.synchronous = synchronous; run(); }
public void run() { setMetadata(); if( metadata.getJobMode() == JobModes.UIJob ) { runUIJob(); return; } if( metadata.getJobMode() == JobModes.WorkspaceJob ) { runWorkspaceJob(); return; } runJob(); }
categoryIdsQuery.add(new TermQuery(new Term( "categoryId", categoryIds[i])), false, false);
Term term = new Term("categoryId", categoryIds[i]); TermQuery termQuery = new TermQuery(term); categoryIdsQuery.add(termQuery, BooleanClause.Occur.SHOULD);
public Hits search( String companyId, String groupId, String[] categoryIds, String[] topicIds, String threadId, String keywords) throws SystemException { try { Hits hits = new Hits(); if (Validator.isNull(keywords)) { return hits; } BooleanQuery booleanQuery = new BooleanQuery(); LuceneUtil.addRe...
booleanQuery.add(categoryIdsQuery, true, false);
booleanQuery.add(categoryIdsQuery, BooleanClause.Occur.MUST);
public Hits search( String companyId, String groupId, String[] categoryIds, String[] topicIds, String threadId, String keywords) throws SystemException { try { Hits hits = new Hits(); if (Validator.isNull(keywords)) { return hits; } BooleanQuery booleanQuery = new BooleanQuery(); LuceneUtil.addRe...
topicIdsQuery.add(new TermQuery(new Term( "topicId", topicIds[i])), false, false);
Term term = new Term("topicId", topicIds[i]); TermQuery termQuery = new TermQuery(term); topicIdsQuery.add(termQuery, BooleanClause.Occur.SHOULD);
public Hits search( String companyId, String groupId, String[] categoryIds, String[] topicIds, String threadId, String keywords) throws SystemException { try { Hits hits = new Hits(); if (Validator.isNull(keywords)) { return hits; } BooleanQuery booleanQuery = new BooleanQuery(); LuceneUtil.addRe...
booleanQuery.add(topicIdsQuery, true, false);
booleanQuery.add(topicIdsQuery, BooleanClause.Occur.MUST);
public Hits search( String companyId, String groupId, String[] categoryIds, String[] topicIds, String threadId, String keywords) throws SystemException { try { Hits hits = new Hits(); if (Validator.isNull(keywords)) { return hits; } BooleanQuery booleanQuery = new BooleanQuery(); LuceneUtil.addRe...
Query query = QueryParser.parse( booleanQuery.toString(), LuceneFields.CONTENT, LuceneUtil.getAnalyzer()); hits.recordHits(searcher.search(query));
hits.recordHits(searcher.search(booleanQuery));
public Hits search( String companyId, String groupId, String[] categoryIds, String[] topicIds, String threadId, String keywords) throws SystemException { try { Hits hits = new Hits(); if (Validator.isNull(keywords)) { return hits; } BooleanQuery booleanQuery = new BooleanQuery(); LuceneUtil.addRe...
String companyId, String groupId, String categoryId, String topicId,
String companyId, String groupId, String categoryId,
public static void addMessage( String companyId, String groupId, String categoryId, String topicId, String threadId, String messageId, String title, String content) throws IOException { synchronized (IndexWriter.class) { content = Html.stripHtml(content); IndexWriter writer = LuceneUtil.getWriter(companyId);...
LuceneFields.getUID(PORTLET_ID, topicId, messageId)));
LuceneFields.getUID(PORTLET_ID, messageId)));
public static void addMessage( String companyId, String groupId, String categoryId, String topicId, String threadId, String messageId, String title, String content) throws IOException { synchronized (IndexWriter.class) { content = Html.stripHtml(content); IndexWriter writer = LuceneUtil.getWriter(companyId);...
doc.add(LuceneFields.getKeyword("topicId", topicId));
public static void addMessage( String companyId, String groupId, String categoryId, String topicId, String threadId, String messageId, String title, String content) throws IOException { synchronized (IndexWriter.class) { content = Html.stripHtml(content); IndexWriter writer = LuceneUtil.getWriter(companyId);...
deleteOrganization(req);
deleteOrganizations(req);
public void processAction( ActionMapping mapping, ActionForm form, PortletConfig config, ActionRequest req, ActionResponse res) throws Exception { String cmd = ParamUtil.getString(req, Constants.CMD); try { Organization organization = null; if (cmd.equals(Constants.ADD) || cmd.equals(Constants.UPDATE)) { ...
public static void getOrganization(RenderRequest req) throws Exception {
public static void getOrganization(ActionRequest req) throws Exception {
public static void getOrganization(RenderRequest req) throws Exception { HttpServletRequest httpReq = ((RenderRequestImpl)req).getHttpServletRequest(); getOrganization(httpReq); }
((RenderRequestImpl)req).getHttpServletRequest();
((ActionRequestImpl)req).getHttpServletRequest();
public static void getOrganization(RenderRequest req) throws Exception { HttpServletRequest httpReq = ((RenderRequestImpl)req).getHttpServletRequest(); getOrganization(httpReq); }
setModified(true);
public void setFrequency(String frequency) { if (((frequency == null) && (_frequency != null)) || ((frequency != null) && (_frequency == null)) || ((frequency != null) && (_frequency != null) && !frequency.equals(_frequency))) { if (!XSS_ALLOW_FREQUENCY) { frequency = XSSUtil.strip(frequency); } _fr...
setModified(true);
public void setSubscriptionId(String subscriptionId) { if (((subscriptionId == null) && (_subscriptionId != null)) || ((subscriptionId != null) && (_subscriptionId == null)) || ((subscriptionId != null) && (_subscriptionId != null) && !subscriptionId.equals(_subscriptionId))) { if (!XSS_ALLOW_SUBSCRIPTIONI...
e instanceof CaptchaException ||
e instanceof CaptchaTextException ||
public void processAction( ActionMapping mapping, ActionForm form, PortletConfig config, ActionRequest req, ActionResponse res) throws Exception { String cmd = ParamUtil.getString(req, Constants.CMD); try { if (cmd.equals(Constants.ADD) || cmd.equals(Constants.UPDATE)) { updateTopic(req); } else if (cm...
if (mbThread.isNew() || mbThread.isModified()) { session = openSession(); if (mbThread.isNew()) { MBThread mbThreadModel = new MBThread(); mbThreadModel.setThreadId(mbThread.getThreadId()); mbThreadModel.setCategoryId(mbThread.getCategoryId()); mbThreadModel.setTopicId(mbThread.getTopicId()); mbThreadModel.setRootMess...
session = openSession(); session.saveOrUpdate(mbThread); session.flush(); mbThread.setNew(false);
public com.liferay.portlet.messageboards.model.MBThread update( com.liferay.portlet.messageboards.model.MBThread mbThread) throws SystemException { Session session = null; try { if (mbThread.isNew() || mbThread.isModified()) { session = openSession(); if (mbThread.isNew()) { MBThread mbThreadModel = ne...
if (subscription.isNew() || subscription.isModified()) { session = openSession(); if (subscription.isNew()) { Subscription subscriptionModel = new Subscription(); subscriptionModel.setSubscriptionId(subscription.getSubscriptionId()); subscriptionModel.setCompanyId(subscription.getCompanyId()); subscriptionModel.setUse...
session = openSession(); session.saveOrUpdate(subscription); session.flush(); subscription.setNew(false);
public com.liferay.portal.model.Subscription update( com.liferay.portal.model.Subscription subscription) throws SystemException { Session session = null; try { if (subscription.isNew() || subscription.isModified()) { session = openSession(); if (subscription.isNew()) { Subscription subscriptionModel = ...
boolean addCommunityPermissions = ParamUtil.getBoolean( uploadReq, "addCommunityPermissions"); boolean addGuestPermissions = ParamUtil.getBoolean( uploadReq, "addGuestPermissions");
protected void updateFileEntry(ActionRequest req, ActionResponse res) throws Exception { UploadPortletRequest uploadReq = PortalUtil.getUploadPortletRequest(req); String cmd = ParamUtil.getString(uploadReq, Constants.CMD); String folderId = ParamUtil.getString(uploadReq, "folderId"); String title = ParamUtil.ge...
String fileName = uploadReq.getFileName("file"); if (byteArray == null || byteArray.length == 0) { throw new FileSizeException(); } boolean addCommunityPermissions = ParamUtil.getBoolean( uploadReq, "addCommunityPermissions"); boolean addGuestPermissions = ParamUtil.getBoolean( uploadReq, "addGuestPermissions");
protected void updateFileEntry(ActionRequest req, ActionResponse res) throws Exception { UploadPortletRequest uploadReq = PortalUtil.getUploadPortletRequest(req); String cmd = ParamUtil.getString(uploadReq, Constants.CMD); String folderId = ParamUtil.getString(uploadReq, "folderId"); String title = ParamUtil.ge...
folderId, fileName, title, description, byteArray,
folderId, sourceFileName, title, description, byteArray,
protected void updateFileEntry(ActionRequest req, ActionResponse res) throws Exception { UploadPortletRequest uploadReq = PortalUtil.getUploadPortletRequest(req); String cmd = ParamUtil.getString(uploadReq, Constants.CMD); String folderId = ParamUtil.getString(uploadReq, "folderId"); String title = ParamUtil.ge...
String name = ParamUtil.getString(uploadReq, "name");
protected void updateFileEntry(ActionRequest req, ActionResponse res) throws Exception { UploadPortletRequest uploadReq = PortalUtil.getUploadPortletRequest(req); String cmd = ParamUtil.getString(uploadReq, Constants.CMD); String folderId = ParamUtil.getString(uploadReq, "folderId"); String title = ParamUtil.ge...
if (byteArray == null || byteArray.length == 0) {
protected void updateFileEntry(ActionRequest req, ActionResponse res) throws Exception { UploadPortletRequest uploadReq = PortalUtil.getUploadPortletRequest(req); String cmd = ParamUtil.getString(uploadReq, Constants.CMD); String folderId = ParamUtil.getString(uploadReq, "folderId"); String title = ParamUtil.ge...
DLFileEntryServiceUtil.updateFileEntry( folderId, name, title, description); } else { String sourceFileName = uploadReq.getFileName("file"); DLFileEntryServiceUtil.updateFileEntry( folderId, name, sourceFileName, byteArray); }
DLFileEntryServiceUtil.updateFileEntry( folderId, newFolderId, name, sourceFileName, title, description, byteArray);
protected void updateFileEntry(ActionRequest req, ActionResponse res) throws Exception { UploadPortletRequest uploadReq = PortalUtil.getUploadPortletRequest(req); String cmd = ParamUtil.getString(uploadReq, Constants.CMD); String folderId = ParamUtil.getString(uploadReq, "folderId"); String title = ParamUtil.ge...
public static void getFileEntry(RenderRequest req) throws Exception {
public static void getFileEntry(ActionRequest req) throws Exception {
public static void getFileEntry(RenderRequest req) throws Exception { HttpServletRequest httpReq = ((RenderRequestImpl)req).getHttpServletRequest(); getFileEntry(httpReq); }
((RenderRequestImpl)req).getHttpServletRequest();
((ActionRequestImpl)req).getHttpServletRequest();
public static void getFileEntry(RenderRequest req) throws Exception { HttpServletRequest httpReq = ((RenderRequestImpl)req).getHttpServletRequest(); getFileEntry(httpReq); }
public void addArticleResources( com.liferay.portlet.journal.model.JournalArticle article, boolean addCommunityPermissions, boolean addGuestPermissions)
public void addArticleResources(java.lang.String companyId, java.lang.String articleId, boolean addCommunityPermissions, boolean addGuestPermissions)
public void addArticleResources( com.liferay.portlet.journal.model.JournalArticle article, boolean addCommunityPermissions, boolean addGuestPermissions) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException;
public boolean hasReadFlag(java.lang.String topicId, java.lang.String messageId, java.lang.String userId)
public boolean hasReadFlag(java.lang.String messageId, java.lang.String userId)
public boolean hasReadFlag(java.lang.String topicId, java.lang.String messageId, java.lang.String userId) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException { return getService().hasReadFlag(topicId, messageId, userId); }
return getService().hasReadFlag(topicId, messageId, userId);
return getService().hasReadFlag(messageId, userId);
public boolean hasReadFlag(java.lang.String topicId, java.lang.String messageId, java.lang.String userId) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException { return getService().hasReadFlag(topicId, messageId, userId); }
public boolean hasReadFlag(java.lang.String topicId, java.lang.String messageId, java.lang.String userId)
public boolean hasReadFlag(java.lang.String messageId, java.lang.String userId)
public boolean hasReadFlag(java.lang.String topicId, java.lang.String messageId, java.lang.String userId) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException;
if( parent instanceof ApplicationWindow )
if( parent instanceof ApplicationWindowImpl )
public static Shell getParentShell( final Object parent ) { if( parent instanceof ApplicationWindow ) return ( ( ApplicationWindowImpl )parent ).getShell(); else if( parent instanceof Shell ) return ( Shell )parent; else return null; }
if( parent instanceof ApplicationWindow )
if( parent instanceof ApplicationWindowImpl )
public static Object getParentWidget( final Object parent, final Map properties ) { if( parent == null && properties.containsKey( "parent" ) ) { final Object attribute = properties.remove( "parent" ); if( attribute instanceof Composite...
public Resource getResource( String companyId, String name, String typeId, String scope, String primKey)
public Resource getResource(String resourceId)
public Resource getResource( String companyId, String name, String typeId, String scope, String primKey) throws PortalException, SystemException { return ResourceUtil.findByC_N_T_S_P( companyId, name, typeId, scope, primKey); }
return ResourceUtil.findByC_N_T_S_P( companyId, name, typeId, scope, primKey);
return ResourceUtil.findByPrimaryKey(resourceId);
public Resource getResource( String companyId, String name, String typeId, String scope, String primKey) throws PortalException, SystemException { return ResourceUtil.findByC_N_T_S_P( companyId, name, typeId, scope, primKey); }
public static java.util.List getPermissions(java.lang.String[] actionIds, java.lang.String resourceId)
public static java.util.List getPermissions(java.lang.String companyId, java.lang.String[] actionIds, java.lang.String resourceId)
public static java.util.List getPermissions(java.lang.String[] actionIds, java.lang.String resourceId) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException { try { PermissionLocalService permissionLocalService = PermissionLocalServiceFactory.getService(); return permissionLocalServic...
return permissionLocalService.getPermissions(actionIds, resourceId);
return permissionLocalService.getPermissions(companyId, actionIds, resourceId);
public static java.util.List getPermissions(java.lang.String[] actionIds, java.lang.String resourceId) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException { try { PermissionLocalService permissionLocalService = PermissionLocalServiceFactory.getService(); return permissionLocalServic...
try { XMPPConnection con = new XMPPConnection(SERVER_ADDRESS, SERVER_PORT); AccountManager accountManager = con.getAccountManager(); try { accountManager.createAccount(user.getUserId(), USER_PASSWORD); } catch (XMPPException xmppe) { } con.close(); } catch (XMPPException xmppe) { }
public static JSONObject addRosterEntry( HttpSession ses, String companyId, String emailAddress) throws PortalException, SystemException, XMPPException { JSONObject jo = new JSONObject(); Roster roster = getRoster(ses); User user = UserLocalServiceUtil.getUserByEmailAddress( companyId, emailAddress); String s...
setModified(true);
public void setFolderId(String folderId) { if (((folderId == null) && (_folderId != null)) || ((folderId != null) && (_folderId == null)) || ((folderId != null) && (_folderId != null) && !folderId.equals(_folderId))) { if (!XSS_ALLOW_FOLDERID) { folderId = XSSUtil.strip(folderId); } _folderId = fold...
setModified(true);
public void setHeight(int height) { if (height != _height) { _height = height; setModified(true); } }
setModified(true);
public void setImageId(String imageId) { if (((imageId == null) && (_imageId != null)) || ((imageId != null) && (_imageId == null)) || ((imageId != null) && (_imageId != null) && !imageId.equals(_imageId))) { if (!XSS_ALLOW_IMAGEID) { imageId = XSSUtil.strip(imageId); } _imageId = imageId; setModi...
setModified(true);
public void setSize(int size) { if (size != _size) { _size = size; setModified(true); } }