This repository has been archived by the owner on Jan 3, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 574
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check smtp setting for the community edition
- Loading branch information
hainguyen
committed
Apr 11, 2015
1 parent
80aeda1
commit 6ab1457
Showing
28 changed files
with
217 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -112,4 +112,3 @@ public static String getString(String key, String defaultValue) { | |
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,6 @@ | |
* | ||
*/ | ||
public class ViewManager { | ||
|
||
protected static Set<Class<?>> viewClasses; | ||
|
||
static { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,5 +57,4 @@ public String getCandidateTextFieldName() { | |
public void refreshSectionLayout(DynaSection section) { | ||
|
||
} | ||
|
||
} |
48 changes: 48 additions & 0 deletions
48
.../java/com/esofthead/mycollab/common/ui/components/notification/SmtpSetupNotification.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/** | ||
* This file is part of mycollab-web. | ||
* | ||
* mycollab-web is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* mycollab-web is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with mycollab-web. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
package com.esofthead.mycollab.common.ui.components.notification; | ||
|
||
import com.esofthead.mycollab.common.ui.components.AbstractNotification; | ||
import com.esofthead.mycollab.shell.view.SmtpConfigurationWindow; | ||
import com.vaadin.ui.*; | ||
import org.vaadin.maddon.layouts.MHorizontalLayout; | ||
|
||
/** | ||
* @author MyCollab Ltd | ||
* @since 5.0.4 | ||
*/ | ||
public class SmtpSetupNotification extends AbstractNotification { | ||
|
||
public SmtpSetupNotification() { | ||
super(AbstractNotification.WARNING); | ||
} | ||
|
||
@Override | ||
public Component renderContent() { | ||
MHorizontalLayout layout = new MHorizontalLayout(); | ||
layout.setDefaultComponentAlignment(Alignment.MIDDLE_LEFT); | ||
Button smtpBtn = new Button("Setup", new Button.ClickListener() { | ||
@Override | ||
public void buttonClick(Button.ClickEvent clickEvent) { | ||
UI.getCurrent().addWindow(new SmtpConfigurationWindow()); | ||
} | ||
}); | ||
smtpBtn.setStyleName("link"); | ||
layout.with(new Label("You did not set up a SMTP account yet."), smtpBtn); | ||
return layout; | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
...c/main/java/com/esofthead/mycollab/module/project/ui/components/TransparentContainer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/** | ||
* This file is part of mycollab-web. | ||
* | ||
* mycollab-web is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* mycollab-web is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with mycollab-web. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
package com.esofthead.mycollab.module.project.ui.components; | ||
|
||
import com.esofthead.mycollab.module.project.view.ProjectView; | ||
import com.esofthead.mycollab.vaadin.mvp.AbstractPageView; | ||
|
||
/** | ||
* @author MyCollab Ltd | ||
* @since 5.0.4 | ||
*/ | ||
public class TransparentContainer extends AbstractPageView { | ||
private ProjectView host; | ||
|
||
public ProjectView getHost() { | ||
return host; | ||
} | ||
|
||
public void setHost(ProjectView host) { | ||
this.host = host; | ||
} | ||
|
||
public TransparentContainer navigateToContainer(String viewId) { | ||
return (TransparentContainer) host.gotoSubView(viewId); | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...web/src/main/java/com/esofthead/mycollab/module/project/view/ProjectGenericPresenter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/** | ||
* This file is part of mycollab-web. | ||
* | ||
* mycollab-web is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* mycollab-web is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with mycollab-web. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
package com.esofthead.mycollab.module.project.view; | ||
|
||
import com.esofthead.mycollab.vaadin.mvp.PageView; | ||
import com.esofthead.mycollab.vaadin.ui.AbstractPresenter; | ||
|
||
/** | ||
* @author MyCollab Ltd | ||
* @since 5.0.4 | ||
*/ | ||
public abstract class ProjectGenericPresenter<V extends PageView> extends AbstractPresenter<V> { | ||
public ProjectGenericPresenter(Class<V> viewClass) { | ||
super(viewClass); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.