rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
Layout.PUBLIC + groupId, user.getCompanyId());
Layout.PUBLIC + groupId, user.getActualCompanyId());
public Group addGroup( String userId, String className, String classPK, String name, String friendlyURL) throws PortalException, SystemException { // Group User user = UserUtil.findByPrimaryKey(userId); if (Validator.isNull(className) || Validator.isNull(classPK)) { validateName(null, user.getCompanyId(), na...
if (Validator.isNull(className) && Validator.isNull(classPK)) {
if (Validator.isNull(className) && Validator.isNull(classPK) && !User.isDefaultUser(userId)) {
public Group addGroup( String userId, String className, String classPK, String name, String friendlyURL) throws PortalException, SystemException { // Group User user = UserUtil.findByPrimaryKey(userId); if (Validator.isNull(className) || Validator.isNull(classPK)) { validateName(null, user.getCompanyId(), na...
user.getCompanyId(), "GROUP_" + groupId + "_ADMINISTRATOR", Group.class.getName(), groupId);
user.getActualCompanyId(), "GROUP_" + groupId + "_ADMINISTRATOR", Group.class.getName(), groupId);
public Group addGroup( String userId, String className, String classPK, String name, String friendlyURL) throws PortalException, SystemException { // Group User user = UserUtil.findByPrimaryKey(userId); if (Validator.isNull(className) || Validator.isNull(classPK)) { validateName(null, user.getCompanyId(), na...
group = addGroup(companyId, null, null, systemGroups[i], null);
group = addGroup( User.getDefaultUserId(companyId), null, null, systemGroups[i], null);
public void checkSystemGroups(String companyId) throws PortalException, SystemException { String[] systemGroups = PortalUtil.getSystemGroups(); for (int i = 0; i < systemGroups.length; i++) { Group group = null; try { group = GroupFinder.findByC_N_2(companyId, systemGroups[i]); } catch (NoSuchGroupExcept...
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 { LayoutLocalService layoutLocalService = LayoutLocalServiceFactory.getService(); ...
typeSettings);
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 { LayoutLocalService layoutLocalService = LayoutLocalServiceFactory.getService(); ...
java.lang.String companyId, java.lang.String name, java.lang.String className, java.lang.String classPK)
java.lang.String userId, java.lang.String companyId, java.lang.String name)
public static com.liferay.portal.model.Role addRole( java.lang.String companyId, java.lang.String name, java.lang.String className, java.lang.String classPK) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException { try { RoleLocalService roleLocalService = RoleLocalServiceFactory.getSer...
return roleLocalService.addRole(companyId, name, className, classPK);
return roleLocalService.addRole(userId, companyId, name);
public static com.liferay.portal.model.Role addRole( java.lang.String companyId, java.lang.String name, java.lang.String className, java.lang.String classPK) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException { try { RoleLocalService roleLocalService = RoleLocalServiceFactory.getSer...
String topicId = ParamUtil.getString(req, "topicId");
protected void deleteMessage(ActionRequest req) throws Exception { String groupId = PortalUtil.getPortletGroupId(req); String className = ParamUtil.getString(req, "className"); String classPK = ParamUtil.getString(req, "classPK"); String topicId = ParamUtil.getString(req, "topicId"); String messageId = ParamUtil....
groupId, className, classPK, topicId, messageId);
groupId, className, classPK, messageId);
protected void deleteMessage(ActionRequest req) throws Exception { String groupId = PortalUtil.getPortletGroupId(req); String className = ParamUtil.getString(req, "className"); String classPK = ParamUtil.getString(req, "classPK"); String topicId = ParamUtil.getString(req, "topicId"); String messageId = ParamUtil....
String topicId = ParamUtil.getString(req, "topicId");
protected void updateMessage(ActionRequest req) throws Exception { String groupId = PortalUtil.getPortletGroupId(req); String className = ParamUtil.getString(req, "className"); String classPK = ParamUtil.getString(req, "classPK"); String topicId = ParamUtil.getString(req, "topicId"); String messageId = ParamUtil....
groupId, className, classPK, topicId, messageId, subject, body);
groupId, className, classPK, messageId, subject, body);
protected void updateMessage(ActionRequest req) throws Exception { String groupId = PortalUtil.getPortletGroupId(req); String className = ParamUtil.getString(req, "className"); String classPK = ParamUtil.getString(req, "classPK"); String topicId = ParamUtil.getString(req, "topicId"); String messageId = ParamUtil....
java.lang.String topicId, java.lang.String messageId)
java.lang.String messageId)
public static 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 { try { MBMessageService mbMessageService = MBMessageSe...
classPK, topicId, messageId);
classPK, messageId);
public static 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 { try { MBMessageService mbMessageService = MBMessageSe...
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 static 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,...
classPK, topicId, messageId, subject, body);
classPK, messageId, subject, body);
public static 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,...
public void addFolderResources( com.liferay.portlet.imagegallery.model.IGFolder folder,
public void addFolderResources(java.lang.String folderId,
public void addFolderResources( com.liferay.portlet.imagegallery.model.IGFolder folder, boolean addCommunityPermissions, boolean addGuestPermissions) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException;
public void deleteFolder( com.liferay.portlet.imagegallery.model.IGFolder folder)
public void deleteFolder(java.lang.String folderId)
public void deleteFolder( com.liferay.portlet.imagegallery.model.IGFolder folder) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException;
setModified(true);
public void setPath(String path) { if (((path == null) && (_path != null)) || ((path != null) && (_path == null)) || ((path != null) && (_path != null) && !path.equals(_path))) { if (!XSS_ALLOW_PATH) { path = XSSUtil.strip(path); } _path = path; setModified(true); } }
setModified(true);
public void setPathDate(Date pathDate) { if (((pathDate == null) && (_pathDate != null)) || ((pathDate != null) && (_pathDate == null)) || ((pathDate != null) && (_pathDate != null) && !pathDate.equals(_pathDate))) { _pathDate = pathDate; setModified(true); } }
setModified(true);
public void setUserTrackerId(String userTrackerId) { if (((userTrackerId == null) && (_userTrackerId != null)) || ((userTrackerId != null) && (_userTrackerId == null)) || ((userTrackerId != null) && (_userTrackerId != null) && !userTrackerId.equals(_userTrackerId))) { if (!XSS_ALLOW_USERTRACKERID) { use...
setModified(true);
public void setUserTrackerPathId(String userTrackerPathId) { if (((userTrackerPathId == null) && (_userTrackerPathId != null)) || ((userTrackerPathId != null) && (_userTrackerPathId == null)) || ((userTrackerPathId != null) && (_userTrackerPathId != null) && !userTrackerPathId.equals(_userTrackerPathId))) { ...
String jbossPrefix = ParamUtil.getString(req, "jbossPrefix");
protected void autoDeploy(ActionRequest req) throws Exception { String deployDir = ParamUtil.getString(req, "deployDir"); String destDir = ParamUtil.getString(req, "destDir"); long interval = ParamUtil.getLong(req, "interval"); boolean unpackWar = ParamUtil.getBoolean(req, "unpackWar"); String jbossPrefix = Param...
if (Validator.isNotNull(jbossPrefix)) { prefs.setValue(PropsUtil.AUTO_DEPLOY_JBOSS_PREFIX, jbossPrefix); }
protected void autoDeploy(ActionRequest req) throws Exception { String deployDir = ParamUtil.getString(req, "deployDir"); String destDir = ParamUtil.getString(req, "destDir"); long interval = ParamUtil.getLong(req, "interval"); boolean unpackWar = ParamUtil.getBoolean(req, "unpackWar"); String jbossPrefix = Param...
e instanceof CaptchaException ||
e instanceof CaptchaTextException ||
public void processAction( ActionMapping mapping, ActionForm form, PortletConfig config, ActionRequest req, ActionResponse res) throws Exception { try { addUser(req, res); } catch (Exception e) { if (e != null && e instanceof CaptchaException || e instanceof ContactFirstNameException || e instance...
public String getAuthType() { return GetterUtil.getString( CompanyPropsUtil.get( getCompanyId(), PropsUtil.COMPANY_SECURITY_AUTH_TYPE), AUTH_TYPE_EA);
public String getAuthType() throws PortalException, SystemException { return PrefsPropsUtil.getString( getCompanyId(), PropsUtil.COMPANY_SECURITY_AUTH_TYPE);
public String getAuthType() { return GetterUtil.getString( CompanyPropsUtil.get( getCompanyId(), PropsUtil.COMPANY_SECURITY_AUTH_TYPE), AUTH_TYPE_EA); }
public boolean isStrangers() { return GetterUtil.getBoolean( CompanyPropsUtil.get( getCompanyId(), PropsUtil.COMPANY_SECURITY_STRANGERS));
public boolean isStrangers() throws PortalException, SystemException { return PrefsPropsUtil.getBoolean( getCompanyId(), PropsUtil.COMPANY_SECURITY_STRANGERS);
public boolean isStrangers() { return GetterUtil.getBoolean( CompanyPropsUtil.get( getCompanyId(), PropsUtil.COMPANY_SECURITY_STRANGERS)); }
public static void deleteMessage( String companyId, String topicId, String messageId)
public static void deleteMessage(String companyId, String messageId)
public static void deleteMessage( String companyId, String topicId, String messageId) throws IOException { synchronized (IndexWriter.class) { IndexReader reader = LuceneUtil.getReader(companyId); reader.deleteDocuments( new Term( LuceneFields.UID, LuceneFields.getUID(PORTLET_ID, topicId, messageId))...
LuceneFields.getUID(PORTLET_ID, topicId, messageId)));
LuceneFields.getUID(PORTLET_ID, messageId)));
public static void deleteMessage( String companyId, String topicId, String messageId) throws IOException { synchronized (IndexWriter.class) { IndexReader reader = LuceneUtil.getReader(companyId); reader.deleteDocuments( new Term( LuceneFields.UID, LuceneFields.getUID(PORTLET_ID, topicId, messageId))...
String topicId = doc.get("topicId");
public DocumentSummary getDocumentSummary( Document doc, PortletURL portletURL) { // Title String title = doc.get(LuceneFields.TITLE); // Content String content = doc.get(LuceneFields.CONTENT); content = StringUtil.shorten(content, 200); // URL String messageId = doc.get("messageId"); String topicId = doc.get...
portletURL.setParameter("topicId", topicId);
public DocumentSummary getDocumentSummary( Document doc, PortletURL portletURL) { // Title String title = doc.get(LuceneFields.TITLE); // Content String content = doc.get(LuceneFields.CONTENT); content = StringUtil.shorten(content, 200); // URL String messageId = doc.get("messageId"); String topicId = doc.get...
String companyId, String groupId, String categoryId, String topicId,
String companyId, String groupId, String categoryId,
public static void updateMessage( String companyId, String groupId, String categoryId, String topicId, String threadId, String messageId, String title, String content) throws IOException { try { deleteMessage(companyId, topicId, messageId); } catch (IOException ioe) { } addMessage( companyId, groupId, ca...
deleteMessage(companyId, topicId, messageId);
deleteMessage(companyId, messageId);
public static void updateMessage( String companyId, String groupId, String categoryId, String topicId, String threadId, String messageId, String title, String content) throws IOException { try { deleteMessage(companyId, topicId, messageId); } catch (IOException ioe) { } addMessage( companyId, groupId, ca...
companyId, groupId, categoryId, topicId, threadId, messageId, title,
companyId, groupId, categoryId, threadId, messageId, title,
public static void updateMessage( String companyId, String groupId, String categoryId, String topicId, String threadId, String messageId, String title, String content) throws IOException { try { deleteMessage(companyId, topicId, messageId); } catch (IOException ioe) { } addMessage( companyId, groupId, ca...
public Group addGroup( String className, String classPK, String name, String friendlyURL)
public Group addGroup(String name, String friendlyURL)
public Group addGroup( String className, String classPK, String name, String friendlyURL) throws PortalException, SystemException { return GroupLocalServiceUtil.addGroup( getUser().getCompanyId(), className, classPK, name, friendlyURL); }
getUser().getCompanyId(), className, classPK, name, friendlyURL);
getUserId(), null, null, name, friendlyURL);
public Group addGroup( String className, String classPK, String name, String friendlyURL) throws PortalException, SystemException { return GroupLocalServiceUtil.addGroup( getUser().getCompanyId(), className, classPK, name, friendlyURL); }
setModified(true);
public void setContactId(String contactId) { if (((contactId == null) && (_contactId != null)) || ((contactId != null) && (_contactId == null)) || ((contactId != null) && (_contactId != null) && !contactId.equals(_contactId))) { if (!XSS_ALLOW_CONTACTID) { contactId = XSSUtil.strip(contactId); } _co...
setModified(true);
public void setLanguageId(String languageId) { if (((languageId == null) && (_languageId != null)) || ((languageId != null) && (_languageId == null)) || ((languageId != null) && (_languageId != null) && !languageId.equals(_languageId))) { if (!XSS_ALLOW_LANGUAGEID) { languageId = XSSUtil.strip(languageI...
setModified(true);
public void setResolution(String resolution) { if (((resolution == null) && (_resolution != null)) || ((resolution != null) && (_resolution == null)) || ((resolution != null) && (_resolution != null) && !resolution.equals(_resolution))) { if (!XSS_ALLOW_RESOLUTION) { resolution = XSSUtil.strip(resolutio...
setModified(true);
public void setTimeZoneId(String timeZoneId) { if (((timeZoneId == null) && (_timeZoneId != null)) || ((timeZoneId != null) && (_timeZoneId == null)) || ((timeZoneId != null) && (_timeZoneId != null) && !timeZoneId.equals(_timeZoneId))) { if (!XSS_ALLOW_TIMEZONEID) { timeZoneId = XSSUtil.strip(timeZoneI...
throws NoSuchContactException, com.liferay.portlet.addressbook.NoSuchListException, SystemException {
throws SystemException {
public boolean containsABList(String pk, String abListPK) throws NoSuchContactException, com.liferay.portlet.addressbook.NoSuchListException, SystemException { Session session = null; try { session = openSession(); ABContactHBM abContactHBM = (ABContactHBM)session.get(ABContactHBM.class, pk); if (ab...
ABContactHBM abContactHBM = (ABContactHBM)session.get(ABContactHBM.class, pk);
SQLQuery q = session.createSQLQuery(SQL_CONTAINSABLIST); q.addScalar(HibernateUtil.getCountColumnName(), Hibernate.INTEGER);
public boolean containsABList(String pk, String abListPK) throws NoSuchContactException, com.liferay.portlet.addressbook.NoSuchListException, SystemException { Session session = null; try { session = openSession(); ABContactHBM abContactHBM = (ABContactHBM)session.get(ABContactHBM.class, pk); if (ab...
if (abContactHBM == null) { _log.warn("No ABContact exists with the primary key " + pk.toString()); throw new NoSuchContactException( "No ABContact exists with the primary key " + pk.toString());
QueryPos qPos = QueryPos.getInstance(q); qPos.add(pk); qPos.add(abListPK); Iterator itr = q.list().iterator(); if (itr.hasNext()) { Integer count = (Integer)itr.next(); if ((count != null) && (count.intValue() > 0)) { return true; }
public boolean containsABList(String pk, String abListPK) throws NoSuchContactException, com.liferay.portlet.addressbook.NoSuchListException, SystemException { Session session = null; try { session = openSession(); ABContactHBM abContactHBM = (ABContactHBM)session.get(ABContactHBM.class, pk); if (ab...
com.liferay.portlet.addressbook.service.persistence.ABListHBM abListHBM = null; abListHBM = (com.liferay.portlet.addressbook.service.persistence.ABListHBM)session.get(com.liferay.portlet.addressbook.service.persistence.ABListHBM.class, abListPK); if (abListHBM == null) { _log.warn("No ABList exists with the primary ke...
return false;
public boolean containsABList(String pk, String abListPK) throws NoSuchContactException, com.liferay.portlet.addressbook.NoSuchListException, SystemException { Session session = null; try { session = openSession(); ABContactHBM abContactHBM = (ABContactHBM)session.get(ABContactHBM.class, pk); if (ab...
return new com.liferay.portlet.addressbook.model.ABContact(contactId);
ABContactHBM abContactHBM = new ABContactHBM(); abContactHBM.setNew(true); abContactHBM.setPrimaryKey(contactId); return ABContactHBMUtil.model(abContactHBM);
public com.liferay.portlet.addressbook.model.ABContact create( String contactId) { return new com.liferay.portlet.addressbook.model.ABContact(contactId); }
com.liferay.portlet.addressbook.model.ABContact abContact = ABContactPool.get(contactId);
public com.liferay.portlet.addressbook.model.ABContact findByPrimaryKey( String contactId) throws NoSuchContactException, SystemException { com.liferay.portlet.addressbook.model.ABContact abContact = ABContactPool.get(contactId); Session session = null; try { if (abContact == null) { session = openSession(); ...
if (abContact == null) { session = openSession();
session = openSession();
public com.liferay.portlet.addressbook.model.ABContact findByPrimaryKey( String contactId) throws NoSuchContactException, SystemException { com.liferay.portlet.addressbook.model.ABContact abContact = ABContactPool.get(contactId); Session session = null; try { if (abContact == null) { session = openSession(); ...
if (abContactHBM == null) { _log.warn("No ABContact exists with the primary key " + contactId.toString()); throw new NoSuchContactException( "No ABContact exists with the primary key " + contactId.toString()); } abContact = ABContactHBMUtil.model(abContactHBM, false);
if (abContactHBM == null) { _log.warn("No ABContact exists with the primary key " + contactId.toString()); throw new NoSuchContactException( "No ABContact exists with the primary key " + contactId.toString());
public com.liferay.portlet.addressbook.model.ABContact findByPrimaryKey( String contactId) throws NoSuchContactException, SystemException { com.liferay.portlet.addressbook.model.ABContact abContact = ABContactPool.get(contactId); Session session = null; try { if (abContact == null) { session = openSession(); ...
return abContact;
return ABContactHBMUtil.model(abContactHBM);
public com.liferay.portlet.addressbook.model.ABContact findByPrimaryKey( String contactId) throws NoSuchContactException, SystemException { com.liferay.portlet.addressbook.model.ABContact abContact = ABContactPool.get(contactId); Session session = null; try { if (abContact == null) { session = openSession(); ...
com.liferay.portlet.addressbook.model.ABContact abContact = ABContactHBMUtil.model(abContactHBM);
public com.liferay.portlet.addressbook.model.ABContact remove( String contactId) throws NoSuchContactException, SystemException { Session session = null; try { session = openSession(); ABContactHBM abContactHBM = (ABContactHBM)session.get(ABContactHBM.class, contactId); if (abContactHBM == null) { _log...
ABContactPool.remove(contactId);
public com.liferay.portlet.addressbook.model.ABContact remove( String contactId) throws NoSuchContactException, SystemException { Session session = null; try { session = openSession(); ABContactHBM abContactHBM = (ABContactHBM)session.get(ABContactHBM.class, contactId); if (abContactHBM == null) { _log...
return abContact;
return ABContactHBMUtil.model(abContactHBM);
public com.liferay.portlet.addressbook.model.ABContact remove( String contactId) throws NoSuchContactException, SystemException { Session session = null; try { session = openSession(); ABContactHBM abContactHBM = (ABContactHBM)session.get(ABContactHBM.class, contactId); if (abContactHBM == null) { _log...
ABContactPool.remove((String)abContactHBM.getPrimaryKey());
public void removeByUserId(String userId) throws SystemException { Session session = null; try { session = openSession(); StringBuffer query = new StringBuffer(); query.append( "FROM ABContact IN CLASS com.liferay.portlet.addressbook.service.persistence.ABContactHBM WHERE "); query.append("userId = ?"); ...
ABContactHBM abContactHBM = new ABContactHBM(abContact.getContactId(), abContact.getUserId(), abContact.getFirstName(), abContact.getMiddleName(), abContact.getLastName(), abContact.getNickName(), abContact.getEmailAddress(), abContact.getHomeStreet(), abContact.getHomeCity(), abContact.getHomeState(), abContact.getHom...
ABContactHBM abContactHBM = new ABContactHBM(); abContactHBM.setContactId(abContact.getContactId()); abContactHBM.setUserId(abContact.getUserId()); abContactHBM.setFirstName(abContact.getFirstName()); abContactHBM.setMiddleName(abContact.getMiddleName()); abContactHBM.setLastName(abContact.getLastName()); abContactHBM....
public com.liferay.portlet.addressbook.model.ABContact update( com.liferay.portlet.addressbook.model.ABContact abContact) throws SystemException { Session session = null; try { if (abContact.isNew() || abContact.isModified()) { session = openSession(); if (abContact.isNew()) { ABContactHBM abContactHBM...
abContactHBM = new ABContactHBM(abContact.getContactId(), abContact.getUserId(), abContact.getFirstName(), abContact.getMiddleName(), abContact.getLastName(), abContact.getNickName(), abContact.getEmailAddress(), abContact.getHomeStreet(), abContact.getHomeCity(), abContact.getHomeState(), abContact.getHomeZip(), abCon...
abContactHBM = new ABContactHBM(); abContactHBM.setContactId(abContact.getContactId()); abContactHBM.setUserId(abContact.getUserId()); abContactHBM.setFirstName(abContact.getFirstName()); abContactHBM.setMiddleName(abContact.getMiddleName()); abContactHBM.setLastName(abContact.getLastName()); abContactHBM.setNickName(a...
public com.liferay.portlet.addressbook.model.ABContact update( com.liferay.portlet.addressbook.model.ABContact abContact) throws SystemException { Session session = null; try { if (abContact.isNew() || abContact.isModified()) { session = openSession(); if (abContact.isNew()) { ABContactHBM abContactHBM...
abContact.protect(); ABContactPool.update(abContact.getPrimaryKey(), abContact);
public com.liferay.portlet.addressbook.model.ABContact update( com.liferay.portlet.addressbook.model.ABContact abContact) throws SystemException { Session session = null; try { if (abContact.isNew() || abContact.isModified()) { session = openSession(); if (abContact.isNew()) { ABContactHBM abContactHBM...
return model(abContactHBM, true);
return (com.liferay.portlet.addressbook.model.ABContact)abContactHBM;
public static com.liferay.portlet.addressbook.model.ABContact model( ABContactHBM abContactHBM) { return model(abContactHBM, true); }
java.lang.String folderId, java.lang.String name, java.lang.String title, java.lang.String description)
java.lang.String folderId, java.lang.String newFolderId, java.lang.String name, java.lang.String sourceFileName, java.lang.String title, java.lang.String description, byte[] byteArray)
public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry( java.lang.String folderId, java.lang.String name, java.lang.String title, java.lang.String description) throws com.liferay.portal.PortalException, java.rmi.RemoteException, com.liferay.portal.SystemException { PrincipalSessionBean.set...
return getService().updateFileEntry(folderId, name, title, description);
return getService().updateFileEntry(folderId, newFolderId, name, sourceFileName, title, description, byteArray);
public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry( java.lang.String folderId, java.lang.String name, java.lang.String title, java.lang.String description) throws com.liferay.portal.PortalException, java.rmi.RemoteException, com.liferay.portal.SystemException { PrincipalSessionBean.set...
java.lang.String folderId, java.lang.String name, java.lang.String title, java.lang.String description)
java.lang.String folderId, java.lang.String newFolderId, java.lang.String name, java.lang.String sourceFileName, java.lang.String title, java.lang.String description, byte[] byteArray)
public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry( java.lang.String folderId, java.lang.String name, java.lang.String title, java.lang.String description) throws com.liferay.portal.PortalException, java.rmi.RemoteException, com.liferay.portal.SystemException;
public static Map getTokens(String companyId, String rootPath) {
public static Map getTokens(String companyId, String rootPath) throws PortalException, SystemException {
public static Map getTokens(String companyId, String rootPath) { Map tokens = CollectionFactory.getHashMap(); try { Company company = CompanyLocalServiceUtil.getCompany(companyId); String friendlyURLPrivatePath = rootPath + PropsUtil.get( PropsUtil.LAYOUT_FRIENDLY_URL_PRIVATE_SERVLET_MAPPING); String friend...
String portalCtx = CompanyPropsUtil.get(
String portalCtx = PrefsPropsUtil.getString(
public static Map getTokens(String companyId, String rootPath) { Map tokens = CollectionFactory.getHashMap(); try { Company company = CompanyLocalServiceUtil.getCompany(companyId); String friendlyURLPrivatePath = rootPath + PropsUtil.get( PropsUtil.LAYOUT_FRIENDLY_URL_PRIVATE_SERVLET_MAPPING); String friend...
public ArticleCreateDateComparator(boolean asc) { _asc = asc;
public ArticleCreateDateComparator() { this(false);
public ArticleCreateDateComparator(boolean asc) { _asc = asc; }
public ArticleModifiedDateComparator(boolean asc) { _asc = asc;
public ArticleModifiedDateComparator() { this(false);
public ArticleModifiedDateComparator(boolean asc) { _asc = asc; }
String variable = ParamUtil.getString(req, "variable");
String id = ParamUtil.getString(req, "id"); String callback = ParamUtil.getString(req, "callback");
protected String getContent(HttpServletRequest req, HttpServletResponse res) throws Exception { String variable = ParamUtil.getString(req, "variable"); JSONObject jsonObj = new JSONObject(); ServletContext ctx = getServletContext(); String script = StringUtil.read( ctx.getResourceAsStream("/click_image.js")); ...
return "var " + variable + "=" + jsonObj.toString() + ";\n";
return callback + "(" + jsonObj.toString() + ");";
protected String getContent(HttpServletRequest req, HttpServletResponse res) throws Exception { String variable = ParamUtil.getString(req, "variable"); JSONObject jsonObj = new JSONObject(); ServletContext ctx = getServletContext(); String script = StringUtil.read( ctx.getResourceAsStream("/click_image.js")); ...
public void init(ServletConfig sc) throws ServletException {
public void init(ServletConfig config) throws ServletException {
public void init(ServletConfig sc) throws ServletException { synchronized (CaptchaServlet.class) { super.init(sc); try { WordList wordList = new WordList(Locale.getDefault()); Iterator itr = WordsUtil.getDictionary().iterator(); while (itr.hasNext()) { wordList.addWord((String)itr.next()); } Wo...
super.init(sc);
super.init(config);
public void init(ServletConfig sc) throws ServletException { synchronized (CaptchaServlet.class) { super.init(sc); try { WordList wordList = new WordList(Locale.getDefault()); Iterator itr = WordsUtil.getDictionary().iterator(); while (itr.hasNext()) { wordList.addWord((String)itr.next()); } Wo...
setModified(true);
public void setFlag(String flag) { if (((flag == null) && (_flag != null)) || ((flag != null) && (_flag == null)) || ((flag != null) && (_flag != null) && !flag.equals(_flag))) { if (!XSS_ALLOW_FLAG) { flag = XSSUtil.strip(flag); } _flag = flag; setModified(true); } }
setModified(true);
public void setMessageId(String messageId) { if (((messageId == null) && (_messageId != null)) || ((messageId != null) && (_messageId == null)) || ((messageId != null) && (_messageId != null) && !messageId.equals(_messageId))) { if (!XSS_ALLOW_MESSAGEID) { messageId = XSSUtil.strip(messageId); } _me...
setModified(true);
public void setArticleId(String articleId) { if (((articleId == null) && (_articleId != null)) || ((articleId != null) && (_articleId == null)) || ((articleId != null) && (_articleId != null) && !articleId.equals(_articleId))) { if (!XSS_ALLOW_ARTICLEID) { articleId = XSSUtil.strip(articleId); } _ar...
setModified(true);
public void setLayoutId(String layoutId) { if (((layoutId == null) && (_layoutId != null)) || ((layoutId != null) && (_layoutId == null)) || ((layoutId != null) && (_layoutId != null) && !layoutId.equals(_layoutId))) { if (!XSS_ALLOW_LAYOUTID) { layoutId = XSSUtil.strip(layoutId); } _layoutId = layo...
setModified(true);
public void setOwnerId(String ownerId) { if (((ownerId == null) && (_ownerId != null)) || ((ownerId != null) && (_ownerId == null)) || ((ownerId != null) && (_ownerId != null) && !ownerId.equals(_ownerId))) { if (!XSS_ALLOW_OWNERID) { ownerId = XSSUtil.strip(ownerId); } _ownerId = ownerId; setModi...
setModified(true);
public void setPortletId(String portletId) { if (((portletId == null) && (_portletId != null)) || ((portletId != null) && (_portletId == null)) || ((portletId != null) && (_portletId != null) && !portletId.equals(_portletId))) { if (!XSS_ALLOW_PORTLETID) { portletId = XSSUtil.strip(portletId); } _po...
_log.warn(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...
clearGroups.clear(permissionId); clearRoles.clear(permissionId); clearUsers.clear(permissionId);
public Permission remove(String permissionId) throws NoSuchPermissionException, SystemException { Session session = null; try { session = openSession(); Permission permission = (Permission)session.get(Permission.class, permissionId); if (permission == null) { _log.warn("No Permission exists with the pr...
if (blogsCategory.isNew() || blogsCategory.isModified()) { session = openSession(); if (blogsCategory.isNew()) { BlogsCategory blogsCategoryModel = new BlogsCategory(); blogsCategoryModel.setCategoryId(blogsCategory.getCategoryId()); blogsCategoryModel.setCompanyId(blogsCategory.getCompanyId()); blogsCategoryModel.set...
session = openSession(); session.saveOrUpdate(blogsCategory); session.flush(); blogsCategory.setNew(false);
public com.liferay.portlet.blogs.model.BlogsCategory update( com.liferay.portlet.blogs.model.BlogsCategory blogsCategory) throws SystemException { Session session = null; try { if (blogsCategory.isNew() || blogsCategory.isModified()) { session = openSession(); if (blogsCategory.isNew()) { BlogsCategory...
folders[i].getNewMessageCount(), folders[i].getName(), folders[i].getMessageCount());
folders[i].getMessageCount(), folders[i].getName(), folders[i].getNewMessageCount());
private static void _getFolders(List list, Folder[] folders) throws MessagingException { for (int i = 0; i < folders.length; i++) { if ((folders[i].getType() & IMAPFolder.HOLDS_MESSAGES) != 0) { MailFolder mf = new MailFolder( folders[i].getNewMessageCount(), folders[i].getName(), folders[i].getMessag...
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_CYRUS_HOME); File file = new File(home + "/" + userId + ".procmail.forward"); if (emailAddresses.size() > 0) { StringBuffer sb = new StringBuffer(); sb.ap...
e.printStackTrace();
_log.error(StackTraceUtil.getStackTrace(e));
public void addUser( String userId, String password, String firstName, String middleName, String lastName, String emailAddress) { try { // User CyrusUser user = new CyrusUser(userId, password); CyrusUserUtil.update(user); // Virtual CyrusVirtual virtual = new CyrusVirtual(emailAddress, userId); CyrusVir...
catch (IOException ioe) { ioe.printStackTrace();
catch (Exception e) { _log.error(StackTraceUtil.getStackTrace(e));
public void addVacationMessage( String userId, String emailAddress, String vacationMessage) { try { String home = PropsUtil.get(PropsUtil.MAIL_HOOK_CYRUS_HOME); // Remove vacation cache new File(home + "/" + userId + ".vacation.cache").delete(); // Update vacation message File vacation = new File(home + "/...
e.printStackTrace();
_log.error(StackTraceUtil.getStackTrace(e));
public void deleteEmailAddress(String userId) { try { CyrusVirtualUtil.removeByUserId(userId); } catch (Exception e) { e.printStackTrace(); } }
e.printStackTrace();
_log.error(StackTraceUtil.getStackTrace(e));
public void deleteUser(String userId) { try { // User try { CyrusUserUtil.remove(userId); } catch (NoSuchCyrusUserException nscue) { } // Virtual CyrusVirtualUtil.removeByUserId(userId); // Expect String deleteUserCmd = PropsUtil.get(PropsUtil.MAIL_HOOK_CYRUS_DELETE_USER); deleteUserCmd = St...
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_CYRUS_HOME); File file = new File(home + "/" + userId + ".procmail.blocked"); if ((blocked == null) || (blocked.size() == 0)) { file.delete(); return; } StringBuffer sb = new StringBuffer(); for (int i = ...
e.printStackTrace();
_log.error(StackTraceUtil.getStackTrace(e));
public void updateEmailAddress(String userId, String emailAddress) { try { CyrusVirtualUtil.removeByUserId(userId); CyrusVirtual virtual = new CyrusVirtual(emailAddress, userId); CyrusVirtualUtil.update(virtual); } catch (Exception e) { e.printStackTrace(); } }
e.printStackTrace();
_log.error(StackTraceUtil.getStackTrace(e));
public void updatePassword(String userId, String password) { CyrusUser user = null; try { user = CyrusUserUtil.findByPrimaryKey(userId); } catch (NoSuchCyrusUserException nscue) { user = new CyrusUser(userId, password); } catch (Exception e) { e.printStackTrace(); } try { user.setPassword(password); ...
String structureId = ParamUtil.getString(req, "structureId");
protected void deleteStructures(ActionRequest req) throws Exception { String companyId = PortalUtil.getCompanyId(req); String structureId = ParamUtil.getString(req, "structureId"); if (Validator.isNotNull(structureId)) { JournalStructureServiceUtil.deleteStructure(companyId, structureId); JournalUtil.removeRece...
if (Validator.isNotNull(structureId)) { JournalStructureServiceUtil.deleteStructure(companyId, structureId);
String[] deleteStructureIds = StringUtil.split( ParamUtil.getString(req, "deleteStructureIds"));
protected void deleteStructures(ActionRequest req) throws Exception { String companyId = PortalUtil.getCompanyId(req); String structureId = ParamUtil.getString(req, "structureId"); if (Validator.isNotNull(structureId)) { JournalStructureServiceUtil.deleteStructure(companyId, structureId); JournalUtil.removeRece...
JournalUtil.removeRecentStructure(req, structureId); } else { String[] deleteStructureIds = StringUtil.split( ParamUtil.getString(req, "deleteStructureIds"));
for (int i = 0; i < deleteStructureIds.length; i++) { JournalStructureServiceUtil.deleteStructure( companyId, deleteStructureIds[i]);
protected void deleteStructures(ActionRequest req) throws Exception { String companyId = PortalUtil.getCompanyId(req); String structureId = ParamUtil.getString(req, "structureId"); if (Validator.isNotNull(structureId)) { JournalStructureServiceUtil.deleteStructure(companyId, structureId); JournalUtil.removeRece...
for (int i = 0; i < deleteStructureIds.length; i++) { JournalStructureServiceUtil.deleteStructure( companyId, deleteStructureIds[i]); JournalUtil.removeRecentStructure(req, deleteStructureIds[i]); }
JournalUtil.removeRecentStructure(req, deleteStructureIds[i]);
protected void deleteStructures(ActionRequest req) throws Exception { String companyId = PortalUtil.getCompanyId(req); String structureId = ParamUtil.getString(req, "structureId"); if (Validator.isNotNull(structureId)) { JournalStructureServiceUtil.deleteStructure(companyId, structureId); JournalUtil.removeRece...
sql, "structureId = ? [$AND_OR_NULL_CHECK$]", "structureId != ? AND structureId IS NOT NULL");
sql, "structureId = ? [$AND_OR_NULL_CHECK$]", replaceWith);
public static int countByC_T_G_S_N_D( String companyId, String templateId, String groupId, String structureId, String structureIdComparator, String name, String description, boolean andOperator) throws SystemException { templateId = StringUtil.upperCase(templateId); name = StringUtil.lowerCase(name); descrip...
qPos.add(structureId);
if (structureIdComparator.equals(StringPool.NOT_EQUAL)) { if (customSqlVendorOracle) { } else { qPos.add(structureId); } } else { qPos.add(structureId); }
public static int countByC_T_G_S_N_D( String companyId, String templateId, String groupId, String structureId, String structureIdComparator, String name, String description, boolean andOperator) throws SystemException { templateId = StringUtil.upperCase(templateId); name = StringUtil.lowerCase(name); descrip...
sql, "structureId = ? [$AND_OR_NULL_CHECK$]", "structureId != ? AND structureId IS NOT NULL");
sql, "structureId = ? [$AND_OR_NULL_CHECK$]", replaceWith);
public static List findByC_T_G_S_N_D( String companyId, String templateId, String groupId, String structureId, String structureIdComparator, String name, String description, boolean andOperator, int begin, int end, OrderByComparator obc) throws SystemException { templateId = StringUtil.upperCase(templateId);...
qPos.add(structureId);
if (structureIdComparator.equals(StringPool.NOT_EQUAL)) { if (customSqlVendorOracle) { } else { qPos.add(structureId); } } else { qPos.add(structureId); }
public static List findByC_T_G_S_N_D( String companyId, String templateId, String groupId, String structureId, String structureIdComparator, String name, String description, boolean andOperator, int begin, int end, OrderByComparator obc) throws SystemException { templateId = StringUtil.upperCase(templateId);...
String templateId = ParamUtil.getString(req, "templateId");
protected void deleteTemplates(ActionRequest req) throws Exception { String companyId = PortalUtil.getCompanyId(req); String templateId = ParamUtil.getString(req, "templateId"); if (Validator.isNotNull(templateId)) { JournalTemplateServiceUtil.deleteTemplate(companyId, templateId); JournalUtil.removeRecentTempl...
if (Validator.isNotNull(templateId)) { JournalTemplateServiceUtil.deleteTemplate(companyId, templateId);
String[] deleteTemplateIds = StringUtil.split( ParamUtil.getString(req, "deleteTemplateIds"));
protected void deleteTemplates(ActionRequest req) throws Exception { String companyId = PortalUtil.getCompanyId(req); String templateId = ParamUtil.getString(req, "templateId"); if (Validator.isNotNull(templateId)) { JournalTemplateServiceUtil.deleteTemplate(companyId, templateId); JournalUtil.removeRecentTempl...
JournalUtil.removeRecentTemplate(req, templateId); } else { String[] deleteTemplateIds = StringUtil.split( ParamUtil.getString(req, "deleteTemplateIds"));
for (int i = 0; i < deleteTemplateIds.length; i++) { JournalTemplateServiceUtil.deleteTemplate( companyId, deleteTemplateIds[i]);
protected void deleteTemplates(ActionRequest req) throws Exception { String companyId = PortalUtil.getCompanyId(req); String templateId = ParamUtil.getString(req, "templateId"); if (Validator.isNotNull(templateId)) { JournalTemplateServiceUtil.deleteTemplate(companyId, templateId); JournalUtil.removeRecentTempl...
for (int i = 0; i < deleteTemplateIds.length; i++) { JournalTemplateServiceUtil.deleteTemplate( companyId, deleteTemplateIds[i]); JournalUtil.removeRecentTemplate(req, deleteTemplateIds[i]); }
JournalUtil.removeRecentTemplate(req, deleteTemplateIds[i]);
protected void deleteTemplates(ActionRequest req) throws Exception { String companyId = PortalUtil.getCompanyId(req); String templateId = ParamUtil.getString(req, "templateId"); if (Validator.isNotNull(templateId)) { JournalTemplateServiceUtil.deleteTemplate(companyId, templateId); JournalUtil.removeRecentTempl...
apply( null, '\0', 0, fOffset );
apply( document, '\0', fOffset );
public void apply( final IDocument document ) { apply( null, '\0', 0, fOffset ); }
return fileText.getText();
final String fileName = fileText.getText(); if( isBlank( fileName ) ) return fileName; if( fileName.endsWith( FILE_EXTENSION ) ) return fileName; if( fileName.indexOf( "." ) != -1 && !fileName.endsWith( FILE_EXTENSION ) ) return substringBeforeLast( fileName, "." ) + FILE_EXTENSION; return fileName + FILE_EXTENSION;
public String getFileName() { return fileText.getText(); }