rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
setModified(true);
public void setBillingFirstName(String billingFirstName) { if (((billingFirstName == null) && (_billingFirstName != null)) || ((billingFirstName != null) && (_billingFirstName == null)) || ((billingFirstName != null) && (_billingFirstName != null) && !billingFirstName.equals(_billingFirstName))) { if (!XSS...
setModified(true);
public void setBillingLastName(String billingLastName) { if (((billingLastName == null) && (_billingLastName != null)) || ((billingLastName != null) && (_billingLastName == null)) || ((billingLastName != null) && (_billingLastName != null) && !billingLastName.equals(_billingLastName))) { if (!XSS_ALLOW_BIL...
setModified(true);
public void setBillingPhone(String billingPhone) { if (((billingPhone == null) && (_billingPhone != null)) || ((billingPhone != null) && (_billingPhone == null)) || ((billingPhone != null) && (_billingPhone != null) && !billingPhone.equals(_billingPhone))) { if (!XSS_ALLOW_BILLINGPHONE) { billingPhone =...
setModified(true);
public void setBillingState(String billingState) { if (((billingState == null) && (_billingState != null)) || ((billingState != null) && (_billingState == null)) || ((billingState != null) && (_billingState != null) && !billingState.equals(_billingState))) { if (!XSS_ALLOW_BILLINGSTATE) { billingState =...
setModified(true);
public void setBillingStreet(String billingStreet) { if (((billingStreet == null) && (_billingStreet != null)) || ((billingStreet != null) && (_billingStreet == null)) || ((billingStreet != null) && (_billingStreet != null) && !billingStreet.equals(_billingStreet))) { if (!XSS_ALLOW_BILLINGSTREET) { bil...
setModified(true);
public void setBillingZip(String billingZip) { if (((billingZip == null) && (_billingZip != null)) || ((billingZip != null) && (_billingZip == null)) || ((billingZip != null) && (_billingZip != null) && !billingZip.equals(_billingZip))) { if (!XSS_ALLOW_BILLINGZIP) { billingZip = XSSUtil.strip(billingZi...
setModified(true);
public void setCcExpMonth(int ccExpMonth) { if (ccExpMonth != _ccExpMonth) { _ccExpMonth = ccExpMonth; setModified(true); } }
setModified(true);
public void setCcExpYear(int ccExpYear) { if (ccExpYear != _ccExpYear) { _ccExpYear = ccExpYear; setModified(true); } }
setModified(true);
public void setCcName(String ccName) { if (((ccName == null) && (_ccName != null)) || ((ccName != null) && (_ccName == null)) || ((ccName != null) && (_ccName != null) && !ccName.equals(_ccName))) { if (!XSS_ALLOW_CCNAME) { ccName = XSSUtil.strip(ccName); } _ccName = ccName; setModified(true); } ...
setModified(true);
public void setCcNumber(String ccNumber) { if (((ccNumber == null) && (_ccNumber != null)) || ((ccNumber != null) && (_ccNumber == null)) || ((ccNumber != null) && (_ccNumber != null) && !ccNumber.equals(_ccNumber))) { if (!XSS_ALLOW_CCNUMBER) { ccNumber = XSSUtil.strip(ccNumber); } _ccNumber = ccNu...
setModified(true);
public void setCcType(String ccType) { if (((ccType == null) && (_ccType != null)) || ((ccType != null) && (_ccType == null)) || ((ccType != null) && (_ccType != null) && !ccType.equals(_ccType))) { if (!XSS_ALLOW_CCTYPE) { ccType = XSSUtil.strip(ccType); } _ccType = ccType; setModified(true); } ...
setModified(true);
public void setCcVerNumber(String ccVerNumber) { if (((ccVerNumber == null) && (_ccVerNumber != null)) || ((ccVerNumber != null) && (_ccVerNumber == null)) || ((ccVerNumber != null) && (_ccVerNumber != null) && !ccVerNumber.equals(_ccVerNumber))) { if (!XSS_ALLOW_CCVERNUMBER) { ccVerNumber = XSSUtil.str...
setModified(true);
public void setCouponDiscount(double couponDiscount) { if (couponDiscount != _couponDiscount) { _couponDiscount = couponDiscount; setModified(true); } }
setModified(true);
public void setInsurance(double insurance) { if (insurance != _insurance) { _insurance = insurance; setModified(true); } }
setModified(true);
public void setPpPayerEmail(String ppPayerEmail) { if (((ppPayerEmail == null) && (_ppPayerEmail != null)) || ((ppPayerEmail != null) && (_ppPayerEmail == null)) || ((ppPayerEmail != null) && (_ppPayerEmail != null) && !ppPayerEmail.equals(_ppPayerEmail))) { if (!XSS_ALLOW_PPPAYEREMAIL) { ppPayerEmail =...
setModified(true);
public void setPpPaymentGross(double ppPaymentGross) { if (ppPaymentGross != _ppPaymentGross) { _ppPaymentGross = ppPaymentGross; setModified(true); } }
setModified(true);
public void setPpPaymentStatus(String ppPaymentStatus) { if (((ppPaymentStatus == null) && (_ppPaymentStatus != null)) || ((ppPaymentStatus != null) && (_ppPaymentStatus == null)) || ((ppPaymentStatus != null) && (_ppPaymentStatus != null) && !ppPaymentStatus.equals(_ppPaymentStatus))) { if (!XSS_ALLOW_PPP...
setModified(true);
public void setPpReceiverEmail(String ppReceiverEmail) { if (((ppReceiverEmail == null) && (_ppReceiverEmail != null)) || ((ppReceiverEmail != null) && (_ppReceiverEmail == null)) || ((ppReceiverEmail != null) && (_ppReceiverEmail != null) && !ppReceiverEmail.equals(_ppReceiverEmail))) { if (!XSS_ALLOW_PPR...
setModified(true);
public void setPpTxnId(String ppTxnId) { if (((ppTxnId == null) && (_ppTxnId != null)) || ((ppTxnId != null) && (_ppTxnId == null)) || ((ppTxnId != null) && (_ppTxnId != null) && !ppTxnId.equals(_ppTxnId))) { if (!XSS_ALLOW_PPTXNID) { ppTxnId = XSSUtil.strip(ppTxnId); } _ppTxnId = ppTxnId; setModi...
setModified(true);
public void setRequiresShipping(boolean requiresShipping) { if (requiresShipping != _requiresShipping) { _requiresShipping = requiresShipping; setModified(true); } }
setModified(true);
public void setSendOrderEmail(boolean sendOrderEmail) { if (sendOrderEmail != _sendOrderEmail) { _sendOrderEmail = sendOrderEmail; setModified(true); } }
setModified(true);
public void setSendShippingEmail(boolean sendShippingEmail) { if (sendShippingEmail != _sendShippingEmail) { _sendShippingEmail = sendShippingEmail; setModified(true); } }
setModified(true);
public void setShipToBilling(boolean shipToBilling) { if (shipToBilling != _shipToBilling) { _shipToBilling = shipToBilling; setModified(true); } }
setModified(true);
public void setShippingCity(String shippingCity) { if (((shippingCity == null) && (_shippingCity != null)) || ((shippingCity != null) && (_shippingCity == null)) || ((shippingCity != null) && (_shippingCity != null) && !shippingCity.equals(_shippingCity))) { if (!XSS_ALLOW_SHIPPINGCITY) { shippingCity =...
setModified(true);
public void setShippingCompany(String shippingCompany) { if (((shippingCompany == null) && (_shippingCompany != null)) || ((shippingCompany != null) && (_shippingCompany == null)) || ((shippingCompany != null) && (_shippingCompany != null) && !shippingCompany.equals(_shippingCompany))) { if (!XSS_ALLOW_SHI...
setModified(true);
public void setShippingCountry(String shippingCountry) { if (((shippingCountry == null) && (_shippingCountry != null)) || ((shippingCountry != null) && (_shippingCountry == null)) || ((shippingCountry != null) && (_shippingCountry != null) && !shippingCountry.equals(_shippingCountry))) { if (!XSS_ALLOW_SHI...
setModified(true);
public void setShippingEmailAddress(String shippingEmailAddress) { if (((shippingEmailAddress == null) && (_shippingEmailAddress != null)) || ((shippingEmailAddress != null) && (_shippingEmailAddress == null)) || ((shippingEmailAddress != null) && (_shippingEmailAddress != null) && !shippingEmailAddres...
setModified(true);
public void setShippingFirstName(String shippingFirstName) { if (((shippingFirstName == null) && (_shippingFirstName != null)) || ((shippingFirstName != null) && (_shippingFirstName == null)) || ((shippingFirstName != null) && (_shippingFirstName != null) && !shippingFirstName.equals(_shippingFirstName))) { ...
setModified(true);
public void setShippingLastName(String shippingLastName) { if (((shippingLastName == null) && (_shippingLastName != null)) || ((shippingLastName != null) && (_shippingLastName == null)) || ((shippingLastName != null) && (_shippingLastName != null) && !shippingLastName.equals(_shippingLastName))) { if (!XSS...
setModified(true);
public void setShippingPhone(String shippingPhone) { if (((shippingPhone == null) && (_shippingPhone != null)) || ((shippingPhone != null) && (_shippingPhone == null)) || ((shippingPhone != null) && (_shippingPhone != null) && !shippingPhone.equals(_shippingPhone))) { if (!XSS_ALLOW_SHIPPINGPHONE) { shi...
setModified(true);
public void setShippingState(String shippingState) { if (((shippingState == null) && (_shippingState != null)) || ((shippingState != null) && (_shippingState == null)) || ((shippingState != null) && (_shippingState != null) && !shippingState.equals(_shippingState))) { if (!XSS_ALLOW_SHIPPINGSTATE) { shi...
setModified(true);
public void setShippingStreet(String shippingStreet) { if (((shippingStreet == null) && (_shippingStreet != null)) || ((shippingStreet != null) && (_shippingStreet == null)) || ((shippingStreet != null) && (_shippingStreet != null) && !shippingStreet.equals(_shippingStreet))) { if (!XSS_ALLOW_SHIPPINGSTREE...
setModified(true);
public void setShippingZip(String shippingZip) { if (((shippingZip == null) && (_shippingZip != null)) || ((shippingZip != null) && (_shippingZip == null)) || ((shippingZip != null) && (_shippingZip != null) && !shippingZip.equals(_shippingZip))) { if (!XSS_ALLOW_SHIPPINGZIP) { shippingZip = XSSUtil.str...
setModified(true);
public void setTax(double tax) { if (tax != _tax) { _tax = tax; setModified(true); } }
setModified(true);
public void setParentFolderId(String parentFolderId) { if (((parentFolderId == null) && (_parentFolderId != null)) || ((parentFolderId != null) && (_parentFolderId == null)) || ((parentFolderId != null) && (_parentFolderId != null) && !parentFolderId.equals(_parentFolderId))) { if (!XSS_ALLOW_PARENTFOLDERI...
if (Validator.isNull(layoutFriendlyURL)) {
if (Validator.isNull(layoutFriendlyURL) || Validator.isNotNull(tabs2)) {
protected String generateToString() { String toString = super.generateToString(); String layoutFriendlyURL = getLayoutFriendlyURL(); if (Validator.isNull(layoutFriendlyURL)) { return toString; } String friendlyURL = null; String strutsAction = GetterUtil.getString( getParameter("struts_action")); if (struts...
String tabs1 = GetterUtil.get(getParameter("tabs1"), "categories");
protected String generateToString() { String toString = super.generateToString(); String layoutFriendlyURL = getLayoutFriendlyURL(); if (Validator.isNull(layoutFriendlyURL)) { return toString; } String friendlyURL = null; String strutsAction = GetterUtil.getString( getParameter("struts_action")); if (struts...
if (Validator.isNotNull(categoryId) && tabs1.equals("categories")) {
if (Validator.isNotNull(categoryId)) {
protected String generateToString() { String toString = super.generateToString(); String layoutFriendlyURL = getLayoutFriendlyURL(); if (Validator.isNull(layoutFriendlyURL)) { return toString; } String friendlyURL = null; String strutsAction = GetterUtil.getString( getParameter("struts_action")); if (struts...
if (mbMessageFlag.isNew() || mbMessageFlag.isModified()) { session = openSession(); if (mbMessageFlag.isNew()) { MBMessageFlag mbMessageFlagModel = new MBMessageFlag(); mbMessageFlagModel.setTopicId(mbMessageFlag.getTopicId()); mbMessageFlagModel.setMessageId(mbMessageFlag.getMessageId()); mbMessageFlagModel.setUserId...
session = openSession(); session.saveOrUpdate(mbMessageFlag); session.flush(); mbMessageFlag.setNew(false);
public com.liferay.portlet.messageboards.model.MBMessageFlag update( com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag) throws SystemException { Session session = null; try { if (mbMessageFlag.isNew() || mbMessageFlag.isModified()) { session = openSession(); if (mbMessageFlag.isNew()) { ...
if (release.isNew() || release.isModified()) { session = openSession(); if (release.isNew()) { Release releaseModel = new Release(); releaseModel.setReleaseId(release.getReleaseId()); releaseModel.setCreateDate(release.getCreateDate()); releaseModel.setModifiedDate(release.getModifiedDate()); releaseModel.setBuildNumb...
session = openSession(); session.saveOrUpdate(release); session.flush(); release.setNew(false);
public com.liferay.portal.model.Release update( com.liferay.portal.model.Release release) throws SystemException { Session session = null; try { if (release.isNew() || release.isModified()) { session = openSession(); if (release.isNew()) { Release releaseModel = new Release(); releaseModel.setReleas...
catch (IOException ioe) { ioe.printStackTrace();
catch (Exception e) { _log.error(StackTraceUtil.getStackTrace(e));
public void addForward(String userId, List emailAddresses) { try { if (emailAddresses != null) { String home = PropsUtil.get(PropsUtil.MAIL_HOOK_SENDMAIL_HOME); File file = new File(home + "/" + userId + "/.forward"); if (emailAddresses.size() > 0) { StringBuffer sb = new StringBuffer(); for (int i...
e.printStackTrace();
_log.error(StackTraceUtil.getStackTrace(e));
public void addUser( String userId, String password, String firstName, String middleName, String lastName, String emailAddress) { // Get add user command String addUserCmd = PropsUtil.get(PropsUtil.MAIL_HOOK_SENDMAIL_ADD_USER); // Replace userId addUserCmd = StringUtil.replace(addUserCmd, "%1%", userId); Runt...
e.printStackTrace();
_log.error(StackTraceUtil.getStackTrace(e));
public void deleteUser(String userId) { deleteEmailAddress(userId); // Get delete user command String deleteUserCmd = PropsUtil.get(PropsUtil.MAIL_HOOK_SENDMAIL_DELETE_USER); // Replace userId deleteUserCmd = StringUtil.replace(deleteUserCmd, "%1%", userId); Runtime rt = Runtime.getRuntime(); try { Process ...
catch (IOException ioe) { ioe.printStackTrace();
catch (Exception e) { _log.error(StackTraceUtil.getStackTrace(e));
public void updateBlocked(String userId, List blocked) { String home = PropsUtil.get(PropsUtil.MAIL_HOOK_SENDMAIL_HOME); File file = new File(home + "/" + userId + "/.procmailrc"); if ((blocked == null) || (blocked.size() == 0)) { file.delete(); return; } StringBuffer sb = new StringBuffer(); sb.append("ORGM...
e.printStackTrace();
_log.error(StackTraceUtil.getStackTrace(e));
public void updateEmailAddress(String userId, String emailAddress) { try { String virtusertable = PropsUtil.get(PropsUtil.MAIL_HOOK_SENDMAIL_VIRTUSERTABLE); FileReader fr = new FileReader(virtusertable); BufferedReader br = new BufferedReader(fr); StringBuffer sb = new StringBuffer(); for (String s = br....
e.printStackTrace();
_log.error(StackTraceUtil.getStackTrace(e));
public void updatePassword(String userId, String password) { // Get change password command String changePasswordCmd = PropsUtil.get(PropsUtil.MAIL_HOOK_SENDMAIL_CHANGE_PASSWORD); // Replace userId changePasswordCmd = StringUtil.replace(changePasswordCmd, "%1%", userId); // Replace password changePasswordCmd...
if (_log.isDebugEnabled()) { _log.debug(
if (_log.isInfoEnabled()) { _log.info(
public Field getFile(String field, InputStream is, String fileExt) { String text = StringPool.BLANK; try { fileExt = fileExt.toLowerCase(); PropertyId id = null; PropertyState state = new PropertyState(id, 1, true); InternalValue value = InternalValue.create(is); state.setValues(new InternalValue[] {value}...
if (_log.isDebugEnabled()) { _log.debug("No filter found for extension " + fileExt);
if (_log.isInfoEnabled()) { _log.info("No filter found for extension " + fileExt);
public Field getFile(String field, InputStream is, String fileExt) { String text = StringPool.BLANK; try { fileExt = fileExt.toLowerCase(); PropertyId id = null; PropertyState state = new PropertyState(id, 1, true); InternalValue value = InternalValue.create(is); state.setValues(new InternalValue[] {value}...
return new Field(field, text, Field.Store.YES, Field.Index.TOKENIZED);
return LuceneFields.getText(field, text);
public Field getFile(String field, InputStream is, String fileExt) { String text = StringPool.BLANK; try { fileExt = fileExt.toLowerCase(); PropertyId id = null; PropertyState state = new PropertyState(id, 1, true); InternalValue value = InternalValue.create(is); state.setValues(new InternalValue[] {value}...
User user = getUser();
CommonPermission.checkPermission( getPermissionChecker(), className, classPK, ActionKeys.UPDATE);
public Website addWebsite( String className, String classPK, String url, String typeId, boolean primary) throws PortalException, SystemException { User user = getUser(); _validate( null, user.getCompanyId(), className, classPK, url, typeId, primary); String websiteId = Long.toString(CounterServiceUtil.incr...
_validate( null, user.getCompanyId(), className, classPK, url, typeId, primary); String websiteId = Long.toString(CounterServiceUtil.increment( Website.class.getName())); Website website = WebsiteUtil.create(websiteId); Date now = new Date(); website.setCompanyId(user.getCompanyId()); website.setUserId(user.getUser...
return WebsiteLocalServiceUtil.addWebsite( getUserId(), className, classPK, url, typeId, primary);
public Website addWebsite( String className, String classPK, String url, String typeId, boolean primary) throws PortalException, SystemException { User user = getUser(); _validate( null, user.getCompanyId(), className, classPK, url, typeId, primary); String websiteId = Long.toString(CounterServiceUtil.incr...
WebsiteUtil.remove(websiteId);
Website website = WebsiteUtil.findByPrimaryKey(websiteId); CommonPermission.checkPermission( getPermissionChecker(), website.getClassName(), website.getClassPK(), ActionKeys.UPDATE); WebsiteLocalServiceUtil.deleteWebsite(websiteId);
public void deleteWebsite(String websiteId) throws PortalException, SystemException { WebsiteUtil.remove(websiteId); }
return WebsiteUtil.findByPrimaryKey(websiteId);
Website website = WebsiteUtil.findByPrimaryKey(websiteId); CommonPermission.checkPermission( getPermissionChecker(), website.getClassName(), website.getClassPK(), ActionKeys.VIEW); return website;
public Website getWebsite(String websiteId) throws PortalException, SystemException { return WebsiteUtil.findByPrimaryKey(websiteId); }
return WebsiteUtil.findByC_C_C(
CommonPermission.checkPermission( getPermissionChecker(), className, classPK, ActionKeys.VIEW); return WebsiteLocalServiceUtil.getWebsites(
public List getWebsites(String className, String classPK) throws PortalException, SystemException { return WebsiteUtil.findByC_C_C( getUser().getCompanyId(), className, classPK); }
_validate(websiteId, null, null, null, url, typeId, primary);
public Website updateWebsite( String websiteId, String url, String typeId, boolean primary) throws PortalException, SystemException { _validate(websiteId, null, null, null, url, typeId, primary); Website website = WebsiteUtil.findByPrimaryKey(websiteId); website.setModifiedDate(new Date()); website.setUrl(url);...
website.setModifiedDate(new Date()); website.setUrl(url); website.setTypeId(typeId); website.setPrimary(primary);
CommonPermission.checkPermission( getPermissionChecker(), website.getClassName(), website.getClassPK(), ActionKeys.UPDATE);
public Website updateWebsite( String websiteId, String url, String typeId, boolean primary) throws PortalException, SystemException { _validate(websiteId, null, null, null, url, typeId, primary); Website website = WebsiteUtil.findByPrimaryKey(websiteId); website.setModifiedDate(new Date()); website.setUrl(url);...
WebsiteUtil.update(website); return website;
return WebsiteLocalServiceUtil.updateWebsite( websiteId, url, typeId, primary);
public Website updateWebsite( String websiteId, String url, String typeId, boolean primary) throws PortalException, SystemException { _validate(websiteId, null, null, null, url, typeId, primary); Website website = WebsiteUtil.findByPrimaryKey(websiteId); website.setModifiedDate(new Date()); website.setUrl(url);...
setModified(true);
public void setRemoteAddr(String remoteAddr) { if (((remoteAddr == null) && (_remoteAddr != null)) || ((remoteAddr != null) && (_remoteAddr == null)) || ((remoteAddr != null) && (_remoteAddr != null) && !remoteAddr.equals(_remoteAddr))) { if (!XSS_ALLOW_REMOTEADDR) { remoteAddr = XSSUtil.strip(remoteAdd...
setModified(true);
public void setRemoteHost(String remoteHost) { if (((remoteHost == null) && (_remoteHost != null)) || ((remoteHost != null) && (_remoteHost == null)) || ((remoteHost != null) && (_remoteHost != null) && !remoteHost.equals(_remoteHost))) { if (!XSS_ALLOW_REMOTEHOST) { remoteHost = XSSUtil.strip(remoteHos...
setModified(true);
public void setUserAgent(String userAgent) { if (((userAgent == null) && (_userAgent != null)) || ((userAgent != null) && (_userAgent == null)) || ((userAgent != null) && (_userAgent != null) && !userAgent.equals(_userAgent))) { if (!XSS_ALLOW_USERAGENT) { userAgent = XSSUtil.strip(userAgent); } _us...
value = getCreateDate().compareTo(mbMessage.getCreateDate());
value = DateUtil.compareTo(getCreateDate(), mbMessage.getCreateDate());
public int compareTo(Object obj) { if (obj == null) { return -1; } MBMessage mbMessage = (MBMessage)obj; int value = 0; value = getCreateDate().compareTo(mbMessage.getCreateDate()); if (value != 0) { return value; } value = getMessageId().compareTo(mbMessage.getMessageId()); if (value != 0) { return val...
public java.util.List getFileEntries(java.lang.String folderId, int begin, int end) throws com.liferay.portal.SystemException { return getService().getFileEntries(folderId, begin, end);
public java.util.List getFileEntries(java.lang.String folderId) throws com.liferay.portal.SystemException { return getService().getFileEntries(folderId);
public java.util.List getFileEntries(java.lang.String folderId, int begin, int end) throws com.liferay.portal.SystemException { return getService().getFileEntries(folderId, begin, end); }
if (user == null) {
if (user != null) {
private static void _importLDAP( String companyId, LdapContext ctx, Properties userMappings, Properties groupMappings, SearchResult result) throws Exception { String userDN = result.getName(); if (_log.isDebugEnabled()) { _log.debug("User DN " + userDN); } Attributes attrs = result.getAttributes(); String ...
String userId2 = null; try { userId2 = getUserId(); } catch (PrincipalException pe) { } if ((userId2 != null) && (RoleLocalServiceUtil.hasUserRole( userId2, company.getCompanyId(), Role.ADMINISTRATOR))) { } else { throw new PrincipalException(); }
checkPermission( userId, organizationId, locationId, ActionKeys.ADD_USER);
public User addUser( String companyId, boolean autoUserId, String userId, boolean autoPassword, String password1, String password2, boolean passwordReset, String emailAddress, Locale locale, String firstName, String middleName, String lastName, String nickName, String prefixId, String suffixId, boolean male,...
companyId, autoUserId, userId, autoPassword, password1, password2, passwordReset, emailAddress, locale, firstName, middleName, lastName, nickName, prefixId, suffixId, male, birthdayMonth, birthdayDay, birthdayYear, jobTitle, organizationId, locationId);
getUserId(), companyId, autoUserId, userId, autoPassword, password1, password2, passwordReset, emailAddress, locale, firstName, middleName, lastName, nickName, prefixId, suffixId, male, birthdayMonth, birthdayDay, birthdayYear, jobTitle, organizationId, locationId);
public User addUser( String companyId, boolean autoUserId, String userId, boolean autoPassword, String password1, String password2, boolean passwordReset, String emailAddress, Locale locale, String firstName, String middleName, String lastName, String nickName, String prefixId, String suffixId, boolean male,...
checkPermission(userId, ActionKeys.UPDATE);
public boolean deleteRoleUser(String roleId, String userId) throws PortalException, SystemException { return UserLocalServiceUtil.deleteRoleUser(roleId, userId); }
checkPermission(userId, ActionKeys.DELETE);
public void deleteUser(String userId) throws PortalException, SystemException { if (getUserId().equals(userId)) { throw new RequiredUserException(); } UserLocalServiceUtil.deleteUser(userId); }
checkPermission(userId, ActionKeys.DELETE);
public User updateActive(String userId, boolean active) throws PortalException, SystemException { if (getUserId().equals(userId) && !active) { throw new RequiredUserException(); } return UserLocalServiceUtil.updateActive(userId, active); }
checkPermission(userId, ActionKeys.UPDATE);
public User updateAgreedToTermsOfUse( String userId, boolean agreedToTermsOfUse) throws PortalException, SystemException { return UserLocalServiceUtil.updateAgreedToTermsOfUse( userId, agreedToTermsOfUse); }
checkPermission(userId, ActionKeys.UPDATE);
public User updatePassword( String userId, String password1, String password2, boolean passwordReset) throws PortalException, SystemException { return UserLocalServiceUtil.updatePassword( userId, password1, password2, passwordReset); }
checkPermission(userId, ActionKeys.UPDATE);
public void updatePortrait(String userId, byte[] bytes) throws PortalException, SystemException { UserLocalServiceUtil.updatePortrait(userId, bytes); }
checkPermission(userId, organizationId, locationId, ActionKeys.UPDATE);
public User updateUser( String userId, String password, String emailAddress, String languageId, String timeZoneId, String greeting, String resolution, String comments, String firstName, String middleName, String lastName, String nickName, String prefixId, String suffixId, boolean male, int birthdayMonth, i...
throws com.liferay.portal.SystemException, java.rmi.RemoteException {
throws com.liferay.portal.PortalException, com.liferay.portal.SystemException, java.rmi.RemoteException {
public java.util.List getOrgLabors(java.lang.String organizationId) throws com.liferay.portal.SystemException, java.rmi.RemoteException { PrincipalSessionBean.setThreadValues(_sc); return getService().getOrgLabors(organizationId); }
if (journalContentSearch.isNew() || journalContentSearch.isModified()) { session = openSession(); if (journalContentSearch.isNew()) { JournalContentSearch journalContentSearchModel = new JournalContentSearch(); journalContentSearchModel.setPortletId(journalContentSearch.getPortletId()); journalContentSearchModel.setLa...
session = openSession(); session.saveOrUpdate(journalContentSearch); session.flush(); journalContentSearch.setNew(false);
public com.liferay.portlet.journal.model.JournalContentSearch update( com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch) throws SystemException { Session session = null; try { if (journalContentSearch.isNew() || journalContentSearch.isModified()) { session = openSession(); if ...
_stream, _res.getCharacterEncoding()));
_stream, LayoutCacheFilter.ENCODING));
public PrintWriter getWriter() throws IOException { if (_writer != null) { return _writer; } if (_stream != null) { throw new IllegalStateException(); } _stream = _createOutputStream(); _writer = new PrintWriter(new OutputStreamWriter( _stream, _res.getCharacterEncoding())); return _writer; }
super.setContentType(contentType);
public void setContentType(String contentType) { _contentType = contentType; }
public static User getSelectedUser(HttpServletRequest req) {
public static User getSelectedUser(HttpServletRequest req) throws PortalException, SystemException {
public static User getSelectedUser(HttpServletRequest req) { String emailAddress = ParamUtil.getString(req, "p_u_e_a"); User user = null; try { user = UserLocalServiceUtil.getUserByEmailAddress( getCompanyId(req), emailAddress); } catch (Exception e) { } return user; }
user = UserLocalServiceUtil.getUserByEmailAddress(
user = UserServiceUtil.getUserByEmailAddress(
public static User getSelectedUser(HttpServletRequest req) { String emailAddress = ParamUtil.getString(req, "p_u_e_a"); User user = null; try { user = UserLocalServiceUtil.getUserByEmailAddress( getCompanyId(req), emailAddress); } catch (Exception e) { } return user; }
catch (Exception e) {
catch (NoSuchUserException nsue) {
public static User getSelectedUser(HttpServletRequest req) { String emailAddress = ParamUtil.getString(req, "p_u_e_a"); User user = null; try { user = UserLocalServiceUtil.getUserByEmailAddress( getCompanyId(req), emailAddress); } catch (Exception e) { } return user; }
public void init(FilterConfig filterConfig) {
public void init(FilterConfig config) {
public void init(FilterConfig filterConfig) { String propertyPrefix = filterConfig.getInitParameter("portal_property_prefix"); String[] hostsAllowedArray = null; if (Validator.isNull(propertyPrefix)) { hostsAllowedArray = StringUtil.split( filterConfig.getInitParameter("hosts.allowed")); _httpsRequired = G...
filterConfig.getInitParameter("portal_property_prefix");
config.getInitParameter("portal_property_prefix");
public void init(FilterConfig filterConfig) { String propertyPrefix = filterConfig.getInitParameter("portal_property_prefix"); String[] hostsAllowedArray = null; if (Validator.isNull(propertyPrefix)) { hostsAllowedArray = StringUtil.split( filterConfig.getInitParameter("hosts.allowed")); _httpsRequired = G...
filterConfig.getInitParameter("hosts.allowed"));
config.getInitParameter("hosts.allowed"));
public void init(FilterConfig filterConfig) { String propertyPrefix = filterConfig.getInitParameter("portal_property_prefix"); String[] hostsAllowedArray = null; if (Validator.isNull(propertyPrefix)) { hostsAllowedArray = StringUtil.split( filterConfig.getInitParameter("hosts.allowed")); _httpsRequired = G...
filterConfig.getInitParameter("https.required"));
config.getInitParameter("https.required"));
public void init(FilterConfig filterConfig) { String propertyPrefix = filterConfig.getInitParameter("portal_property_prefix"); String[] hostsAllowedArray = null; if (Validator.isNull(propertyPrefix)) { hostsAllowedArray = StringUtil.split( filterConfig.getInitParameter("hosts.allowed")); _httpsRequired = G...
setModified(true);
public void setListTypeId(String listTypeId) { if (((listTypeId == null) && (_listTypeId != null)) || ((listTypeId != null) && (_listTypeId == null)) || ((listTypeId != null) && (_listTypeId != null) && !listTypeId.equals(_listTypeId))) { if (!XSS_ALLOW_LISTTYPEID) { listTypeId = XSSUtil.strip(listTypeI...
portletURL.setParameter("order_id", order.getOrderId());
portletURL.setParameter("orderId", order.getOrderId());
public static String getPayPalReturnURL( PortletURL portletURL, ShoppingOrder order) { portletURL.setParameter( "struts_action", "/shopping/checkout"); portletURL.setParameter(Constants.CMD, Constants.VIEW); portletURL.setParameter("order_id", order.getOrderId()); return portletURL.toString(); }
setModified(true);
public void setAllDay(boolean allDay) { if (allDay != _allDay) { _allDay = allDay; setModified(true); } }
setModified(true);
public void setDurationHour(int durationHour) { if (durationHour != _durationHour) { _durationHour = durationHour; setModified(true); } }
setModified(true);
public void setDurationMinute(int durationMinute) { if (durationMinute != _durationMinute) { _durationMinute = durationMinute; setModified(true); } }
setModified(true);
public void setEndDate(Date endDate) { if (((endDate == null) && (_endDate != null)) || ((endDate != null) && (_endDate == null)) || ((endDate != null) && (_endDate != null) && !endDate.equals(_endDate))) { _endDate = endDate; setModified(true); } }
setModified(true);
public void setEventId(String eventId) { if (((eventId == null) && (_eventId != null)) || ((eventId != null) && (_eventId == null)) || ((eventId != null) && (_eventId != null) && !eventId.equals(_eventId))) { if (!XSS_ALLOW_EVENTID) { eventId = XSSUtil.strip(eventId); } _eventId = eventId; setModi...
setModified(true);
public void setFirstReminder(int firstReminder) { if (firstReminder != _firstReminder) { _firstReminder = firstReminder; setModified(true); } }
setModified(true);
public void setRecurrence(String recurrence) { if (((recurrence == null) && (_recurrence != null)) || ((recurrence != null) && (_recurrence == null)) || ((recurrence != null) && (_recurrence != null) && !recurrence.equals(_recurrence))) { if (!XSS_ALLOW_RECURRENCE) { recurrence = XSSUtil.strip(recurrenc...
setModified(true);
public void setRemindBy(String remindBy) { if (((remindBy == null) && (_remindBy != null)) || ((remindBy != null) && (_remindBy == null)) || ((remindBy != null) && (_remindBy != null) && !remindBy.equals(_remindBy))) { if (!XSS_ALLOW_REMINDBY) { remindBy = XSSUtil.strip(remindBy); } _remindBy = remi...
setModified(true);
public void setRepeating(boolean repeating) { if (repeating != _repeating) { _repeating = repeating; setModified(true); } }
setModified(true);
public void setSecondReminder(int secondReminder) { if (secondReminder != _secondReminder) { _secondReminder = secondReminder; setModified(true); } }
setModified(true);
public void setStartDate(Date startDate) { if (((startDate == null) && (_startDate != null)) || ((startDate != null) && (_startDate == null)) || ((startDate != null) && (_startDate != null) && !startDate.equals(_startDate))) { _startDate = startDate; setModified(true); } }
setModified(true);
public void setTimeZoneSensitive(boolean timeZoneSensitive) { if (timeZoneSensitive != _timeZoneSensitive) { _timeZoneSensitive = timeZoneSensitive; setModified(true); } }
java.lang.String classPK, java.lang.String topicId, java.lang.String messageId)
java.lang.String classPK, java.lang.String messageId)
public static void deleteDiscussionMessage(HttpPrincipal httpPrincipal, 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 { try { Object paramObj0 ...
Object paramObj3 = topicId; if (topicId == null) { paramObj3 = new NullWrapper("java.lang.String"); } Object paramObj4 = messageId;
Object paramObj3 = messageId;
public static void deleteDiscussionMessage(HttpPrincipal httpPrincipal, 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 { try { Object paramObj0 ...
paramObj4 = new NullWrapper("java.lang.String");
paramObj3 = new NullWrapper("java.lang.String");
public static void deleteDiscussionMessage(HttpPrincipal httpPrincipal, 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 { try { Object paramObj0 ...