kune-commits
Threads by month
- ----- 2026 -----
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2008 -----
- December
- November
- October
- September
- August
- July
- June
- May
- 1587 discussions
Author: vjrj_
Date: 2010-12-18 18:00:55 +0100 (Sat, 18 Dec 2010)
New Revision: 1169
Added:
trunk/src/main/java/cc/kune/core/client/notify/Alert.java
trunk/src/main/java/cc/kune/core/client/notify/UserNotify.java
trunk/src/main/java/cc/kune/core/shared/domain/AccessRol.java
trunk/src/main/java/cc/kune/core/shared/domain/utils/
trunk/src/main/java/cc/kune/core/shared/domain/utils/AccessRights.java
trunk/src/main/java/cc/kune/core/shared/domain/utils/StateToken.java
Removed:
trunk/src/main/java/cc/kune/core/client/CoreEventBus.java
trunk/src/main/java/cc/kune/core/shared/dto/AccessRightsDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/StateToken.java
trunk/src/main/java/org/ourproject/kune/platf/server/access/AccessRights.java
trunk/src/main/java/org/ourproject/kune/platf/server/access/AccessRol.java
Modified:
trunk/
trunk/dev-utils/kune.cleanup.eclipse.preferences.xml
trunk/pom.xml
trunk/src/main/java/cc/kune/core/Core.gwt.xml
trunk/src/main/java/cc/kune/core/client/CoreGinModule.java
trunk/src/main/java/cc/kune/core/client/CoreGinjector.java
trunk/src/main/java/cc/kune/core/client/KuneEntryPoint.java
trunk/src/main/java/cc/kune/core/client/errors/ErrorHandler.java
trunk/src/main/java/cc/kune/core/client/i18n/I18nUITranslationService.java
trunk/src/main/java/cc/kune/core/client/notify/SpinerPresenter.java
trunk/src/main/java/cc/kune/core/client/notify/UserNotifierPresenter.java
trunk/src/main/java/cc/kune/core/client/rpcservices/ContentService.java
trunk/src/main/java/cc/kune/core/client/rpcservices/ContentServiceAsync.java
trunk/src/main/java/cc/kune/core/client/rpcservices/GroupService.java
trunk/src/main/java/cc/kune/core/client/rpcservices/GroupServiceAsync.java
trunk/src/main/java/cc/kune/core/client/rpcservices/SocialNetworkService.java
trunk/src/main/java/cc/kune/core/client/rpcservices/SocialNetworkServiceAsync.java
trunk/src/main/java/cc/kune/core/client/rpcservices/UserService.java
trunk/src/main/java/cc/kune/core/client/rpcservices/UserServiceAsync.java
trunk/src/main/java/cc/kune/core/client/state/AccessRightsClientManager.java
trunk/src/main/java/cc/kune/core/client/state/ContentProvider.java
trunk/src/main/java/cc/kune/core/client/state/ContentProviderDefault.java
trunk/src/main/java/cc/kune/core/client/state/Session.java
trunk/src/main/java/cc/kune/core/client/state/SessionDefault.java
trunk/src/main/java/cc/kune/core/client/state/StateManager.java
trunk/src/main/java/cc/kune/core/client/state/StateManagerDefault.java
trunk/src/main/java/cc/kune/core/client/ws/CorePresenter.java
trunk/src/main/java/cc/kune/core/shared/domain/GroupListMode.java
trunk/src/main/java/cc/kune/core/shared/dto/ContainerDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/ContainerSimpleDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/ContentSimpleDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/GroupDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/SocialNetworkDataDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/StateAbstractDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/StateContainerDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/StateContentDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/StateTokenUtils.java
trunk/src/main/java/cc/kune/core/shared/dto/UserSimpleDTO.java
trunk/src/main/java/cc/kune/domain/AccessLists.java
trunk/src/main/java/cc/kune/domain/Container.java
trunk/src/main/java/cc/kune/domain/Content.java
trunk/src/main/java/cc/kune/domain/Group.java
trunk/src/main/java/cc/kune/domain/GroupList.java
trunk/src/main/java/cc/kune/domain/User.java
trunk/src/main/java/cc/kune/domain/utils/HasStateToken.java
trunk/src/main/java/cc/kune/domain/utils/SocialNetworkData.java
trunk/src/main/java/org/ourproject/kune/blogs/client/cnt/BlogFolderContentPresenter.java
trunk/src/main/java/org/ourproject/kune/chat/client/ChatClientActions.java
trunk/src/main/java/org/ourproject/kune/chat/client/cnt/ChatRoomPresenter.java
trunk/src/main/java/org/ourproject/kune/docs/client/cnt/DocFolderContentPresenter.java
trunk/src/main/java/org/ourproject/kune/gallery/client/cnt/GalleryFolderContentPanel.java
trunk/src/main/java/org/ourproject/kune/gallery/client/cnt/GalleryFolderContentPresenter.java
trunk/src/main/java/org/ourproject/kune/gallery/client/cnt/GalleryFolderContentView.java
trunk/src/main/java/org/ourproject/kune/platf/client/actions/ActionRegistry.java
trunk/src/main/java/org/ourproject/kune/platf/client/ui/download/FileDownloadUtils.java
trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertmedia/abstractmedia/MediaUtils.java
trunk/src/main/java/org/ourproject/kune/platf/server/access/AccessRightsService.java
trunk/src/main/java/org/ourproject/kune/platf/server/access/AccessRightsServiceDefault.java
trunk/src/main/java/org/ourproject/kune/platf/server/access/AccessService.java
trunk/src/main/java/org/ourproject/kune/platf/server/access/AccessServiceDefault.java
trunk/src/main/java/org/ourproject/kune/platf/server/access/FinderService.java
trunk/src/main/java/org/ourproject/kune/platf/server/access/FinderServiceDefault.java
trunk/src/main/java/org/ourproject/kune/platf/server/auth/Authorizated.java
trunk/src/main/java/org/ourproject/kune/platf/server/auth/AuthorizatedMethodInterceptor.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/SocialNetworkManager.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/EntityLogoDownloadManager.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/EntityLogoUploadManager.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/FileDownloadManager.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/FileUploadManager.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/FileUploadManagerAbstract.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/FileUtils.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/SocialNetworkManagerDefault.java
trunk/src/main/java/org/ourproject/kune/platf/server/rpc/ContentRPC.java
trunk/src/main/java/org/ourproject/kune/platf/server/rpc/GroupRPC.java
trunk/src/main/java/org/ourproject/kune/platf/server/rpc/SocialNetworkRPC.java
trunk/src/main/java/org/ourproject/kune/platf/server/rpc/UserRPC.java
trunk/src/main/java/org/ourproject/kune/platf/server/state/StateAbstract.java
trunk/src/main/java/org/ourproject/kune/platf/server/state/StateContainer.java
trunk/src/main/java/org/ourproject/kune/platf/server/state/StateContent.java
trunk/src/main/java/org/ourproject/kune/wiki/client/cnt/WikiFolderContentPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/AbstractFoldableContentActions.java
trunk/src/main/java/org/ourproject/kune/workspace/client/WorkspaceModule.java
trunk/src/main/java/org/ourproject/kune/workspace/client/cnt/ActionContentToolbar.java
trunk/src/main/java/org/ourproject/kune/workspace/client/cnt/ActionContentToolbarPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/cnt/ContentActionRegistry.java
trunk/src/main/java/org/ourproject/kune/workspace/client/cnt/FoldableContentPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigator.java
trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigatorItem.java
trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigatorPanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigatorPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigatorView.java
trunk/src/main/java/org/ourproject/kune/workspace/client/cxt/ActionContextBottomToolbar.java
trunk/src/main/java/org/ourproject/kune/workspace/client/cxt/ActionContextTopToolbar.java
trunk/src/main/java/org/ourproject/kune/workspace/client/cxt/ContextActionRegistry.java
trunk/src/main/java/org/ourproject/kune/workspace/client/editor/insertlocalimg/InsertImageLocalPanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/editor/insertlocallink/InsertLinkLocalPanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/editor/insertlocalmedia/InsertMediaLocalPanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/editor/insertlocalmedia/InsertMediaLocalPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/entityheader/EntityHeaderPanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/entityheader/EntityHeaderView.java
trunk/src/main/java/org/ourproject/kune/workspace/client/licensewizard/LicenseChangeAction.java
trunk/src/main/java/org/ourproject/kune/workspace/client/newgroup/NewGroupPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/options/license/EntityOptionsDefLicensePresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/options/license/GroupOptionsDefLicensePresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/options/license/UserOptionsDefLicensePresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/options/pscape/EntityOptionsPublicSpaceConfPanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/options/pscape/EntityOptionsPublicSpaceConfPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/options/pscape/EntityOptionsPublicSpaceConfView.java
trunk/src/main/java/org/ourproject/kune/workspace/client/options/tools/EntityOptionsToolsConfPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/options/tools/GroupOptionsToolsConfPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/options/tools/UserOptionsToolsConfPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/search/EntityLiveSearcherPanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/sitepublic/SitePublicSpaceLinkPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/BuddiesSummaryPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/GroupActionRegistry.java
trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/GroupMembersSummaryPanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/GroupMembersSummaryPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/ParticipationSummaryPanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/ParticipationSummaryPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/RolAction.java
trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/RolComparator.java
trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/SocialNetworkPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/UnjoinAction.java
trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/toolbar/ActionGroupSummaryToolbar.java
trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/toolbar/ActionGroupSummaryToolbarPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/toolbar/ActionParticipationSummaryToolbarPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/toolbar/ActionParticipationToolbar.java
trunk/src/main/java/org/ourproject/kune/workspace/client/themes/WsBackManager.java
trunk/src/main/java/org/ourproject/kune/workspace/client/themes/WsBackManagerImpl.java
trunk/src/main/java/org/ourproject/kune/workspace/client/themes/WsThemeManager.java
trunk/src/main/java/org/ourproject/kune/workspace/client/title/EntityTitlePresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/title/RenameAction.java
trunk/src/main/java/org/ourproject/kune/workspace/client/tool/ToolSelectorItemPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/upload/FileUploader.java
trunk/src/main/java/org/ourproject/kune/workspace/client/upload/FileUploaderPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/wave/WaveInsert.java
trunk/src/main/java/org/ourproject/kune/workspace/client/wave/WaveInsertPresenter.java
trunk/src/main/resources/dozerBeanMapping.xml
trunk/src/test/java/cc/kune/core/client/state/StateManagerTest.java
trunk/src/test/java/cc/kune/core/client/state/StateTokenTest.java
trunk/src/test/java/org/ourproject/kune/platf/client/actions/ActionRegistryTest.java
trunk/src/test/java/org/ourproject/kune/platf/client/ui/dialogs/upload/FileUploaderPresenterTest.java
trunk/src/test/java/org/ourproject/kune/platf/integration/content/ContentServiceAddTest.java
trunk/src/test/java/org/ourproject/kune/platf/integration/content/ContentServiceGetTest.java
trunk/src/test/java/org/ourproject/kune/platf/integration/content/ContentServiceIntegrationTest.java
trunk/src/test/java/org/ourproject/kune/platf/integration/content/ContentServiceVariousTest.java
trunk/src/test/java/org/ourproject/kune/platf/integration/socialnet/SocialNetworkServiceTest.java
trunk/src/test/java/org/ourproject/kune/platf/server/access/AccessRightsServiceTest.java
trunk/src/test/java/org/ourproject/kune/platf/server/access/FinderTest.java
trunk/src/test/java/org/ourproject/kune/platf/server/auth/AuthorizatedMethodInterceptorTest.java
trunk/src/test/java/org/ourproject/kune/platf/server/manager/file/FileDownloadManagerTest.java
trunk/src/test/java/org/ourproject/kune/platf/server/mapper/MapperTest.java
trunk/src/test/java/org/ourproject/kune/workspace/client/entityheader/EntityLogoPresenterTest.java
trunk/src/test/java/org/ourproject/kune/workspace/client/socialnet/RolActionTest.java
trunk/src/test/java/org/ourproject/kune/workspace/client/socialnet/RolComparatorTest.java
Log:
Some more MVC patterns
Property changes on: trunk
___________________________________________________________________
Name: svn:ignore
- pmd-eclipse.log
.pmd
www-test
screenlog.0
bin
client
public
target
Main-compile
bin
.settings
.gwt-cache
repository
derby.log
star-yellow-grey.png
run.sh
tomcat
.classpath
gwt-out
synccss.sh
.externalToolBuilders
.project
.wtpmodules
www
testRepository
kune-OLD-jcr
KuneApp.launch
KuneApp NOSERVER.launch
old_src
org.ourproject.kune.app.Kune
org.ourproject.kune.iml
org.ourproject.kune.ipr
org.ourproject.kune.iws
nbproject
hibernate.reveng.xml
.gwt-tmp
target-eclipse
.checkstyle
.classpath-bien
+ pmd-eclipse.log
.pmd
www-test
screenlog.0
bin
client
public
target
Main-compile
bin
.settings
.gwt-cache
repository
derby.log
star-yellow-grey.png
run.sh
tomcat
.classpath
gwt-out
synccss.sh
.externalToolBuilders
.project
.wtpmodules
www
testRepository
kune-OLD-jcr
KuneApp.launch
KuneApp NOSERVER.launch
old_src
org.ourproject.kune.app.Kune
org.ourproject.kune.iml
org.ourproject.kune.ipr
org.ourproject.kune.iws
nbproject
hibernate.reveng.xml
.gwt-tmp
target-eclipse
.checkstyle
.classpath-bien
pom.xml.*
Modified: trunk/dev-utils/kune.cleanup.eclipse.preferences.xml
===================================================================
--- trunk/dev-utils/kune.cleanup.eclipse.preferences.xml 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/dev-utils/kune.cleanup.eclipse.preferences.xml 2010-12-18 17:00:55 UTC (rev 1169)
@@ -5,7 +5,7 @@
<setting id="cleanup.always_use_parentheses_in_expressions" value="true"/>
<setting id="cleanup.never_use_blocks" value="false"/>
<setting id="cleanup.remove_unused_private_methods" value="true"/>
-<setting id="cleanup.add_missing_deprecated_annotations" value="false"/>
+<setting id="cleanup.add_missing_deprecated_annotations" value="true"/>
<setting id="cleanup.convert_to_enhanced_for_loop" value="false"/>
<setting id="cleanup.remove_unnecessary_nls_tags" value="true"/>
<setting id="cleanup.sort_members" value="true"/>
@@ -28,11 +28,12 @@
<setting id="cleanup.add_missing_nls_tags" value="false"/>
<setting id="cleanup.format_source_code" value="true"/>
<setting id="cleanup.qualify_static_method_accesses_with_declaring_class" value="false"/>
-<setting id="cleanup.add_missing_override_annotations" value="false"/>
+<setting id="cleanup.add_missing_override_annotations" value="true"/>
<setting id="cleanup.remove_unused_private_types" value="true"/>
<setting id="cleanup.add_missing_methods" value="false"/>
<setting id="cleanup.make_local_variable_final" value="true"/>
<setting id="cleanup.correct_indentation" value="false"/>
+<setting id="cleanup.add_missing_override_annotations_interface_methods" value="true"/>
<setting id="cleanup.remove_unused_imports" value="true"/>
<setting id="cleanup.remove_trailing_whitespaces_ignore_empty" value="false"/>
<setting id="cleanup.make_private_fields_final" value="true"/>
@@ -41,7 +42,7 @@
<setting id="cleanup.remove_trailing_whitespaces" value="true"/>
<setting id="cleanup.sort_members_all" value="true"/>
<setting id="cleanup.use_blocks_only_for_return_and_throw" value="false"/>
-<setting id="cleanup.add_missing_annotations" value="false"/>
+<setting id="cleanup.add_missing_annotations" value="true"/>
<setting id="cleanup.use_parentheses_in_expressions" value="false"/>
<setting id="cleanup.qualify_static_field_accesses_with_declaring_class" value="false"/>
<setting id="cleanup.use_this_for_non_static_method_access_only_if_necessary" value="true"/>
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/pom.xml 2010-12-18 17:00:55 UTC (rev 1169)
@@ -1,891 +1,910 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>cc.kune</groupId>
- <artifactId>kune</artifactId>
- <packaging>war</packaging>
- <version>0.0.7</version>
- <name>kune</name>
- <description> kune free/open/libre collaboration platform </description>
- <url>http://kune.ourproject.org</url>
- <properties>
- <!-- Available versions: http://repo1.maven.org/maven2/com/google/gwt/gwt-dev/ -->
- <gwtVersion>2.1.0</gwtVersion>
- <maven.compiler.source>1.6</maven.compiler.source>
- <maven.compiler.target>1.6</maven.compiler.target>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <slf4j.version>1.6.1</slf4j.version>
- <openjpa.version>2.0.1</openjpa.version>
- </properties>
- <dependencies>
- <dependency>
- <groupId>com.google.gwt</groupId>
- <artifactId>gwt-servlet</artifactId>
- <version>${gwtVersion}</version>
- <scope>compile</scope>
- </dependency>
- <dependency>
- <groupId>com.google.gwt</groupId>
- <artifactId>gwt-user</artifactId>
- <version>${gwtVersion}</version>
- <scope>provided</scope>
- </dependency>
- <!-- guice -->
- <dependency>
- <groupId>com.google.code.guice</groupId>
- <artifactId>guice</artifactId>
- <version>2.0.1</version>
- </dependency>
- <dependency>
- <groupId>com.googlecode.gwt.inject</groupId>
- <artifactId>gin</artifactId>
- <version>r137</version>
- </dependency>
- <dependency>
- <groupId>com.google.code.guice</groupId>
- <artifactId>guice-servlet</artifactId>
- <version>2.0.1</version>
- </dependency>
- <dependency>
- <groupId>org.ourproject.common</groupId>
- <artifactId>gwt-common</artifactId>
- <version>0.0.3</version>
- <scope>compile</scope>
- </dependency>
- <dependency>
- <groupId>com.extjs</groupId>
- <artifactId>gxt</artifactId>
- <version>2.2.1</version>
- <scope>compile</scope>
- </dependency>
- <dependency>
- <groupId>org.cobogw.gwt</groupId>
- <artifactId>cobogw</artifactId>
- <version>1.3.1</version>
- </dependency>
- <dependency>
- <groupId>cc.kune.core.ws.armor</groupId>
- <artifactId>ws-armor</artifactId>
- <version>0.0.5</version>
- </dependency>
- <dependency>
- <groupId>com.gwtplatform</groupId>
- <artifactId>gwtp</artifactId>
- <version>0.4</version>
- </dependency>
- <!-- cc -->
- <dependency>
- <groupId>com.gwtext</groupId>
- <artifactId>gwtext</artifactId>
- <version>2.0.5</version>
- </dependency>
- <dependency>
- <groupId>com.gwtextux</groupId>
- <artifactId>gwtextux</artifactId>
- <version>0.4.0.924</version>
- </dependency>
- <dependency>
- <groupId>com.allen_sauer.gwt.log.gwt-log</groupId>
- <artifactId>gwt-log</artifactId>
- <version>3.0.1</version>
- </dependency>
- <dependency>
- <groupId>com.allen_sauer.gwt.voices.gwt-voices</groupId>
- <artifactId>gwt-voices</artifactId>
- <version>1.6.0</version>
- </dependency>
- <!-- utilities -->
- <dependency>
- <groupId>log4j</groupId>
- <artifactId>log4j</artifactId>
- <version>1.2.14</version>
- </dependency>
- <dependency>
- <groupId>net.sf.dozer</groupId>
- <artifactId>dozer</artifactId>
- <version>4.0</version>
- </dependency>
- <dependency>
- <groupId>com.calclab</groupId>
- <artifactId>suco</artifactId>
- <version>0.6.5</version>
- </dependency>
- <dependency>
- <groupId>jmagick</groupId>
- <artifactId>jmagick</artifactId>
- <version>6.2.6-0</version>
- </dependency>
- <dependency>
- <groupId>org.xwiki.platform</groupId>
- <artifactId>xwiki-web-gwt-dom</artifactId>
- <version>2.3-rc-1</version>
- <!-- <version>2.0-SNAPSHOT-g164</version> -->
- <!-- <version>2.0-SNAPSHOT</version> -->
- <!-- <version>2.0-SNAPSHOT-g20s</version> -->
- </dependency>
- <!-- xmpp -->
- <dependency>
- <groupId>com.calclab.emite</groupId>
- <artifactId>emite</artifactId>
- <version>0.4.7</version>
- </dependency>
- <dependency>
- <groupId>org.jivesoftware.smack</groupId>
- <artifactId>smack</artifactId>
- <version>3.0.4</version>
- </dependency>
- <dependency>
- <groupId>org.jivesoftware.smackx</groupId>
- <artifactId>smackx</artifactId>
- <version>3.0.4</version>
- </dependency>
- <dependency>
- <groupId>org.jivesoftware.smackx.debugger</groupId>
- <artifactId>smackx-debugger</artifactId>
- <version>3.0.4</version>
- </dependency>
- <!-- mysql -->
- <dependency>
- <groupId>mysql</groupId>
- <artifactId>mysql-connector-java</artifactId>
- <version>5.1.13</version>
- </dependency>
- <!-- hibernate JPA -->
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-core</artifactId>
- <version>3.3.1.GA</version>
- </dependency>
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-validator</artifactId>
- <version>4.0.2.GA</version>
- </dependency>
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-annotations</artifactId>
- <version>3.4.0.GA</version>
- </dependency>
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-commons-annotations</artifactId>
- <version>3.3.0.ga</version>
- </dependency>
- <!-- <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-ehcache</artifactId>
- <version>3.3.1.GA</version> </dependency> -->
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-search</artifactId>
- <version>3.1.0.GA</version>
- </dependency>
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-entitymanager</artifactId>
- <version>3.4.0.GA</version>
- </dependency>
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-tools</artifactId>
- <version>3.2.3.GA</version>
- </dependency>
- <dependency>
- <groupId>c3p0</groupId>
- <artifactId>c3p0</artifactId>
- <version>0.9.1.2</version>
- </dependency>
- <dependency>
- <groupId>commons-lang</groupId>
- <artifactId>commons-lang</artifactId>
- <version>2.0</version>
- </dependency>
- <dependency>
- <groupId>com.wideplay</groupId>
- <artifactId>warp-persist</artifactId>
- <version>2.0-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>log4j</groupId>
- <artifactId>log4j</artifactId>
- <version>1.2.16</version>
- <!-- =roo -->
- </dependency>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-api</artifactId>
- <version>${slf4j.version}</version>
- <!-- =roo -->
- </dependency>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>jcl-over-slf4j</artifactId>
- <version>${slf4j.version}</version>
- <!-- =roo -->
- </dependency>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-log4j12</artifactId>
- <version>${slf4j.version}</version>
- <!-- =roo -->
- </dependency>
- <!-- REST: xml and json (stax) -->
- <dependency>
- <groupId>com.thoughtworks.xstream</groupId>
- <artifactId>xstream</artifactId>
- <version>1.2.2</version>
- </dependency>
- <dependency>
- <groupId>stax</groupId>
- <artifactId>stax-api</artifactId>
- <version>1.0.1</version>
- </dependency>
- <dependency>
- <groupId>org.codehaus.jettison</groupId>
- <artifactId>jettison</artifactId>
- <version>1.0-RC2</version>
- </dependency>
- <dependency>
- <groupId>net.sf.json-lib</groupId>
- <artifactId>json-lib</artifactId>
- <version>2.1</version>
- <classifier>jdk15</classifier>
- </dependency>
- <dependency>
- <groupId>commons-collections</groupId>
- <artifactId>commons-collections</artifactId>
- <version>3.2</version>
- </dependency>
- <!-- File upload -->
- <dependency>
- <groupId>commons-beanutils</groupId>
- <artifactId>commons-beanutils</artifactId>
- <version>1.7.0</version>
- </dependency>
- <dependency>
- <groupId>commons-io</groupId>
- <artifactId>commons-io</artifactId>
- <version>1.2</version>
- </dependency>
- <dependency>
- <groupId>commons-logging</groupId>
- <artifactId>commons-logging</artifactId>
- <version>1.1</version>
- </dependency>
- <dependency>
- <groupId>commons-fileupload</groupId>
- <artifactId>commons-fileupload</artifactId>
- <version>1.1.1</version>
- </dependency>
- <!-- db upgrades -->
- <dependency>
- <groupId>org.liquibase</groupId>
- <artifactId>liquibase-core</artifactId>
- <version>1.7.0</version>
- </dependency>
- <dependency>
- <groupId>org.liquibase</groupId>
- <artifactId>liquibase-plugin</artifactId>
- <version>1.7.0.0</version>
- </dependency>
- <!-- jetty dependencies -->
- <!-- <dependency> -->
- <!-- <groupId>org.mortbay.jetty</groupId> -->
- <!-- <artifactId>jetty-util</artifactId> -->
- <!-- <version>6.1.11</version> -->
- <!-- <version>7.0.0.pre5</version> -->
- <!-- <scope>provided</scope> -->
- <!-- </dependency> -->
- <!-- <dependency> -->
- <!-- <groupId>org.mortbay.jetty</groupId> -->
- <!-- <artifactId>jetty-maven-plugin</artifactId> -->
- <!-- <version>7.2.1.v20101111</version> -->
- <!-- <artifactId>maven-jetty-plugin</artifactId> <version>6.1.11</version> -->
- <!-- <scope>runtime</scope> -->
- <!-- </dependency> -->
- <dependency>
- <groupId>javax.servlet</groupId>
- <artifactId>servlet-api</artifactId>
- <version>2.4</version>
- <scope>provided</scope>
- </dependency>
- <!-- testing dependencies -->
- <dependency>
- <groupId>org.mockito</groupId>
- <artifactId>mockito-all</artifactId>
- <scope>test</scope>
- <version>1.6</version>
- </dependency>
- <dependency>
- <groupId>com.h2database</groupId>
- <artifactId>h2</artifactId>
- <version>1.0.20070617</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>4.8.1</version>
- <!-- =roo -->
- <scope>test</scope>
- </dependency>
- <!-- <dependency> -->
- <!-- <groupId>org.openqa.selenium.client-drivers</groupId> -->
- <!-- <artifactId>selenium-java-client-driver</artifactId> -->
- <!-- <version>1.0-beta-1</version> -->
- <!-- <scope>test</scope> -->
- <!-- </dependency> -->
- <!-- public side -->
- <dependency>
- <groupId>org.jruby.rack</groupId>
- <artifactId>jruby-rack</artifactId>
- <version>1.0.3</version>
- <!-- <version>0.9.4</version> -->
- </dependency>
- <!-- wave -->
- <dependency>
- <groupId>org.waveprotocol</groupId>
- <artifactId>kune-wave-server</artifactId>
- <version>0.0.2.2</version>
- </dependency>
- <dependency>
- <groupId>commons-cli</groupId>
- <artifactId>commons-cli</artifactId>
- <version>1.2</version>
- <type>jar</type>
- </dependency>
- <dependency>
- <groupId>commons-codec</groupId>
- <artifactId>commons-codec</artifactId>
- <version>1.3</version>
- <type>jar</type>
- </dependency>
- <!-- <dependency> -->
- <!-- <groupId>dom4j</groupId> -->
- <!-- <artifactId>dom4j</artifactId> -->
- <!-- <version>1.6.1</version> -->
- <!-- <type>jar</type> -->
- <!-- </dependency> -->
- <dependency>
- <groupId>com.google.code.guice</groupId>
- <artifactId>guice-assistedinject</artifactId>
- <version>2.0</version>
- </dependency>
- <dependency>
- <groupId>jline</groupId>
- <artifactId>jline</artifactId>
- <version>0.9.94</version>
- <type>jar</type>
- </dependency>
- <dependency>
- <groupId>org.gnu.inet</groupId>
- <artifactId>libidn</artifactId>
- <version>1.15</version>
- <type>jar</type>
- </dependency>
- <dependency>
- <groupId>com.google.protobuf</groupId>
- <artifactId>protobuf-java</artifactId>
- <version>2.1.0</version>
- <type>jar</type>
- </dependency>
- <dependency>
- <groupId>xpp3</groupId>
- <artifactId>xpp3</artifactId>
- <version>1.1.4c</version>
- <type>jar</type>
- </dependency>
- <dependency>
- <groupId>xpp3</groupId>
- <artifactId>xpp3_xpath</artifactId>
- <version>1.1.4c</version>
- <type>jar</type>
- </dependency>
- <dependency>
- <groupId>aopalliance</groupId>
- <artifactId>aopalliance</artifactId>
- <version>1.0</version>
- <type>jar</type>
- </dependency>
- <dependency>
- <groupId>org.wave-protocol</groupId>
- <artifactId>xmpp</artifactId>
- <version>1.0.0</version>
- </dependency>
- <dependency>
- <groupId>org.wave-protocol</groupId>
- <artifactId>whack</artifactId>
- <version>1.0.0</version>
- </dependency>
- <dependency>
- <groupId>com.google.common</groupId>
- <artifactId>collect</artifactId>
- <version>1.0-rc2</version>
- </dependency>
- </dependencies>
- <distributionManagement>
- <repository>
- <id>kune.ourproject.org</id>
- <url>scpexe://kune.ourproject.org/home/groups/kune/htdocs/mavenrepo/</url>
- </repository>
- </distributionManagement>
- <pluginRepositories>
- <!-- cc -->
- <pluginRepository>
- <id>jboss-public-repository-group</id>
- <name>JBoss Public Maven Repository Group</name>
- <url>https://repository.jboss.org/nexus/content/groups/public-jboss/</url>
- <layout>default</layout>
- <releases>
- <enabled>true</enabled>
- <updatePolicy>never</updatePolicy>
- </releases>
- <snapshots>
- <enabled>true</enabled>
- <updatePolicy>never</updatePolicy>
- </snapshots>
- </pluginRepository>
- <!-- cc -->
- <!-- <pluginRepository> <id>gwt-maven</id> <url>http://gwt-maven.googlecode.com/svn/trunk/mavenrepo</url>
- </pluginRepository> -->
- <pluginRepository>
- <id>Codehaus Snapshots</id>
- <url>http://snapshots.repository.codehaus.org/</url>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- <releases>
- <enabled>true</enabled> <!-- Workaround for MNG-2974, see note below -->
- </releases>
- </pluginRepository>
- <pluginRepository>
- <id>gwt-plugin-repo</id>
- <url>http://google-web-toolkit.googlecode.com/svn/2.1.0.M3/gwt/maven</url>
- <name>Google Web Toolkit Plugin Repository</name>
- </pluginRepository>
- </pluginRepositories>
- <repositories>
- <repository>
- <id>guice-maven</id>
- <name>guice maven</name>
- <url>http://guice-maven.googlecode.com/svn/trunk</url>
- </repository>
- <repository>
- <id>Codehaus Snapshots</id>
- <url>http://snapshots.repository.codehaus.org/</url>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- <releases>
- <enabled>false</enabled>
- </releases>
- </repository>
- <repository>
- <id>jboss-public-repository-group</id>
- <name>JBoss Public Maven Repository Group</name>
- <url>https://repository.jboss.org/nexus/content/groups/public-jboss/</url>
- <layout>default</layout>
- <releases>
- <enabled>true</enabled>
- <updatePolicy>never</updatePolicy>
- </releases>
- <snapshots>
- <enabled>true</enabled>
- <updatePolicy>never</updatePolicy>
- </snapshots>
- </repository>
- <repository>
- <id>mvp4g.googlecode.releases</id>
- <name>Releases Repository for Mvp4g</name>
- <url>http://mvp4g.googlecode.com/svn/maven2/releases/</url>
- </repository>
- <repository>
- <id>ext-gxt</id>
- <name>ext-gxt at jahia</name>
- <url>http://maven.jahia.org/maven2/</url>
- </repository>
- <repository>
- <id>ext-gxt</id>
- <name>ext-gxt at jahia</name>
- <url>http://maven.jahia.org/maven2/</url>
- </repository>
- <repository>
- <id>cobogw</id>
- <name>Cobogw repository at googlecode</name>
- <url>http://cobogw.googlecode.com/svn/maven2</url>
- </repository>
- <repository>
- <id>gwtp</id>
- <name>gwtp repo</name>
- <url>http://maven.gwt-platform.googlecode.com/hg/</url>
- </repository>
- <!-- cc -->
- <repository>
- <id>dyndns-repo</id>
- <url>http://maven.dyndns.org/2</url>
- </repository>
- <repository>
- <id>gwt-maven</id>
- <url>
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>cc.kune</groupId>
+ <artifactId>kune</artifactId>
+ <packaging>war</packaging>
+ <version>0.0.7</version>
+ <name>kune</name>
+ <description> kune free/open/libre collaboration platform </description>
+ <url>http://kune.ourproject.org</url>
+ <properties>
+ <!-- Available versions: http://repo1.maven.org/maven2/com/google/gwt/gwt-dev/ -->
+ <gwtVersion>2.1.0</gwtVersion>
+ <maven.compiler.source>1.6</maven.compiler.source>
+ <maven.compiler.target>1.6</maven.compiler.target>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ <slf4j.version>1.6.1</slf4j.version>
+ <openjpa.version>2.0.1</openjpa.version>
+ </properties>
+ <dependencies>
+ <dependency>
+ <groupId>com.google.gwt</groupId>
+ <artifactId>gwt-servlet</artifactId>
+ <version>${gwtVersion}</version>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.google.gwt</groupId>
+ <artifactId>gwt-user</artifactId>
+ <version>${gwtVersion}</version>
+ <scope>provided</scope>
+ </dependency>
+ <!-- guice -->
+ <dependency>
+ <groupId>com.google.code.guice</groupId>
+ <artifactId>guice</artifactId>
+ <version>2.0.1</version>
+ </dependency>
+ <dependency>
+ <groupId>com.googlecode.gwt.inject</groupId>
+ <artifactId>gin</artifactId>
+ <version>r137</version>
+ </dependency>
+ <dependency>
+ <groupId>com.google.code.guice</groupId>
+ <artifactId>guice-servlet</artifactId>
+ <version>2.0.1</version>
+ </dependency>
+ <dependency>
+ <groupId>org.ourproject.common</groupId>
+ <artifactId>gwt-common</artifactId>
+ <version>0.0.3</version>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.extjs</groupId>
+ <artifactId>gxt</artifactId>
+ <version>2.2.1</version>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.cobogw.gwt</groupId>
+ <artifactId>cobogw</artifactId>
+ <version>1.3.1</version>
+ </dependency>
+ <dependency>
+ <groupId>cc.kune.core.ws.armor</groupId>
+ <artifactId>ws-armor</artifactId>
+ <version>0.0.6</version>
+ </dependency>
+ <dependency>
+ <groupId>com.gwtplatform</groupId>
+ <artifactId>gwtp</artifactId>
+ <version>0.4</version>
+ </dependency>
+ <!-- cc -->
+ <dependency>
+ <groupId>com.gwtext</groupId>
+ <artifactId>gwtext</artifactId>
+ <version>2.0.5</version>
+ </dependency>
+ <dependency>
+ <groupId>com.gwtextux</groupId>
+ <artifactId>gwtextux</artifactId>
+ <version>0.4.0.924</version>
+ </dependency>
+ <dependency>
+ <groupId>com.allen_sauer.gwt.log.gwt-log</groupId>
+ <artifactId>gwt-log</artifactId>
+ <version>3.0.1</version>
+ </dependency>
+ <dependency>
+ <groupId>com.allen_sauer.gwt.voices.gwt-voices</groupId>
+ <artifactId>gwt-voices</artifactId>
+ <version>1.6.0</version>
+ </dependency>
+ <!-- utilities -->
+ <dependency>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ <version>1.2.14</version>
+ </dependency>
+ <dependency>
+ <groupId>net.sf.dozer</groupId>
+ <artifactId>dozer</artifactId>
+ <version>4.0</version>
+ </dependency>
+ <dependency>
+ <groupId>com.calclab</groupId>
+ <artifactId>suco</artifactId>
+ <version>0.6.5</version>
+ </dependency>
+ <dependency>
+ <groupId>jmagick</groupId>
+ <artifactId>jmagick</artifactId>
+ <version>6.2.6-0</version>
+ </dependency>
+ <dependency>
+ <groupId>org.xwiki.platform</groupId>
+ <artifactId>xwiki-web-gwt-dom</artifactId>
+ <version>2.3-rc-1</version>
+ <!-- <version>2.0-SNAPSHOT-g164</version> -->
+ <!-- <version>2.0-SNAPSHOT</version> -->
+ <!-- <version>2.0-SNAPSHOT-g20s</version> -->
+ </dependency>
+ <!-- xmpp -->
+ <dependency>
+ <groupId>com.calclab.emite</groupId>
+ <artifactId>emite</artifactId>
+ <version>0.4.7</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jivesoftware.smack</groupId>
+ <artifactId>smack</artifactId>
+ <version>3.0.4</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jivesoftware.smackx</groupId>
+ <artifactId>smackx</artifactId>
+ <version>3.0.4</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jivesoftware.smackx.debugger</groupId>
+ <artifactId>smackx-debugger</artifactId>
+ <version>3.0.4</version>
+ </dependency>
+ <!-- mysql -->
+ <dependency>
+ <groupId>mysql</groupId>
+ <artifactId>mysql-connector-java</artifactId>
+ <version>5.1.13</version>
+ </dependency>
+ <!-- hibernate JPA -->
+ <dependency>
+ <groupId>org.hibernate</groupId>
+ <artifactId>hibernate-core</artifactId>
+ <version>3.3.1.GA</version>
+ </dependency>
+ <dependency>
+ <groupId>org.hibernate</groupId>
+ <artifactId>hibernate-validator</artifactId>
+ <version>4.0.2.GA</version>
+ </dependency>
+ <dependency>
+ <groupId>org.hibernate</groupId>
+ <artifactId>hibernate-annotations</artifactId>
+ <version>3.4.0.GA</version>
+ </dependency>
+ <dependency>
+ <groupId>org.hibernate</groupId>
+ <artifactId>hibernate-commons-annotations</artifactId>
+ <version>3.3.0.ga</version>
+ </dependency>
+ <!-- <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-ehcache</artifactId>
+ <version>3.3.1.GA</version> </dependency> -->
+ <dependency>
+ <groupId>org.hibernate</groupId>
+ <artifactId>hibernate-search</artifactId>
+ <version>3.1.0.GA</version>
+ </dependency>
+ <dependency>
+ <groupId>org.hibernate</groupId>
+ <artifactId>hibernate-entitymanager</artifactId>
+ <version>3.4.0.GA</version>
+ </dependency>
+ <dependency>
+ <groupId>org.hibernate</groupId>
+ <artifactId>hibernate-tools</artifactId>
+ <version>3.2.3.GA</version>
+ </dependency>
+ <dependency>
+ <groupId>c3p0</groupId>
+ <artifactId>c3p0</artifactId>
+ <version>0.9.1.2</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-lang</groupId>
+ <artifactId>commons-lang</artifactId>
+ <version>2.0</version>
+ </dependency>
+ <dependency>
+ <groupId>com.wideplay</groupId>
+ <artifactId>warp-persist</artifactId>
+ <version>2.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ <version>1.2.16</version>
+ <!-- =roo -->
+ </dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ <version>${slf4j.version}</version>
+ <!-- =roo -->
+ </dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>jcl-over-slf4j</artifactId>
+ <version>${slf4j.version}</version>
+ <!-- =roo -->
+ </dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-log4j12</artifactId>
+ <version>${slf4j.version}</version>
+ <!-- =roo -->
+ </dependency>
+ <!-- REST: xml and json (stax) -->
+ <dependency>
+ <groupId>com.thoughtworks.xstream</groupId>
+ <artifactId>xstream</artifactId>
+ <version>1.2.2</version>
+ </dependency>
+ <dependency>
+ <groupId>stax</groupId>
+ <artifactId>stax-api</artifactId>
+ <version>1.0.1</version>
+ </dependency>
+ <dependency>
+ <groupId>org.codehaus.jettison</groupId>
+ <artifactId>jettison</artifactId>
+ <version>1.0-RC2</version>
+ </dependency>
+ <dependency>
+ <groupId>net.sf.json-lib</groupId>
+ <artifactId>json-lib</artifactId>
+ <version>2.1</version>
+ <classifier>jdk15</classifier>
+ </dependency>
+ <dependency>
+ <groupId>commons-collections</groupId>
+ <artifactId>commons-collections</artifactId>
+ <version>3.2</version>
+ </dependency>
+ <!-- File upload -->
+ <dependency>
+ <groupId>commons-beanutils</groupId>
+ <artifactId>commons-beanutils</artifactId>
+ <version>1.7.0</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-io</groupId>
+ <artifactId>commons-io</artifactId>
+ <version>1.2</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ <version>1.1</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-fileupload</groupId>
+ <artifactId>commons-fileupload</artifactId>
+ <version>1.1.1</version>
+ </dependency>
+ <!-- db upgrades -->
+ <dependency>
+ <groupId>org.liquibase</groupId>
+ <artifactId>liquibase-core</artifactId>
+ <version>1.7.0</version>
+ </dependency>
+ <dependency>
+ <groupId>org.liquibase</groupId>
+ <artifactId>liquibase-plugin</artifactId>
+ <version>1.7.0.0</version>
+ </dependency>
+ <!-- jetty dependencies -->
+ <!-- <dependency> -->
+ <!-- <groupId>org.mortbay.jetty</groupId> -->
+ <!-- <artifactId>jetty-util</artifactId> -->
+ <!-- <version>6.1.11</version> -->
+ <!-- <version>7.0.0.pre5</version> -->
+ <!-- <scope>provided</scope> -->
+ <!-- </dependency> -->
+ <!-- <dependency> -->
+ <!-- <groupId>org.mortbay.jetty</groupId> -->
+ <!-- <artifactId>jetty-maven-plugin</artifactId> -->
+ <!-- <version>7.2.1.v20101111</version> -->
+ <!-- <artifactId>maven-jetty-plugin</artifactId> <version>6.1.11</version> -->
+ <!-- <scope>runtime</scope> -->
+ <!-- </dependency> -->
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ <version>2.4</version>
+ <scope>provided</scope>
+ </dependency>
+ <!-- testing dependencies -->
+ <dependency>
+ <groupId>org.mockito</groupId>
+ <artifactId>mockito-all</artifactId>
+ <scope>test</scope>
+ <version>1.6</version>
+ </dependency>
+ <dependency>
+ <groupId>com.h2database</groupId>
+ <artifactId>h2</artifactId>
+ <version>1.0.20070617</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.8.1</version>
+ <!-- =roo -->
+ <scope>test</scope>
+ </dependency>
+ <!-- <dependency> -->
+ <!-- <groupId>org.openqa.selenium.client-drivers</groupId> -->
+ <!-- <artifactId>selenium-java-client-driver</artifactId> -->
+ <!-- <version>1.0-beta-1</version> -->
+ <!-- <scope>test</scope> -->
+ <!-- </dependency> -->
+ <!-- public side -->
+ <dependency>
+ <groupId>org.jruby.rack</groupId>
+ <artifactId>jruby-rack</artifactId>
+ <version>1.0.3</version>
+ <!-- <version>0.9.4</version> -->
+ </dependency>
+ <!-- wave -->
+ <dependency>
+ <groupId>org.waveprotocol</groupId>
+ <artifactId>kune-wave-server</artifactId>
+ <version>0.0.2.2</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-cli</groupId>
+ <artifactId>commons-cli</artifactId>
+ <version>1.2</version>
+ <type>jar</type>
+ </dependency>
+ <dependency>
+ <groupId>commons-codec</groupId>
+ <artifactId>commons-codec</artifactId>
+ <version>1.3</version>
+ <type>jar</type>
+ </dependency>
+ <!-- <dependency> -->
+ <!-- <groupId>dom4j</groupId> -->
+ <!-- <artifactId>dom4j</artifactId> -->
+ <!-- <version>1.6.1</version> -->
+ <!-- <type>jar</type> -->
+ <!-- </dependency> -->
+ <dependency>
+ <groupId>com.google.code.guice</groupId>
+ <artifactId>guice-assistedinject</artifactId>
+ <version>2.0</version>
+ </dependency>
+ <dependency>
+ <groupId>jline</groupId>
+ <artifactId>jline</artifactId>
+ <version>0.9.94</version>
+ <type>jar</type>
+ </dependency>
+ <dependency>
+ <groupId>org.gnu.inet</groupId>
+ <artifactId>libidn</artifactId>
+ <version>1.15</version>
+ <type>jar</type>
+ </dependency>
+ <dependency>
+ <groupId>com.google.protobuf</groupId>
+ <artifactId>protobuf-java</artifactId>
+ <version>2.1.0</version>
+ <type>jar</type>
+ </dependency>
+ <dependency>
+ <groupId>xpp3</groupId>
+ <artifactId>xpp3</artifactId>
+ <version>1.1.4c</version>
+ <type>jar</type>
+ </dependency>
+ <dependency>
+ <groupId>xpp3</groupId>
+ <artifactId>xpp3_xpath</artifactId>
+ <version>1.1.4c</version>
+ <type>jar</type>
+ </dependency>
+ <dependency>
+ <groupId>aopalliance</groupId>
+ <artifactId>aopalliance</artifactId>
+ <version>1.0</version>
+ <type>jar</type>
+ </dependency>
+ <dependency>
+ <groupId>org.wave-protocol</groupId>
+ <artifactId>xmpp</artifactId>
+ <version>1.0.0</version>
+ </dependency>
+ <dependency>
+ <groupId>org.wave-protocol</groupId>
+ <artifactId>whack</artifactId>
+ <version>1.0.0</version>
+ </dependency>
+ <dependency>
+ <groupId>com.google.common</groupId>
+ <artifactId>collect</artifactId>
+ <version>1.0-rc2</version>
+ </dependency>
+ </dependencies>
+ <distributionManagement>
+ <repository>
+ <id>kune.ourproject.org</id>
+ <url>scpexe://kune.ourproject.org/home/groups/kune/htdocs/mavenrepo/</url>
+ </repository>
+ </distributionManagement>
+ <pluginRepositories>
+ <!-- cc -->
+ <pluginRepository>
+ <id>jboss-public-repository-group</id>
+ <name>JBoss Public Maven Repository Group</name>
+ <url>https://repository.jboss.org/nexus/content/groups/public-jboss/</url>
+ <layout>default</layout>
+ <releases>
+ <enabled>true</enabled>
+ <updatePolicy>never</updatePolicy>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ <updatePolicy>never</updatePolicy>
+ </snapshots>
+ </pluginRepository>
+ <!-- cc -->
+ <!-- <pluginRepository> <id>gwt-maven</id> <url>http://gwt-maven.googlecode.com/svn/trunk/mavenrepo</url>
+ </pluginRepository> -->
+ <pluginRepository>
+ <id>Codehaus Snapshots</id>
+ <url>http://snapshots.repository.codehaus.org/</url>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <releases>
+ <enabled>true</enabled> <!-- Workaround for MNG-2974, see note below -->
+ </releases>
+ </pluginRepository>
+ <pluginRepository>
+ <id>gwt-plugin-repo</id>
+ <url>http://google-web-toolkit.googlecode.com/svn/2.1.0.M3/gwt/maven</url>
+ <name>Google Web Toolkit Plugin Repository</name>
+ </pluginRepository>
+ <pluginRepository>
+ <id>maven2-repository.dev.java.net</id>
+ <name>Java.net Repository for Maven</name>
+ <url>http://download.java.net/maven/2/</url>
+ <layout>default</layout>
+ </pluginRepository>
+ </pluginRepositories>
+ <repositories>
+ <repository>
+ <id>guice-maven</id>
+ <name>guice maven</name>
+ <url>http://guice-maven.googlecode.com/svn/trunk</url>
+ </repository>
+ <repository>
+ <id>Codehaus Snapshots</id>
+ <url>http://snapshots.repository.codehaus.org/</url>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ </repository>
+ <repository>
+ <id>jboss-public-repository-group</id>
+ <name>JBoss Public Maven Repository Group</name>
+ <url>https://repository.jboss.org/nexus/content/groups/public-jboss/</url>
+ <layout>default</layout>
+ <releases>
+ <enabled>true</enabled>
+ <updatePolicy>never</updatePolicy>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ <updatePolicy>never</updatePolicy>
+ </snapshots>
+ </repository>
+ <repository>
+ <id>mvp4g.googlecode.releases</id>
+ <name>Releases Repository for Mvp4g</name>
+ <url>http://mvp4g.googlecode.com/svn/maven2/releases/</url>
+ </repository>
+ <repository>
+ <id>ext-gxt</id>
+ <name>ext-gxt at jahia</name>
+ <url>http://maven.jahia.org/maven2/</url>
+ </repository>
+ <repository>
+ <id>ext-gxt</id>
+ <name>ext-gxt at jahia</name>
+ <url>http://maven.jahia.org/maven2/</url>
+ </repository>
+ <repository>
+ <id>cobogw</id>
+ <name>Cobogw repository at googlecode</name>
+ <url>http://cobogw.googlecode.com/svn/maven2</url>
+ </repository>
+ <repository>
+ <id>gwtp</id>
+ <name>gwtp repo</name>
+ <url>http://maven.gwt-platform.googlecode.com/hg/</url>
+ </repository>
+ <!-- cc -->
+ <repository>
+ <id>dyndns-repo</id>
+ <url>http://maven.dyndns.org/2</url>
+ </repository>
+ <repository>
+ <id>gwt-maven</id>
+ <url>
http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/
</url>
- </repository>
- <repository>
- <id>kune-maven</id>
- <url>http://kune.ourproject.org/mavenrepo/</url>
- </repository>
- <repository>
- <id>google-maven-snapshot-repository</id>
- <name>Google Maven Snapshot Repository</name>
- <url>https://oss.sonatype.org/content/repositories/google-snapshots/</url>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- </repository>
- <repository>
- <id>openqa.org</id>
- <name>Openqa Release Repository</name>
- <url>http://archiva.openqa.org/repository/releases</url>
- <layout>default</layout>
- <snapshots>
- <enabled>false</enabled>
- </snapshots>
- <releases>
- <enabled>true</enabled>
- </releases>
- </repository>
- <repository>
- <id>openqa.org snapshots</id>
- <name>Openqa Snapshot Repository</name>
- <url>http://archiva.openqa.org/repository/snapshots</url>
- <layout>default</layout>
- <snapshots>
- <enabled>true</enabled>
- <updatePolicy>daily</updatePolicy>
- <checksumPolicy>ignore</checksumPolicy>
- </snapshots>
- <releases>
- <enabled>false</enabled>
- </releases>
- </repository>
- <repository>
- <id>xwiki-releases</id>
- <name>XWiki Maven2 Remote Repository for Releases</name>
- <url>http://maven.xwiki.org/releases</url>
- <releases>
- <enabled>true</enabled>
- </releases>
- <snapshots>
- <enabled>false</enabled>
- </snapshots>
- </repository>
- <repository>
- <id>xwiki</id>
- <name>XWiki Repository</name>
- <url>http://maven.xwiki.org/snapshots</url>
- <releases>
- <enabled>true</enabled>
- </releases>
- <snapshots>
- <enabled>true</enabled>
- <updatePolicy>daily</updatePolicy>
- <checksumPolicy>warn</checksumPolicy>
- </snapshots>
- </repository>
- </repositories>
- <issueManagement>
- <system>kune issues list at ourproject.org</system>
- <url>http://kune.ourproject.org/issues/</url>
- </issueManagement>
- <developers>
- <developer>
- <id>dani</id>
- <name>Daniel Gómez Blasco</name>
- <email>danigb(a)gmail.com</email>
- </developer>
- <developer>
- <name>Samer Hassan</name>
- <email>samer2004(a)gmail.com</email>
- </developer>
- <developer>
- <name>Vicente J. Ruiz Jurado</name>
- <email>vjrj(a)ourproject.org</email>
- </developer>
- </developers>
- <scm>
- <url>svn://scm.ourproject.org/svnroot/kune/trunk</url>
- </scm>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <version>2.3</version>
- <configuration>
- <forkMode>pertest</forkMode>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>1.6</source>
- <target>1.6</target>
- <!-- Uncomment and run mvn with -X -e if we have same compile problems
- <compilerArgument>-verbose</compilerArgument> <fork>true</fork> <verbose>true</verbose> -->
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>gwt-maven-plugin</artifactId>
- <version>2.1.0-1</version>
- <executions>
- <execution>
- <configuration>
- <!-- <extraJvmArgs>-Xmx512M</extraJvmArgs> -->
- <soyc>false</soyc>
- <style>OBF</style>
- <inline>true</inline>
- </configuration>
- <goals>
- <!-- gwt:* goals to be executed during build -->
- <goal>compile</goal>
- <!-- http://mojo.codehaus.org/gwt-maven-plugin/user-guide/library.html -->
- <goal>resources</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <runTarget>org.ourproject.kune.app.Kune/ws.html?log_level=DEBUG</runTarget>
- <gwt.module>org.ourproject.kune.app.Kune</gwt.module>
- </configuration>
- </plugin>
- <plugin>
- <artifactId>maven-eclipse-plugin</artifactId>
- <version>2.7</version>
- <configuration>
- <downloadSources>true</downloadSources>
- <downloadJavadocs>false</downloadJavadocs>
- <wtpversion>2.0</wtpversion>
- </configuration>
- </plugin>
- <!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId>
- <version>2.1</version> <executions> <execution> <phase>compile</phase> <goals>
- <goal>exploded</goal> </goals> </execution> </executions> <configuration>
- <webappDirectory>/war</webappDirectory> </configuration> </plugin> -->
- <plugin>
- <groupId>org.mortbay.jetty</groupId>
- <artifactId>jetty-maven-plugin</artifactId>
- <version>7.2.1.v20101111</version>
- <!--<artifactId>maven-jetty-plugin</artifactId> <version>6.1.14</version> -->
- <configuration>
- <!-- <contextPath>/</contextPath> -->
- <!-- <webAppSourceDirectory>${basedir}/target/${project.artifactId}-${version}</webAppSourceDirectory> -->
- <!-- <webAppSourceDirectory>war</webAppSourceDirectory> -->
- <webAppSourceDirectory>war</webAppSourceDirectory>
- <reload>manual</reload>
- <scanIntervalSeconds>0</scanIntervalSeconds>
- </configuration>
- </plugin>
- <!-- <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>deb-maven-plugin</artifactId>
- <version>1.0-SNAPSHOT</version> <configuration> <description>kune free/open/libre
- collaboration platform</description> <maintainer>Kune Development Team <kune-devel(a)lists.ourproject.org></maintainer>
- <section>web</section> <priority>optional</priority> <architecture>all</architecture>
- </configuration> <executions> <execution> <goals> <goal>deb</goal> </goals>
- </execution> </executions> </plugin> -->
- <plugin>
- <groupId>org.liquibase</groupId>
- <artifactId>liquibase-plugin</artifactId>
- <version>1.7.0.0</version>
- <executions>
- <execution>
- <phase>process-resources</phase>
- <configuration>
- <changeLogFile>
- src/main/resources/db/liquibase_changelog.xml </changeLogFile>
- <driver>com.mysql.jdbc.Driver</driver>
- <url>jdbc:mysql://localhost/kune_dev</url>
- <username>kune</username>
- <password>db4kune</password>
- <verbose>true</verbose>
- </configuration>
- <!-- <configuration> <verbose>true</verbose> <propertiesFile>
- src/main/resources/db/liquibase.properties </propertiesFile> </configuration> -->
- <goals>
- <goal>update</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jar-plugin</artifactId>
- <version>2.2</version>
- <executions>
- <execution>
- <id>core</id>
- <phase>package</phase>
- <goals>
- <goal>jar</goal>
- </goals>
- <configuration>
- <classifier>core</classifier>
- <includes>
- <include>**/KunePlatform.gwt.xml**</include>
- <include>**/i18n/I18nTranslationService.**</include>
- <include>**/i18n/I18nTranslationServiceMocked.** </include>
- <include>**/TextUtils.**</include>
- <include>**/IconLabelEditable.**</include>
- <include>**/QuickTipsHelper.**</include>
- <include>**/RichText.gwt.xml**</include>
- <include>**/BasicDialog.**</include>
- <include>**/HorizontalLine.**</include>
- <include>**/AbstractLabel.**</include>
- <include>**/IconLabel.**</include>
- <include> **/EditableIconLabel.**</include>
- <include> **/EditableClickListener.**</include>
- <include>**/KuneStringUtils.**</include>
- <include>**/IconHyperlink*.**</include>
- <include>**/LabelWrapper*.**</include>
- <include>**/KuneUiUtils.**</include>
- <include>**/View.**</include>
- <!-- <include>**/platf/**</include> <include>**/platf/client/extend/**</include>
- <include>**/platf/client/*java</include> <include>**/platf/client/app/**</include>
- <include>**/platf/client/dispatch/**</include> -->
- </includes>
- </configuration>
- </execution>
- <execution>
- <id>helloworldmodule</id>
- <phase>package</phase>
- <goals>
- <goal>jar</goal>
- </goals>
- <configuration>
- <classifier>helloworldmodule</classifier>
- <includes>
- <include>**/HelloWorld*</include>
- </includes>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <!-- <plugin> -->
- <!-- <groupId>org.codehaus.mojo</groupId> -->
- <!-- <artifactId>selenium-maven-plugin</artifactId> -->
- <!-- <configuration> -->
- <!-- <port>4441</port> -->
- <!-- </configuration> -->
- <!-- <executions> -->
- <!-- <execution> -->
- <!-- <phase>pre-integration-test</phase> -->
- <!-- <goals> -->
- <!-- <goal>start-server</goal> -->
- <!-- </goals> -->
- <!-- <configuration> -->
- <!-- <background>true</background> -->
- <!-- </configuration> -->
- <!-- </execution> -->
- <!-- </executions> -->
- <!-- </plugin> -->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <forkMode>pertest</forkMode>
- <!-- Skip the normal tests, we'll run them in the integration-test
- phase -->
- <skip>true</skip>
- </configuration>
- <executions>
- <execution>
- <phase>integration-test</phase>
- <goals>
- <goal>test</goal>
- </goals>
- <configuration>
- <skip>false</skip>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <!-- <plugin> <artifactId>maven-clean-plugin</artifactId> <version>2.2</version>
- <configuration> <filesets> <fileset> <directory>src/main/webapp/gwt/</directory>
- <includes> <include>**/org.ourproject.kune.app.Kune*</include> <followSymlinks>false</followSymlinks>
- </includes> </fileset> </filesets> </configuration> </plugin> -->
- </plugins>
- <!-- <outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/classes</outputDirectory> -->
- <outputDirectory>war/WEB-INF/classes</outputDirectory>
- <testOutputDirectory>war/WEB-INF/test-classes</testOutputDirectory>
- <resources>
- <resource>
- <directory>src/main/resources</directory>
- </resource>
- <resource>
- <directory>src/main/java</directory>
- </resource>
- </resources>
- <extensions>
- <extension>
- <groupId>org.apache.maven.wagon</groupId>
- <artifactId>wagon-ssh-external</artifactId>
- <version>1.0-beta-2</version>
- </extension>
- </extensions>
- </build>
- <reporting>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jxr-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-pmd-plugin</artifactId>
- <version>2.4</version>
- <configuration>
- <linkXref>true</linkXref>
- <sourceEncoding>utf-8</sourceEncoding>
- <minimumTokens>100</minimumTokens>
- <targetJdk>1.5</targetJdk>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>cobertura-maven-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>jdepend-maven-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>findbugs-maven-plugin</artifactId>
- </plugin>
- </plugins>
- </reporting>
- <profiles>
- <profile>
- <!-- Activate only when within eclipse -->
- <id>m2eclipse</id>
- <activation>
- <property>
- <name>!m2e.version</name>
- </property>
- </activation>
- <!-- GWT SDK is provided by GWT SDK Classpath Container -->
- <dependencies>
- <dependency>
- <groupId>com.google.gwt</groupId>
- <artifactId>gwt-servlet</artifactId>
- <version>${gwtVersion}</version>
- <scope>runtime</scope>
- </dependency>
- <dependency>
- <groupId>com.google.gwt</groupId>
- <artifactId>gwt-user</artifactId>
- <version>${gwtVersion}</version>
- <scope>provided</scope>
- </dependency>
- </dependencies>
- </profile>
- </profiles>
+ </repository>
+ <repository>
+ <id>kune-maven</id>
+ <url>http://kune.ourproject.org/mavenrepo/</url>
+ </repository>
+ <repository>
+ <id>google-maven-snapshot-repository</id>
+ <name>Google Maven Snapshot Repository</name>
+ <url>https://oss.sonatype.org/content/repositories/google-snapshots/</url>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </repository>
+ <repository>
+ <id>openqa.org</id>
+ <name>Openqa Release Repository</name>
+ <url>http://archiva.openqa.org/repository/releases</url>
+ <layout>default</layout>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ </repository>
+ <repository>
+ <id>openqa.org snapshots</id>
+ <name>Openqa Snapshot Repository</name>
+ <url>http://archiva.openqa.org/repository/snapshots</url>
+ <layout>default</layout>
+ <snapshots>
+ <enabled>true</enabled>
+ <updatePolicy>daily</updatePolicy>
+ <checksumPolicy>ignore</checksumPolicy>
+ </snapshots>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ </repository>
+ <repository>
+ <id>xwiki-releases</id>
+ <name>XWiki Maven2 Remote Repository for Releases</name>
+ <url>http://maven.xwiki.org/releases</url>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ </repository>
+ <repository>
+ <id>xwiki</id>
+ <name>XWiki Repository</name>
+ <url>http://maven.xwiki.org/snapshots</url>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ <updatePolicy>daily</updatePolicy>
+ <checksumPolicy>warn</checksumPolicy>
+ </snapshots>
+ </repository>
+ </repositories>
+ <issueManagement>
+ <system>kune issues list at ourproject.org</system>
+ <url>http://kune.ourproject.org/issues/</url>
+ </issueManagement>
+ <developers>
+ <developer>
+ <id>dani</id>
+ <name>Daniel Gómez Blasco</name>
+ <email>danigb(a)gmail.com</email>
+ </developer>
+ <developer>
+ <name>Samer Hassan</name>
+ <email>samer2004(a)gmail.com</email>
+ </developer>
+ <developer>
+ <name>Vicente J. Ruiz Jurado</name>
+ <email>vjrj(a)ourproject.org</email>
+ </developer>
+ </developers>
+ <scm>
+ <url>svn://scm.ourproject.org/svnroot/kune/trunk</url>
+ </scm>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.bsc.maven</groupId>
+ <artifactId>maven-processor-plugin</artifactId>
+ <version>1.3.7</version>
+ <executions>
+ <execution>
+ <id>process</id>
+ <goals>
+ <goal>process</goal>
+ </goals>
+ <phase>generate-sources</phase>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.3</version>
+ <configuration>
+ <forkMode>pertest</forkMode>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.6</source>
+ <target>1.6</target>
+ <!-- Uncomment and run mvn with -X -e if we have same compile problems
+ <compilerArgument>-verbose</compilerArgument> <fork>true</fork> <verbose>true</verbose> -->
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>gwt-maven-plugin</artifactId>
+ <version>2.1.0-1</version>
+ <executions>
+ <execution>
+ <configuration>
+ <!-- <extraJvmArgs>-Xmx512M</extraJvmArgs> -->
+ <soyc>false</soyc>
+ <style>OBF</style>
+ <inline>true</inline>
+ </configuration>
+ <goals>
+ <!-- gwt:* goals to be executed during build -->
+ <goal>compile</goal>
+ <!-- http://mojo.codehaus.org/gwt-maven-plugin/user-guide/library.html -->
+ <goal>resources</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <runTarget>org.ourproject.kune.app.Kune/ws.html?log_level=DEBUG</runTarget>
+ <gwt.module>org.ourproject.kune.app.Kune</gwt.module>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-eclipse-plugin</artifactId>
+ <version>2.7</version>
+ <configuration>
+ <downloadSources>true</downloadSources>
+ <downloadJavadocs>false</downloadJavadocs>
+ <wtpversion>2.0</wtpversion>
+ </configuration>
+ </plugin>
+ <!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId>
+ <version>2.1</version> <executions> <execution> <phase>compile</phase> <goals>
+ <goal>exploded</goal> </goals> </execution> </executions> <configuration>
+ <webappDirectory>/war</webappDirectory> </configuration> </plugin> -->
+ <plugin>
+ <groupId>org.mortbay.jetty</groupId>
+ <artifactId>jetty-maven-plugin</artifactId>
+ <version>7.2.1.v20101111</version>
+ <!--<artifactId>maven-jetty-plugin</artifactId> <version>6.1.14</version> -->
+ <configuration>
+ <!-- <contextPath>/</contextPath> -->
+ <!-- <webAppSourceDirectory>${basedir}/target/${project.artifactId}-${version}</webAppSourceDirectory> -->
+ <!-- <webAppSourceDirectory>war</webAppSourceDirectory> -->
+ <webAppSourceDirectory>war</webAppSourceDirectory>
+ <reload>manual</reload>
+ <scanIntervalSeconds>0</scanIntervalSeconds>
+ </configuration>
+ </plugin>
+ <!-- <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>deb-maven-plugin</artifactId>
+ <version>1.0-SNAPSHOT</version> <configuration> <description>kune free/open/libre
+ collaboration platform</description> <maintainer>Kune Development Team <kune-devel(a)lists.ourproject.org></maintainer>
+ <section>web</section> <priority>optional</priority> <architecture>all</architecture>
+ </configuration> <executions> <execution> <goals> <goal>deb</goal> </goals>
+ </execution> </executions> </plugin> -->
+ <plugin>
+ <groupId>org.liquibase</groupId>
+ <artifactId>liquibase-plugin</artifactId>
+ <version>1.7.0.0</version>
+ <executions>
+ <execution>
+ <phase>process-resources</phase>
+ <configuration>
+ <changeLogFile>
+ src/main/resources/db/liquibase_changelog.xml </changeLogFile>
+ <driver>com.mysql.jdbc.Driver</driver>
+ <url>jdbc:mysql://localhost/kune_dev</url>
+ <username>kune</username>
+ <password>db4kune</password>
+ <verbose>true</verbose>
+ </configuration>
+ <!-- <configuration> <verbose>true</verbose> <propertiesFile> src/main/resources/db/liquibase.properties
+ </propertiesFile> </configuration> -->
+ <goals>
+ <goal>update</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <version>2.2</version>
+ <executions>
+ <execution>
+ <id>core</id>
+ <phase>package</phase>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ <configuration>
+ <classifier>core</classifier>
+ <includes>
+ <include>**/KunePlatform.gwt.xml**</include>
+ <include>**/i18n/I18nTranslationService.**</include>
+ <include>**/i18n/I18nTranslationServiceMocked.** </include>
+ <include>**/TextUtils.**</include>
+ <include>**/IconLabelEditable.**</include>
+ <include>**/QuickTipsHelper.**</include>
+ <include>**/RichText.gwt.xml**</include>
+ <include>**/BasicDialog.**</include>
+ <include>**/HorizontalLine.**</include>
+ <include>**/AbstractLabel.**</include>
+ <include>**/IconLabel.**</include>
+ <include> **/EditableIconLabel.**</include>
+ <include> **/EditableClickListener.**</include>
+ <include>**/KuneStringUtils.**</include>
+ <include>**/IconHyperlink*.**</include>
+ <include>**/LabelWrapper*.**</include>
+ <include>**/KuneUiUtils.**</include>
+ <include>**/View.**</include>
+ <!-- <include>**/platf/**</include> <include>**/platf/client/extend/**</include>
+ <include>**/platf/client/*java</include> <include>**/platf/client/app/**</include>
+ <include>**/platf/client/dispatch/**</include> -->
+ </includes>
+ </configuration>
+ </execution>
+ <execution>
+ <id>helloworldmodule</id>
+ <phase>package</phase>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ <configuration>
+ <classifier>helloworldmodule</classifier>
+ <includes>
+ <include>**/HelloWorld*</include>
+ </includes>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <!-- <plugin> -->
+ <!-- <groupId>org.codehaus.mojo</groupId> -->
+ <!-- <artifactId>selenium-maven-plugin</artifactId> -->
+ <!-- <configuration> -->
+ <!-- <port>4441</port> -->
+ <!-- </configuration> -->
+ <!-- <executions> -->
+ <!-- <execution> -->
+ <!-- <phase>pre-integration-test</phase> -->
+ <!-- <goals> -->
+ <!-- <goal>start-server</goal> -->
+ <!-- </goals> -->
+ <!-- <configuration> -->
+ <!-- <background>true</background> -->
+ <!-- </configuration> -->
+ <!-- </execution> -->
+ <!-- </executions> -->
+ <!-- </plugin> -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <forkMode>pertest</forkMode>
+ <!-- Skip the normal tests, we'll run them in the integration-test phase -->
+ <skip>true</skip>
+ </configuration>
+ <executions>
+ <execution>
+ <phase>integration-test</phase>
+ <goals>
+ <goal>test</goal>
+ </goals>
+ <configuration>
+ <skip>false</skip>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <!-- <plugin> <artifactId>maven-clean-plugin</artifactId> <version>2.2</version>
+ <configuration> <filesets> <fileset> <directory>src/main/webapp/gwt/</directory>
+ <includes> <include>**/org.ourproject.kune.app.Kune*</include> <followSymlinks>false</followSymlinks>
+ </includes> </fileset> </filesets> </configuration> </plugin> -->
+ </plugins>
+ <!-- <outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/classes</outputDirectory> -->
+ <outputDirectory>war/WEB-INF/classes</outputDirectory>
+ <testOutputDirectory>war/WEB-INF/test-classes</testOutputDirectory>
+ <resources>
+ <resource>
+ <directory>src/main/resources</directory>
+ </resource>
+ <resource>
+ <directory>src/main/java</directory>
+ </resource>
+ </resources>
+ <extensions>
+ <extension>
+ <groupId>org.apache.maven.wagon</groupId>
+ <artifactId>wagon-ssh-external</artifactId>
+ <version>1.0-beta-2</version>
+ </extension>
+ </extensions>
+ </build>
+ <reporting>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jxr-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-pmd-plugin</artifactId>
+ <version>2.4</version>
+ <configuration>
+ <linkXref>true</linkXref>
+ <sourceEncoding>utf-8</sourceEncoding>
+ <minimumTokens>100</minimumTokens>
+ <targetJdk>1.5</targetJdk>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>cobertura-maven-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>jdepend-maven-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>findbugs-maven-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </reporting>
+ <profiles>
+ <profile>
+ <!-- Activate only when within eclipse -->
+ <id>m2eclipse</id>
+ <activation>
+ <property>
+ <name>!m2e.version</name>
+ </property>
+ </activation>
+ <!-- GWT SDK is provided by GWT SDK Classpath Container -->
+ <dependencies>
+ <dependency>
+ <groupId>com.google.gwt</groupId>
+ <artifactId>gwt-servlet</artifactId>
+ <version>${gwtVersion}</version>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.google.gwt</groupId>
+ <artifactId>gwt-user</artifactId>
+ <version>${gwtVersion}</version>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+ </profile>
+ </profiles>
</project>
Modified: trunk/src/main/java/cc/kune/core/Core.gwt.xml
===================================================================
--- trunk/src/main/java/cc/kune/core/Core.gwt.xml 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/cc/kune/core/Core.gwt.xml 2010-12-18 17:00:55 UTC (rev 1169)
@@ -1,32 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.1.0//EN" "http://google-web-toolkit.googlecode.com/svn/tags/2.1.0/distro-source/core/…">
<module rename-to="ws">
- <!-- source / public / etc ==================================== -->
- <!-- excluding test sources for this module workaround for open issue 4454
- see http://code.google.com/p/google-web-toolkit/issues/detail?id=4454 -->
- <source path='client'
- excludes="**/*Test.java,**/*Tests.java,**/*MockProvider.java" />
- <source path="shared" />
- <public path="public" />
- <!-- Dependencies ============================================= -->
- <inherits name="com.google.gwt.user.User" />
- <!-- <inherits name='com.mvp4g.Mvp4gModule' /> -->
- <inherits name="cc.kune.core.ws.armor.WsArmor" />
- <inherits name="org.ourproject.common.Common" />
- <inherits name="com.extjs.gxt.ui.GXT" />
- <inherits name="com.calclab.suco.Suco" />
- <inherits name='com.gwtplatform.mvp.Mvp' />
- <define-configuration-property name="gin.ginjector"
- is-multi-valued="false" />
- <set-configuration-property name="gin.ginjector"
- value="cc.kune.core.client.CoreGinjector" />
- <!-- Styles =================================================== -->
- <stylesheet src="ws.css" />
- <stylesheet src="fontface/stylesheet.css" />
- <!-- Entrypoint =============================================== -->
- <!-- <entry-point class="cc.kune.core.client.KuneEntryPoint" /> -->
- <!-- NOTE: this only compiles for chromium/safari ============= -->
- <!--http://code.google.com/p/google-web-toolkit/issues/detail?id=42 -->
- <!-- <set-property name="user.agent" value="gecko1_8" /> -->
- <set-property name="user.agent" value="safari" />
+ <!-- source / public / etc ==================================== -->
+ <!-- excluding test sources for this module workaround for open issue 4454
+ see http://code.google.com/p/google-web-toolkit/issues/detail?id=4454 -->
+ <source path='client'
+ excludes="**/*Test.java,**/*Tests.java,**/*MockProvider.java" />
+ <source path="shared" />
+ <public path="public" />
+ <!-- Dependencies ============================================= -->
+ <inherits name="com.google.gwt.user.User" />
+ <!-- <inherits name='com.mvp4g.Mvp4gModule' /> -->
+ <inherits name="cc.kune.core.ws.armor.WsArmor" />
+ <inherits name="org.ourproject.common.Common" />
+ <inherits name="com.extjs.gxt.ui.GXT" />
+ <inherits name="com.calclab.suco.Suco" />
+ <!-- gwt-platform ============================================= -->
+ <inherits name='com.gwtplatform.mvp.Mvp' />
+ <define-configuration-property name="gin.ginjector"
+ is-multi-valued="false" />
+ <set-configuration-property name="gin.ginjector"
+ value="cc.kune.core.client.CoreGinjector" />
+ <!-- Styles =================================================== -->
+ <stylesheet src="ws.css" />
+ <stylesheet src="fontface/stylesheet.css" />
+ <!-- Entrypoint =============================================== -->
+ <entry-point class="cc.kune.core.client.KuneEntryPoint" />
+ <!-- NOTE: this only compiles for chromium/safari ============= -->
+ <!--http://code.google.com/p/google-web-toolkit/issues/detail?id=42 -->
+ <!-- <set-property name="user.agent" value="gecko1_8" /> -->
+ <set-property name="user.agent" value="safari" />
</module>
\ No newline at end of file
Deleted: trunk/src/main/java/cc/kune/core/client/CoreEventBus.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/CoreEventBus.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/cc/kune/core/client/CoreEventBus.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -1,49 +0,0 @@
-package cc.kune.core.client;
-
-public interface CoreEventBus {
-}
-// /**
-// * The Kune Core EventBus.
-// */
-// @Events(startView = CoreView.class, ginModules = { CoreGinModule.class,
-// CommonGinModule.class })
-// @Debug(logLevel = LogLevel.DETAILED)
-// public interface CoreEventBus extends EventBus {
-//
-// @Event(handlers = UserNotifierPresenter.class)
-// public void alert(String title, String message);
-//
-// @Event(handlers = UserNotifierPresenter.class)
-// public void confirmationAsk(ConfirmationAsk<?> confirmation);
-//
-// @Event(handlers = CookiesManager.class)
-// public void doNothing();
-//
-// @Event
-// // FIXME (nobody do nothing with this)
-// public void gotoToken(String token);
-//
-// @Event(handlers = UserNotifierPresenter.class)
-// public void hideSpin();
-//
-// @Event
-// // FIXME (nobody do nothing with this)
-// public void i18nReady();
-//
-// @Event(handlers = UserNotifierPresenter.class)
-// public void notify(NotifyLevel level, String message);
-//
-// @Event(handlers = UserNotifierPresenter.class)
-// public void showSpin(String message);
-//
-// @Event
-// // FIXME (nobody do nothing with this)
-// public void showSpinLoading();
-//
-// /**
-// * Application start event
-// */
-// @Start
-// @Event(handlers = { CorePresenter.class })
-// void start();
-
Modified: trunk/src/main/java/cc/kune/core/client/CoreGinModule.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/CoreGinModule.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/cc/kune/core/client/CoreGinModule.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -61,7 +61,7 @@
bind(Session.class).to(SessionDefault.class).in(Singleton.class);
bind(I18nTranslationService.class).to(I18nUITranslationService.class).in(Singleton.class);
bind(ErrorHandler.class).in(Singleton.class);
- bind(ContentProvider.class).to(ContentProviderDefault.class).in(Singleton.class);
+ // bind(ContentProvider.class).to(ContentProviderDefault.class).in(Singleton.class);
bind(HistoryWrapper.class).to(HistoryWrapperDefault.class).in(Singleton.class);
// bind(StateManager.class).to(StateManagerDefault.class).in(Singleton.class);
}
Modified: trunk/src/main/java/cc/kune/core/client/CoreGinjector.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/CoreGinjector.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/cc/kune/core/client/CoreGinjector.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -14,16 +14,16 @@
@GinModules({ CoreGinModule.class })
public interface CoreGinjector extends Ginjector {
- AsyncProvider<CorePresenter> getCorePresenter();
+ AsyncProvider<CorePresenter> getCorePresenter();
- EventBus getEventBus();
+ EventBus getEventBus();
- PlaceManager getPlaceManager();
+ PlaceManager getPlaceManager();
- ProxyFailureHandler getProxyFailureHandler();
+ ProxyFailureHandler getProxyFailureHandler();
- AsyncProvider<SpinerPresenter> getSpinerPresenter();
+ AsyncProvider<SpinerPresenter> getSpinerPresenter();
- AsyncProvider<UserNotifierPresenter> getUserNotifierPresenter();
+ AsyncProvider<UserNotifierPresenter> getUserNotifierPresenter();
}
\ No newline at end of file
Modified: trunk/src/main/java/cc/kune/core/client/KuneEntryPoint.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/KuneEntryPoint.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/cc/kune/core/client/KuneEntryPoint.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -39,7 +39,6 @@
*/
public void onModuleLoadCont() {
DelayedBindRegistry.bind(ginjector);
-
ginjector.getPlaceManager().revealCurrentPlace();
}
Modified: trunk/src/main/java/cc/kune/core/client/errors/ErrorHandler.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/errors/ErrorHandler.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/cc/kune/core/client/errors/ErrorHandler.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -21,8 +21,9 @@
import org.ourproject.common.client.notify.NotifyLevel;
+import cc.kune.core.client.notify.AlertEvent;
import cc.kune.core.client.notify.SpinerPresenter;
-import cc.kune.core.client.notify.UserNotifierPresenter;
+import cc.kune.core.client.notify.UserNotifyEvent;
import cc.kune.core.client.state.Session;
import cc.kune.core.shared.i18n.I18nTranslationService;
@@ -32,30 +33,31 @@
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException;
import com.google.inject.Inject;
+import com.gwtplatform.mvp.client.EventBus;
import com.gwtplatform.mvp.client.proxy.PlaceManager;
public class ErrorHandler {
private final Session session;
private final I18nTranslationService i18n;
private final Event0 onSessionExpired;
- private final UserNotifierPresenter notifier;
private final SpinerPresenter spiner;
private final PlaceManager placeManager;
+ private final EventBus eventBus;
@Inject
- public ErrorHandler(final Session session, final I18nTranslationService i18n, final UserNotifierPresenter notifier,
- final SpinerPresenter spiner, final PlaceManager placeManager) {
+ public ErrorHandler(final Session session, final I18nTranslationService i18n,
+ final SpinerPresenter spiner, final PlaceManager placeManager, EventBus eventBus) {
this.session = session;
this.i18n = i18n;
- this.notifier = notifier;
this.spiner = spiner;
this.placeManager = placeManager;
+ this.eventBus = eventBus;
this.onSessionExpired = new Event0("onSessionExpired");
}
public void doSessionExpired() {
onSessionExpired.fire();
- notifier.notify(NotifyLevel.info, "Your session has expired. Please log in again.");
+ eventBus.fireEvent(new UserNotifyEvent(NotifyLevel.info, "Your session has expired. Please log in again."));
}
public void onSessionExpired(final Listener0 listener) {
@@ -66,7 +68,7 @@
spiner.fade();
if (caught instanceof AccessViolationException) {
logException(caught);
- notifier.notify(NotifyLevel.error, i18n.t("You do not have rights to perform that action"));
+ eventBus.fireEvent(new UserNotifyEvent(NotifyLevel.error, i18n.t("You do not have rights to perform that action")));
} else if (caught instanceof SessionExpiredException) {
logException(caught);
doSessionExpired();
@@ -75,40 +77,40 @@
if (session.isLogged()) {
doSessionExpired();
} else {
- notifier.notify(NotifyLevel.important, i18n.t("Please sign in or register to collaborate"));
+ eventBus.fireEvent(new UserNotifyEvent(NotifyLevel.important, i18n.t("Please sign in or register to collaborate")));
}
} else if (caught instanceof GroupNotFoundException) {
logException(caught);
- notifier.notify(NotifyLevel.veryImportant, i18n.t("Group not found"));
+ eventBus.fireEvent(new UserNotifyEvent(NotifyLevel.veryImportant, i18n.t("Group not found")));
goHome();
} else if (caught instanceof IncompatibleRemoteServiceException) {
- notifier.notify(NotifyLevel.error,
- i18n.t("Your browser is outdated with the server software. Please reload this page."));
+ eventBus.fireEvent(new UserNotifyEvent(NotifyLevel.error,
+ i18n.t("Your browser is outdated with the server software. Please reload this page.")));
} else if (caught instanceof ContentNotFoundException) {
logException(caught);
- notifier.notify(NotifyLevel.veryImportant, i18n.t("Content not found"));
+ eventBus.fireEvent(new UserNotifyEvent(NotifyLevel.veryImportant, i18n.t("Content not found")));
goHome();
} else if (caught instanceof ContentNotPermittedException) {
logException(caught);
- notifier.notify(NotifyLevel.error, i18n.t("Action not permitted in this location"));
+ eventBus.fireEvent(new UserNotifyEvent(NotifyLevel.error, i18n.t("Action not permitted in this location")));
goHome();
} else if (caught instanceof ContainerNotPermittedException) {
logException(caught);
- notifier.notify(NotifyLevel.error, i18n.t("Action not permitted in this location"));
+ eventBus.fireEvent(new UserNotifyEvent(NotifyLevel.error, i18n.t("Action not permitted in this location")));
goHome();
} else if (caught instanceof LastAdminInGroupException) {
logException(caught);
- notifier.alert(i18n.t("Warning"), i18n.t("Sorry, you are the last admin of this group."
- + " Look for someone to substitute you appropriately as admin before leaving this group."));
+ eventBus.fireEvent(new AlertEvent(i18n.t("Warning"), i18n.t("Sorry, you are the last admin of this group."
+ + " Look for someone to substitute you appropriately as admin before leaving this group.")));
} else if (caught instanceof AlreadyGroupMemberException) {
logException(caught);
- notifier.notify(NotifyLevel.error, i18n.t("This group is already a group member"));
+ eventBus.fireEvent(new UserNotifyEvent(NotifyLevel.error, i18n.t("This group is already a group member")));
} else if (caught instanceof AlreadyUserMemberException) {
logException(caught);
- notifier.notify(NotifyLevel.error, i18n.t("This user is already a group member"));
+ eventBus.fireEvent(new UserNotifyEvent(NotifyLevel.error, i18n.t("This user is already a group member")));
} else {
logException(caught, true);
- notifier.notify(NotifyLevel.error, i18n.t("Error performing operation"));
+ eventBus.fireEvent(new UserNotifyEvent(NotifyLevel.error, i18n.t("Error performing operation")));
GWT.log("Other kind of exception in StateManagerDefault/processErrorException", caught);
}
}
Modified: trunk/src/main/java/cc/kune/core/client/i18n/I18nUITranslationService.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/i18n/I18nUITranslationService.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/cc/kune/core/client/i18n/I18nUITranslationService.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -35,6 +35,7 @@
import com.google.gwt.i18n.client.DateTimeFormat;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.inject.Inject;
+import com.gwtplatform.mvp.client.EventBus;
public class I18nUITranslationService extends I18nTranslationService {
private HashMap<String, String> lexicon;
@@ -44,25 +45,29 @@
private final Session session;
@Inject
- public I18nUITranslationService(final Session session, final I18nServiceAsync i18nService) {
+ public I18nUITranslationService(final Session session, final I18nServiceAsync i18nService, final EventBus eventBus) {
this.session = session;
this.i18nService = i18nService;
final Location loc = WindowUtils.getLocation();
final String locale = loc.getParameter("locale");
i18nService.getInitialLanguage(locale, new AsyncCallback<I18nLanguageDTO>() {
+ @Override
public void onFailure(final Throwable caught) {
Log.error("Workspace adaptation to your language failed: " + caught.getMessage());
}
+ @Override
public void onSuccess(final I18nLanguageDTO result) {
currentLang = result;
currentLanguageCode = currentLang.getCode();
session.setCurrentLanguage(currentLang);
i18nService.getLexicon(currentLang.getCode(), new AsyncCallback<HashMap<String, String>>() {
+ @Override
public void onFailure(final Throwable caught) {
Log.error("Workspace adaptation to your language failed:" + caught.getMessage());
}
+ @Override
public void onSuccess(final HashMap<String, String> result) {
lexicon = result;
session.setCurrentLanguage(currentLang);
@@ -152,9 +157,11 @@
if (session.isLogged()) {
i18nService.getTranslation(session.getUserHash(), currentLanguageCode, text,
new AsyncCallback<String>() {
+ @Override
public void onFailure(final Throwable caught) {
}
+ @Override
public void onSuccess(final String result) {
}
});
Added: trunk/src/main/java/cc/kune/core/client/notify/Alert.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/notify/Alert.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/notify/Alert.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -0,0 +1,12 @@
+package cc.kune.core.client.notify;
+
+import com.gwtplatform.annotation.GenEvent;
+import com.gwtplatform.annotation.Order;
+
+@GenEvent
+public class Alert {
+ @Order(1)
+ String title;
+ @Order(2)
+ String message;
+}
Property changes on: trunk/src/main/java/cc/kune/core/client/notify/Alert.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/src/main/java/cc/kune/core/client/notify/SpinerPresenter.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/notify/SpinerPresenter.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/cc/kune/core/client/notify/SpinerPresenter.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -4,12 +4,15 @@
import com.gwtplatform.mvp.client.EventBus;
import com.gwtplatform.mvp.client.Presenter;
import com.gwtplatform.mvp.client.View;
-import com.gwtplatform.mvp.client.proxy.ProxyPlace;
+import com.gwtplatform.mvp.client.annotations.ProxyCodeSplit;
+import com.gwtplatform.mvp.client.annotations.ProxyStandard;
+import com.gwtplatform.mvp.client.proxy.Proxy;
import com.gwtplatform.mvp.client.proxy.RevealRootContentEvent;
public class SpinerPresenter extends Presenter<SpinerPresenter.SpinerView, SpinerPresenter.SpinerProxy> {
-
- public interface SpinerProxy extends ProxyPlace<SpinerPresenter> {
+
+ @ProxyCodeSplit
+ public interface SpinerProxy extends Proxy<SpinerPresenter> {
}
public interface SpinerView extends View {
Modified: trunk/src/main/java/cc/kune/core/client/notify/UserNotifierPresenter.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/notify/UserNotifierPresenter.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/cc/kune/core/client/notify/UserNotifierPresenter.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -3,47 +3,67 @@
import org.ourproject.common.client.notify.ConfirmationAsk;
import org.ourproject.common.client.notify.NotifyLevel;
+import cc.kune.core.client.notify.AlertEvent.AlertHandler;
import cc.kune.core.client.notify.UserNotifierPresenter.UserNotifierProxy;
import cc.kune.core.client.notify.UserNotifierPresenter.UserNotifierView;
+import cc.kune.core.client.notify.UserNotifyEvent.UserNotifyHandler;
import com.google.inject.Inject;
import com.gwtplatform.mvp.client.EventBus;
import com.gwtplatform.mvp.client.Presenter;
import com.gwtplatform.mvp.client.View;
-import com.gwtplatform.mvp.client.proxy.ProxyPlace;
+import com.gwtplatform.mvp.client.annotations.ProxyCodeSplit;
+import com.gwtplatform.mvp.client.annotations.ProxyEvent;
+import com.gwtplatform.mvp.client.annotations.ProxyStandard;
+import com.gwtplatform.mvp.client.proxy.Proxy;
-public class UserNotifierPresenter extends Presenter<UserNotifierView, UserNotifierProxy> {
+public class UserNotifierPresenter extends
+ Presenter<UserNotifierView, UserNotifierProxy> {
+ @ProxyCodeSplit
+ public interface UserNotifierProxy extends
+ Proxy<UserNotifierPresenter> {
+ }
- public interface UserNotifierProxy extends ProxyPlace<UserNotifierPresenter> {
- }
+ public interface UserNotifierView extends View {
+ public void alert(String title, String message);
- public interface UserNotifierView extends View {
- public void alert(String title, String message);
+ public void confirmationAsk(ConfirmationAsk<?> ask);
- public void confirmationAsk(ConfirmationAsk<?> ask);
+ public void notify(NotifyLevel level, String message);
+ }
- public void notify(NotifyLevel level, String message);
- }
+ @Inject
+ public UserNotifierPresenter(final EventBus eventBus,
+ final UserNotifierView view, final UserNotifierProxy proxy) {
+ super(eventBus, view, proxy);
+ addRegisteredHandler(UserNotifyEvent.getType(),
+ new UserNotifyHandler() {
+ @Override
+ public void onUserNotify(UserNotifyEvent event) {
+ view.notify(event.getLevel(), event.getMessage());
+ }
+ });
+ addRegisteredHandler(AlertEvent.getType(), new AlertHandler() {
+ @Override
+ public void onAlert(AlertEvent event) {
+ view.alert(event.getTitle(), event.getMessage());
+ }
+ });
+ }
- @Inject
- public UserNotifierPresenter(final EventBus eventBus, final UserNotifierView view, final UserNotifierProxy proxy) {
- super(eventBus, view, proxy);
- }
+ @ProxyEvent
+ public void onUserNotify(UserNotifyEvent event) {
+ // FIXME test this
+ getView().notify(event.getLevel(), event.getMessage());
+ }
- public void notify(final NotifyLevel level, final String message) {
- getView().notify(level, message);
- }
+ @ProxyEvent
+ public void onAlert(AlertEvent event) {
+ getView().alert(event.getTitle(), event.getMessage());
+ };
- public void alert(final String title, final String message) {
- getView().alert(title, message);
- };
+ @Override
+ protected void revealInParent() {
+ }
- public void onConfirmationAsk(final ConfirmationAsk<?> ask) {
- getView().confirmationAsk(ask);
- }
-
- @Override
- protected void revealInParent() {
- }
-
}
\ No newline at end of file
Added: trunk/src/main/java/cc/kune/core/client/notify/UserNotify.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/notify/UserNotify.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/notify/UserNotify.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -0,0 +1,14 @@
+package cc.kune.core.client.notify;
+
+import org.ourproject.common.client.notify.NotifyLevel;
+
+import com.gwtplatform.annotation.GenEvent;
+import com.gwtplatform.annotation.Order;
+
+@GenEvent
+public class UserNotify {
+ @Order(1)
+ NotifyLevel level;
+ @Order(2)
+ String message;
+}
\ No newline at end of file
Property changes on: trunk/src/main/java/cc/kune/core/client/notify/UserNotify.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/src/main/java/cc/kune/core/client/rpcservices/ContentService.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/rpcservices/ContentService.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/cc/kune/core/client/rpcservices/ContentService.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -25,13 +25,13 @@
import cc.kune.core.shared.domain.ContentStatus;
import cc.kune.core.shared.domain.RateResult;
import cc.kune.core.shared.domain.TagCloudResult;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.CommentDTO;
import cc.kune.core.shared.dto.ContentSimpleDTO;
import cc.kune.core.shared.dto.I18nLanguageDTO;
import cc.kune.core.shared.dto.StateAbstractDTO;
import cc.kune.core.shared.dto.StateContainerDTO;
import cc.kune.core.shared.dto.StateContentDTO;
-import cc.kune.core.shared.dto.StateToken;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
Modified: trunk/src/main/java/cc/kune/core/client/rpcservices/ContentServiceAsync.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/rpcservices/ContentServiceAsync.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/cc/kune/core/client/rpcservices/ContentServiceAsync.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -24,13 +24,13 @@
import cc.kune.core.shared.domain.ContentStatus;
import cc.kune.core.shared.domain.RateResult;
import cc.kune.core.shared.domain.TagCloudResult;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.CommentDTO;
import cc.kune.core.shared.dto.ContentSimpleDTO;
import cc.kune.core.shared.dto.I18nLanguageDTO;
import cc.kune.core.shared.dto.StateAbstractDTO;
import cc.kune.core.shared.dto.StateContainerDTO;
import cc.kune.core.shared.dto.StateContentDTO;
-import cc.kune.core.shared.dto.StateToken;
import com.google.gwt.user.client.rpc.AsyncCallback;
Modified: trunk/src/main/java/cc/kune/core/client/rpcservices/GroupService.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/rpcservices/GroupService.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/cc/kune/core/client/rpcservices/GroupService.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -22,9 +22,9 @@
import cc.kune.core.client.errors.DefaultException;
import cc.kune.core.shared.domain.AdmissionType;
import cc.kune.core.shared.domain.SocialNetworkVisibility;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.GroupDTO;
import cc.kune.core.shared.dto.LicenseDTO;
-import cc.kune.core.shared.dto.StateToken;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
Modified: trunk/src/main/java/cc/kune/core/client/rpcservices/GroupServiceAsync.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/rpcservices/GroupServiceAsync.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/cc/kune/core/client/rpcservices/GroupServiceAsync.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -21,9 +21,9 @@
import cc.kune.core.shared.domain.AdmissionType;
import cc.kune.core.shared.domain.SocialNetworkVisibility;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.GroupDTO;
import cc.kune.core.shared.dto.LicenseDTO;
-import cc.kune.core.shared.dto.StateToken;
import com.google.gwt.user.client.rpc.AsyncCallback;
Modified: trunk/src/main/java/cc/kune/core/client/rpcservices/SocialNetworkService.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/rpcservices/SocialNetworkService.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/cc/kune/core/client/rpcservices/SocialNetworkService.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -20,9 +20,9 @@
package cc.kune.core.client.rpcservices;
import cc.kune.core.client.errors.DefaultException;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.SocialNetworkDataDTO;
import cc.kune.core.shared.dto.SocialNetworkRequestResult;
-import cc.kune.core.shared.dto.StateToken;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
Modified: trunk/src/main/java/cc/kune/core/client/rpcservices/SocialNetworkServiceAsync.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/rpcservices/SocialNetworkServiceAsync.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/cc/kune/core/client/rpcservices/SocialNetworkServiceAsync.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -20,9 +20,9 @@
package cc.kune.core.client.rpcservices;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.SocialNetworkDataDTO;
import cc.kune.core.shared.dto.SocialNetworkRequestResult;
-import cc.kune.core.shared.dto.StateToken;
import com.google.gwt.user.client.rpc.AsyncCallback;
Modified: trunk/src/main/java/cc/kune/core/client/rpcservices/UserService.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/rpcservices/UserService.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/cc/kune/core/client/rpcservices/UserService.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -21,7 +21,7 @@
import cc.kune.core.client.errors.DefaultException;
import cc.kune.core.shared.domain.UserBuddiesVisibility;
-import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.UserDTO;
import cc.kune.core.shared.dto.UserInfoDTO;
Modified: trunk/src/main/java/cc/kune/core/client/rpcservices/UserServiceAsync.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/rpcservices/UserServiceAsync.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/cc/kune/core/client/rpcservices/UserServiceAsync.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -20,7 +20,7 @@
package cc.kune.core.client.rpcservices;
import cc.kune.core.shared.domain.UserBuddiesVisibility;
-import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.UserDTO;
import cc.kune.core.shared.dto.UserInfoDTO;
Modified: trunk/src/main/java/cc/kune/core/client/state/AccessRightsClientManager.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/state/AccessRightsClientManager.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/cc/kune/core/client/state/AccessRightsClientManager.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -1,7 +1,7 @@
package cc.kune.core.client.state;
-import cc.kune.core.shared.dto.AccessRightsDTO;
+import cc.kune.core.shared.domain.utils.AccessRights;
import cc.kune.core.shared.dto.StateAbstractDTO;
import com.calclab.suco.client.events.Event2;
@@ -9,15 +9,15 @@
import com.calclab.suco.client.events.Listener2;
public class AccessRightsClientManager {
- private AccessRightsDTO previousRights;
- private final Event2<AccessRightsDTO, AccessRightsDTO> onRightsChanged;
+ private AccessRights previousRights;
+ private final Event2<AccessRights, AccessRights> onRightsChanged;
public AccessRightsClientManager(final StateManager stateManager) {
this.previousRights = null;
- this.onRightsChanged = new Event2<AccessRightsDTO, AccessRightsDTO>("onRightsChanged");
+ this.onRightsChanged = new Event2<AccessRights , AccessRights >("onRightsChanged");
stateManager.onStateChanged(new Listener<StateAbstractDTO>() {
public void onEvent(final StateAbstractDTO newState) {
- final AccessRightsDTO rights = newState.getGroupRights();
+ final AccessRights rights = newState.getGroupRights();
if (!rights.equals(previousRights)) {
onRightsChanged.fire(previousRights, rights);
previousRights = rights;
@@ -26,7 +26,7 @@
});
}
- public void onRightsChanged(final Listener2<AccessRightsDTO, AccessRightsDTO> listener) {
+ public void onRightsChanged(final Listener2<AccessRights, AccessRights> listener) {
onRightsChanged.add(listener);
}
}
Modified: trunk/src/main/java/cc/kune/core/client/state/ContentProvider.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/state/ContentProvider.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/cc/kune/core/client/state/ContentProvider.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -20,8 +20,8 @@
package cc.kune.core.client.state;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.StateAbstractDTO;
-import cc.kune.core.shared.dto.StateToken;
import com.google.gwt.user.client.rpc.AsyncCallback;
Modified: trunk/src/main/java/cc/kune/core/client/state/ContentProviderDefault.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/state/ContentProviderDefault.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/cc/kune/core/client/state/ContentProviderDefault.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -23,8 +23,8 @@
import cc.kune.core.client.notify.SpinerPresenter;
import cc.kune.core.client.rpcservices.ContentServiceAsync;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.StateAbstractDTO;
-import cc.kune.core.shared.dto.StateToken;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.inject.Inject;
Modified: trunk/src/main/java/cc/kune/core/client/state/Session.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/state/Session.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/cc/kune/core/client/state/Session.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -43,6 +43,7 @@
import cc.kune.core.client.rpcservices.AsyncCallbackSimple;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.I18nCountryDTO;
import cc.kune.core.shared.dto.I18nLanguageDTO;
import cc.kune.core.shared.dto.I18nLanguageSimpleDTO;
@@ -51,7 +52,6 @@
import cc.kune.core.shared.dto.StateAbstractDTO;
import cc.kune.core.shared.dto.StateContainerDTO;
import cc.kune.core.shared.dto.StateContentDTO;
-import cc.kune.core.shared.dto.StateToken;
import cc.kune.core.shared.dto.ToolSimpleDTO;
import cc.kune.core.shared.dto.UserInfoDTO;
import cc.kune.core.shared.dto.UserSimpleDTO;
Modified: trunk/src/main/java/cc/kune/core/client/state/SessionDefault.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/state/SessionDefault.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/cc/kune/core/client/state/SessionDefault.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -26,6 +26,7 @@
import cc.kune.core.client.i18n.I18nReadyEvent;
import cc.kune.core.client.rpcservices.AsyncCallbackSimple;
import cc.kune.core.client.rpcservices.UserServiceAsync;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.I18nCountryDTO;
import cc.kune.core.shared.dto.I18nLanguageDTO;
import cc.kune.core.shared.dto.I18nLanguageSimpleDTO;
@@ -34,7 +35,6 @@
import cc.kune.core.shared.dto.StateAbstractDTO;
import cc.kune.core.shared.dto.StateContainerDTO;
import cc.kune.core.shared.dto.StateContentDTO;
-import cc.kune.core.shared.dto.StateToken;
import cc.kune.core.shared.dto.ToolSimpleDTO;
import cc.kune.core.shared.dto.UserInfoDTO;
import cc.kune.core.shared.dto.UserSimpleDTO;
@@ -62,12 +62,12 @@
private final Event<UserInfoDTO> onUserSignIn;
private final Event0 onUserSignOut;
private final Provider<UserServiceAsync> userServiceProvider;
+ private final EventBus eventBus;
@Inject
- private static EventBus eventBus;
-
- @Inject
- public SessionDefault(final CookiesManager cookieManager, final Provider<UserServiceAsync> userServiceProvider) {
+ public SessionDefault(final CookiesManager cookieManager, final Provider<UserServiceAsync> userServiceProvider,
+ EventBus eventBus) {
+ this.eventBus = eventBus;
this.userHash = cookieManager.getCurrentCookie();
this.userHash = userHash == null || userHash.equals("null") ? null : userHash;
this.userServiceProvider = userServiceProvider;
@@ -77,23 +77,28 @@
this.onUserSignOut = new Event0("onUserSignOut");
}
+ @Override
public void check(final AsyncCallbackSimple<Void> callback) {
Log.debug("Checking session (userhash: " + getUserHash() + ")");
userServiceProvider.get().onlyCheckSession(getUserHash(), callback);
}
+ @Override
public StateContainerDTO getContainerState() {
return (StateContainerDTO) currentState;
}
+ @Override
public StateContentDTO getContentState() {
return (StateContentDTO) currentState;
}
+ @Override
public List<I18nCountryDTO> getCountries() {
return initData.getCountries();
}
+ @Override
public Object[][] getCountriesArray() {
if (countriesArray == null) {
countriesArray = mapCountries();
@@ -101,70 +106,87 @@
return countriesArray;
}
+ @Override
public String getCurrentCCversion() {
return initData.getCurrentCCversion();
}
+ @Override
public String getCurrentGroupShortName() {
return currentState == null ? null : currentState.getStateToken().getGroup();
}
+ @Override
public I18nLanguageDTO getCurrentLanguage() {
return currentLanguage;
}
+ @Override
public StateAbstractDTO getCurrentState() {
return currentState;
}
+ @Override
public StateToken getCurrentStateToken() {
return currentState == null ? null : currentState.getStateToken();
}
+ @Override
public UserSimpleDTO getCurrentUser() {
return currentUserInfo == null ? null : currentUserInfo.getUser();
}
+ @Override
public UserInfoDTO getCurrentUserInfo() {
return currentUserInfo;
}
+ @Override
public LicenseDTO getDefLicense() {
return initData.getDefaultLicense();
}
+ @Override
public String getGalleryPermittedExtensions() {
return initData.getGalleryPermittedExtensions();
}
+ @Override
public Collection<ToolSimpleDTO> getGroupTools() {
return initData.getGroupTools();
}
+ @Override
public int getImgCropsize() {
return initData.getImgCropsize();
}
+ @Override
public int getImgIconsize() {
return initData.getImgIconsize();
}
+ @Override
public int getImgResizewidth() {
return initData.getImgResizewidth();
}
+ @Override
public int getImgThumbsize() {
return initData.getImgThumbsize();
}
+ @Override
public InitDataDTO getInitData() {
return initData;
}
+ @Override
public List<I18nLanguageSimpleDTO> getLanguages() {
return initData.getLanguages();
}
+ @Override
public Object[][] getLanguagesArray() {
if (languagesArray == null) {
languagesArray = mapLangs();
@@ -172,19 +194,23 @@
return languagesArray;
}
+ @Override
public List<LicenseDTO> getLicenses() {
return initData.getLicenses();
}
+ @Override
public boolean getShowDeletedContent() {
return currentUserInfo == null ? false : currentUserInfo.getShowDeletedContent();
}
+ @Override
public String getSiteUrl() {
final String baseURL = GWT.getModuleBaseURL();
return baseURL.substring(0, baseURL.lastIndexOf("/" + GWT.getModuleName()));
}
+ @Override
public Object[][] getTimezones() {
if (timezonesArray == null) {
mapTimezones();
@@ -192,26 +218,32 @@
return timezonesArray;
}
+ @Override
public String getUserHash() {
return userHash;
}
+ @Override
public Collection<ToolSimpleDTO> getUserTools() {
return initData.getUserTools();
}
+ @Override
public boolean inSameToken(final StateToken token) {
return getCurrentStateToken().equals(token);
}
+ @Override
public boolean isCurrentStateAContent() {
return currentState instanceof StateContentDTO;
}
+ @Override
public boolean isCurrentStateAGroup() {
return currentState == null ? false : !currentState.getGroup().isPersonal();
}
+ @Override
public boolean isInCurrentUserSpace() {
if (!isLogged()) {
return false;
@@ -222,35 +254,43 @@
return false;
}
+ @Override
public boolean isLogged() {
return userHash != null;
}
+ @Override
public boolean isNotLogged() {
return !isLogged();
}
+ @Override
public void onInitDataReceived(final Listener<InitDataDTO> listener) {
onInitDataReceived.add(listener);
}
+ @Override
public void onUserSignIn(final Listener<UserInfoDTO> listener) {
onUserSignIn.add(listener);
}
+ @Override
public void onUserSignOut(final Listener0 listener) {
onUserSignOut.add(listener);
}
+ @Override
public void setCurrentLanguage(final I18nLanguageDTO currentLanguage) {
this.currentLanguage = currentLanguage;
eventBus.fireEvent(new I18nReadyEvent());
}
+ @Override
public void setCurrentState(final StateAbstractDTO currentState) {
this.currentState = currentState;
}
+ @Override
public void setCurrentUserInfo(final UserInfoDTO currentUserInfo) {
this.currentUserInfo = currentUserInfo;
if (currentUserInfo != null) {
@@ -260,17 +300,19 @@
}
}
+ @Override
public void setInitData(final InitDataDTO initData) {
this.initData = initData;
onInitDataReceived.fire(initData);
}
+ @Override
public void setUserHash(final String userHash) {
this.userHash = userHash;
}
private Object[][] mapCountries() {
- assert (initData != null);
+ assert initData != null;
final Object[][] objs = new Object[initData.getCountries().size()][1];
int i = 0;
for (final I18nCountryDTO country : initData.getCountries()) {
@@ -281,7 +323,7 @@
}
private Object[][] mapLangs() {
- assert (initData != null);
+ assert initData != null;
final Object[][] objs = new Object[initData.getLanguages().size()][1];
int i = 0;
for (final I18nLanguageSimpleDTO language : initData.getLanguages()) {
@@ -292,7 +334,7 @@
}
private void mapTimezones() {
- assert (initData != null);
+ assert initData != null;
timezonesArray = new Object[initData.getTimezones().length][1];
for (int i = 0; i < getTimezones().length; i++) {
final Object[] obj = new Object[] { initData.getTimezones()[i] };
Modified: trunk/src/main/java/cc/kune/core/client/state/StateManager.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/state/StateManager.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/cc/kune/core/client/state/StateManager.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -21,9 +21,9 @@
import cc.kune.core.client.actions.BeforeActionListener;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.SocialNetworkDataDTO;
import cc.kune.core.shared.dto.StateAbstractDTO;
-import cc.kune.core.shared.dto.StateToken;
import com.calclab.suco.client.events.Listener;
import com.calclab.suco.client.events.Listener0;
Modified: trunk/src/main/java/cc/kune/core/client/state/StateManagerDefault.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/state/StateManagerDefault.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/cc/kune/core/client/state/StateManagerDefault.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -25,9 +25,9 @@
import cc.kune.core.client.actions.BeforeActionListener;
import cc.kune.core.client.notify.SpinerPresenter;
import cc.kune.core.client.rpcservices.AsyncCallbackSimple;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.SocialNetworkDataDTO;
import cc.kune.core.shared.dto.StateAbstractDTO;
-import cc.kune.core.shared.dto.StateToken;
import cc.kune.core.shared.dto.UserInfoDTO;
import com.allen_sauer.gwt.log.client.Log;
Modified: trunk/src/main/java/cc/kune/core/client/ws/CorePresenter.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/ws/CorePresenter.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/cc/kune/core/client/ws/CorePresenter.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -1,5 +1,7 @@
package cc.kune.core.client.ws;
+import cc.kune.core.client.notify.AlertEvent;
+import cc.kune.core.client.notify.UserNotifierPresenter;
import cc.kune.core.shared.i18n.I18nTranslationService;
import com.google.inject.Inject;
@@ -15,7 +17,7 @@
* The Class CorePresenter.
*/
public class CorePresenter extends Presenter<CorePresenter.CoreView, CorePresenter.CoreProxy> {
- @ProxyCodeSplit
+ @ProxyCodeSplit
@NameToken("home")
public interface CoreProxy extends ProxyPlace<CorePresenter> {
}
@@ -25,13 +27,13 @@
@Inject
public CorePresenter(final EventBus eventBus, final CoreView view, final CoreProxy proxy,
- final I18nTranslationService i18n) {
+ final I18nTranslationService i18n, UserNotifierPresenter userNotifier) {
super(eventBus, view, proxy);
}
@Override
protected void revealInParent() {
- RevealRootLayoutContentEvent.fire(eventBus, this);
+ RevealRootLayoutContentEvent.fire(getEventBus(), this);
}
}
Copied: trunk/src/main/java/cc/kune/core/shared/domain/AccessRol.java (from rev 1166, trunk/src/main/java/org/ourproject/kune/platf/server/access/AccessRol.java)
===================================================================
--- trunk/src/main/java/cc/kune/core/shared/domain/AccessRol.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/shared/domain/AccessRol.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -0,0 +1,24 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.shared.domain;
+
+public enum AccessRol {
+ Administrator, Editor, Viewer
+}
Modified: trunk/src/main/java/cc/kune/core/shared/domain/GroupListMode.java
===================================================================
--- trunk/src/main/java/cc/kune/core/shared/domain/GroupListMode.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/cc/kune/core/shared/domain/GroupListMode.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -19,24 +19,8 @@
*/
package cc.kune.core.shared.domain;
-import java.util.List;
-
-
-import cc.kune.domain.Group;
-
import com.google.gwt.user.client.rpc.IsSerializable;
public enum GroupListMode implements IsSerializable {
NORMAL, NOBODY, EVERYONE;
-
- public boolean checkIfIncludes(final Group group, final List<Group> list) {
- switch (this) {
- case NOBODY:
- return false;
- case EVERYONE:
- return true;
- default:
- return list.contains(group);
- }
- }
}
Copied: trunk/src/main/java/cc/kune/core/shared/domain/utils/AccessRights.java (from rev 1166, trunk/src/main/java/org/ourproject/kune/platf/server/access/AccessRights.java)
===================================================================
--- trunk/src/main/java/cc/kune/core/shared/domain/utils/AccessRights.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/shared/domain/utils/AccessRights.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -0,0 +1,101 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.shared.domain.utils;
+
+public class AccessRights {
+ boolean administrable;
+ boolean editable;
+ boolean visible;
+
+ public AccessRights() {
+ this(false, false, false);
+ }
+
+ public AccessRights(final boolean administrable, final boolean editable,
+ final boolean visible) {
+ this.administrable = administrable;
+ this.editable = editable;
+ this.visible = visible;
+ }
+
+ public boolean isAdministrable() {
+ return administrable;
+ }
+
+ public boolean isEditable() {
+ return editable;
+ }
+
+ public boolean isVisible() {
+ return visible;
+ }
+
+ public void setAdministrable(final boolean isAdministrable) {
+ this.administrable = isAdministrable;
+ }
+
+ public void setEditable(final boolean isEditable) {
+ this.editable = isEditable;
+ }
+
+ public void setVisible(final boolean isVisible) {
+ this.visible = isVisible;
+ }
+
+ @Override
+ public boolean equals(final Object obj) {
+ if (this == obj) {
+ return true;
+ }
+ if (obj == null) {
+ return false;
+ }
+ if (getClass() != obj.getClass()) {
+ return false;
+ }
+ final AccessRights other = (AccessRights) obj;
+ if (administrable != other.administrable) {
+ return false;
+ }
+ if (editable != other.editable) {
+ return false;
+ }
+ if (visible != other.visible) {
+ return false;
+ }
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ final int prime = 31;
+ int result = 1;
+ result = prime * result + (administrable ? 1231 : 1237);
+ result = prime * result + (editable ? 1231 : 1237);
+ result = prime * result + (visible ? 1231 : 1237);
+ return result;
+ }
+
+ @Override
+ public String toString() {
+ return "AccessRights[a: " + administrable + ", e: " + editable
+ + ", v: " + visible + "]";
+ }
+}
Copied: trunk/src/main/java/cc/kune/core/shared/domain/utils/StateToken.java (from rev 1166, trunk/src/main/java/cc/kune/core/shared/dto/StateToken.java)
===================================================================
--- trunk/src/main/java/cc/kune/core/shared/domain/utils/StateToken.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/shared/domain/utils/StateToken.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -0,0 +1,256 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.shared.domain.utils;
+
+import com.google.gwt.user.client.rpc.IsSerializable;
+
+/**
+ * <pre>
+ * http://code.google.com/p/google-web-toolkit-doc-1-5/wiki/DevGuideHistory
+ * http://en.wikipedia.org/wiki/Fragment_identifier
+ * http://www.w3.org/DesignIssues/Fragment.html
+ * </pre>
+ *
+ * <pre>
+ * When an agent (such as a Web browser) requests a resource from a Web server, the agent sends the URI to the server, but does not send the fragment.
+ * </pre>
+ *
+ */
+public class StateToken implements IsSerializable {
+ public static final String SEPARATOR = ".";
+ private static final String[] EMPTYA = new String[0];
+
+ private static String encode(final String group, final String tool, final String folder, final String document) {
+ String encoded = "";
+ if (group != null) {
+ encoded += group;
+ }
+ if (tool != null) {
+ encoded += SEPARATOR + tool;
+ }
+ if (folder != null) {
+ encoded += SEPARATOR + folder;
+ }
+ if (document != null) {
+ encoded += SEPARATOR + document;
+ }
+ return encoded;
+ }
+
+ private String group;
+ private String tool;
+ private String folder;
+ private String document;
+
+ private String encoded;
+
+ public StateToken() {
+ this(null, null, null, null);
+ }
+
+ public StateToken(final String encoded) {
+ parse(encoded);
+ }
+
+ public StateToken(final String group, final String tool) { // NO_UCD
+ this(group, tool, null, null);
+ }
+
+ public StateToken(final String group, final String tool, final Long folder) {
+ this(group, tool, folder == null ? null : folder.toString(), null);
+ }
+
+ public StateToken(final String group, final String tool, final String folder, final String document) {
+ this.group = group;
+ this.tool = tool;
+ this.folder = folder;
+ this.document = document;
+ resetEncoded();
+ }
+
+ public StateToken clearDocument() {
+ this.document = null;
+ resetEncoded();
+ return this;
+ }
+
+ public StateToken clearFolder() { // NO_UCD
+ this.folder = null;
+ resetEncoded();
+ return this;
+ }
+
+ public StateToken copy() {
+ return new StateToken(this.getEncoded());
+ }
+
+ @Override
+ public boolean equals(final Object obj) {
+ if (this == obj) {
+ return true;
+ }
+ if (obj == null) {
+ return false;
+ }
+ if (getClass() != obj.getClass()) {
+ return false;
+ }
+ final StateToken other = (StateToken) obj;
+ if (getEncoded() == null) {
+ if (other.getEncoded() != null) {
+ return false;
+ }
+ } else if (!getEncoded().equals(other.getEncoded())) {
+ return false;
+ }
+ return true;
+ }
+
+ public String getDocument() {
+ return document;
+ }
+
+ public String getEncoded() {
+ if (encoded == null) {
+ encoded = StateToken.encode(getGroup(), getTool(), getFolder(), getDocument());
+ }
+ return encoded;
+ }
+
+ public String getFolder() {
+ return folder;
+ }
+
+ public String getGroup() {
+ return group;
+ }
+
+ public String getTool() {
+ return tool;
+ }
+
+ public boolean hasAll() {
+ return getGroup() != null && getTool() != null && getFolder() != null && getDocument() != null;
+ }
+
+ public boolean hasGroup() {
+ return getGroup() != null;
+ }
+
+ public boolean hasGroupAndTool() {
+ return getGroup() != null && getTool() != null;
+ }
+
+ public boolean hasGroupToolAndFolder() {
+ return getGroup() != null && getTool() != null && getFolder() != null;
+ }
+
+ @Override
+ public int hashCode() {
+ return getEncoded().hashCode();
+ }
+
+ public boolean hasNothing() {
+ return getGroup() == null && getTool() == null && getFolder() == null && getDocument() == null;
+ }
+
+ public boolean hasSameContainer(final StateToken currentStateToken) {
+ boolean same = false;
+ if (copy().clearDocument().getEncoded().equals(currentStateToken.copy().clearDocument().getEncoded())) {
+ same = true;
+ }
+ return same;
+ }
+
+ public boolean isComplete() {
+ return getDocument() != null;
+ }
+
+ public StateToken setDocument(final Long document) {
+ this.document = document == null ? null : document.toString();
+ resetEncoded();
+ return this;
+ }
+
+ public StateToken setDocument(final String document) {
+ this.document = document;
+ resetEncoded();
+ return this;
+ }
+
+ public void setEncoded(final String encoded) {
+ parse(encoded);
+ }
+
+ public StateToken setFolder(final Long folder) {
+ this.folder = folder == null ? null : folder.toString();
+ resetEncoded();
+ return this;
+ }
+
+ public StateToken setFolder(final String folder) { // NO_UCD
+ this.folder = folder;
+ resetEncoded();
+ return this;
+ }
+
+ public StateToken setGroup(final String group) { // NO_UCD
+ this.group = group;
+ resetEncoded();
+ return this;
+ }
+
+ public StateToken setTool(final String tool) { // NO_UCD
+ this.tool = tool;
+ resetEncoded();
+ return this;
+ }
+
+ @Override
+ public String toString() {
+ return getEncoded();
+ }
+
+ private String conditionalAssign(final int index, final String[] splitted) {
+ if (splitted.length > index) {
+ return splitted[index];
+ } else {
+ return null;
+ }
+ }
+
+ private void parse(final String encoded) {
+ String[] splitted;
+ if (encoded != null && encoded.length() > 0) {
+ splitted = encoded.split("\\.");
+ } else {
+ splitted = EMPTYA;
+ }
+ group = conditionalAssign(0, splitted);
+ tool = conditionalAssign(1, splitted);
+ folder = conditionalAssign(2, splitted);
+ document = conditionalAssign(3, splitted);
+ resetEncoded();
+ }
+
+ private void resetEncoded() {
+ encoded = null;
+ }
+}
Deleted: trunk/src/main/java/cc/kune/core/shared/dto/AccessRightsDTO.java
===================================================================
--- trunk/src/main/java/cc/kune/core/shared/dto/AccessRightsDTO.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/cc/kune/core/shared/dto/AccessRightsDTO.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -1,101 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package cc.kune.core.shared.dto;
-
-import com.google.gwt.user.client.rpc.IsSerializable;
-
-public class AccessRightsDTO implements IsSerializable {
- private boolean administrable;
- private boolean editable;
- private boolean visible;
-
- public AccessRightsDTO() {
- this(false, false, false);
- }
-
- public AccessRightsDTO(final boolean isAdministrable, final boolean isEditable, final boolean isVisible) {
- this.administrable = isAdministrable;
- this.editable = isEditable;
- this.visible = isVisible;
- }
-
- @Override
- public boolean equals(final Object obj) {
- if (this == obj) {
- return true;
- }
- if (obj == null) {
- return false;
- }
- if (getClass() != obj.getClass()) {
- return false;
- }
- final AccessRightsDTO other = (AccessRightsDTO) obj;
- if (administrable != other.administrable) {
- return false;
- }
- if (editable != other.editable) {
- return false;
- }
- if (visible != other.visible) {
- return false;
- }
- return true;
- }
-
- @Override
- public int hashCode() {
- final int prime = 31;
- int result = 1;
- result = prime * result + (administrable ? 1231 : 1237);
- result = prime * result + (editable ? 1231 : 1237);
- result = prime * result + (visible ? 1231 : 1237);
- return result;
- }
-
- public boolean isAdministrable() {
- return administrable;
- }
-
- public boolean isEditable() {
- return editable;
- }
-
- public boolean isVisible() {
- return visible;
- }
-
- public void setAdministrable(final boolean administrable) {
- this.administrable = administrable;
- }
-
- public void setEditable(final boolean editable) {
- this.editable = editable;
- }
-
- public void setVisible(final boolean visible) {
- this.visible = visible;
- }
-
- @Override
- public String toString() {
- return "AccessRightsDTO[a: " + administrable + ", e: " + editable + ", v: " + visible + "]";
- }
-}
Modified: trunk/src/main/java/cc/kune/core/shared/dto/ContainerDTO.java
===================================================================
--- trunk/src/main/java/cc/kune/core/shared/dto/ContainerDTO.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/cc/kune/core/shared/dto/ContainerDTO.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -21,6 +21,8 @@
import java.util.List;
+import cc.kune.core.shared.domain.utils.StateToken;
+
import com.google.gwt.user.client.rpc.IsSerializable;
public class ContainerDTO implements IsSerializable {
Modified: trunk/src/main/java/cc/kune/core/shared/dto/ContainerSimpleDTO.java
===================================================================
--- trunk/src/main/java/cc/kune/core/shared/dto/ContainerSimpleDTO.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/cc/kune/core/shared/dto/ContainerSimpleDTO.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -19,6 +19,8 @@
*/
package cc.kune.core.shared.dto;
+import cc.kune.core.shared.domain.utils.StateToken;
+
import com.google.gwt.user.client.rpc.IsSerializable;
/**
Modified: trunk/src/main/java/cc/kune/core/shared/dto/ContentSimpleDTO.java
===================================================================
--- trunk/src/main/java/cc/kune/core/shared/dto/ContentSimpleDTO.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/cc/kune/core/shared/dto/ContentSimpleDTO.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -20,6 +20,8 @@
package cc.kune.core.shared.dto;
import cc.kune.core.shared.domain.ContentStatus;
+import cc.kune.core.shared.domain.utils.AccessRights;
+import cc.kune.core.shared.domain.utils.StateToken;
import com.google.gwt.user.client.rpc.IsSerializable;
@@ -30,7 +32,7 @@
private String typeId;
private StateToken stateToken;
private ContentStatus status;
- private AccessRightsDTO rights;
+ private AccessRights rights;
private BasicMimeTypeDTO mimeType;
public Long getId() {
@@ -41,7 +43,7 @@
return mimeType;
}
- public AccessRightsDTO getRights() {
+ public AccessRights getRights() {
return rights;
}
@@ -69,7 +71,7 @@
this.mimeType = mimeType;
}
- public void setRights(final AccessRightsDTO rights) {
+ public void setRights(final AccessRights rights) {
this.rights = rights;
}
Modified: trunk/src/main/java/cc/kune/core/shared/dto/GroupDTO.java
===================================================================
--- trunk/src/main/java/cc/kune/core/shared/dto/GroupDTO.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/cc/kune/core/shared/dto/GroupDTO.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -20,6 +20,7 @@
package cc.kune.core.shared.dto;
import cc.kune.core.shared.domain.AdmissionType;
+import cc.kune.core.shared.domain.utils.StateToken;
import com.google.gwt.user.client.rpc.IsSerializable;
Modified: trunk/src/main/java/cc/kune/core/shared/dto/SocialNetworkDataDTO.java
===================================================================
--- trunk/src/main/java/cc/kune/core/shared/dto/SocialNetworkDataDTO.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/cc/kune/core/shared/dto/SocialNetworkDataDTO.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -21,6 +21,7 @@
import cc.kune.core.shared.domain.SocialNetworkVisibility;
import cc.kune.core.shared.domain.UserBuddiesVisibility;
+import cc.kune.core.shared.domain.utils.AccessRights;
import com.google.gwt.user.client.rpc.IsSerializable;
@@ -31,7 +32,7 @@
private ParticipationDataDTO userParticipation;
private UserBuddiesVisibility userBuddiesVisibility;
private UserBuddiesDataDTO userBuddies;
- private AccessRightsDTO groupRights;
+ private AccessRights groupRights;
private boolean isBuddiesVisible;
private boolean isMembersVisible;
@@ -42,7 +43,7 @@
public SocialNetworkDataDTO(final SocialNetworkVisibility socialNetworkVisibility,
final SocialNetworkDTO groupMembers, final ParticipationDataDTO userParticipation,
final UserBuddiesVisibility userBuddiesVisibility, final UserBuddiesDataDTO userBuddies,
- final AccessRightsDTO groupRights, final boolean isBuddiesVisible, final boolean isMembersVisible) {
+ final AccessRights groupRights, final boolean isBuddiesVisible, final boolean isMembersVisible) {
this.socialNetworkVisibility = socialNetworkVisibility;
this.groupMembers = groupMembers;
this.userParticipation = userParticipation;
@@ -57,7 +58,7 @@
return groupMembers;
}
- public AccessRightsDTO getGroupRights() {
+ public AccessRights getGroupRights() {
return groupRights;
}
@@ -101,7 +102,7 @@
this.groupMembers = groupMembers;
}
- public void setGroupRights(final AccessRightsDTO groupRights) {
+ public void setGroupRights(final AccessRights groupRights) {
this.groupRights = groupRights;
}
Modified: trunk/src/main/java/cc/kune/core/shared/dto/StateAbstractDTO.java
===================================================================
--- trunk/src/main/java/cc/kune/core/shared/dto/StateAbstractDTO.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/cc/kune/core/shared/dto/StateAbstractDTO.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -21,6 +21,9 @@
import java.util.List;
+import cc.kune.core.shared.domain.utils.AccessRights;
+import cc.kune.core.shared.domain.utils.StateToken;
+
import com.google.gwt.user.client.rpc.IsSerializable;
public abstract class StateAbstractDTO implements IsSerializable {
@@ -46,7 +49,7 @@
return socialNetworkData.getGroupMembers();
}
- public AccessRightsDTO getGroupRights() {
+ public AccessRights getGroupRights() {
return socialNetworkData.getGroupRights();
}
Modified: trunk/src/main/java/cc/kune/core/shared/dto/StateContainerDTO.java
===================================================================
--- trunk/src/main/java/cc/kune/core/shared/dto/StateContainerDTO.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/cc/kune/core/shared/dto/StateContainerDTO.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -20,6 +20,7 @@
package cc.kune.core.shared.dto;
import cc.kune.core.shared.domain.TagCloudResult;
+import cc.kune.core.shared.domain.utils.AccessRights;
import com.google.gwt.user.client.rpc.IsSerializable;
@@ -30,7 +31,7 @@
private String toolName;
private ContainerDTO container;
private ContainerDTO rootContainer;
- private AccessRightsDTO containerRights;
+ private AccessRights containerRights;
private LicenseDTO license;
private TagCloudResult tagCloudResult;
private AccessListsDTO accessLists;
@@ -46,7 +47,7 @@
return container;
}
- public AccessRightsDTO getContainerRights() {
+ public AccessRights getContainerRights() {
return containerRights;
}
@@ -86,7 +87,7 @@
this.container = container;
}
- public void setContainerRights(final AccessRightsDTO containerRights) {
+ public void setContainerRights(final AccessRights containerRights) {
this.containerRights = containerRights;
}
Modified: trunk/src/main/java/cc/kune/core/shared/dto/StateContentDTO.java
===================================================================
--- trunk/src/main/java/cc/kune/core/shared/dto/StateContentDTO.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/cc/kune/core/shared/dto/StateContentDTO.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -24,6 +24,7 @@
import cc.kune.core.shared.domain.ContentStatus;
import cc.kune.core.shared.domain.RateResult;
+import cc.kune.core.shared.domain.utils.AccessRights;
import com.google.gwt.user.client.rpc.IsSerializable;
@@ -32,7 +33,7 @@
private String documentId;
private int version;
private String content;
- private AccessRightsDTO contentRights;
+ private AccessRights contentRights;
private ContentStatus status;
private Double rate;
private Integer rateByUsers;
@@ -53,7 +54,7 @@
return content;
}
- public AccessRightsDTO getContentRights() {
+ public AccessRights getContentRights() {
return contentRights;
}
@@ -101,7 +102,7 @@
this.content = content;
}
- public void setContentRights(final AccessRightsDTO contentRights) {
+ public void setContentRights(final AccessRights contentRights) {
this.contentRights = contentRights;
}
Deleted: trunk/src/main/java/cc/kune/core/shared/dto/StateToken.java
===================================================================
--- trunk/src/main/java/cc/kune/core/shared/dto/StateToken.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/cc/kune/core/shared/dto/StateToken.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -1,256 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package cc.kune.core.shared.dto;
-
-import com.google.gwt.user.client.rpc.IsSerializable;
-
-/**
- * <pre>
- * http://code.google.com/p/google-web-toolkit-doc-1-5/wiki/DevGuideHistory
- * http://en.wikipedia.org/wiki/Fragment_identifier
- * http://www.w3.org/DesignIssues/Fragment.html
- * </pre>
- *
- * <pre>
- * When an agent (such as a Web browser) requests a resource from a Web server, the agent sends the URI to the server, but does not send the fragment.
- * </pre>
- *
- */
-public class StateToken implements IsSerializable {
- public static final String SEPARATOR = ".";
- private static final String[] EMPTYA = new String[0];
-
- private static String encode(final String group, final String tool, final String folder, final String document) {
- String encoded = "";
- if (group != null) {
- encoded += group;
- }
- if (tool != null) {
- encoded += SEPARATOR + tool;
- }
- if (folder != null) {
- encoded += SEPARATOR + folder;
- }
- if (document != null) {
- encoded += SEPARATOR + document;
- }
- return encoded;
- }
-
- private String group;
- private String tool;
- private String folder;
- private String document;
-
- private String encoded;
-
- public StateToken() {
- this(null, null, null, null);
- }
-
- public StateToken(final String encoded) {
- parse(encoded);
- }
-
- public StateToken(final String group, final String tool) { // NO_UCD
- this(group, tool, null, null);
- }
-
- public StateToken(final String group, final String tool, final Long folder) {
- this(group, tool, folder == null ? null : folder.toString(), null);
- }
-
- public StateToken(final String group, final String tool, final String folder, final String document) {
- this.group = group;
- this.tool = tool;
- this.folder = folder;
- this.document = document;
- resetEncoded();
- }
-
- public StateToken clearDocument() {
- this.document = null;
- resetEncoded();
- return this;
- }
-
- public StateToken clearFolder() { // NO_UCD
- this.folder = null;
- resetEncoded();
- return this;
- }
-
- public StateToken copy() {
- return new StateToken(this.getEncoded());
- }
-
- @Override
- public boolean equals(final Object obj) {
- if (this == obj) {
- return true;
- }
- if (obj == null) {
- return false;
- }
- if (getClass() != obj.getClass()) {
- return false;
- }
- final StateToken other = (StateToken) obj;
- if (getEncoded() == null) {
- if (other.getEncoded() != null) {
- return false;
- }
- } else if (!getEncoded().equals(other.getEncoded())) {
- return false;
- }
- return true;
- }
-
- public String getDocument() {
- return document;
- }
-
- public String getEncoded() {
- if (encoded == null) {
- encoded = StateToken.encode(getGroup(), getTool(), getFolder(), getDocument());
- }
- return encoded;
- }
-
- public String getFolder() {
- return folder;
- }
-
- public String getGroup() {
- return group;
- }
-
- public String getTool() {
- return tool;
- }
-
- public boolean hasAll() {
- return getGroup() != null && getTool() != null && getFolder() != null && getDocument() != null;
- }
-
- public boolean hasGroup() {
- return getGroup() != null;
- }
-
- public boolean hasGroupAndTool() {
- return getGroup() != null && getTool() != null;
- }
-
- public boolean hasGroupToolAndFolder() {
- return getGroup() != null && getTool() != null && getFolder() != null;
- }
-
- @Override
- public int hashCode() {
- return getEncoded().hashCode();
- }
-
- public boolean hasNothing() {
- return getGroup() == null && getTool() == null && getFolder() == null && getDocument() == null;
- }
-
- public boolean hasSameContainer(final StateToken currentStateToken) {
- boolean same = false;
- if (copy().clearDocument().getEncoded().equals(currentStateToken.copy().clearDocument().getEncoded())) {
- same = true;
- }
- return same;
- }
-
- public boolean isComplete() {
- return getDocument() != null;
- }
-
- public StateToken setDocument(final Long document) {
- this.document = document == null ? null : document.toString();
- resetEncoded();
- return this;
- }
-
- public StateToken setDocument(final String document) {
- this.document = document;
- resetEncoded();
- return this;
- }
-
- public void setEncoded(final String encoded) {
- parse(encoded);
- }
-
- public StateToken setFolder(final Long folder) {
- this.folder = folder == null ? null : folder.toString();
- resetEncoded();
- return this;
- }
-
- public StateToken setFolder(final String folder) { // NO_UCD
- this.folder = folder;
- resetEncoded();
- return this;
- }
-
- public StateToken setGroup(final String group) { // NO_UCD
- this.group = group;
- resetEncoded();
- return this;
- }
-
- public StateToken setTool(final String tool) { // NO_UCD
- this.tool = tool;
- resetEncoded();
- return this;
- }
-
- @Override
- public String toString() {
- return getEncoded();
- }
-
- private String conditionalAssign(final int index, final String[] splitted) {
- if (splitted.length > index) {
- return splitted[index];
- } else {
- return null;
- }
- }
-
- private void parse(final String encoded) {
- String[] splitted;
- if (encoded != null && encoded.length() > 0) {
- splitted = encoded.split("\\.");
- } else {
- splitted = EMPTYA;
- }
- group = conditionalAssign(0, splitted);
- tool = conditionalAssign(1, splitted);
- folder = conditionalAssign(2, splitted);
- document = conditionalAssign(3, splitted);
- resetEncoded();
- }
-
- private void resetEncoded() {
- encoded = null;
- }
-}
Modified: trunk/src/main/java/cc/kune/core/shared/dto/StateTokenUtils.java
===================================================================
--- trunk/src/main/java/cc/kune/core/shared/dto/StateTokenUtils.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/cc/kune/core/shared/dto/StateTokenUtils.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -1,6 +1,7 @@
package cc.kune.core.shared.dto;
import cc.kune.core.client.state.Session;
+import cc.kune.core.shared.domain.utils.StateToken;
public class StateTokenUtils {
Modified: trunk/src/main/java/cc/kune/core/shared/dto/UserSimpleDTO.java
===================================================================
--- trunk/src/main/java/cc/kune/core/shared/dto/UserSimpleDTO.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/cc/kune/core/shared/dto/UserSimpleDTO.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -19,6 +19,8 @@
*/
package cc.kune.core.shared.dto;
+import cc.kune.core.shared.domain.utils.StateToken;
+
import com.google.gwt.user.client.rpc.IsSerializable;
public class UserSimpleDTO implements IsSerializable {
Modified: trunk/src/main/java/cc/kune/domain/AccessLists.java
===================================================================
--- trunk/src/main/java/cc/kune/domain/AccessLists.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/cc/kune/domain/AccessLists.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -27,8 +27,9 @@
import javax.persistence.Table;
import org.hibernate.search.annotations.DocumentId;
-import org.ourproject.kune.platf.server.access.AccessRol;
+import cc.kune.core.shared.domain.AccessRol;
+
@Entity
@Table(name = "access_lists")
public class AccessLists {
Modified: trunk/src/main/java/cc/kune/domain/Container.java
===================================================================
--- trunk/src/main/java/cc/kune/domain/Container.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/cc/kune/domain/Container.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -49,7 +49,7 @@
import org.hibernate.search.annotations.IndexedEmbedded;
import org.hibernate.search.annotations.Store;
-import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.domain.utils.HasId;
import cc.kune.domain.utils.HasStateToken;
Modified: trunk/src/main/java/cc/kune/domain/Content.java
===================================================================
--- trunk/src/main/java/cc/kune/domain/Content.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/cc/kune/domain/Content.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -53,7 +53,7 @@
import org.hibernate.search.annotations.IndexedEmbedded;
import cc.kune.core.shared.domain.ContentStatus;
-import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.domain.utils.HasStateToken;
import com.google.inject.name.Named;
Modified: trunk/src/main/java/cc/kune/domain/Group.java
===================================================================
--- trunk/src/main/java/cc/kune/domain/Group.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/cc/kune/domain/Group.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -47,8 +47,8 @@
import org.hibernate.validator.constraints.Length;
import cc.kune.core.shared.domain.AdmissionType;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.GroupType;
-import cc.kune.core.shared.dto.StateToken;
import cc.kune.domain.utils.HasId;
import com.google.inject.name.Named;
Modified: trunk/src/main/java/cc/kune/domain/GroupList.java
===================================================================
--- trunk/src/main/java/cc/kune/domain/GroupList.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/cc/kune/domain/GroupList.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -74,6 +74,17 @@
}
}
+ public boolean checkIfIncludes(final Group group, final List<Group> list, final GroupListMode mode) {
+ switch (mode) {
+ case NOBODY:
+ return false;
+ case EVERYONE:
+ return true;
+ default:
+ return list.contains(group);
+ }
+ }
+
public ArrayList<Group> duplicate() {
return new ArrayList<Group>(list);
}
@@ -91,7 +102,7 @@
}
public boolean includes(final Group group) {
- return mode.checkIfIncludes(group, this.list);
+ return checkIfIncludes(group, this.list, mode);
}
public boolean isEmpty() {
Modified: trunk/src/main/java/cc/kune/domain/User.java
===================================================================
--- trunk/src/main/java/cc/kune/domain/User.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/cc/kune/domain/User.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -46,7 +46,7 @@
import org.hibernate.validator.constraints.Length;
import cc.kune.core.shared.domain.UserBuddiesVisibility;
-import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.domain.utils.HasId;
import com.google.inject.name.Named;
Modified: trunk/src/main/java/cc/kune/domain/utils/HasStateToken.java
===================================================================
--- trunk/src/main/java/cc/kune/domain/utils/HasStateToken.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/cc/kune/domain/utils/HasStateToken.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -19,7 +19,7 @@
*/
package cc.kune.domain.utils;
-import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.domain.utils.StateToken;
public interface HasStateToken {
Modified: trunk/src/main/java/cc/kune/domain/utils/SocialNetworkData.java
===================================================================
--- trunk/src/main/java/cc/kune/domain/utils/SocialNetworkData.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/cc/kune/domain/utils/SocialNetworkData.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -19,12 +19,13 @@
*/
package cc.kune.domain.utils;
-import org.ourproject.kune.platf.server.access.AccessRights;
+
import org.ourproject.kune.platf.server.sn.ParticipationData;
import org.ourproject.kune.platf.server.sn.UserBuddiesData;
import cc.kune.core.shared.domain.SocialNetworkVisibility;
import cc.kune.core.shared.domain.UserBuddiesVisibility;
+import cc.kune.core.shared.domain.utils.AccessRights;
import cc.kune.domain.SocialNetwork;
public class SocialNetworkData {
Modified: trunk/src/main/java/org/ourproject/kune/blogs/client/cnt/BlogFolderContentPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/blogs/client/cnt/BlogFolderContentPresenter.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/blogs/client/cnt/BlogFolderContentPresenter.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -28,8 +28,8 @@
import cc.kune.core.client.state.Session;
import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.StateContainerDTO;
-import cc.kune.core.shared.dto.StateToken;
import cc.kune.core.shared.i18n.I18nTranslationService;
import com.calclab.suco.client.ioc.Provider;
Modified: trunk/src/main/java/org/ourproject/kune/chat/client/ChatClientActions.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/chat/client/ChatClientActions.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/chat/client/ChatClientActions.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -35,8 +35,8 @@
import cc.kune.core.client.i18n.I18nUITranslationService;
import cc.kune.core.client.state.Session;
import cc.kune.core.shared.domain.ContentStatus;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.AccessRolDTO;
-import cc.kune.core.shared.dto.StateToken;
import com.calclab.suco.client.events.Listener;
import com.calclab.suco.client.events.Listener0;
Modified: trunk/src/main/java/org/ourproject/kune/chat/client/cnt/ChatRoomPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/chat/client/cnt/ChatRoomPresenter.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/chat/client/cnt/ChatRoomPresenter.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -30,8 +30,8 @@
import cc.kune.core.client.state.Session;
import cc.kune.core.client.state.StateManager;
import cc.kune.core.client.utils.TextUtils;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.StateContainerDTO;
-import cc.kune.core.shared.dto.StateToken;
import com.calclab.suco.client.ioc.Provider;
Modified: trunk/src/main/java/org/ourproject/kune/docs/client/cnt/DocFolderContentPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/docs/client/cnt/DocFolderContentPresenter.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/docs/client/cnt/DocFolderContentPresenter.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -28,7 +28,7 @@
import cc.kune.core.client.state.Session;
import cc.kune.core.client.state.StateManager;
-import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.i18n.I18nTranslationService;
import com.calclab.suco.client.ioc.Provider;
Modified: trunk/src/main/java/org/ourproject/kune/gallery/client/cnt/GalleryFolderContentPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/gallery/client/cnt/GalleryFolderContentPanel.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/gallery/client/cnt/GalleryFolderContentPanel.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -25,7 +25,7 @@
import cc.kune.core.client.state.Session;
import cc.kune.core.client.state.StateManager;
-import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.i18n.I18nTranslationService;
import com.google.gwt.core.client.Scheduler;
Modified: trunk/src/main/java/org/ourproject/kune/gallery/client/cnt/GalleryFolderContentPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/gallery/client/cnt/GalleryFolderContentPresenter.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/gallery/client/cnt/GalleryFolderContentPresenter.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -29,10 +29,10 @@
import cc.kune.core.client.state.Session;
import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.ContainerDTO;
import cc.kune.core.shared.dto.ContentSimpleDTO;
import cc.kune.core.shared.dto.StateContainerDTO;
-import cc.kune.core.shared.dto.StateToken;
import cc.kune.core.shared.i18n.I18nTranslationService;
import com.calclab.suco.client.ioc.Provider;
Modified: trunk/src/main/java/org/ourproject/kune/gallery/client/cnt/GalleryFolderContentView.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/gallery/client/cnt/GalleryFolderContentView.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/gallery/client/cnt/GalleryFolderContentView.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -21,7 +21,7 @@
import org.ourproject.kune.workspace.client.cnt.AbstractContentView;
-import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.domain.utils.StateToken;
public interface GalleryFolderContentView extends AbstractContentView {
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/actions/ActionRegistry.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/actions/ActionRegistry.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/actions/ActionRegistry.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -21,9 +21,8 @@
import java.util.HashMap;
+import cc.kune.core.shared.domain.utils.AccessRights;
-import cc.kune.core.shared.dto.AccessRightsDTO;
-
import com.allen_sauer.gwt.log.client.Log;
public class ActionRegistry<T> {
@@ -40,7 +39,7 @@
}
public void addAction(final ActionDescriptor<T> action, final String... typeIds) {
- assert (action != null);
+ assert action != null;
for (final String typeId : typeIds) {
String text = action.getText();
Log.debug("Registering action " + (text == null ? "with icon" : "'" + text + "'") + " for " + typeId);
@@ -49,13 +48,13 @@
}
}
- public ActionItemCollection<T> getCurrentActions(final T item, final boolean isLogged,
- final AccessRightsDTO rights, final boolean toolbarItems) {
+ public ActionItemCollection<T> getCurrentActions(final T item, final boolean isLogged, final AccessRights rights,
+ final boolean toolbarItems) {
return getCurrentActions(item, GENERIC, isLogged, rights, toolbarItems);
}
public ActionItemCollection<T> getCurrentActions(final T item, final String typeId, final boolean isLogged,
- final AccessRightsDTO rights, final boolean toolbarItems) {
+ final AccessRights rights, final boolean toolbarItems) {
final ActionItemCollection<T> collection = new ActionItemCollection<T>();
for (final ActionDescriptor<T> action : getActions(typeId)) {
@@ -98,7 +97,7 @@
return actionColl;
}
- private boolean mustAdd(final boolean isLogged, final AccessRightsDTO rights, final ActionDescriptor<T> action) {
+ private boolean mustAdd(final boolean isLogged, final AccessRights rights, final ActionDescriptor<T> action) {
if (action.mustBeAuthenticated()) {
if (!isLogged) {
return false;
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/ui/download/FileDownloadUtils.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/ui/download/FileDownloadUtils.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/ui/download/FileDownloadUtils.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -25,7 +25,7 @@
import org.ourproject.kune.platf.client.utils.UrlParam;
import cc.kune.core.client.state.Session;
-import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.domain.utils.StateToken;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.DOM;
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertmedia/abstractmedia/MediaUtils.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertmedia/abstractmedia/MediaUtils.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertmedia/abstractmedia/MediaUtils.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -4,7 +4,7 @@
import org.ourproject.kune.platf.client.ui.rte.insertimg.ContentPosition;
import cc.kune.core.client.state.Session;
-import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.domain.utils.StateToken;
public class MediaUtils {
Deleted: trunk/src/main/java/org/ourproject/kune/platf/server/access/AccessRights.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/access/AccessRights.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/access/AccessRights.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -1,65 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package org.ourproject.kune.platf.server.access;
-
-public class AccessRights {
- boolean administrable;
- boolean editable;
- boolean visible;
-
- public AccessRights() {
- this(false, false, false);
- }
-
- public AccessRights(final boolean administrable, final boolean editable, final boolean visible) {
- this.administrable = administrable;
- this.editable = editable;
- this.visible = visible;
- }
-
- public boolean isAdministrable() {
- return administrable;
- }
-
- public boolean isEditable() {
- return editable;
- }
-
- public boolean isVisible() {
- return visible;
- }
-
- public void setAdministrable(final boolean isAdministrable) {
- this.administrable = isAdministrable;
- }
-
- public void setEditable(final boolean isEditable) {
- this.editable = isEditable;
- }
-
- public void setVisible(final boolean isVisible) {
- this.visible = isVisible;
- }
-
- @Override
- public String toString() {
- return "AccessRights[a: " + administrable + ", e: " + editable + ", v: " + visible + "]";
- }
-}
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/access/AccessRightsService.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/access/AccessRightsService.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/access/AccessRightsService.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -19,6 +19,7 @@
*/
package org.ourproject.kune.platf.server.access;
+import cc.kune.core.shared.domain.utils.AccessRights;
import cc.kune.domain.AccessLists;
import cc.kune.domain.User;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/access/AccessRightsServiceDefault.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/access/AccessRightsServiceDefault.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/access/AccessRightsServiceDefault.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -23,6 +23,8 @@
import java.util.HashSet;
+import cc.kune.core.shared.domain.AccessRol;
+import cc.kune.core.shared.domain.utils.AccessRights;
import cc.kune.domain.AccessLists;
import cc.kune.domain.Group;
import cc.kune.domain.GroupList;
Deleted: trunk/src/main/java/org/ourproject/kune/platf/server/access/AccessRol.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/access/AccessRol.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/access/AccessRol.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -1,24 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package org.ourproject.kune.platf.server.access;
-
-public enum AccessRol {
- Administrator, Editor, Viewer
-}
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/access/AccessService.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/access/AccessService.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/access/AccessService.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -21,6 +21,7 @@
import cc.kune.core.client.errors.DefaultException;
+import cc.kune.core.shared.domain.AccessRol;
import cc.kune.domain.Container;
import cc.kune.domain.Content;
import cc.kune.domain.User;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/access/AccessServiceDefault.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/access/AccessServiceDefault.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/access/AccessServiceDefault.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -22,6 +22,8 @@
import cc.kune.core.client.errors.AccessViolationException;
import cc.kune.core.client.errors.DefaultException;
+import cc.kune.core.shared.domain.AccessRol;
+import cc.kune.core.shared.domain.utils.AccessRights;
import cc.kune.domain.AccessLists;
import cc.kune.domain.Container;
import cc.kune.domain.Content;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/access/FinderService.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/access/FinderService.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/access/FinderService.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -21,7 +21,7 @@
import cc.kune.core.client.errors.DefaultException;
-import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.domain.Comment;
import cc.kune.domain.Container;
import cc.kune.domain.Content;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/access/FinderServiceDefault.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/access/FinderServiceDefault.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/access/FinderServiceDefault.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -33,7 +33,7 @@
import cc.kune.core.client.errors.GroupNotFoundException;
import cc.kune.core.client.errors.NoDefaultContentException;
import cc.kune.core.client.errors.ToolNotFoundException;
-import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.domain.Comment;
import cc.kune.domain.Container;
import cc.kune.domain.Content;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/auth/Authorizated.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/auth/Authorizated.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/auth/Authorizated.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -22,8 +22,9 @@
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
-import org.ourproject.kune.platf.server.access.AccessRol;
+import cc.kune.core.shared.domain.AccessRol;
+
import com.google.inject.BindingAnnotation;
/**
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/auth/AuthorizatedMethodInterceptor.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/auth/AuthorizatedMethodInterceptor.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/auth/AuthorizatedMethodInterceptor.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -24,15 +24,15 @@
import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;
import org.ourproject.kune.platf.server.UserSession;
-import org.ourproject.kune.platf.server.access.AccessRights;
import org.ourproject.kune.platf.server.access.AccessRightsService;
-import org.ourproject.kune.platf.server.access.AccessRol;
import org.ourproject.kune.platf.server.access.AccessService;
import org.ourproject.kune.platf.server.content.ContentUtils;
import org.ourproject.kune.platf.server.manager.GroupManager;
import cc.kune.core.client.errors.AccessViolationException;
-import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.domain.AccessRol;
+import cc.kune.core.shared.domain.utils.AccessRights;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.domain.Container;
import cc.kune.domain.Content;
import cc.kune.domain.Group;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/SocialNetworkManager.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/SocialNetworkManager.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/SocialNetworkManager.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -19,6 +19,7 @@
*/
package org.ourproject.kune.platf.server.manager;
+
import org.ourproject.kune.platf.server.sn.ParticipationData;
import cc.kune.core.client.errors.AccessViolationException;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/EntityLogoDownloadManager.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/EntityLogoDownloadManager.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/EntityLogoDownloadManager.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -30,7 +30,7 @@
import org.ourproject.kune.platf.client.ui.download.FileConstants;
import org.ourproject.kune.platf.server.manager.GroupManager;
-import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.domain.Group;
import com.google.inject.Inject;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/EntityLogoUploadManager.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/EntityLogoUploadManager.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/EntityLogoUploadManager.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -30,13 +30,13 @@
import org.apache.commons.fileupload.FileItem;
import org.ourproject.kune.platf.client.ui.download.FileConstants;
-import org.ourproject.kune.platf.server.access.AccessRol;
import org.ourproject.kune.platf.server.auth.ActionLevel;
import org.ourproject.kune.platf.server.auth.Authenticated;
import org.ourproject.kune.platf.server.auth.Authorizated;
import org.ourproject.kune.platf.server.manager.GroupManager;
-import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.domain.AccessRol;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.i18n.I18nTranslationService;
import cc.kune.domain.BasicMimeType;
import cc.kune.domain.Group;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/FileDownloadManager.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/FileDownloadManager.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/FileDownloadManager.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -33,7 +33,6 @@
import org.apache.commons.logging.LogFactory;
import org.ourproject.kune.platf.client.ui.download.FileConstants;
import org.ourproject.kune.platf.client.ui.download.ImageSize;
-import org.ourproject.kune.platf.server.access.AccessRol;
import org.ourproject.kune.platf.server.auth.ActionLevel;
import org.ourproject.kune.platf.server.auth.Authenticated;
import org.ourproject.kune.platf.server.auth.Authorizated;
@@ -42,7 +41,8 @@
import org.ourproject.kune.platf.server.properties.KuneProperties;
import cc.kune.core.client.errors.ContentNotFoundException;
-import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.domain.AccessRol;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.domain.BasicMimeType;
import cc.kune.domain.Content;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/FileUploadManager.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/FileUploadManager.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/FileUploadManager.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -28,7 +28,6 @@
import org.apache.commons.fileupload.FileItem;
import org.ourproject.kune.platf.client.ui.download.ImageSize;
import org.ourproject.kune.platf.server.UserSession;
-import org.ourproject.kune.platf.server.access.AccessRol;
import org.ourproject.kune.platf.server.access.AccessService;
import org.ourproject.kune.platf.server.auth.ActionLevel;
import org.ourproject.kune.platf.server.auth.Authenticated;
@@ -39,7 +38,8 @@
import org.ourproject.kune.platf.server.properties.KuneProperties;
import org.ourproject.kune.platf.server.utils.StringW;
-import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.domain.AccessRol;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.i18n.I18nTranslationService;
import cc.kune.domain.BasicMimeType;
import cc.kune.domain.Container;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/FileUploadManagerAbstract.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/FileUploadManagerAbstract.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/FileUploadManagerAbstract.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -40,7 +40,7 @@
import org.ourproject.kune.platf.client.ui.download.FileConstants;
import org.ourproject.kune.platf.server.properties.KuneProperties;
-import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.domain.utils.StateToken;
import com.google.inject.Inject;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/FileUtils.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/FileUtils.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/FileUtils.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -24,7 +24,7 @@
import java.io.IOException;
import java.io.InputStream;
-import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.domain.utils.StateToken;
public class FileUtils {
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/SocialNetworkManagerDefault.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/SocialNetworkManagerDefault.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/SocialNetworkManagerDefault.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -24,7 +24,6 @@
import javax.persistence.EntityManager;
import org.ourproject.kune.platf.server.ServerException;
-import org.ourproject.kune.platf.server.access.AccessRights;
import org.ourproject.kune.platf.server.access.AccessRightsService;
import org.ourproject.kune.platf.server.manager.SocialNetworkManager;
import org.ourproject.kune.platf.server.manager.UserManager;
@@ -41,6 +40,7 @@
import cc.kune.core.shared.domain.GroupListMode;
import cc.kune.core.shared.domain.SocialNetworkVisibility;
import cc.kune.core.shared.domain.UserBuddiesVisibility;
+import cc.kune.core.shared.domain.utils.AccessRights;
import cc.kune.core.shared.dto.GroupType;
import cc.kune.core.shared.dto.SocialNetworkRequestResult;
import cc.kune.domain.Group;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/rpc/ContentRPC.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/rpc/ContentRPC.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/rpc/ContentRPC.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -28,7 +28,6 @@
import org.ourproject.kune.chat.server.managers.XmppManager;
import org.ourproject.kune.platf.server.UserSession;
import org.ourproject.kune.platf.server.access.AccessRightsService;
-import org.ourproject.kune.platf.server.access.AccessRol;
import org.ourproject.kune.platf.server.access.AccessService;
import org.ourproject.kune.platf.server.access.FinderService;
import org.ourproject.kune.platf.server.auth.ActionLevel;
@@ -53,10 +52,12 @@
import cc.kune.core.client.errors.NoDefaultContentException;
import cc.kune.core.client.errors.ToolNotFoundException;
import cc.kune.core.client.rpcservices.ContentService;
+import cc.kune.core.shared.domain.AccessRol;
import cc.kune.core.shared.domain.ContentStatus;
import cc.kune.core.shared.domain.RateResult;
import cc.kune.core.shared.domain.TagCloudResult;
-import cc.kune.core.shared.dto.AccessRightsDTO;
+import cc.kune.core.shared.domain.utils.AccessRights;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.CommentDTO;
import cc.kune.core.shared.dto.ContentSimpleDTO;
import cc.kune.core.shared.dto.I18nLanguageDTO;
@@ -64,7 +65,6 @@
import cc.kune.core.shared.dto.StateContainerDTO;
import cc.kune.core.shared.dto.StateContentDTO;
import cc.kune.core.shared.dto.StateNoContentDTO;
-import cc.kune.core.shared.dto.StateToken;
import cc.kune.domain.AccessLists;
import cc.kune.domain.Comment;
import cc.kune.domain.Container;
@@ -116,6 +116,7 @@
this.mapper = mapper;
}
+ @Override
@Authenticated
@Authorizated(accessRolRequired = AccessRol.Editor, mustCheckMembership = false)
@Transactional(type = TransactionType.READ_WRITE)
@@ -126,6 +127,7 @@
contentManager.addAuthor(user, contentId, authorShortName);
}
+ @Override
@Authenticated
@Authorizated(accessRolRequired = AccessRol.Viewer)
@Transactional(type = TransactionType.READ_WRITE)
@@ -137,6 +139,7 @@
return mapper.map(comment, CommentDTO.class);
}
+ @Override
@Authenticated
@Authorizated(accessRolRequired = AccessRol.Viewer)
@Transactional(type = TransactionType.READ_WRITE)
@@ -148,6 +151,7 @@
return mapper.map(comment, CommentDTO.class);
}
+ @Override
@Authenticated
@Authorizated(actionLevel = ActionLevel.container, accessRolRequired = AccessRol.Editor, mustCheckMembership = false)
@Transactional(type = TransactionType.READ_WRITE)
@@ -157,6 +161,7 @@
return createContent(parentToken, title, typeId, body);
}
+ @Override
@Authenticated
@Authorizated(actionLevel = ActionLevel.container, accessRolRequired = AccessRol.Editor, mustCheckMembership = false)
@Transactional(type = TransactionType.READ_WRITE)
@@ -168,6 +173,7 @@
return getState(user, container);
}
+ @Override
@Authenticated
@Authorizated(actionLevel = ActionLevel.container, accessRolRequired = AccessRol.Editor)
@Transactional(type = TransactionType.READ_WRITE)
@@ -195,6 +201,7 @@
}
}
+ @Override
@Authenticated
@Authorizated(actionLevel = ActionLevel.container, accessRolRequired = AccessRol.Editor, mustCheckMembership = false)
@Transactional(type = TransactionType.READ_WRITE)
@@ -203,6 +210,7 @@
return createContent(parentToken, "Wave embeded test", typeId, waveId);
}
+ @Override
@Authenticated
@Authorizated(accessRolRequired = AccessRol.Administrator)
@Transactional(type = TransactionType.READ_WRITE)
@@ -211,6 +219,7 @@
return getState(getCurrentUser(), contentManager.setStatus(contentId, ContentStatus.inTheDustbin));
}
+ @Override
@Authenticated(mandatory = false)
@Transactional(type = TransactionType.READ_ONLY)
public StateAbstractDTO getContent(final String userHash, final StateToken token) throws DefaultException {
@@ -237,6 +246,7 @@
}
}
+ @Override
@Authenticated(mandatory = false)
@Authorizated(accessRolRequired = AccessRol.Viewer)
@Transactional(type = TransactionType.READ_ONLY)
@@ -245,6 +255,7 @@
return getSummaryTags(group);
}
+ @Override
@Authenticated
@Authorizated(accessRolRequired = AccessRol.Viewer)
@Transactional(type = TransactionType.READ_WRITE)
@@ -256,6 +267,7 @@
return mapper.map(comment, CommentDTO.class);
}
+ @Override
@Authenticated
@Authorizated(accessRolRequired = AccessRol.Viewer)
@Transactional(type = TransactionType.READ_WRITE)
@@ -271,6 +283,7 @@
}
}
+ @Override
@Authenticated
@Authorizated(accessRolRequired = AccessRol.Editor, mustCheckMembership = false)
@Transactional(type = TransactionType.READ_WRITE)
@@ -281,6 +294,7 @@
contentManager.removeAuthor(user, contentId, authorShortName);
}
+ @Override
@Authenticated
@Authorizated(actionLevel = ActionLevel.container, accessRolRequired = AccessRol.Editor, mustCheckMembership = false)
@Transactional(type = TransactionType.READ_WRITE)
@@ -290,6 +304,7 @@
return getContent(userHash, token);
}
+ @Override
@Authenticated
@Authorizated(accessRolRequired = AccessRol.Editor, mustCheckMembership = false)
@Transactional(type = TransactionType.READ_WRITE)
@@ -305,6 +320,7 @@
return getContent(userHash, token);
}
+ @Override
@Authenticated
@Authorizated(accessRolRequired = AccessRol.Editor, mustCheckMembership = false)
@Transactional(type = TransactionType.READ_WRITE)
@@ -316,6 +332,7 @@
creationService.saveContent(user, content, textContent);
}
+ @Override
@Authenticated
@Authorizated(accessRolRequired = AccessRol.Administrator)
@Transactional(type = TransactionType.READ_WRITE)
@@ -325,6 +342,7 @@
return mapper.map(content, ContentSimpleDTO.class);
}
+ @Override
@Authenticated
@Authorizated(accessRolRequired = AccessRol.Editor, mustCheckMembership = false)
@Transactional(type = TransactionType.READ_WRITE)
@@ -335,6 +353,7 @@
return mapper.map(contentManager.setLanguage(user, contentId, languageCode), I18nLanguageDTO.class);
}
+ @Override
@Authenticated
@Authorizated(accessRolRequired = AccessRol.Editor, mustCheckMembership = false)
@Transactional(type = TransactionType.READ_WRITE)
@@ -345,6 +364,7 @@
contentManager.setPublishedOn(user, contentId, publishedOn);
}
+ @Override
@Authenticated
@Authorizated(accessRolRequired = AccessRol.Editor)
@Transactional(type = TransactionType.READ_WRITE)
@@ -358,6 +378,7 @@
return getState(getCurrentUser(), content);
}
+ @Override
@Authenticated
@Authorizated(accessRolRequired = AccessRol.Administrator)
@Transactional(type = TransactionType.READ_WRITE)
@@ -367,6 +388,7 @@
return getState(getCurrentUser(), content);
}
+ @Override
@Authenticated
@Authorizated(accessRolRequired = AccessRol.Editor, mustCheckMembership = false)
@Transactional(type = TransactionType.READ_WRITE)
@@ -379,6 +401,7 @@
return getSummaryTags(group);
}
+ @Override
@Authenticated
@Authorizated(accessRolRequired = AccessRol.Viewer)
@Transactional(type = TransactionType.READ_WRITE)
@@ -454,7 +477,7 @@
final ContentSimpleDTO siblingDTO) {
final Content sibling = contentManager.find(siblingDTO.getId());
final AccessLists lists = sibling.hasAccessList() ? sibling.getAccessLists() : groupAccessList;
- siblingDTO.setRights(mapper.map(rightsService.get(user, lists), AccessRightsDTO.class));
+ siblingDTO.setRights(mapper.map(rightsService.get(user, lists), AccessRights.class));
}
private StateContainerDTO mapState(final StateContainer state, final User user) {
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/rpc/GroupRPC.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/rpc/GroupRPC.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/rpc/GroupRPC.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -20,7 +20,6 @@
package org.ourproject.kune.platf.server.rpc;
import org.ourproject.kune.platf.server.UserSession;
-import org.ourproject.kune.platf.server.access.AccessRol;
import org.ourproject.kune.platf.server.auth.ActionLevel;
import org.ourproject.kune.platf.server.auth.Authenticated;
import org.ourproject.kune.platf.server.auth.Authorizated;
@@ -31,11 +30,12 @@
import cc.kune.core.client.errors.DefaultException;
import cc.kune.core.client.rpcservices.GroupService;
+import cc.kune.core.shared.domain.AccessRol;
import cc.kune.core.shared.domain.AdmissionType;
import cc.kune.core.shared.domain.SocialNetworkVisibility;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.GroupDTO;
import cc.kune.core.shared.dto.LicenseDTO;
-import cc.kune.core.shared.dto.StateToken;
import cc.kune.domain.Content;
import cc.kune.domain.Group;
import cc.kune.domain.User;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/rpc/SocialNetworkRPC.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/rpc/SocialNetworkRPC.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/rpc/SocialNetworkRPC.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -20,7 +20,6 @@
package org.ourproject.kune.platf.server.rpc;
import org.ourproject.kune.platf.server.UserSession;
-import org.ourproject.kune.platf.server.access.AccessRol;
import org.ourproject.kune.platf.server.auth.ActionLevel;
import org.ourproject.kune.platf.server.auth.Authenticated;
import org.ourproject.kune.platf.server.auth.Authorizated;
@@ -30,9 +29,10 @@
import cc.kune.core.client.errors.DefaultException;
import cc.kune.core.client.rpcservices.SocialNetworkService;
+import cc.kune.core.shared.domain.AccessRol;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.SocialNetworkDataDTO;
import cc.kune.core.shared.dto.SocialNetworkRequestResult;
-import cc.kune.core.shared.dto.StateToken;
import cc.kune.domain.Group;
import cc.kune.domain.User;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/rpc/UserRPC.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/rpc/UserRPC.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/rpc/UserRPC.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -23,7 +23,6 @@
import org.jivesoftware.smack.util.Base64;
import org.ourproject.kune.platf.server.UserSession;
-import org.ourproject.kune.platf.server.access.AccessRol;
import org.ourproject.kune.platf.server.auth.ActionLevel;
import org.ourproject.kune.platf.server.auth.Authenticated;
import org.ourproject.kune.platf.server.auth.Authorizated;
@@ -38,8 +37,9 @@
import cc.kune.core.client.errors.DefaultException;
import cc.kune.core.client.errors.UserAuthException;
import cc.kune.core.client.rpcservices.UserService;
+import cc.kune.core.shared.domain.AccessRol;
import cc.kune.core.shared.domain.UserBuddiesVisibility;
-import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.UserDTO;
import cc.kune.core.shared.dto.UserInfoDTO;
import cc.kune.domain.Group;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/state/StateAbstract.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/state/StateAbstract.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/state/StateAbstract.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -21,11 +21,12 @@
import java.util.List;
-import org.ourproject.kune.platf.server.access.AccessRights;
import org.ourproject.kune.platf.server.sn.ParticipationData;
import org.ourproject.kune.platf.server.sn.UserBuddiesData;
-import cc.kune.core.shared.dto.StateToken;
+
+import cc.kune.core.shared.domain.utils.AccessRights;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.domain.Group;
import cc.kune.domain.SocialNetwork;
import cc.kune.domain.utils.SocialNetworkData;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/state/StateContainer.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/state/StateContainer.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/state/StateContainer.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -19,9 +19,9 @@
*/
package org.ourproject.kune.platf.server.state;
-import org.ourproject.kune.platf.server.access.AccessRights;
import cc.kune.core.shared.domain.TagCloudResult;
+import cc.kune.core.shared.domain.utils.AccessRights;
import cc.kune.domain.AccessLists;
import cc.kune.domain.Container;
import cc.kune.domain.I18nLanguage;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/state/StateContent.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/state/StateContent.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/state/StateContent.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -22,9 +22,9 @@
import java.util.Date;
import java.util.List;
-import org.ourproject.kune.platf.server.access.AccessRights;
import cc.kune.core.shared.domain.ContentStatus;
+import cc.kune.core.shared.domain.utils.AccessRights;
import cc.kune.domain.BasicMimeType;
import cc.kune.domain.User;
Modified: trunk/src/main/java/org/ourproject/kune/wiki/client/cnt/WikiFolderContentPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/wiki/client/cnt/WikiFolderContentPresenter.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/wiki/client/cnt/WikiFolderContentPresenter.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -28,9 +28,9 @@
import cc.kune.core.client.state.Session;
import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.ContainerDTO;
import cc.kune.core.shared.dto.StateContainerDTO;
-import cc.kune.core.shared.dto.StateToken;
import cc.kune.core.shared.i18n.I18nTranslationService;
import com.calclab.suco.client.ioc.Provider;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/AbstractFoldableContentActions.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/AbstractFoldableContentActions.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/AbstractFoldableContentActions.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -55,6 +55,7 @@
import cc.kune.core.client.state.Session;
import cc.kune.core.client.state.StateManager;
import cc.kune.core.shared.domain.ContentStatus;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.AccessRolDTO;
import cc.kune.core.shared.dto.ContentSimpleDTO;
import cc.kune.core.shared.dto.GroupDTO;
@@ -62,7 +63,6 @@
import cc.kune.core.shared.dto.StateAbstractDTO;
import cc.kune.core.shared.dto.StateContainerDTO;
import cc.kune.core.shared.dto.StateContentDTO;
-import cc.kune.core.shared.dto.StateToken;
import com.calclab.suco.client.events.Listener;
import com.calclab.suco.client.events.Listener0;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/WorkspaceModule.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/WorkspaceModule.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/WorkspaceModule.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -255,7 +255,7 @@
import cc.kune.core.client.state.AccessRightsClientManager;
import cc.kune.core.client.state.Session;
import cc.kune.core.client.state.StateManager;
-import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.StateTokenUtils;
import cc.kune.core.shared.dto.UserSimpleDTO;
import cc.kune.core.shared.i18n.I18nTranslationService;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/cnt/ActionContentToolbar.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/cnt/ActionContentToolbar.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/cnt/ActionContentToolbar.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -21,7 +21,7 @@
import org.ourproject.kune.platf.client.actions.toolbar.ActionToolbar;
-import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.domain.utils.StateToken;
public interface ActionContentToolbar extends ActionToolbar<StateToken> {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/cnt/ActionContentToolbarPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/cnt/ActionContentToolbarPresenter.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/cnt/ActionContentToolbarPresenter.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -22,7 +22,7 @@
import org.ourproject.kune.platf.client.actions.toolbar.ActionToolbarPresenter;
import org.ourproject.kune.platf.client.actions.toolbar.ActionToolbarView;
-import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.domain.utils.StateToken;
public class ActionContentToolbarPresenter extends ActionToolbarPresenter<StateToken> implements ActionContentToolbar {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/cnt/ContentActionRegistry.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/cnt/ContentActionRegistry.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/cnt/ContentActionRegistry.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -21,7 +21,7 @@
import org.ourproject.kune.platf.client.actions.ActionRegistry;
-import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.domain.utils.StateToken;
public class ContentActionRegistry extends ActionRegistry<StateToken> {
}
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/cnt/FoldableContentPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/cnt/FoldableContentPresenter.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/cnt/FoldableContentPresenter.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -29,12 +29,12 @@
import cc.kune.core.client.state.Session;
import cc.kune.core.client.state.StateManager;
-import cc.kune.core.shared.dto.AccessRightsDTO;
+import cc.kune.core.shared.domain.utils.AccessRights;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.BasicMimeTypeDTO;
import cc.kune.core.shared.dto.StateAbstractDTO;
import cc.kune.core.shared.dto.StateContainerDTO;
import cc.kune.core.shared.dto.StateContentDTO;
-import cc.kune.core.shared.dto.StateToken;
import cc.kune.core.shared.i18n.I18nTranslationService;
import com.calclab.suco.client.events.Listener;
@@ -66,11 +66,13 @@
this.i18n = i18n;
this.mediaUtils = mediaUtils;
stateManager.onStateChanged(new Listener<StateAbstractDTO>() {
+ @Override
public void onEvent(final StateAbstractDTO state) {
setState(state);
}
});
onWaveLoaded = new Listener0() {
+ @Override
public void onEvent() {
NotifyUser.hideProgress();
NotifyUser.info("Wave loaded");
@@ -90,6 +92,7 @@
return waveType;
}
+ @Override
public void refreshState() {
setState(session.getContentState());
}
@@ -141,7 +144,7 @@
}
private ActionItemCollection<StateToken> getActionCollection(final StateContainerDTO state,
- final AccessRightsDTO rights) {
+ final AccessRights rights) {
return actionRegistry.getCurrentActions(state.getStateToken(), state.getTypeId(), session.isLogged(), rights,
true);
}
@@ -153,7 +156,7 @@
private void setNormalContent(final StateContentDTO state) {
final String contentBody = getContentBody(state);
- if ((contentBody == null || contentBody.length() == 0)) {
+ if (contentBody == null || contentBody.length() == 0) {
if (state.getContentRights().isEditable()) {
view.setInfoMessage(i18n.t("There is no text in this page. Feel free to edit this page"));
} else {
@@ -177,11 +180,11 @@
if (mimeType != null) {
final FileDownloadUtils fileDownloadUtils = downloadProvider.get();
if (mimeType.isImage()) {
- view.showImage(fileDownloadUtils.getImageUrl(token), fileDownloadUtils.getImageResizedUrl(token,
- ImageSize.sized), false);
+ view.showImage(fileDownloadUtils.getImageUrl(token),
+ fileDownloadUtils.getImageResizedUrl(token, ImageSize.sized), false);
} else if (mimeType.isPdf()) {
- view.showImage(fileDownloadUtils.getImageUrl(token), fileDownloadUtils.getImageResizedUrl(token,
- ImageSize.sized), true);
+ view.showImage(fileDownloadUtils.getImageUrl(token),
+ fileDownloadUtils.getImageResizedUrl(token, ImageSize.sized), true);
} else if (mimeType.isMp3()) {
view.setRawContent(mediaUtils.get().getMp3Embed(token));
} else if (mimeType.isOgg()) {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigator.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigator.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigator.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -22,8 +22,8 @@
import org.ourproject.kune.workspace.client.upload.FileUploader;
import cc.kune.core.shared.domain.ContentStatus;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.StateContainerDTO;
-import cc.kune.core.shared.dto.StateToken;
public interface ContextNavigator {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigatorItem.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigatorItem.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigatorItem.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -22,7 +22,7 @@
import org.ourproject.kune.platf.client.actions.ActionItemCollection;
import cc.kune.core.shared.domain.ContentStatus;
-import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.domain.utils.StateToken;
public class ContextNavigatorItem {
private final String id;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigatorPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigatorPanel.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigatorPanel.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -26,7 +26,7 @@
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
import cc.kune.core.shared.domain.ContentStatus;
-import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.i18n.I18nTranslationService;
import com.allen_sauer.gwt.log.client.Log;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigatorPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigatorPresenter.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigatorPresenter.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -39,7 +39,8 @@
import cc.kune.core.client.state.Session;
import cc.kune.core.client.state.StateManager;
import cc.kune.core.shared.domain.ContentStatus;
-import cc.kune.core.shared.dto.AccessRightsDTO;
+import cc.kune.core.shared.domain.utils.AccessRights;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.BasicMimeTypeDTO;
import cc.kune.core.shared.dto.ContainerDTO;
import cc.kune.core.shared.dto.ContainerSimpleDTO;
@@ -47,7 +48,6 @@
import cc.kune.core.shared.dto.StateAbstractDTO;
import cc.kune.core.shared.dto.StateContainerDTO;
import cc.kune.core.shared.dto.StateContentDTO;
-import cc.kune.core.shared.dto.StateToken;
import cc.kune.core.shared.dto.UserInfoDTO;
import cc.kune.core.shared.i18n.I18nTranslationService;
@@ -95,8 +95,10 @@
addRenameListener();
}
+ @Override
public void addFileUploaderListener(final FileUploader uploader) {
uploader.addOnUploadCompleteListener(new Listener<StateToken>() {
+ @Override
public void onEvent(final StateToken currentUploadStateToken) {
if (currentUploadStateToken.hasSameContainer(session.getCurrentStateToken())) {
stateManager.reload();
@@ -105,6 +107,7 @@
});
}
+ @Override
public void attach() {
// FIXME At the moment detach (removeFromParent) destroy the gwt-ext
// TreePanel and the widget must be recreated (cannot be attached again
@@ -113,6 +116,7 @@
bottomToolbar.attach();
}
+ @Override
public void clear() {
topToolbar.clear();
bottomToolbar.clear();
@@ -120,12 +124,14 @@
actionsByItem.clear();
}
+ @Override
public void detach() {
view.detach();
topToolbar.detach();
bottomToolbar.detach();
}
+ @Override
public void editItem(final StateToken stateToken) {
view.editItem(genId(stateToken));
}
@@ -135,10 +141,12 @@
addListeners();
}
+ @Override
public boolean isSelected(final StateToken stateToken) {
return view.isSelected(genId(stateToken));
}
+ @Override
public void refreshState() {
final StateAbstractDTO currentState = session.getCurrentState();
if (currentState instanceof StateContainerDTO) {
@@ -146,6 +154,7 @@
}
}
+ @Override
public void selectItem(final StateToken stateToken) {
view.selectItem(genId(stateToken));
topToolbar.disableMenusAndClearButtons();
@@ -155,15 +164,18 @@
bottomToolbar.addActions(itemCollection, AbstractFoldableContentActions.CONTEXT_BOTTOMBAR);
}
+ @Override
public void setEditOnNextStateChange(final boolean edit) {
editOnNextStateChange = edit;
}
+ @Override
public void setItemStatus(final StateToken stateToken, final ContentStatus status) {
clear();
refreshState();
}
+ @Override
public void setState(final StateContainerDTO state, final boolean select) {
setStateContainer(state, select);
}
@@ -178,7 +190,7 @@
private ActionItemCollection<StateToken> addItem(final String title, final String contentTypeId,
final BasicMimeTypeDTO mimeType, final ContentStatus status, final StateToken stateToken,
- final StateToken parentStateToken, final AccessRightsDTO rights, final boolean isNodeSelected) {
+ final StateToken parentStateToken, final AccessRights rights, final boolean isNodeSelected) {
final ActionItemCollection<StateToken> toolbarActions = actionRegistry.getCurrentActions(stateToken,
contentTypeId, session.isLogged(), rights, true);
@@ -199,11 +211,13 @@
private void addListeners() {
session.onUserSignIn(new Listener<UserInfoDTO>() {
+ @Override
public void onEvent(final UserInfoDTO parameter) {
clear();
}
});
session.onUserSignOut(new Listener0() {
+ @Override
public void onEvent() {
clear();
}
@@ -212,11 +226,13 @@
private void addRenameListener() {
final Listener2<StateToken, String> onSuccess = new Listener2<StateToken, String>() {
+ @Override
public void onEvent(final StateToken token, final String newName) {
setItemText(token, newName);
}
};
final Listener2<StateToken, String> onFail = new Listener2<StateToken, String>() {
+ @Override
public void onEvent(final StateToken token, final String oldName) {
setItemText(token, oldName);
}
@@ -225,7 +241,7 @@
renameAction.onFail(onFail);
}
- private void createChildItems(final ContainerDTO container, final AccessRightsDTO containerRights) {
+ private void createChildItems(final ContainerDTO container, final AccessRights containerRights) {
for (final ContainerSimpleDTO siblingFolder : container.getChilds()) {
addItem(siblingFolder.getName(), siblingFolder.getTypeId(), null, ContentStatus.publishedOnline,
siblingFolder.getStateToken(),
@@ -239,7 +255,7 @@
}
private void createTreePath(final StateToken state, final ContainerSimpleDTO[] absolutePath,
- final AccessRightsDTO rights) {
+ final AccessRights rights) {
for (final ContainerSimpleDTO folder : absolutePath) {
final StateToken folderStateToken = folder.getStateToken();
final StateToken parentStateToken = state.copy().clearDocument().setFolder(folder.getParentFolderId());
@@ -298,12 +314,12 @@
private void setStateContainer(final StateContainerDTO state, final boolean select) {
final StateToken stateToken = state.getStateToken();
- final boolean isContent = (state instanceof StateContentDTO);
+ final boolean isContent = state instanceof StateContentDTO;
StateContentDTO stateContent = null;
final ContainerDTO container = state.getContainer();
- final AccessRightsDTO containerRights = state.getContainerRights();
- AccessRightsDTO rights;
+ final AccessRights containerRights = state.getContainerRights();
+ AccessRights rights;
showRootFolder(state, containerRights);
@@ -343,7 +359,7 @@
bottomToolbar.attach();
}
- private void showRootFolder(final StateContainerDTO state, final AccessRightsDTO containerRights) {
+ private void showRootFolder(final StateContainerDTO state, final AccessRights containerRights) {
// If container is not a root folder process root (add
// childs to view)
final ContainerDTO root = state.getRootContainer();
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigatorView.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigatorView.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigatorView.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -22,7 +22,7 @@
import org.ourproject.kune.platf.client.View;
import cc.kune.core.shared.domain.ContentStatus;
-import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.domain.utils.StateToken;
public interface ContextNavigatorView extends View {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/cxt/ActionContextBottomToolbar.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/cxt/ActionContextBottomToolbar.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/cxt/ActionContextBottomToolbar.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -23,7 +23,7 @@
import org.ourproject.kune.platf.client.actions.toolbar.ActionToolbarPresenter;
import org.ourproject.kune.platf.client.actions.toolbar.ActionToolbarView;
-import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.domain.utils.StateToken;
public class ActionContextBottomToolbar extends ActionToolbarPresenter<StateToken> implements ActionToolbar<StateToken> {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/cxt/ActionContextTopToolbar.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/cxt/ActionContextTopToolbar.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/cxt/ActionContextTopToolbar.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -23,7 +23,7 @@
import org.ourproject.kune.platf.client.actions.toolbar.ActionToolbarPresenter;
import org.ourproject.kune.platf.client.actions.toolbar.ActionToolbarView;
-import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.domain.utils.StateToken;
public class ActionContextTopToolbar extends ActionToolbarPresenter<StateToken> implements ActionToolbar<StateToken> {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/cxt/ContextActionRegistry.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/cxt/ContextActionRegistry.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/cxt/ContextActionRegistry.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -21,7 +21,7 @@
import org.ourproject.kune.platf.client.actions.ActionRegistry;
-import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.domain.utils.StateToken;
public class ContextActionRegistry extends ActionRegistry<StateToken> {
}
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/editor/insertlocalimg/InsertImageLocalPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/editor/insertlocalimg/InsertImageLocalPanel.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/editor/insertlocalimg/InsertImageLocalPanel.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -6,9 +6,9 @@
import org.ourproject.kune.workspace.client.search.AbstractLiveSearcherField;
import cc.kune.core.client.state.Session;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.BasicMimeTypeDTO;
import cc.kune.core.shared.dto.LinkDTO;
-import cc.kune.core.shared.dto.StateToken;
import cc.kune.core.shared.i18n.I18nTranslationService;
import com.calclab.suco.client.events.Listener;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/editor/insertlocallink/InsertLinkLocalPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/editor/insertlocallink/InsertLinkLocalPanel.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/editor/insertlocallink/InsertLinkLocalPanel.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -25,8 +25,8 @@
import org.ourproject.kune.workspace.client.search.AbstractLiveSearcherField;
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.LinkDTO;
-import cc.kune.core.shared.dto.StateToken;
import cc.kune.core.shared.dto.StateTokenUtils;
import cc.kune.core.shared.i18n.I18nTranslationService;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/editor/insertlocalmedia/InsertMediaLocalPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/editor/insertlocalmedia/InsertMediaLocalPanel.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/editor/insertlocalmedia/InsertMediaLocalPanel.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -5,9 +5,9 @@
import org.ourproject.kune.platf.client.ui.rte.insertmedia.abstractmedia.InsertMediaAbstractPanel;
import org.ourproject.kune.workspace.client.search.AbstractLiveSearcherField;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.BasicMimeTypeDTO;
import cc.kune.core.shared.dto.LinkDTO;
-import cc.kune.core.shared.dto.StateToken;
import cc.kune.core.shared.i18n.I18nTranslationService;
import com.calclab.suco.client.events.Listener;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/editor/insertlocalmedia/InsertMediaLocalPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/editor/insertlocalmedia/InsertMediaLocalPresenter.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/editor/insertlocalmedia/InsertMediaLocalPresenter.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -5,7 +5,7 @@
import org.ourproject.kune.platf.client.ui.rte.insertmedia.abstractmedia.MediaUtils;
import cc.kune.core.client.state.Session;
-import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.domain.utils.StateToken;
import com.calclab.suco.client.ioc.Provider;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/entityheader/EntityHeaderPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/entityheader/EntityHeaderPanel.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/entityheader/EntityHeaderPanel.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -31,8 +31,8 @@
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
import org.ourproject.kune.workspace.client.themes.WsTheme;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.GroupDTO;
-import cc.kune.core.shared.dto.StateToken;
import com.calclab.suco.client.ioc.Provider;
import com.google.gwt.user.client.ui.HorizontalPanel;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/entityheader/EntityHeaderView.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/entityheader/EntityHeaderView.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/entityheader/EntityHeaderView.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -23,8 +23,8 @@
import org.ourproject.kune.platf.client.actions.ui.GuiActionDescrip;
import org.ourproject.kune.workspace.client.themes.WsTheme;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.GroupDTO;
-import cc.kune.core.shared.dto.StateToken;
public interface EntityHeaderView {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/licensewizard/LicenseChangeAction.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/licensewizard/LicenseChangeAction.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/licensewizard/LicenseChangeAction.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -24,8 +24,8 @@
import cc.kune.core.client.rpcservices.GroupServiceAsync;
import cc.kune.core.client.state.Session;
import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.LicenseDTO;
-import cc.kune.core.shared.dto.StateToken;
import cc.kune.core.shared.i18n.I18nTranslationService;
import com.calclab.suco.client.events.Listener0;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/newgroup/NewGroupPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/newgroup/NewGroupPresenter.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/newgroup/NewGroupPresenter.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -31,10 +31,10 @@
import cc.kune.core.client.rpcservices.GroupServiceAsync;
import cc.kune.core.client.state.Session;
import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.GroupDTO;
import cc.kune.core.shared.dto.GroupType;
import cc.kune.core.shared.dto.LicenseDTO;
-import cc.kune.core.shared.dto.StateToken;
import cc.kune.core.shared.i18n.I18nTranslationService;
import com.calclab.suco.client.events.Listener0;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/options/license/EntityOptionsDefLicensePresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/options/license/EntityOptionsDefLicensePresenter.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/options/license/EntityOptionsDefLicensePresenter.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -25,8 +25,8 @@
import org.ourproject.kune.workspace.client.options.EntityOptions;
import cc.kune.core.client.state.Session;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.LicenseDTO;
-import cc.kune.core.shared.dto.StateToken;
import com.calclab.suco.client.events.Listener;
import com.calclab.suco.client.events.Listener0;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/options/license/GroupOptionsDefLicensePresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/options/license/GroupOptionsDefLicensePresenter.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/options/license/GroupOptionsDefLicensePresenter.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -6,8 +6,8 @@
import cc.kune.core.client.state.Session;
import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.LicenseDTO;
-import cc.kune.core.shared.dto.StateToken;
import com.calclab.suco.client.events.Listener2;
import com.calclab.suco.client.ioc.Provider;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/options/license/UserOptionsDefLicensePresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/options/license/UserOptionsDefLicensePresenter.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/options/license/UserOptionsDefLicensePresenter.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -5,8 +5,8 @@
import org.ourproject.kune.workspace.client.options.EntityOptions;
import cc.kune.core.client.state.Session;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.LicenseDTO;
-import cc.kune.core.shared.dto.StateToken;
import cc.kune.core.shared.dto.UserInfoDTO;
import com.calclab.suco.client.events.Listener;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/options/pscape/EntityOptionsPublicSpaceConfPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/options/pscape/EntityOptionsPublicSpaceConfPanel.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/options/pscape/EntityOptionsPublicSpaceConfPanel.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -28,7 +28,7 @@
import org.ourproject.kune.workspace.client.themes.WsThemeSelector;
import cc.kune.core.client.utils.TextUtils;
-import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.i18n.I18nTranslationService;
import com.google.gwt.event.dom.client.ClickEvent;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/options/pscape/EntityOptionsPublicSpaceConfPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/options/pscape/EntityOptionsPublicSpaceConfPresenter.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/options/pscape/EntityOptionsPublicSpaceConfPresenter.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -8,10 +8,10 @@
import cc.kune.core.client.rpcservices.GroupServiceAsync;
import cc.kune.core.client.state.Session;
import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.ContentSimpleDTO;
import cc.kune.core.shared.dto.GroupDTO;
import cc.kune.core.shared.dto.StateAbstractDTO;
-import cc.kune.core.shared.dto.StateToken;
import com.calclab.suco.client.events.Listener;
import com.calclab.suco.client.events.Listener0;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/options/pscape/EntityOptionsPublicSpaceConfView.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/options/pscape/EntityOptionsPublicSpaceConfView.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/options/pscape/EntityOptionsPublicSpaceConfView.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -21,7 +21,7 @@
import org.ourproject.kune.platf.client.View;
-import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.domain.utils.StateToken;
public interface EntityOptionsPublicSpaceConfView extends View {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/options/tools/EntityOptionsToolsConfPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/options/tools/EntityOptionsToolsConfPresenter.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/options/tools/EntityOptionsToolsConfPresenter.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -10,7 +10,7 @@
import cc.kune.core.client.rpcservices.GroupServiceAsync;
import cc.kune.core.client.state.Session;
import cc.kune.core.client.state.StateManager;
-import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.ToolSimpleDTO;
import cc.kune.core.shared.i18n.I18nTranslationService;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/options/tools/GroupOptionsToolsConfPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/options/tools/GroupOptionsToolsConfPresenter.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/options/tools/GroupOptionsToolsConfPresenter.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -27,8 +27,8 @@
import cc.kune.core.client.rpcservices.GroupServiceAsync;
import cc.kune.core.client.state.Session;
import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.ContentSimpleDTO;
-import cc.kune.core.shared.dto.StateToken;
import cc.kune.core.shared.dto.ToolSimpleDTO;
import cc.kune.core.shared.i18n.I18nTranslationService;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/options/tools/UserOptionsToolsConfPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/options/tools/UserOptionsToolsConfPresenter.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/options/tools/UserOptionsToolsConfPresenter.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -27,7 +27,7 @@
import cc.kune.core.client.rpcservices.GroupServiceAsync;
import cc.kune.core.client.state.Session;
import cc.kune.core.client.state.StateManager;
-import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.ToolSimpleDTO;
import cc.kune.core.shared.dto.UserInfoDTO;
import cc.kune.core.shared.i18n.I18nTranslationService;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/search/EntityLiveSearcherPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/search/EntityLiveSearcherPanel.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/search/EntityLiveSearcherPanel.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -23,8 +23,8 @@
import org.ourproject.kune.platf.client.ui.dialogs.BasicDialog;
import org.ourproject.kune.platf.client.ui.download.FileDownloadUtils;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.LinkDTO;
-import cc.kune.core.shared.dto.StateToken;
import cc.kune.core.shared.i18n.I18nTranslationService;
import com.calclab.suco.client.events.Listener;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/sitepublic/SitePublicSpaceLinkPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/sitepublic/SitePublicSpaceLinkPresenter.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/sitepublic/SitePublicSpaceLinkPresenter.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -23,11 +23,11 @@
import cc.kune.core.client.state.StateManager;
import cc.kune.core.shared.domain.ContentStatus;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.GroupListDTO;
import cc.kune.core.shared.dto.StateAbstractDTO;
import cc.kune.core.shared.dto.StateContainerDTO;
import cc.kune.core.shared.dto.StateContentDTO;
-import cc.kune.core.shared.dto.StateToken;
import cc.kune.core.shared.dto.StateTokenUtils;
import com.calclab.suco.client.events.Listener;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/BuddiesSummaryPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/BuddiesSummaryPresenter.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/BuddiesSummaryPresenter.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -42,7 +42,7 @@
import cc.kune.core.client.state.Session;
import cc.kune.core.client.state.StateManager;
import cc.kune.core.shared.domain.UserBuddiesVisibility;
-import cc.kune.core.shared.dto.AccessRightsDTO;
+import cc.kune.core.shared.domain.utils.AccessRights;
import cc.kune.core.shared.dto.AccessRolDTO;
import cc.kune.core.shared.dto.SocialNetworkDataDTO;
import cc.kune.core.shared.dto.StateAbstractDTO;
@@ -85,11 +85,13 @@
this.toolbar = toolbar;
this.fileDownUtilsProvider = fileDownUtilsProvider;
stateManager.onStateChanged(new Listener<StateAbstractDTO>() {
+ @Override
public void onEvent(final StateAbstractDTO state) {
setState(state);
}
});
stateManager.onSocialNetworkChanged(new Listener<StateAbstractDTO>() {
+ @Override
public void onEvent(final StateAbstractDTO state) {
setState(state);
}
@@ -116,8 +118,8 @@
user.getStateToken()) : BuddiesSummaryView.NOAVATAR;
final String tooltip = super.createTooltipWithLogo(user.getShortName(), user.getStateToken(),
user.hasLogo(), true);
- view.addBuddie(user, actionRegistry.getCurrentActions(user, session.isLogged(),
- new AccessRightsDTO(true, true, true), false), avatarUrl, user.getName(), tooltip);
+ view.addBuddie(user, actionRegistry.getCurrentActions(user, session.isLogged(), new AccessRights(
+ true, true, true), false), avatarUrl, user.getName(), tooltip);
}
final boolean hasLocalBuddies = buddies.size() > 0;
final int numExtBuddies = userBuddies.getOtherExtBuddies();
@@ -155,6 +157,7 @@
private void createAddNewBuddiesAction() {
final ActionToolbarMenuDescriptor<UserSimpleDTO> addNewBuddiesAction = new ActionToolbarMenuDescriptor<UserSimpleDTO>(
AccessRolDTO.Administrator, buddiesBottom, new Listener<UserSimpleDTO>() {
+ @Override
public void onEvent(final UserSimpleDTO parameter) {
NotifyUser.info("In development");
}
@@ -168,16 +171,19 @@
private void createSetBuddiesVisibilityAction(final String textDescription, final UserBuddiesVisibility visibility) {
final ActionToolbarMenuRadioDescriptor<UserSimpleDTO> buddiesVisibilityAction = new ActionToolbarMenuRadioDescriptor<UserSimpleDTO>(
AccessRolDTO.Administrator, buddiesBottom, new Listener<UserSimpleDTO>() {
+ @Override
public void onEvent(final UserSimpleDTO parameter) {
userServiceAsync.get().setBuddiesVisibility(session.getUserHash(),
session.getCurrentState().getGroup().getStateToken(), visibility,
new AsyncCallbackSimple<Void>() {
+ @Override
public void onSuccess(final Void result) {
NotifyUser.info(i18n.t("Buddies visibility changed"));
}
});
}
}, BUDDIES_VISIBILITY_GROUP, new RadioMustBeChecked() {
+ @Override
public boolean mustBeChecked() {
final StateAbstractDTO currentState = session.getCurrentState();
if (currentState.getGroup().isPersonal()) {
@@ -196,6 +202,7 @@
private void registerActions() {
final ActionMenuItemDescriptor<UserSimpleDTO> addAsBuddie = new ActionMenuItemDescriptor<UserSimpleDTO>(
AccessRolDTO.Viewer, new Listener<UserSimpleDTO>() {
+ @Override
public void onEvent(final UserSimpleDTO user) {
chatEngineProvider.get().addNewBuddie(user.getShortName());
}
@@ -204,6 +211,7 @@
addAsBuddie.setTextDescription(i18n.t("Add as a buddie"));
addAsBuddie.setIconUrl("images/add-green.png");
addAsBuddie.setEnableCondition(new ActionEnableCondition<UserSimpleDTO>() {
+ @Override
public boolean mustBeEnabled(final UserSimpleDTO user) {
return !chatEngineProvider.get().isBuddie(user.getShortName());
}
@@ -212,6 +220,7 @@
final ActionMenuItemDescriptor<UserSimpleDTO> go = new ActionMenuItemDescriptor<UserSimpleDTO>(
AccessRolDTO.Viewer, new Listener<UserSimpleDTO>() {
+ @Override
public void onEvent(final UserSimpleDTO user) {
stateManager.gotoToken(user.getShortName());
}
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/GroupActionRegistry.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/GroupActionRegistry.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/GroupActionRegistry.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -21,7 +21,7 @@
import org.ourproject.kune.platf.client.actions.ActionRegistry;
-import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.domain.utils.StateToken;
/**
* The Class GroupActionRegistry stores actions over groups (mainly used in SN)
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/GroupMembersSummaryPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/GroupMembersSummaryPanel.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/GroupMembersSummaryPanel.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -30,8 +30,8 @@
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
import cc.kune.core.client.i18n.I18nUITranslationService;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.GroupDTO;
-import cc.kune.core.shared.dto.StateToken;
import com.calclab.emiteuimodule.client.users.UserGridPanel;
import com.calclab.suco.client.events.Listener;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/GroupMembersSummaryPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/GroupMembersSummaryPresenter.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/GroupMembersSummaryPresenter.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -45,8 +45,9 @@
import cc.kune.core.client.state.StateManager;
import cc.kune.core.shared.domain.AdmissionType;
import cc.kune.core.shared.domain.SocialNetworkVisibility;
+import cc.kune.core.shared.domain.utils.AccessRights;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.AccessListsDTO;
-import cc.kune.core.shared.dto.AccessRightsDTO;
import cc.kune.core.shared.dto.AccessRolDTO;
import cc.kune.core.shared.dto.GroupDTO;
import cc.kune.core.shared.dto.InitDataDTO;
@@ -54,7 +55,6 @@
import cc.kune.core.shared.dto.SocialNetworkDTO;
import cc.kune.core.shared.dto.SocialNetworkDataDTO;
import cc.kune.core.shared.dto.StateAbstractDTO;
-import cc.kune.core.shared.dto.StateToken;
import com.calclab.emite.core.client.xmpp.stanzas.XmppURI;
import com.calclab.suco.client.events.Listener;
@@ -95,6 +95,7 @@
this.liveSearcherProvider = liveSearcherProvider;
this.groupActionRegistry = groupActionRegistry;
final Listener<StateAbstractDTO> setStateListener = new Listener<StateAbstractDTO>() {
+ @Override
public void onEvent(final StateAbstractDTO state) {
setState(state);
toolbar.disableMenusAndClearButtons();
@@ -106,9 +107,11 @@
stateManager.onStateChanged(setStateListener);
stateManager.onSocialNetworkChanged(setStateListener);
session.onInitDataReceived(new Listener<InitDataDTO>() {
+ @Override
public void onEvent(final InitDataDTO initData) {
addUserOperation(new MenuItem<GroupDTO>("images/new-chat.gif", i18n.t("Start a chat with this member"),
new Listener<GroupDTO>() {
+ @Override
public void onEvent(final GroupDTO group) {
chatEngineProvider.get().show();
if (chatEngineProvider.get().isLoggedIn()) {
@@ -139,6 +142,7 @@
NotifyUser.showProgressProcessing();
snServiceProvider.get().addCollabMember(session.getUserHash(), session.getCurrentState().getStateToken(),
groupShortName, new AsyncCallbackSimple<SocialNetworkDataDTO>() {
+ @Override
public void onSuccess(final SocialNetworkDataDTO result) {
NotifyUser.hideProgress();
NotifyUser.info(i18n.t("Member added as collaborator"));
@@ -155,8 +159,10 @@
private void createActions() {
final ActionToolbarMenuDescriptor<StateToken> addMember = new ActionToolbarMenuDescriptor<StateToken>(
AccessRolDTO.Administrator, membersBottom, new Listener<StateToken>() {
+ @Override
public void onEvent(final StateToken parameter) {
liveSearcherProvider.get().onSelection(new Listener<LinkDTO>() {
+ @Override
public void onEvent(final LinkDTO link) {
view.confirmAddCollab(link.getShortName(), link.getLongName());
}
@@ -183,16 +189,19 @@
private void createNewMembersPolicyAction(final String textDescription, final AdmissionType admissionPolicy) {
final ActionToolbarMenuRadioDescriptor<StateToken> newMembersPolicy = new ActionToolbarMenuRadioDescriptor<StateToken>(
AccessRolDTO.Administrator, membersBottom, new Listener<StateToken>() {
+ @Override
public void onEvent(final StateToken parameter) {
groupServiceProvider.get().setGroupNewMembersJoiningPolicy(session.getUserHash(),
session.getCurrentState().getGroup().getStateToken(), admissionPolicy,
new AsyncCallbackSimple<Void>() {
+ @Override
public void onSuccess(final Void result) {
NotifyUser.info(i18n.t("Members joining policy changed"));
}
});
}
}, NEW_MEMBERS_POLICY_GROUP, new RadioMustBeChecked() {
+ @Override
public boolean mustBeChecked() {
final StateAbstractDTO currentState = session.getCurrentState();
return currentState.getGroup().getAdmissionType().equals(admissionPolicy);
@@ -207,16 +216,19 @@
private void createSetMembersVisibilityAction(final String textDescription, final SocialNetworkVisibility visibility) {
final ActionToolbarMenuRadioDescriptor<StateToken> showMembers = new ActionToolbarMenuRadioDescriptor<StateToken>(
AccessRolDTO.Administrator, membersBottom, new Listener<StateToken>() {
+ @Override
public void onEvent(final StateToken parameter) {
groupServiceProvider.get().setSocialNetworkVisibility(session.getUserHash(),
session.getCurrentState().getGroup().getStateToken(), visibility,
new AsyncCallbackSimple<Void>() {
+ @Override
public void onSuccess(final Void result) {
NotifyUser.info(i18n.t("Members visibility changed"));
}
});
}
}, MEMBERS_VISIBILITY_GROUP, new RadioMustBeChecked() {
+ @Override
public boolean mustBeChecked() {
final StateAbstractDTO currentState = session.getCurrentState();
if (!currentState.getGroup().isPersonal()) {
@@ -233,7 +245,7 @@
}
@SuppressWarnings("unchecked")
- private void setGroupMembers(final SocialNetworkDTO socialNetwork, final AccessRightsDTO rights) {
+ private void setGroupMembers(final SocialNetworkDTO socialNetwork, final AccessRights rights) {
final AccessListsDTO accessLists = socialNetwork.getAccessLists();
final List<GroupDTO> adminsList = accessLists.getAdmins().getList();
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/ParticipationSummaryPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/ParticipationSummaryPanel.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/ParticipationSummaryPanel.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -27,8 +27,8 @@
import org.ourproject.kune.workspace.client.skel.SummaryPanel;
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.GroupDTO;
-import cc.kune.core.shared.dto.StateToken;
import cc.kune.core.shared.i18n.I18nTranslationService;
import com.calclab.suco.client.events.Listener;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/ParticipationSummaryPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/ParticipationSummaryPresenter.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/ParticipationSummaryPresenter.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -32,7 +32,7 @@
import cc.kune.core.client.state.AccessRightsClientManager;
import cc.kune.core.client.state.Session;
import cc.kune.core.client.state.StateManager;
-import cc.kune.core.shared.dto.AccessRightsDTO;
+import cc.kune.core.shared.domain.utils.AccessRights;
import cc.kune.core.shared.dto.GroupDTO;
import cc.kune.core.shared.dto.ParticipationDataDTO;
import cc.kune.core.shared.dto.StateAbstractDTO;
@@ -63,6 +63,7 @@
false);
super.addGroupOperation(gotoGroupMenuItem, false);
final Listener<StateAbstractDTO> setStateListener = new Listener<StateAbstractDTO>() {
+ @Override
public void onEvent(final StateAbstractDTO state) {
setState(state);
}
@@ -78,7 +79,7 @@
@SuppressWarnings("unchecked")
private void setState(final StateAbstractDTO state) {
final ParticipationDataDTO participation = state.getParticipation();
- final AccessRightsDTO rights = state.getGroupRights();
+ final AccessRights rights = state.getGroupRights();
view.clear();
final List<GroupDTO> groupsIsAdmin = participation.getGroupsIsAdmin();
final List<GroupDTO> groupsIsCollab = participation.getGroupsIsCollab();
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/RolAction.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/RolAction.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/RolAction.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -6,7 +6,7 @@
import cc.kune.core.client.state.AccessRightsClientManager;
import cc.kune.core.client.state.Session;
import cc.kune.core.client.state.StateManager;
-import cc.kune.core.shared.dto.AccessRightsDTO;
+import cc.kune.core.shared.domain.utils.AccessRights;
import cc.kune.core.shared.dto.AccessRolDTO;
import cc.kune.core.shared.i18n.I18nTranslationService;
@@ -17,7 +17,7 @@
public static UIStatus refreshStatus(final AccessRolDTO rolRequired, final boolean authNeed,
final boolean isLogged, final boolean visibleForMembers, final boolean visibleForNonMemb,
- final AccessRightsDTO newRights) {
+ final AccessRights newRights) {
boolean newVisibility = false;
boolean newEnabled = false;
if (authNeed && !isLogged) {
@@ -27,7 +27,7 @@
newEnabled = RolComparator.isEnabled(rolRequired, newRights);
if (newEnabled) {
final boolean isMember = RolComparator.isMember(newRights);
- newEnabled = newVisibility = ((isMember && visibleForMembers) || (!isMember && visibleForNonMemb));
+ newEnabled = newVisibility = isMember && visibleForMembers || !isMember && visibleForNonMemb;
} else {
newVisibility = false;
}
@@ -52,8 +52,8 @@
this.visibleForMembers = true;
this.visibleForNonMemb = true;
this.authNeed = false;
- rightsManager.onRightsChanged(new Listener2<AccessRightsDTO, AccessRightsDTO>() {
- public void onEvent(final AccessRightsDTO prevRights, final AccessRightsDTO newRights) {
+ rightsManager.onRightsChanged(new Listener2<AccessRights, AccessRights>() {
+ public void onEvent(final AccessRights prevRights, final AccessRights newRights) {
setStatus(refreshStatus(rolRequired, authNeed, session.isLogged(), visibleForMembers,
visibleForNonMemb, newRights));
}
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/RolComparator.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/RolComparator.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/RolComparator.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -1,11 +1,11 @@
package org.ourproject.kune.workspace.client.socialnet;
-import cc.kune.core.shared.dto.AccessRightsDTO;
+import cc.kune.core.shared.domain.utils.AccessRights;
import cc.kune.core.shared.dto.AccessRolDTO;
public final class RolComparator {
- public static boolean isEnabled(final AccessRolDTO rolRequired, final AccessRightsDTO rights) {
+ public static boolean isEnabled(final AccessRolDTO rolRequired, final AccessRights rights) {
switch (rolRequired) {
case Administrator:
return rights.isAdministrable();
@@ -17,7 +17,7 @@
return false;
}
- public static boolean isMember(final AccessRightsDTO newRights) {
+ public static boolean isMember(final AccessRights newRights) {
return newRights.isAdministrable() || newRights.isEditable();
}
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/SocialNetworkPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/SocialNetworkPresenter.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/SocialNetworkPresenter.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -40,10 +40,10 @@
import cc.kune.core.client.state.AccessRightsClientManager;
import cc.kune.core.client.state.Session;
import cc.kune.core.client.state.StateManager;
-import cc.kune.core.shared.dto.AccessRightsDTO;
+import cc.kune.core.shared.domain.utils.AccessRights;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.GroupDTO;
import cc.kune.core.shared.dto.SocialNetworkDataDTO;
-import cc.kune.core.shared.dto.StateToken;
import cc.kune.core.shared.i18n.I18nTranslationService;
import com.calclab.suco.client.events.Listener;
@@ -127,7 +127,7 @@
}
protected GridItem<GroupDTO> createGridItem(final GridGroup groupCategory, final GroupDTO group,
- final AccessRightsDTO rights, final MenuItem<GroupDTO>... gridMenuItems) {
+ final AccessRights rights, final MenuItem<GroupDTO>... gridMenuItems) {
final GridItem<GroupDTO> gridItem = createDefMemberMenu(group, groupCategory);
final CustomMenu<GroupDTO> menu = gridItem.getMenu();
if (rights.isAdministrable()) {
@@ -195,12 +195,14 @@
private void createMenuActions() {
gotoGroupMenuItem = new MenuItem<GroupDTO>("images/group-home.gif", i18n.t("Visit this group homepage"),
new Listener<GroupDTO>() {
+ @Override
public void onEvent(final GroupDTO groupDTO) {
stateManager.gotoToken(groupDTO.getShortName());
}
});
gotoMemberMenuItem = new MenuItem<GroupDTO>("images/group-home.gif", i18n.t("Visit this member homepage"),
new Listener<GroupDTO>() {
+ @Override
public void onEvent(final GroupDTO groupDTO) {
stateManager.gotoToken(groupDTO.getShortName());
}
@@ -208,17 +210,20 @@
unJoinMenuItem = new MenuItem<GroupDTO>("images/del.gif", i18n.t("Do not participate anymore in this group"),
new Listener<GroupDTO>() {
+ @Override
public void onEvent(final GroupDTO groupDTO) {
removeMemberAction(groupDTO);
}
});
changeToCollabMenuItem = new MenuItem<GroupDTO>("images/arrow-down-green.gif",
i18n.t("Change to collaborator"), new Listener<GroupDTO>() {
+ @Override
public void onEvent(final GroupDTO group) {
NotifyUser.showProgressProcessing();
snServiceProvider.get().setAdminAsCollab(session.getUserHash(),
session.getCurrentState().getStateToken(), group.getShortName(),
new AsyncCallbackSimple<SocialNetworkDataDTO>() {
+ @Override
public void onSuccess(final SocialNetworkDataDTO result) {
NotifyUser.hideProgress();
NotifyUser.info(i18n.t("Member type changed"));
@@ -229,11 +234,13 @@
});
removeMemberMenuItem = new MenuItem<GroupDTO>("images/del.gif", i18n.t("Remove this member"),
new Listener<GroupDTO>() {
+ @Override
public void onEvent(final GroupDTO group) {
NotifyUser.showProgressProcessing();
snServiceProvider.get().deleteMember(session.getUserHash(),
session.getCurrentState().getStateToken(), group.getShortName(),
new AsyncCallbackSimple<SocialNetworkDataDTO>() {
+ @Override
public void onSuccess(final SocialNetworkDataDTO result) {
NotifyUser.hideProgress();
NotifyUser.info(i18n.t("Member removed"));
@@ -252,11 +259,13 @@
});
changeToAdminMenuItem = new MenuItem<GroupDTO>("images/arrow-up-green.gif", i18n.t("Change to admin"),
new Listener<GroupDTO>() {
+ @Override
public void onEvent(final GroupDTO group) {
NotifyUser.showProgressProcessing();
snServiceProvider.get().setCollabAsAdmin(session.getUserHash(),
session.getCurrentState().getStateToken(), group.getShortName(),
new AsyncCallbackSimple<SocialNetworkDataDTO>() {
+ @Override
public void onSuccess(final SocialNetworkDataDTO result) {
NotifyUser.hideProgress();
NotifyUser.info(i18n.t("Member type changed"));
@@ -267,11 +276,13 @@
});
acceptJoinGroupMenuItem = new MenuItem<GroupDTO>("images/accept.gif", i18n.t("Accept this member"),
new Listener<GroupDTO>() {
+ @Override
public void onEvent(final GroupDTO group) {
NotifyUser.showProgressProcessing();
snServiceProvider.get().acceptJoinGroup(session.getUserHash(),
session.getCurrentState().getStateToken(), group.getShortName(),
new AsyncCallbackSimple<SocialNetworkDataDTO>() {
+ @Override
public void onSuccess(final SocialNetworkDataDTO result) {
NotifyUser.hideProgress();
NotifyUser.info(i18n.t("Member accepted"));
@@ -282,11 +293,13 @@
});
denyJoinGroupMenuItem = new MenuItem<GroupDTO>("images/cancel.gif", i18n.t("Reject this member"),
new Listener<GroupDTO>() {
+ @Override
public void onEvent(final GroupDTO group) {
NotifyUser.showProgressProcessing();
snServiceProvider.get().denyJoinGroup(session.getUserHash(),
session.getCurrentState().getStateToken(), group.getShortName(),
new AsyncCallbackSimple<SocialNetworkDataDTO>() {
+ @Override
public void onSuccess(final SocialNetworkDataDTO result) {
NotifyUser.hideProgress();
NotifyUser.info(i18n.t("Member rejected"));
@@ -301,6 +314,7 @@
NotifyUser.showProgressProcessing();
snServiceProvider.get().unJoinGroup(session.getUserHash(), new StateToken(groupDTO.getShortName()),
new AsyncCallbackSimple<SocialNetworkDataDTO>() {
+ @Override
public void onSuccess(final SocialNetworkDataDTO result) {
NotifyUser.hideProgress();
NotifyUser.info(i18n.t("Removed as member"));
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/UnjoinAction.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/UnjoinAction.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/UnjoinAction.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -9,9 +9,9 @@
import cc.kune.core.client.state.AccessRightsClientManager;
import cc.kune.core.client.state.Session;
import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.AccessRolDTO;
import cc.kune.core.shared.dto.SocialNetworkDataDTO;
-import cc.kune.core.shared.dto.StateToken;
import cc.kune.core.shared.i18n.I18nTranslationService;
import com.calclab.suco.client.events.Listener0;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/toolbar/ActionGroupSummaryToolbar.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/toolbar/ActionGroupSummaryToolbar.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/toolbar/ActionGroupSummaryToolbar.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -21,7 +21,7 @@
import org.ourproject.kune.platf.client.actions.toolbar.ActionToolbar;
-import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.domain.utils.StateToken;
public interface ActionGroupSummaryToolbar extends ActionToolbar<StateToken> {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/toolbar/ActionGroupSummaryToolbarPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/toolbar/ActionGroupSummaryToolbarPresenter.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/toolbar/ActionGroupSummaryToolbarPresenter.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -22,7 +22,7 @@
import org.ourproject.kune.platf.client.actions.toolbar.ActionToolbarPresenter;
import org.ourproject.kune.platf.client.actions.toolbar.ActionToolbarView;
-import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.domain.utils.StateToken;
public class ActionGroupSummaryToolbarPresenter extends ActionToolbarPresenter<StateToken> implements
ActionGroupSummaryToolbar {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/toolbar/ActionParticipationSummaryToolbarPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/toolbar/ActionParticipationSummaryToolbarPresenter.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/toolbar/ActionParticipationSummaryToolbarPresenter.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -22,7 +22,7 @@
import org.ourproject.kune.platf.client.actions.toolbar.ActionToolbarPresenter;
import org.ourproject.kune.platf.client.actions.toolbar.ActionToolbarView;
-import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.domain.utils.StateToken;
public class ActionParticipationSummaryToolbarPresenter extends ActionToolbarPresenter<StateToken> implements
ActionParticipationToolbar {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/toolbar/ActionParticipationToolbar.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/toolbar/ActionParticipationToolbar.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/toolbar/ActionParticipationToolbar.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -21,7 +21,7 @@
import org.ourproject.kune.platf.client.actions.toolbar.ActionToolbar;
-import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.domain.utils.StateToken;
public interface ActionParticipationToolbar extends ActionToolbar<StateToken> {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/themes/WsBackManager.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/themes/WsBackManager.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/themes/WsBackManager.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -1,7 +1,7 @@
package org.ourproject.kune.workspace.client.themes;
-import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.domain.utils.StateToken;
import com.calclab.suco.client.events.Listener;
import com.calclab.suco.client.events.Listener0;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/themes/WsBackManagerImpl.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/themes/WsBackManagerImpl.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/themes/WsBackManagerImpl.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -3,7 +3,7 @@
import org.cobogw.gwt.user.client.CSS;
import org.ourproject.kune.platf.client.ui.download.FileDownloadUtils;
-import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.domain.utils.StateToken;
import com.calclab.suco.client.events.Event;
import com.calclab.suco.client.events.Event0;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/themes/WsThemeManager.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/themes/WsThemeManager.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/themes/WsThemeManager.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -25,10 +25,10 @@
import cc.kune.core.client.rpcservices.GroupServiceAsync;
import cc.kune.core.client.state.Session;
import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.ContentSimpleDTO;
import cc.kune.core.shared.dto.InitDataDTO;
import cc.kune.core.shared.dto.StateAbstractDTO;
-import cc.kune.core.shared.dto.StateToken;
import com.calclab.suco.client.events.Event2;
import com.calclab.suco.client.events.Listener;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/title/EntityTitlePresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/title/EntityTitlePresenter.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/title/EntityTitlePresenter.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -25,10 +25,10 @@
import cc.kune.core.client.state.Session;
import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.StateAbstractDTO;
import cc.kune.core.shared.dto.StateContainerDTO;
import cc.kune.core.shared.dto.StateContentDTO;
-import cc.kune.core.shared.dto.StateToken;
import com.calclab.suco.client.events.Listener;
import com.calclab.suco.client.events.Listener2;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/title/RenameAction.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/title/RenameAction.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/title/RenameAction.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -25,8 +25,8 @@
import cc.kune.core.client.errors.NameNotPermittedException;
import cc.kune.core.client.rpcservices.ContentServiceAsync;
import cc.kune.core.client.state.Session;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.StateAbstractDTO;
-import cc.kune.core.shared.dto.StateToken;
import cc.kune.core.shared.i18n.I18nTranslationService;
import com.calclab.suco.client.events.Event2;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/tool/ToolSelectorItemPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/tool/ToolSelectorItemPresenter.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/tool/ToolSelectorItemPresenter.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -23,7 +23,7 @@
import org.ourproject.kune.workspace.client.themes.WsTheme;
import org.ourproject.kune.workspace.client.themes.WsThemeManager;
-import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.domain.utils.StateToken;
import com.calclab.suco.client.events.Listener2;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/upload/FileUploader.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/upload/FileUploader.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/upload/FileUploader.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -20,7 +20,7 @@
package org.ourproject.kune.workspace.client.upload;
-import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.domain.utils.StateToken;
import com.calclab.suco.client.events.Listener;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/upload/FileUploaderPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/upload/FileUploaderPresenter.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/upload/FileUploaderPresenter.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -22,7 +22,7 @@
import org.ourproject.kune.workspace.client.tool.FoldableAbstractClientTool;
import cc.kune.core.client.state.Session;
-import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.domain.utils.StateToken;
import com.calclab.suco.client.events.Event;
import com.calclab.suco.client.events.Listener;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/wave/WaveInsert.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/wave/WaveInsert.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/wave/WaveInsert.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -1,6 +1,6 @@
package org.ourproject.kune.workspace.client.wave;
-import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.domain.utils.StateToken;
public interface WaveInsert {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/wave/WaveInsertPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/wave/WaveInsertPresenter.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/wave/WaveInsertPresenter.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -8,8 +8,8 @@
import cc.kune.core.client.rpcservices.ContentServiceAsync;
import cc.kune.core.client.state.Session;
import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.StateContentDTO;
-import cc.kune.core.shared.dto.StateToken;
import cc.kune.core.shared.i18n.I18nTranslationService;
import com.calclab.suco.client.ioc.Provider;
Modified: trunk/src/main/resources/dozerBeanMapping.xml
===================================================================
--- trunk/src/main/resources/dozerBeanMapping.xml 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/main/resources/dozerBeanMapping.xml 2010-12-18 17:00:55 UTC (rev 1169)
@@ -75,10 +75,6 @@
</field>
</mapping>
<mapping>
- <class-a> cc.kune.core.shared.dto.AccessRightsDTO </class-a>
- <class-b> org.ourproject.kune.platf.server.access.AccessRights </class-b>
- </mapping>
- <mapping>
<class-a>cc.kune.core.shared.dto.StateContentDTO</class-a>
<class-b>org.ourproject.kune.platf.server.state.StateContent</class-b>
<field>
@@ -96,15 +92,15 @@
<class-a>cc.kune.core.shared.dto.StateAbstractDTO</class-a>
<class-b>org.ourproject.kune.platf.server.state.StateAbstract</class-b>
</mapping>
+<!-- <mapping>-->
+<!-- <class-a> cc.kune.core.shared.dto.StateToken </class-a>-->
+<!-- <class-b> cc.kune.core.shared.dto.StateToken </class-b>-->
+<!-- <field>-->
+<!-- <a>encoded</a>-->
+<!-- <b>encoded</b>-->
+<!-- </field>-->
+<!-- </mapping>-->
<mapping>
- <class-a> cc.kune.core.shared.dto.StateToken </class-a>
- <class-b> cc.kune.core.shared.dto.StateToken </class-b>
- <field>
- <a>encoded</a>
- <b>encoded</b>
- </field>
- </mapping>
- <mapping>
<class-a> cc.kune.core.shared.dto.BasicMimeTypeDTO </class-a>
<class-b> cc.kune.domain.BasicMimeType </class-b>
</mapping>
@@ -250,7 +246,7 @@
</mapping>
<mapping>
<class-a> cc.kune.core.shared.dto.AccessRolDTO </class-a>
- <class-b> org.ourproject.kune.platf.server.access.AccessRol </class-b>
+ <class-b> cc.kune.core.shared.domain.AccessRol </class-b>
</mapping>
<mapping>
<class-a> cc.kune.core.shared.dto.ToolSimpleDTO </class-a>
Modified: trunk/src/test/java/cc/kune/core/client/state/StateManagerTest.java
===================================================================
--- trunk/src/test/java/cc/kune/core/client/state/StateManagerTest.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/test/java/cc/kune/core/client/state/StateManagerTest.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -10,8 +10,8 @@
import cc.kune.core.client.actions.BeforeActionListener;
import cc.kune.core.client.notify.SpinerPresenter;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.StateAbstractDTO;
-import cc.kune.core.shared.dto.StateToken;
import com.calclab.suco.testing.events.MockedListener;
import com.calclab.suco.testing.events.MockedListener0;
Modified: trunk/src/test/java/cc/kune/core/client/state/StateTokenTest.java
===================================================================
--- trunk/src/test/java/cc/kune/core/client/state/StateTokenTest.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/test/java/cc/kune/core/client/state/StateTokenTest.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -6,7 +6,7 @@
import org.junit.Test;
-import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.domain.utils.StateToken;
public class StateTokenTest {
Modified: trunk/src/test/java/org/ourproject/kune/platf/client/actions/ActionRegistryTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/client/actions/ActionRegistryTest.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/test/java/org/ourproject/kune/platf/client/actions/ActionRegistryTest.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -7,9 +7,9 @@
import org.mockito.Mockito;
import cc.kune.core.client.state.Session;
-import cc.kune.core.shared.dto.AccessRightsDTO;
+import cc.kune.core.shared.domain.utils.AccessRights;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.AccessRolDTO;
-import cc.kune.core.shared.dto.StateToken;
import com.calclab.suco.client.events.Listener;
@@ -26,12 +26,12 @@
@Test
public void actionsEmptyButNeverNull() {
Mockito.when(session.isLogged()).thenReturn(true);
- checkActionLists(0, new AccessRightsDTO(true, true, true), true);
- checkActionLists(0, new AccessRightsDTO(true, true, true), false);
- checkActionLists(0, new AccessRightsDTO(false, true, true), true);
- checkActionLists(0, new AccessRightsDTO(false, true, true), false);
- checkActionLists(0, new AccessRightsDTO(false, false, true), true);
- checkActionLists(0, new AccessRightsDTO(false, false, true), false);
+ checkActionLists(0, new AccessRights(true, true, true), true);
+ checkActionLists(0, new AccessRights(true, true, true), false);
+ checkActionLists(0, new AccessRights(false, true, true), true);
+ checkActionLists(0, new AccessRights(false, true, true), false);
+ checkActionLists(0, new AccessRights(false, false, true), true);
+ checkActionLists(0, new AccessRights(false, false, true), false);
}
@Before
@@ -40,16 +40,19 @@
registry = new ActionRegistry<StateToken>();
adminAction = new ActionToolbarMenuAndItemDescriptor<StateToken>(AccessRolDTO.Administrator, SOME_ID,
new Listener<StateToken>() {
+ @Override
public void onEvent(final StateToken parameter) {
}
});
editorAction = new ActionToolbarMenuAndItemDescriptor<StateToken>(AccessRolDTO.Editor, SOME_ID,
new Listener<StateToken>() {
+ @Override
public void onEvent(final StateToken parameter) {
}
});
viewerAction = new ActionMenuItemDescriptor<StateToken>(AccessRolDTO.Viewer, new Listener<StateToken>() {
+ @Override
public void onEvent(final StateToken parameter) {
}
});
@@ -60,32 +63,32 @@
public void mustBeAuthFalse() {
Mockito.when(session.isLogged()).thenReturn(false);
addDefActions();
- checkActionLists(0, new AccessRightsDTO(false, true, true), true);
- checkActionLists(1, new AccessRightsDTO(false, true, true), false);
+ checkActionLists(0, new AccessRights(false, true, true), true);
+ checkActionLists(1, new AccessRights(false, true, true), false);
}
@Test
public void testAddWhenAdmin() {
Mockito.when(session.isLogged()).thenReturn(true);
addDefActions();
- checkActionLists(2, new AccessRightsDTO(true, true, true), true);
- checkActionLists(3, new AccessRightsDTO(true, true, true), false);
+ checkActionLists(2, new AccessRights(true, true, true), true);
+ checkActionLists(3, new AccessRights(true, true, true), false);
}
@Test
public void testAddWhenEditor() {
Mockito.when(session.isLogged()).thenReturn(true);
addDefActions();
- checkActionLists(1, new AccessRightsDTO(false, true, true), true);
- checkActionLists(2, new AccessRightsDTO(false, true, true), false);
+ checkActionLists(1, new AccessRights(false, true, true), true);
+ checkActionLists(2, new AccessRights(false, true, true), false);
}
@Test
public void testAddWhenViewer() {
Mockito.when(session.isLogged()).thenReturn(true);
addDefActions();
- checkActionLists(0, new AccessRightsDTO(false, false, true), true);
- checkActionLists(1, new AccessRightsDTO(false, false, true), false);
+ checkActionLists(0, new AccessRights(false, false, true), true);
+ checkActionLists(1, new AccessRights(false, false, true), false);
}
private void addDefActions() {
@@ -94,9 +97,11 @@
registry.addAction(viewerAction, DEF_CONTENT_TYPE_ID);
}
- private void checkActionLists(final int expectedActions, final AccessRightsDTO accessRightsDTO,
+ private void checkActionLists(final int expectedActions, final AccessRights AccessRights,
final boolean toolbarActions) {
- assertEquals(expectedActions, registry.getCurrentActions(new StateToken(), DEF_CONTENT_TYPE_ID,
- session.isLogged(), accessRightsDTO, toolbarActions).size());
+ assertEquals(
+ expectedActions,
+ registry.getCurrentActions(new StateToken(), DEF_CONTENT_TYPE_ID, session.isLogged(), AccessRights,
+ toolbarActions).size());
}
}
Modified: trunk/src/test/java/org/ourproject/kune/platf/client/ui/dialogs/upload/FileUploaderPresenterTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/client/ui/dialogs/upload/FileUploaderPresenterTest.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/test/java/org/ourproject/kune/platf/client/ui/dialogs/upload/FileUploaderPresenterTest.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -11,7 +11,7 @@
import org.ourproject.kune.workspace.client.upload.FileUploaderView;
import cc.kune.core.client.state.Session;
-import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.domain.utils.StateToken;
public class FileUploaderPresenterTest {
Modified: trunk/src/test/java/org/ourproject/kune/platf/integration/content/ContentServiceAddTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/integration/content/ContentServiceAddTest.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/test/java/org/ourproject/kune/platf/integration/content/ContentServiceAddTest.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -14,13 +14,13 @@
import cc.kune.core.client.errors.ContentNotFoundException;
import cc.kune.core.client.errors.UserMustBeLoggedException;
-import cc.kune.core.shared.dto.AccessRightsDTO;
+import cc.kune.core.shared.domain.utils.AccessRights;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.ContainerDTO;
import cc.kune.core.shared.dto.ContainerSimpleDTO;
import cc.kune.core.shared.dto.ContentSimpleDTO;
import cc.kune.core.shared.dto.StateContainerDTO;
import cc.kune.core.shared.dto.StateContentDTO;
-import cc.kune.core.shared.dto.StateToken;
public class ContentServiceAddTest extends ContentServiceIntegrationTest {
@@ -43,9 +43,9 @@
doLogin();
defaultContent = getSiteDefaultContent();
assertEquals(1, defaultContent.getContainer().getContents().size());
- final AccessRightsDTO cntRights = defaultContent.getContentRights();
- final AccessRightsDTO ctxRights = defaultContent.getContainerRights();
- final AccessRightsDTO groupRights = defaultContent.getGroupRights();
+ final AccessRights cntRights = defaultContent.getContentRights();
+ final AccessRights ctxRights = defaultContent.getContainerRights();
+ final AccessRights groupRights = defaultContent.getGroupRights();
final String title = "New Content Title";
final StateContentDTO added = contentService.addContent(session.getHash(),
Modified: trunk/src/test/java/org/ourproject/kune/platf/integration/content/ContentServiceGetTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/integration/content/ContentServiceGetTest.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/test/java/org/ourproject/kune/platf/integration/content/ContentServiceGetTest.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -9,11 +9,11 @@
import org.ourproject.kune.platf.integration.IntegrationTestHelper;
import cc.kune.core.client.errors.ContentNotFoundException;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.StateAbstractDTO;
import cc.kune.core.shared.dto.StateContainerDTO;
import cc.kune.core.shared.dto.StateContentDTO;
import cc.kune.core.shared.dto.StateNoContentDTO;
-import cc.kune.core.shared.dto.StateToken;
public class ContentServiceGetTest extends ContentServiceIntegrationTest {
Modified: trunk/src/test/java/org/ourproject/kune/platf/integration/content/ContentServiceIntegrationTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/integration/content/ContentServiceIntegrationTest.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/test/java/org/ourproject/kune/platf/integration/content/ContentServiceIntegrationTest.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -4,8 +4,8 @@
import cc.kune.core.client.rpcservices.ContentService;
import cc.kune.core.client.rpcservices.UserService;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.StateContentDTO;
-import cc.kune.core.shared.dto.StateToken;
import com.google.inject.Inject;
Modified: trunk/src/test/java/org/ourproject/kune/platf/integration/content/ContentServiceVariousTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/integration/content/ContentServiceVariousTest.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/test/java/org/ourproject/kune/platf/integration/content/ContentServiceVariousTest.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -14,12 +14,12 @@
import cc.kune.core.client.errors.AccessViolationException;
import cc.kune.core.shared.domain.TagCloudResult;
import cc.kune.core.shared.domain.TagCount;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.ContainerDTO;
import cc.kune.core.shared.dto.ContentSimpleDTO;
import cc.kune.core.shared.dto.StateAbstractDTO;
import cc.kune.core.shared.dto.StateContainerDTO;
import cc.kune.core.shared.dto.StateContentDTO;
-import cc.kune.core.shared.dto.StateToken;
import cc.kune.core.shared.dto.UserSimpleDTO;
public class ContentServiceVariousTest extends ContentServiceIntegrationTest {
Modified: trunk/src/test/java/org/ourproject/kune/platf/integration/socialnet/SocialNetworkServiceTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/integration/socialnet/SocialNetworkServiceTest.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/test/java/org/ourproject/kune/platf/integration/socialnet/SocialNetworkServiceTest.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -11,8 +11,8 @@
import cc.kune.core.client.errors.AlreadyUserMemberException;
import cc.kune.core.client.errors.UserMustBeLoggedException;
import cc.kune.core.client.rpcservices.SocialNetworkService;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.SocialNetworkDataDTO;
-import cc.kune.core.shared.dto.StateToken;
import com.google.inject.Inject;
Modified: trunk/src/test/java/org/ourproject/kune/platf/server/access/AccessRightsServiceTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/server/access/AccessRightsServiceTest.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/test/java/org/ourproject/kune/platf/server/access/AccessRightsServiceTest.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -8,6 +8,7 @@
import org.ourproject.kune.platf.server.TestDomainHelper;
import org.ourproject.kune.testhelper.ctx.DomainContext;
+import cc.kune.core.shared.domain.utils.AccessRights;
import cc.kune.domain.AccessLists;
import cc.kune.domain.Group;
import cc.kune.domain.SocialNetwork;
Modified: trunk/src/test/java/org/ourproject/kune/platf/server/access/FinderTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/server/access/FinderTest.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/test/java/org/ourproject/kune/platf/server/access/FinderTest.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -14,7 +14,7 @@
import org.ourproject.kune.platf.server.manager.RateManager;
import cc.kune.core.client.errors.ContentNotFoundException;
-import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.domain.Container;
import cc.kune.domain.Content;
import cc.kune.domain.Group;
Modified: trunk/src/test/java/org/ourproject/kune/platf/server/auth/AuthorizatedMethodInterceptorTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/server/auth/AuthorizatedMethodInterceptorTest.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/test/java/org/ourproject/kune/platf/server/auth/AuthorizatedMethodInterceptorTest.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -8,11 +8,11 @@
import org.mockito.Mockito;
import org.ourproject.kune.platf.integration.IntegrationTest;
import org.ourproject.kune.platf.integration.IntegrationTestHelper;
-import org.ourproject.kune.platf.server.access.AccessRol;
import cc.kune.core.client.errors.AccessViolationException;
import cc.kune.core.client.errors.ContentNotFoundException;
-import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.domain.AccessRol;
+import cc.kune.core.shared.domain.utils.StateToken;
import com.wideplay.warp.persist.Transactional;
Modified: trunk/src/test/java/org/ourproject/kune/platf/server/manager/file/FileDownloadManagerTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/server/manager/file/FileDownloadManagerTest.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/test/java/org/ourproject/kune/platf/server/manager/file/FileDownloadManagerTest.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -15,7 +15,7 @@
import org.ourproject.kune.platf.integration.IntegrationTestHelper;
import org.ourproject.kune.platf.server.properties.KuneProperties;
-import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.domain.BasicMimeType;
import cc.kune.domain.Content;
Modified: trunk/src/test/java/org/ourproject/kune/platf/server/mapper/MapperTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/server/mapper/MapperTest.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/test/java/org/ourproject/kune/platf/server/mapper/MapperTest.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -9,7 +9,6 @@
import org.junit.Test;
import org.ourproject.kune.platf.server.TestDomainHelper;
import org.ourproject.kune.platf.server.TestHelper;
-import org.ourproject.kune.platf.server.access.AccessRights;
import org.ourproject.kune.platf.server.manager.GroupManager;
import org.ourproject.kune.platf.server.sn.ParticipationData;
import org.ourproject.kune.platf.server.sn.UserBuddiesData;
@@ -18,6 +17,8 @@
import cc.kune.core.shared.domain.GroupListMode;
import cc.kune.core.shared.domain.SocialNetworkVisibility;
import cc.kune.core.shared.domain.UserBuddiesVisibility;
+import cc.kune.core.shared.domain.utils.AccessRights;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.CommentDTO;
import cc.kune.core.shared.dto.ContainerDTO;
import cc.kune.core.shared.dto.ContainerSimpleDTO;
@@ -28,7 +29,6 @@
import cc.kune.core.shared.dto.LinkDTO;
import cc.kune.core.shared.dto.SocialNetworkDataDTO;
import cc.kune.core.shared.dto.StateContentDTO;
-import cc.kune.core.shared.dto.StateToken;
import cc.kune.domain.BasicMimeType;
import cc.kune.domain.Comment;
import cc.kune.domain.Container;
Modified: trunk/src/test/java/org/ourproject/kune/workspace/client/entityheader/EntityLogoPresenterTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/workspace/client/entityheader/EntityLogoPresenterTest.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/test/java/org/ourproject/kune/workspace/client/entityheader/EntityLogoPresenterTest.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -7,9 +7,9 @@
import cc.kune.core.client.state.Session;
import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.domain.utils.StateToken;
import cc.kune.core.shared.dto.GroupDTO;
import cc.kune.core.shared.dto.GroupType;
-import cc.kune.core.shared.dto.StateToken;
public class EntityLogoPresenterTest {
Modified: trunk/src/test/java/org/ourproject/kune/workspace/client/socialnet/RolActionTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/workspace/client/socialnet/RolActionTest.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/test/java/org/ourproject/kune/workspace/client/socialnet/RolActionTest.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -5,24 +5,24 @@
import org.junit.Before;
import org.junit.Test;
-import cc.kune.core.shared.dto.AccessRightsDTO;
+import cc.kune.core.shared.domain.utils.AccessRights;
import cc.kune.core.shared.dto.AccessRolDTO;
public class RolActionTest {
- private AccessRightsDTO adminRights;
- private AccessRightsDTO editorRights;
- private AccessRightsDTO viewerRights;
- private AccessRightsDTO noPermRights;
+ private AccessRights adminRights;
+ private AccessRights editorRights;
+ private AccessRights viewerRights;
+ private AccessRights noPermRights;
private UIStatus ff;
private UIStatus tt;
@Before
public void before() {
- adminRights = new AccessRightsDTO(true, true, true);
- editorRights = new AccessRightsDTO(false, true, true);
- viewerRights = new AccessRightsDTO(false, false, true);
- noPermRights = new AccessRightsDTO(false, false, false);
+ adminRights = new AccessRights(true, true, true);
+ editorRights = new AccessRights(false, true, true);
+ viewerRights = new AccessRights(false, false, true);
+ noPermRights = new AccessRights(false, false, false);
ff = new UIStatus(false, false);
tt = new UIStatus(true, true);
}
Modified: trunk/src/test/java/org/ourproject/kune/workspace/client/socialnet/RolComparatorTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/workspace/client/socialnet/RolComparatorTest.java 2010-12-16 02:22:00 UTC (rev 1168)
+++ trunk/src/test/java/org/ourproject/kune/workspace/client/socialnet/RolComparatorTest.java 2010-12-18 17:00:55 UTC (rev 1169)
@@ -5,17 +5,17 @@
import org.junit.Test;
-import cc.kune.core.shared.dto.AccessRightsDTO;
+import cc.kune.core.shared.domain.utils.AccessRights;
import cc.kune.core.shared.dto.AccessRolDTO;
public class RolComparatorTest {
@Test
public void testIsEnabled() {
- final AccessRightsDTO adminRights = new AccessRightsDTO(true, true, true);
- final AccessRightsDTO editorRights = new AccessRightsDTO(false, true, true);
- final AccessRightsDTO viewerRights = new AccessRightsDTO(false, false, true);
- final AccessRightsDTO noPermRights = new AccessRightsDTO(false, false, false);
+ final AccessRights adminRights = new AccessRights(true, true, true);
+ final AccessRights editorRights = new AccessRights(false, true, true);
+ final AccessRights viewerRights = new AccessRights(false, false, true);
+ final AccessRights noPermRights = new AccessRights(false, false, false);
assertTrue(RolComparator.isEnabled(AccessRolDTO.Administrator, adminRights));
assertFalse(RolComparator.isEnabled(AccessRolDTO.Administrator, editorRights));
assertFalse(RolComparator.isEnabled(AccessRolDTO.Administrator, viewerRights));
@@ -32,10 +32,10 @@
@Test
public void testIsMember() {
- assertFalse(RolComparator.isMember(new AccessRightsDTO(false, false, false)));
- assertFalse(RolComparator.isMember(new AccessRightsDTO(false, false, true)));
- assertTrue(RolComparator.isMember(new AccessRightsDTO(false, true, true)));
- assertTrue(RolComparator.isMember(new AccessRightsDTO(true, true, true)));
+ assertFalse(RolComparator.isMember(new AccessRights(false, false, false)));
+ assertFalse(RolComparator.isMember(new AccessRights(false, false, true)));
+ assertTrue(RolComparator.isMember(new AccessRights(false, true, true)));
+ assertTrue(RolComparator.isMember(new AccessRights(true, true, true)));
}
}
1
0
16 Dec '10
Author: vjrj_
Date: 2010-12-16 03:22:00 +0100 (Thu, 16 Dec 2010)
New Revision: 1168
Removed:
trunk/src/main/java/org/ourproject/kune/platf/client/errors/
trunk/src/main/java/org/ourproject/kune/platf/client/rpc/
trunk/src/main/java/org/ourproject/kune/platf/client/state/
Log:
NEW - # 9: Roo use/integration
http://kune.ourproject.org/issues/ticket/9
1
0
Author: vjrj_
Date: 2010-12-16 03:20:33 +0100 (Thu, 16 Dec 2010)
New Revision: 1167
Added:
trunk/src/main/java/cc/kune/core/shared/domain/
trunk/src/main/java/cc/kune/core/shared/domain/AdmissionType.java
trunk/src/main/java/cc/kune/core/shared/domain/ContentStatus.java
trunk/src/main/java/cc/kune/core/shared/domain/GroupListMode.java
trunk/src/main/java/cc/kune/core/shared/domain/RateResult.java
trunk/src/main/java/cc/kune/core/shared/domain/SocialNetworkVisibility.java
trunk/src/main/java/cc/kune/core/shared/domain/TagCloudResult.java
trunk/src/main/java/cc/kune/core/shared/domain/TagCount.java
trunk/src/main/java/cc/kune/core/shared/domain/UserBuddiesVisibility.java
trunk/src/main/java/cc/kune/domain/
trunk/src/main/java/cc/kune/domain/AccessLists.java
trunk/src/main/java/cc/kune/domain/BasicMimeType.java
trunk/src/main/java/cc/kune/domain/Comment.java
trunk/src/main/java/cc/kune/domain/Container.java
trunk/src/main/java/cc/kune/domain/ContainerTranslation.java
trunk/src/main/java/cc/kune/domain/Content.java
trunk/src/main/java/cc/kune/domain/ContentTranslation.java
trunk/src/main/java/cc/kune/domain/CustomProperties.java
trunk/src/main/java/cc/kune/domain/ExtMediaDescrip.java
trunk/src/main/java/cc/kune/domain/Group.java
trunk/src/main/java/cc/kune/domain/GroupList.java
trunk/src/main/java/cc/kune/domain/I18nCountry.java
trunk/src/main/java/cc/kune/domain/I18nLanguage.java
trunk/src/main/java/cc/kune/domain/I18nTranslation.java
trunk/src/main/java/cc/kune/domain/License.java
trunk/src/main/java/cc/kune/domain/Properties.java
trunk/src/main/java/cc/kune/domain/Property.java
trunk/src/main/java/cc/kune/domain/PropertyGroup.java
trunk/src/main/java/cc/kune/domain/PropertySetted.java
trunk/src/main/java/cc/kune/domain/PropertySubgroup.java
trunk/src/main/java/cc/kune/domain/Rate.java
trunk/src/main/java/cc/kune/domain/Revision.java
trunk/src/main/java/cc/kune/domain/SocialNetwork.java
trunk/src/main/java/cc/kune/domain/Tag.java
trunk/src/main/java/cc/kune/domain/TagUserContent.java
trunk/src/main/java/cc/kune/domain/ToolConfiguration.java
trunk/src/main/java/cc/kune/domain/User.java
trunk/src/main/java/cc/kune/domain/utils/
trunk/src/main/java/cc/kune/domain/utils/DataFieldBridge.java
trunk/src/main/java/cc/kune/domain/utils/HasId.java
trunk/src/main/java/cc/kune/domain/utils/HasStateToken.java
trunk/src/main/java/cc/kune/domain/utils/SocialNetworkData.java
Removed:
trunk/src/main/java/cc/kune/core/shared/dto/AdmissionTypeDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/ChatUserParamsDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/ContentStatusDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/RateResultDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/SocialNetworkVisibilityDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/TagCloudResultDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/TagCountDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/UserBuddiesVisibilityDTO.java
trunk/src/main/java/org/ourproject/kune/platf/server/domain/
trunk/src/test/java/org/ourproject/kune/docs/client/
trunk/src/test/java/org/ourproject/kune/platf/client/tool/
trunk/src/test/java/org/ourproject/kune/platf/client/ui/rte/insertlink/
trunk/src/test/java/org/ourproject/kune/platf/server/content/
trunk/src/test/java/org/ourproject/kune/workspace/client/editor/
trunk/src/test/java/org/ourproject/kune/workspace/client/sitebar/msg/
Modified:
trunk/pom.xml
trunk/src/main/java/cc/kune/core/client/rpcservices/ContentService.java
trunk/src/main/java/cc/kune/core/client/rpcservices/ContentServiceAsync.java
trunk/src/main/java/cc/kune/core/client/rpcservices/GroupService.java
trunk/src/main/java/cc/kune/core/client/rpcservices/GroupServiceAsync.java
trunk/src/main/java/cc/kune/core/client/rpcservices/UserService.java
trunk/src/main/java/cc/kune/core/client/rpcservices/UserServiceAsync.java
trunk/src/main/java/cc/kune/core/shared/dto/ContentSimpleDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/GroupDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/SocialNetworkDataDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/StateContainerDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/StateContentDTO.java
trunk/src/main/java/org/ourproject/kune/blogs/server/BlogServerTool.java
trunk/src/main/java/org/ourproject/kune/chat/client/ChatClientActions.java
trunk/src/main/java/org/ourproject/kune/chat/server/ChatServerTool.java
trunk/src/main/java/org/ourproject/kune/docs/server/DocumentServerTool.java
trunk/src/main/java/org/ourproject/kune/gallery/server/GalleryServerTool.java
trunk/src/main/java/org/ourproject/kune/platf/server/InitData.java
trunk/src/main/java/org/ourproject/kune/platf/server/UserSession.java
trunk/src/main/java/org/ourproject/kune/platf/server/access/AccessRightsService.java
trunk/src/main/java/org/ourproject/kune/platf/server/access/AccessRightsServiceDefault.java
trunk/src/main/java/org/ourproject/kune/platf/server/access/AccessService.java
trunk/src/main/java/org/ourproject/kune/platf/server/access/AccessServiceDefault.java
trunk/src/main/java/org/ourproject/kune/platf/server/access/FinderService.java
trunk/src/main/java/org/ourproject/kune/platf/server/access/FinderServiceDefault.java
trunk/src/main/java/org/ourproject/kune/platf/server/auth/AuthorizatedMethodInterceptor.java
trunk/src/main/java/org/ourproject/kune/platf/server/content/CommentManager.java
trunk/src/main/java/org/ourproject/kune/platf/server/content/CommentManagerDefault.java
trunk/src/main/java/org/ourproject/kune/platf/server/content/ContainerManager.java
trunk/src/main/java/org/ourproject/kune/platf/server/content/ContainerManagerDefault.java
trunk/src/main/java/org/ourproject/kune/platf/server/content/ContentManager.java
trunk/src/main/java/org/ourproject/kune/platf/server/content/ContentManagerDefault.java
trunk/src/main/java/org/ourproject/kune/platf/server/content/CreationService.java
trunk/src/main/java/org/ourproject/kune/platf/server/content/CreationServiceDefault.java
trunk/src/main/java/org/ourproject/kune/platf/server/i18n/I18nTranslationServiceDefault.java
trunk/src/main/java/org/ourproject/kune/platf/server/init/DatabaseInitializer.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/ExtMediaDescripManager.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/GroupManager.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/I18nCountryManager.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/I18nLanguageManager.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/I18nTranslationManager.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/LicenseManager.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/PropertiesManager.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/PropertyGroupManager.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/PropertyManager.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/PropertySettedManager.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/PropertySubgroupManager.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/RateManager.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/SocialNetworkManager.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/TagManager.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/TagUserContentManager.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/TagUserContentManagerDefault.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/ToolConfigurationManager.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/UserManager.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/EntityLogoDownloadManager.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/EntityLogoUploadManager.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/FileDownloadManager.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/FileUploadManager.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/ExtMediaDescripManagerDefault.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/GroupManagerDefault.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/I18nCountryManagerDefault.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/I18nLanguageManagerDefault.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/I18nTranslationManagerDefault.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/LicenseManagerDefault.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/PropertiesManagerDefault.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/PropertyGroupManagerDefault.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/PropertyManagerDefault.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/PropertySettedManagerDefault.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/PropertySubgroupManagerDefault.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/RateManagerDefault.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/SocialNetworkManagerDefault.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/TagManagerDefault.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/ToolConfigurationManagerDefault.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/UserManagerDefault.java
trunk/src/main/java/org/ourproject/kune/platf/server/mapper/GroupListModeConverter.java
trunk/src/main/java/org/ourproject/kune/platf/server/rest/ContentJSONService.java
trunk/src/main/java/org/ourproject/kune/platf/server/rest/GroupJSONService.java
trunk/src/main/java/org/ourproject/kune/platf/server/rest/I18nTranslationJSONService.java
trunk/src/main/java/org/ourproject/kune/platf/server/rest/UserJSONService.java
trunk/src/main/java/org/ourproject/kune/platf/server/rpc/ContentRPC.java
trunk/src/main/java/org/ourproject/kune/platf/server/rpc/GroupRPC.java
trunk/src/main/java/org/ourproject/kune/platf/server/rpc/I18nRPC.java
trunk/src/main/java/org/ourproject/kune/platf/server/rpc/SocialNetworkRPC.java
trunk/src/main/java/org/ourproject/kune/platf/server/rpc/UserRPC.java
trunk/src/main/java/org/ourproject/kune/platf/server/sn/ParticipationData.java
trunk/src/main/java/org/ourproject/kune/platf/server/sn/UserBuddiesData.java
trunk/src/main/java/org/ourproject/kune/platf/server/state/StateAbstract.java
trunk/src/main/java/org/ourproject/kune/platf/server/state/StateContainer.java
trunk/src/main/java/org/ourproject/kune/platf/server/state/StateContent.java
trunk/src/main/java/org/ourproject/kune/platf/server/state/StateService.java
trunk/src/main/java/org/ourproject/kune/platf/server/state/StateServiceDefault.java
trunk/src/main/java/org/ourproject/kune/platf/server/tool/ServerTool.java
trunk/src/main/java/org/ourproject/kune/platf/server/users/Link.java
trunk/src/main/java/org/ourproject/kune/platf/server/users/UserInfo.java
trunk/src/main/java/org/ourproject/kune/platf/server/users/UserInfoService.java
trunk/src/main/java/org/ourproject/kune/platf/server/users/UserInfoServiceDefault.java
trunk/src/main/java/org/ourproject/kune/wiki/server/WikiServerTool.java
trunk/src/main/java/org/ourproject/kune/workspace/client/AbstractFoldableContentActions.java
trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigator.java
trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigatorItem.java
trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigatorPanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigatorPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigatorView.java
trunk/src/main/java/org/ourproject/kune/workspace/client/cxt/ContextPropEditorPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/rate/RateItPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/rate/RatePresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/sitepublic/SitePublicSpaceLinkPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/BuddiesSummaryPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/GroupMembersSummaryPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/tags/TagsSummary.java
trunk/src/main/java/org/ourproject/kune/workspace/client/tags/TagsSummaryPresenter.java
trunk/src/main/resources/dozerBeanMapping.xml
trunk/src/main/resources/log4j.properties
trunk/src/test/java/org/ourproject/kune/platf/integration/DatabaseInitializationTest.java
trunk/src/test/java/org/ourproject/kune/platf/integration/content/ContentServiceVariousTest.java
trunk/src/test/java/org/ourproject/kune/platf/integration/kuneservice/GroupServiceTest.java
trunk/src/test/java/org/ourproject/kune/platf/integration/site/SiteServiceTest.java
trunk/src/test/java/org/ourproject/kune/platf/integration/site/UserServiceTest.java
trunk/src/test/java/org/ourproject/kune/platf/integration/socialnet/SocialNetworkMembersTest.java
trunk/src/test/java/org/ourproject/kune/platf/server/PersistencePreLoadedDataTest.java
trunk/src/test/java/org/ourproject/kune/platf/server/TestDomainHelper.java
trunk/src/test/java/org/ourproject/kune/platf/server/access/AccessRightsServiceTest.java
trunk/src/test/java/org/ourproject/kune/platf/server/access/FinderTest.java
trunk/src/test/java/org/ourproject/kune/platf/server/domain/GroupListTest.java
trunk/src/test/java/org/ourproject/kune/platf/server/finders/GroupFinderTest.java
trunk/src/test/java/org/ourproject/kune/platf/server/finders/LicenseFinderTest.java
trunk/src/test/java/org/ourproject/kune/platf/server/finders/RateFinderTest.java
trunk/src/test/java/org/ourproject/kune/platf/server/finders/UserFinderTest.java
trunk/src/test/java/org/ourproject/kune/platf/server/manager/ContentManagerTest.java
trunk/src/test/java/org/ourproject/kune/platf/server/manager/GroupManagerTest.java
trunk/src/test/java/org/ourproject/kune/platf/server/manager/I18nManagerTest.java
trunk/src/test/java/org/ourproject/kune/platf/server/manager/LicenseManagerTest.java
trunk/src/test/java/org/ourproject/kune/platf/server/manager/TagManagerTest.java
trunk/src/test/java/org/ourproject/kune/platf/server/manager/TagUserContentTest.java
trunk/src/test/java/org/ourproject/kune/platf/server/manager/UserManagerTest.java
trunk/src/test/java/org/ourproject/kune/platf/server/manager/file/FileDownloadManagerTest.java
trunk/src/test/java/org/ourproject/kune/platf/server/manager/impl/PropertySettedManagerDefaultTest.java
trunk/src/test/java/org/ourproject/kune/platf/server/manager/impl/SocialNetworkManagerTest.java
trunk/src/test/java/org/ourproject/kune/platf/server/mapper/MapperTest.java
trunk/src/test/java/org/ourproject/kune/testhelper/ctx/DomainContext.java
trunk/src/test/java/org/ourproject/kune/testhelper/ctx/SocialNetworkOperator.java
trunk/src/test/java/org/ourproject/kune/workspace/client/tags/TagsSummaryPresenterTest.java
Log:
NEW - # 9: Roo use/integration
http://kune.ourproject.org/issues/ticket/9
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/pom.xml 2010-12-16 02:20:33 UTC (rev 1167)
@@ -1,14 +1,12 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
- <groupId>cc</groupId>
+ <groupId>cc.kune</groupId>
<artifactId>kune</artifactId>
- <packaging>jar</packaging>
+ <packaging>war</packaging>
<version>0.0.7</version>
- <description>
- kune free/open/libre collaboration platform
- </description>
<name>kune</name>
+ <description> kune free/open/libre collaboration platform </description>
<url>http://kune.ourproject.org</url>
<properties>
<!-- Available versions: http://repo1.maven.org/maven2/com/google/gwt/gwt-dev/ -->
@@ -16,6 +14,8 @@
<maven.compiler.source>1.6</maven.compiler.source>
<maven.compiler.target>1.6</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ <slf4j.version>1.6.1</slf4j.version>
+ <openjpa.version>2.0.1</openjpa.version>
</properties>
<dependencies>
<dependency>
@@ -148,7 +148,7 @@
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
- <version>5.0.5</version>
+ <version>5.1.13</version>
</dependency>
<!-- hibernate JPA -->
<dependency>
@@ -159,7 +159,7 @@
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
- <version>3.1.0.GA</version>
+ <version>4.0.2.GA</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
@@ -204,9 +204,28 @@
<version>2.0-SNAPSHOT</version>
</dependency>
<dependency>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ <version>1.2.16</version>
+ <!-- =roo -->
+ </dependency>
+ <dependency>
<groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ <version>${slf4j.version}</version>
+ <!-- =roo -->
+ </dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>jcl-over-slf4j</artifactId>
+ <version>${slf4j.version}</version>
+ <!-- =roo -->
+ </dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
- <version>1.5.2</version>
+ <version>${slf4j.version}</version>
+ <!-- =roo -->
</dependency>
<!-- REST: xml and json (stax) -->
<dependency>
@@ -304,8 +323,9 @@
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
- <version>4.7</version>
- <!-- <scope>test</scope> -->
+ <version>4.8.1</version>
+ <!-- =roo -->
+ <scope>test</scope>
</dependency>
<!-- <dependency> -->
<!-- <groupId>org.openqa.selenium.client-drivers</groupId> -->
@@ -338,13 +358,13 @@
<version>1.3</version>
<type>jar</type>
</dependency>
+ <!-- <dependency> -->
+ <!-- <groupId>dom4j</groupId> -->
+ <!-- <artifactId>dom4j</artifactId> -->
+ <!-- <version>1.6.1</version> -->
+ <!-- <type>jar</type> -->
+ <!-- </dependency> -->
<dependency>
- <groupId>dom4j</groupId>
- <artifactId>dom4j</artifactId>
- <version>1.6.1</version>
- <type>jar</type>
- </dependency>
- <dependency>
<groupId>com.google.code.guice</groupId>
<artifactId>guice-assistedinject</artifactId>
<version>2.0</version>
@@ -711,7 +731,7 @@
<includes>
<include>**/KunePlatform.gwt.xml**</include>
<include>**/i18n/I18nTranslationService.**</include>
- <include>**/i18n/I18nTranslationServiceMocked.**</include>
+ <include>**/i18n/I18nTranslationServiceMocked.** </include>
<include>**/TextUtils.**</include>
<include>**/IconLabelEditable.**</include>
<include>**/QuickTipsHelper.**</include>
@@ -720,8 +740,8 @@
<include>**/HorizontalLine.**</include>
<include>**/AbstractLabel.**</include>
<include>**/IconLabel.**</include>
- <include> **/EditableIconLabel.** </include>
- <include> **/EditableClickListener.** </include>
+ <include> **/EditableIconLabel.**</include>
+ <include> **/EditableClickListener.**</include>
<include>**/KuneStringUtils.**</include>
<include>**/IconHyperlink*.**</include>
<include>**/LabelWrapper*.**</include>
@@ -868,4 +888,4 @@
</dependencies>
</profile>
</profiles>
-</project>
\ No newline at end of file
+</project>
Modified: trunk/src/main/java/cc/kune/core/client/rpcservices/ContentService.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/rpcservices/ContentService.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/cc/kune/core/client/rpcservices/ContentService.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -22,16 +22,16 @@
import java.util.Date;
import cc.kune.core.client.errors.DefaultException;
+import cc.kune.core.shared.domain.ContentStatus;
+import cc.kune.core.shared.domain.RateResult;
+import cc.kune.core.shared.domain.TagCloudResult;
import cc.kune.core.shared.dto.CommentDTO;
import cc.kune.core.shared.dto.ContentSimpleDTO;
-import cc.kune.core.shared.dto.ContentStatusDTO;
import cc.kune.core.shared.dto.I18nLanguageDTO;
-import cc.kune.core.shared.dto.RateResultDTO;
import cc.kune.core.shared.dto.StateAbstractDTO;
import cc.kune.core.shared.dto.StateContainerDTO;
import cc.kune.core.shared.dto.StateContentDTO;
import cc.kune.core.shared.dto.StateToken;
-import cc.kune.core.shared.dto.TagCloudResultDTO;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
@@ -59,11 +59,11 @@
StateAbstractDTO getContent(String userHash, StateToken token) throws DefaultException;
- TagCloudResultDTO getSummaryTags(String userHash, StateToken groupToken) throws DefaultException;
+ TagCloudResult getSummaryTags(String userHash, StateToken groupToken) throws DefaultException;
CommentDTO markCommentAsAbuse(String userHash, StateToken token, Long commentId) throws DefaultException;
- RateResultDTO rateContent(String userHash, StateToken token, Double value) throws DefaultException;
+ RateResult rateContent(String userHash, StateToken token, Double value) throws DefaultException;
void removeAuthor(String userHash, StateToken token, String authorShortName) throws DefaultException;
@@ -79,11 +79,11 @@
void setPublishedOn(String userHash, StateToken token, Date date) throws DefaultException;
- StateAbstractDTO setStatus(String userHash, StateToken stateToken, ContentStatusDTO status);
+ StateAbstractDTO setStatus(String userHash, StateToken stateToken, ContentStatus status);
- StateAbstractDTO setStatusAsAdmin(String userHash, StateToken stateToken, ContentStatusDTO status);
+ StateAbstractDTO setStatusAsAdmin(String userHash, StateToken stateToken, ContentStatus status);
- TagCloudResultDTO setTags(String userHash, StateToken token, String tags) throws DefaultException;
+ TagCloudResult setTags(String userHash, StateToken token, String tags) throws DefaultException;
CommentDTO voteComment(String userHash, StateToken token, Long commentId, boolean votePositive)
throws DefaultException;
Modified: trunk/src/main/java/cc/kune/core/client/rpcservices/ContentServiceAsync.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/rpcservices/ContentServiceAsync.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/cc/kune/core/client/rpcservices/ContentServiceAsync.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -21,17 +21,16 @@
import java.util.Date;
-
+import cc.kune.core.shared.domain.ContentStatus;
+import cc.kune.core.shared.domain.RateResult;
+import cc.kune.core.shared.domain.TagCloudResult;
import cc.kune.core.shared.dto.CommentDTO;
import cc.kune.core.shared.dto.ContentSimpleDTO;
-import cc.kune.core.shared.dto.ContentStatusDTO;
import cc.kune.core.shared.dto.I18nLanguageDTO;
-import cc.kune.core.shared.dto.RateResultDTO;
import cc.kune.core.shared.dto.StateAbstractDTO;
import cc.kune.core.shared.dto.StateContainerDTO;
import cc.kune.core.shared.dto.StateContentDTO;
import cc.kune.core.shared.dto.StateToken;
-import cc.kune.core.shared.dto.TagCloudResultDTO;
import com.google.gwt.user.client.rpc.AsyncCallback;
@@ -59,11 +58,11 @@
void getContent(String user, StateToken newState, AsyncCallback<StateAbstractDTO> callback);
- void getSummaryTags(String userHash, StateToken groupToken, AsyncCallback<TagCloudResultDTO> asyncCallback);
+ void getSummaryTags(String userHash, StateToken groupToken, AsyncCallback<TagCloudResult> asyncCallback);
void markCommentAsAbuse(String userHash, StateToken token, Long commentId, AsyncCallback<CommentDTO> asyncCallback);
- void rateContent(String userHash, StateToken token, Double value, AsyncCallback<RateResultDTO> asyncCallback);
+ void rateContent(String userHash, StateToken token, Double value, AsyncCallback<RateResult> asyncCallback);
void removeAuthor(String userHash, StateToken token, String authorShortName, AsyncCallback<Void> asyncCallback);
@@ -81,13 +80,13 @@
void setPublishedOn(String userHash, StateToken token, Date publishedOn, AsyncCallback<Void> asyncCallback);
- void setStatus(String userHash, StateToken stateToken, ContentStatusDTO status,
+ void setStatus(String userHash, StateToken stateToken, ContentStatus status,
AsyncCallback<StateAbstractDTO> asyncCallback);
- void setStatusAsAdmin(String userHash, StateToken stateToken, ContentStatusDTO status,
+ void setStatusAsAdmin(String userHash, StateToken stateToken, ContentStatus status,
AsyncCallback<StateAbstractDTO> asyncCallback);
- void setTags(String userHash, StateToken token, String tags, AsyncCallback<TagCloudResultDTO> asyncCallback);
+ void setTags(String userHash, StateToken token, String tags, AsyncCallback<TagCloudResult> asyncCallback);
void voteComment(String userHash, StateToken token, Long commentId, boolean votePositive,
AsyncCallback<CommentDTO> asyncCallback);
Modified: trunk/src/main/java/cc/kune/core/client/rpcservices/GroupService.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/rpcservices/GroupService.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/cc/kune/core/client/rpcservices/GroupService.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -20,10 +20,10 @@
package cc.kune.core.client.rpcservices;
import cc.kune.core.client.errors.DefaultException;
-import cc.kune.core.shared.dto.AdmissionTypeDTO;
+import cc.kune.core.shared.domain.AdmissionType;
+import cc.kune.core.shared.domain.SocialNetworkVisibility;
import cc.kune.core.shared.dto.GroupDTO;
import cc.kune.core.shared.dto.LicenseDTO;
-import cc.kune.core.shared.dto.SocialNetworkVisibilityDTO;
import cc.kune.core.shared.dto.StateToken;
import com.google.gwt.user.client.rpc.RemoteService;
@@ -45,9 +45,9 @@
GroupDTO setGroupBackImage(String userHash, StateToken token);
- void setGroupNewMembersJoiningPolicy(String userHash, StateToken groupToken, AdmissionTypeDTO admissionPolicy);
+ void setGroupNewMembersJoiningPolicy(String userHash, StateToken groupToken, AdmissionType admissionPolicy);
- void setSocialNetworkVisibility(String userHash, StateToken groupToken, SocialNetworkVisibilityDTO visibility);
+ void setSocialNetworkVisibility(String userHash, StateToken groupToken, SocialNetworkVisibility visibility);
void setToolEnabled(String userHash, StateToken groupToken, String toolName, boolean enabled);
Modified: trunk/src/main/java/cc/kune/core/client/rpcservices/GroupServiceAsync.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/rpcservices/GroupServiceAsync.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/cc/kune/core/client/rpcservices/GroupServiceAsync.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -19,11 +19,10 @@
*/
package cc.kune.core.client.rpcservices;
-
-import cc.kune.core.shared.dto.AdmissionTypeDTO;
+import cc.kune.core.shared.domain.AdmissionType;
+import cc.kune.core.shared.domain.SocialNetworkVisibility;
import cc.kune.core.shared.dto.GroupDTO;
import cc.kune.core.shared.dto.LicenseDTO;
-import cc.kune.core.shared.dto.SocialNetworkVisibilityDTO;
import cc.kune.core.shared.dto.StateToken;
import com.google.gwt.user.client.rpc.AsyncCallback;
@@ -44,10 +43,10 @@
void setGroupBackImage(String userHash, StateToken token, AsyncCallback<GroupDTO> asyncCallback);
- void setGroupNewMembersJoiningPolicy(String userHash, StateToken groupToken, AdmissionTypeDTO admissionPolicy,
+ void setGroupNewMembersJoiningPolicy(String userHash, StateToken groupToken, AdmissionType admissionPolicy,
AsyncCallback<Void> asyncCallback);
- void setSocialNetworkVisibility(String userHash, StateToken token, SocialNetworkVisibilityDTO visibility,
+ void setSocialNetworkVisibility(String userHash, StateToken token, SocialNetworkVisibility visibility,
AsyncCallback<Void> asyncCallback);
void setToolEnabled(String userHash, StateToken groupToken, String toolName, boolean enabled,
Modified: trunk/src/main/java/cc/kune/core/client/rpcservices/UserService.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/rpcservices/UserService.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/cc/kune/core/client/rpcservices/UserService.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -19,10 +19,9 @@
*/
package cc.kune.core.client.rpcservices;
-
import cc.kune.core.client.errors.DefaultException;
+import cc.kune.core.shared.domain.UserBuddiesVisibility;
import cc.kune.core.shared.dto.StateToken;
-import cc.kune.core.shared.dto.UserBuddiesVisibilityDTO;
import cc.kune.core.shared.dto.UserDTO;
import cc.kune.core.shared.dto.UserInfoDTO;
@@ -44,6 +43,6 @@
UserInfoDTO reloadUserInfo(String userHash) throws DefaultException;
- void setBuddiesVisibility(String userHash, StateToken groupToken, UserBuddiesVisibilityDTO visibility);
+ void setBuddiesVisibility(String userHash, StateToken groupToken, UserBuddiesVisibility visibility);
}
Modified: trunk/src/main/java/cc/kune/core/client/rpcservices/UserServiceAsync.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/rpcservices/UserServiceAsync.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/cc/kune/core/client/rpcservices/UserServiceAsync.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -19,9 +19,8 @@
*/
package cc.kune.core.client.rpcservices;
-
+import cc.kune.core.shared.domain.UserBuddiesVisibility;
import cc.kune.core.shared.dto.StateToken;
-import cc.kune.core.shared.dto.UserBuddiesVisibilityDTO;
import cc.kune.core.shared.dto.UserDTO;
import cc.kune.core.shared.dto.UserInfoDTO;
@@ -41,7 +40,7 @@
void reloadUserInfo(String userHash, AsyncCallback<UserInfoDTO> asyncCallback);
- void setBuddiesVisibility(String userHash, StateToken groupToken, UserBuddiesVisibilityDTO visibility,
+ void setBuddiesVisibility(String userHash, StateToken groupToken, UserBuddiesVisibility visibility,
AsyncCallback<Void> asyncCallback);
}
Copied: trunk/src/main/java/cc/kune/core/shared/domain/AdmissionType.java (from rev 1164, trunk/src/main/java/org/ourproject/kune/platf/server/domain/AdmissionType.java)
===================================================================
--- trunk/src/main/java/cc/kune/core/shared/domain/AdmissionType.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/shared/domain/AdmissionType.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -0,0 +1,26 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.shared.domain;
+
+import com.google.gwt.user.client.rpc.IsSerializable;
+
+public enum AdmissionType implements IsSerializable {
+ Moderated, Open, Closed
+}
Copied: trunk/src/main/java/cc/kune/core/shared/domain/ContentStatus.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/server/domain/ContentStatus.java)
===================================================================
--- trunk/src/main/java/cc/kune/core/shared/domain/ContentStatus.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/shared/domain/ContentStatus.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -0,0 +1,26 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ \*/
+package cc.kune.core.shared.domain;
+
+import com.google.gwt.user.client.rpc.IsSerializable;
+
+public enum ContentStatus implements IsSerializable {
+ editingInProgress, submittedForEvaluation, publishedOnline, rejected, inTheDustbin
+}
Copied: trunk/src/main/java/cc/kune/core/shared/domain/GroupListMode.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/server/domain/GroupListMode.java)
===================================================================
--- trunk/src/main/java/cc/kune/core/shared/domain/GroupListMode.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/shared/domain/GroupListMode.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -0,0 +1,42 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.shared.domain;
+
+import java.util.List;
+
+
+import cc.kune.domain.Group;
+
+import com.google.gwt.user.client.rpc.IsSerializable;
+
+public enum GroupListMode implements IsSerializable {
+ NORMAL, NOBODY, EVERYONE;
+
+ public boolean checkIfIncludes(final Group group, final List<Group> list) {
+ switch (this) {
+ case NOBODY:
+ return false;
+ case EVERYONE:
+ return true;
+ default:
+ return list.contains(group);
+ }
+ }
+}
Copied: trunk/src/main/java/cc/kune/core/shared/domain/RateResult.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/server/domain/RateResult.java)
===================================================================
--- trunk/src/main/java/cc/kune/core/shared/domain/RateResult.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/shared/domain/RateResult.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -0,0 +1,63 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.shared.domain;
+
+import com.google.gwt.user.client.rpc.IsSerializable;
+
+public class RateResult implements IsSerializable {
+ private Double rate;
+ private Integer rateByUsers;
+ private Double currentUserRate;
+
+ public RateResult() {
+ this(null, null, null);
+ }
+
+ public RateResult(final Double rate, final Integer rateByUsers, final Double currentUserRate) {
+ this.rate = rate;
+ this.rateByUsers = rateByUsers;
+ this.currentUserRate = currentUserRate;
+ }
+
+ public Double getCurrentUserRate() {
+ return currentUserRate;
+ }
+
+ public Double getRate() {
+ return rate;
+ }
+
+ public Integer getRateByUsers() {
+ return rateByUsers;
+ }
+
+ public void setCurrentUserRate(final Double currentUserRate) {
+ this.currentUserRate = currentUserRate;
+ }
+
+ public void setRate(final Double rate) {
+ this.rate = rate;
+ }
+
+ public void setRateByUsers(final Integer rateByUsers) {
+ this.rateByUsers = rateByUsers;
+ }
+
+}
Copied: trunk/src/main/java/cc/kune/core/shared/domain/SocialNetworkVisibility.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/server/domain/SocialNetworkVisibility.java)
===================================================================
--- trunk/src/main/java/cc/kune/core/shared/domain/SocialNetworkVisibility.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/shared/domain/SocialNetworkVisibility.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -0,0 +1,26 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.shared.domain;
+
+import com.google.gwt.user.client.rpc.IsSerializable;
+
+public enum SocialNetworkVisibility implements IsSerializable {
+ anyone, onlymembers, onlyadmins
+}
Copied: trunk/src/main/java/cc/kune/core/shared/domain/TagCloudResult.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/server/domain/TagCloudResult.java)
===================================================================
--- trunk/src/main/java/cc/kune/core/shared/domain/TagCloudResult.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/shared/domain/TagCloudResult.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -0,0 +1,65 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.shared.domain;
+
+import java.util.List;
+
+import com.google.gwt.user.client.rpc.IsSerializable;
+
+public class TagCloudResult implements IsSerializable {
+ private List<TagCount> tagCountList;
+ private int maxValue;
+ private int minValue;
+
+ public TagCloudResult(final List<TagCount> tagCountList, final int maxValue, final int minValue) {
+ this.tagCountList = tagCountList;
+ this.maxValue = maxValue;
+ this.minValue = minValue;
+ }
+
+ public int getMaxValue() {
+ return maxValue;
+ }
+
+ public int getMinValue() {
+ return minValue;
+ }
+
+ public List<TagCount> getTagCountList() {
+ return tagCountList;
+ }
+
+ public void setMaxValue(final int maxValue) {
+ this.maxValue = maxValue;
+ }
+
+ public void setMinValue(final int minValue) {
+ this.minValue = minValue;
+ }
+
+ public void setTagCountList(final List<TagCount> tagCountList) {
+ this.tagCountList = tagCountList;
+ }
+
+ @Override
+ public String toString() {
+ return "TagCloudResult[list:" + tagCountList + "; maxValue: " + maxValue + "; minValue: " + minValue + "]";
+ }
+}
Copied: trunk/src/main/java/cc/kune/core/shared/domain/TagCount.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/server/domain/TagCount.java)
===================================================================
--- trunk/src/main/java/cc/kune/core/shared/domain/TagCount.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/shared/domain/TagCount.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -0,0 +1,58 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.shared.domain;
+
+import com.google.gwt.user.client.rpc.IsSerializable;
+
+public class TagCount implements IsSerializable {
+ private String name;
+ // FIXME: try to use Integer
+ private Long count;
+
+ public TagCount() {
+ this(null, null);
+ }
+
+ public TagCount(final String name) {
+ this(name, null);
+ }
+
+ public TagCount(final String name, final Long count) {
+ this.name = name;
+ this.count = count;
+ }
+
+ public Long getCount() {
+ return count;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setCount(final Long count) {
+ this.count = count;
+ }
+
+ public void setName(final String name) {
+ this.name = name;
+ }
+
+}
Property changes on: trunk/src/main/java/cc/kune/core/shared/domain/TagCount.java
___________________________________________________________________
Name: svn:mergeinfo
+
Copied: trunk/src/main/java/cc/kune/core/shared/domain/UserBuddiesVisibility.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/server/domain/UserBuddiesVisibility.java)
===================================================================
--- trunk/src/main/java/cc/kune/core/shared/domain/UserBuddiesVisibility.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/shared/domain/UserBuddiesVisibility.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -0,0 +1,26 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.shared.domain;
+
+import com.google.gwt.user.client.rpc.IsSerializable;
+
+public enum UserBuddiesVisibility implements IsSerializable {
+ anyone, yourbuddies, onlyyou
+}
Deleted: trunk/src/main/java/cc/kune/core/shared/dto/AdmissionTypeDTO.java
===================================================================
--- trunk/src/main/java/cc/kune/core/shared/dto/AdmissionTypeDTO.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/cc/kune/core/shared/dto/AdmissionTypeDTO.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -1,26 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package cc.kune.core.shared.dto;
-
-import com.google.gwt.user.client.rpc.IsSerializable;
-
-public enum AdmissionTypeDTO implements IsSerializable {
- Moderated, Open, Closed
-}
\ No newline at end of file
Deleted: trunk/src/main/java/cc/kune/core/shared/dto/ChatUserParamsDTO.java
===================================================================
--- trunk/src/main/java/cc/kune/core/shared/dto/ChatUserParamsDTO.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/cc/kune/core/shared/dto/ChatUserParamsDTO.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -1,79 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- \*/
-package cc.kune.core.shared.dto;
-
-import com.google.gwt.user.client.rpc.IsSerializable;
-
-@Deprecated
-public class ChatUserParamsDTO implements IsSerializable {
-
- private String avatar;
-
- private boolean publishRoster;
-
- private SubscriptionMode subscriptionMode;
-
- private String chatColor;
-
- public ChatUserParamsDTO() {
- this(null, false, SubscriptionMode.autoAcceptAll, null);
- };
-
- public ChatUserParamsDTO(final String avatar, final boolean publishRoster, final SubscriptionMode subscriptionMode,
- final String chatColor) {
- this.avatar = avatar;
- this.publishRoster = publishRoster;
- this.subscriptionMode = subscriptionMode;
- this.chatColor = chatColor;
- }
-
- public String getAvatar() {
- return avatar;
- }
-
- public String getChatColor() {
- return chatColor;
- }
-
- public SubscriptionMode getSubscriptionMode() {
- return subscriptionMode;
- }
-
- public boolean isPublishRoster() {
- return publishRoster;
- }
-
- public void setAvatar(final String avatar) {
- this.avatar = avatar;
- }
-
- public void setChatColor(final String chatColor) {
- this.chatColor = chatColor;
- }
-
- public void setPublishRoster(final boolean publishRoster) {
- this.publishRoster = publishRoster;
- }
-
- public void setSubscriptionMode(final SubscriptionMode subscriptionMode) {
- this.subscriptionMode = subscriptionMode;
- }
-
-}
Modified: trunk/src/main/java/cc/kune/core/shared/dto/ContentSimpleDTO.java
===================================================================
--- trunk/src/main/java/cc/kune/core/shared/dto/ContentSimpleDTO.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/cc/kune/core/shared/dto/ContentSimpleDTO.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -19,6 +19,8 @@
*/
package cc.kune.core.shared.dto;
+import cc.kune.core.shared.domain.ContentStatus;
+
import com.google.gwt.user.client.rpc.IsSerializable;
public class ContentSimpleDTO implements IsSerializable {
@@ -27,7 +29,7 @@
private String title;
private String typeId;
private StateToken stateToken;
- private ContentStatusDTO status;
+ private ContentStatus status;
private AccessRightsDTO rights;
private BasicMimeTypeDTO mimeType;
@@ -47,7 +49,7 @@
return stateToken;
}
- public ContentStatusDTO getStatus() {
+ public ContentStatus getStatus() {
return status;
}
@@ -75,7 +77,7 @@
this.stateToken = stateToken;
}
- public void setStatus(final ContentStatusDTO status) {
+ public void setStatus(final ContentStatus status) {
this.status = status;
}
Deleted: trunk/src/main/java/cc/kune/core/shared/dto/ContentStatusDTO.java
===================================================================
--- trunk/src/main/java/cc/kune/core/shared/dto/ContentStatusDTO.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/cc/kune/core/shared/dto/ContentStatusDTO.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -1,26 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- \*/
-package cc.kune.core.shared.dto;
-
-import com.google.gwt.user.client.rpc.IsSerializable;
-
-public enum ContentStatusDTO implements IsSerializable {
- editingInProgress, submittedForEvaluation, publishedOnline, rejected, inTheDustbin
-}
\ No newline at end of file
Modified: trunk/src/main/java/cc/kune/core/shared/dto/GroupDTO.java
===================================================================
--- trunk/src/main/java/cc/kune/core/shared/dto/GroupDTO.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/cc/kune/core/shared/dto/GroupDTO.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -19,6 +19,8 @@
*/
package cc.kune.core.shared.dto;
+import cc.kune.core.shared.domain.AdmissionType;
+
import com.google.gwt.user.client.rpc.IsSerializable;
public class GroupDTO implements IsSerializable {
@@ -33,7 +35,7 @@
private String workspaceTheme;
private boolean hasLogo;
private StateToken stateToken;
- AdmissionTypeDTO admissionType;
+ AdmissionType admissionType;
public GroupDTO() {
this(null, null, GroupType.ORGANIZATION);
@@ -67,7 +69,7 @@
return true;
}
- public AdmissionTypeDTO getAdmissionType() {
+ public AdmissionType getAdmissionType() {
return admissionType;
}
@@ -134,7 +136,7 @@
return groupType.equals(GroupType.PERSONAL);
}
- public void setAdmissionType(final AdmissionTypeDTO admissionType) {
+ public void setAdmissionType(final AdmissionType admissionType) {
this.admissionType = admissionType;
}
Deleted: trunk/src/main/java/cc/kune/core/shared/dto/RateResultDTO.java
===================================================================
--- trunk/src/main/java/cc/kune/core/shared/dto/RateResultDTO.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/cc/kune/core/shared/dto/RateResultDTO.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -1,62 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package cc.kune.core.shared.dto;
-
-import com.google.gwt.user.client.rpc.IsSerializable;
-
-public class RateResultDTO implements IsSerializable {
- private Double rate;
- private Integer rateByUsers;
- private Double currentUserRate;
-
- public RateResultDTO() {
- this(null, null, null);
- }
-
- public RateResultDTO(Double rate, Integer rateByUsers, Double currentUserRate) {
- this.rate = rate;
- this.rateByUsers = rateByUsers;
- this.currentUserRate = currentUserRate;
- }
-
- public Double getCurrentUserRate() {
- return currentUserRate;
- }
-
- public Double getRate() {
- return rate;
- }
-
- public Integer getRateByUsers() {
- return rateByUsers;
- }
-
- public void setCurrentUserRate(Double currentUserRate) {
- this.currentUserRate = currentUserRate;
- }
-
- public void setRate(Double rate) {
- this.rate = rate;
- }
-
- public void setRateByUsers(Integer rateByUsers) {
- this.rateByUsers = rateByUsers;
- }
-}
Modified: trunk/src/main/java/cc/kune/core/shared/dto/SocialNetworkDataDTO.java
===================================================================
--- trunk/src/main/java/cc/kune/core/shared/dto/SocialNetworkDataDTO.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/cc/kune/core/shared/dto/SocialNetworkDataDTO.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -19,14 +19,17 @@
*/
package cc.kune.core.shared.dto;
+import cc.kune.core.shared.domain.SocialNetworkVisibility;
+import cc.kune.core.shared.domain.UserBuddiesVisibility;
+
import com.google.gwt.user.client.rpc.IsSerializable;
public class SocialNetworkDataDTO implements IsSerializable {
- private SocialNetworkVisibilityDTO socialNetworkVisibility;
+ private SocialNetworkVisibility socialNetworkVisibility;
private SocialNetworkDTO groupMembers;
private ParticipationDataDTO userParticipation;
- private UserBuddiesVisibilityDTO userBuddiesVisibility;
+ private UserBuddiesVisibility userBuddiesVisibility;
private UserBuddiesDataDTO userBuddies;
private AccessRightsDTO groupRights;
private boolean isBuddiesVisible;
@@ -36,9 +39,9 @@
this(null, null, null, null, null, null, false, false);
}
- public SocialNetworkDataDTO(final SocialNetworkVisibilityDTO socialNetworkVisibility,
+ public SocialNetworkDataDTO(final SocialNetworkVisibility socialNetworkVisibility,
final SocialNetworkDTO groupMembers, final ParticipationDataDTO userParticipation,
- final UserBuddiesVisibilityDTO userBuddiesVisibility, final UserBuddiesDataDTO userBuddies,
+ final UserBuddiesVisibility userBuddiesVisibility, final UserBuddiesDataDTO userBuddies,
final AccessRightsDTO groupRights, final boolean isBuddiesVisible, final boolean isMembersVisible) {
this.socialNetworkVisibility = socialNetworkVisibility;
this.groupMembers = groupMembers;
@@ -66,7 +69,7 @@
return isMembersVisible;
}
- public SocialNetworkVisibilityDTO getSocialNetworkVisibility() {
+ public SocialNetworkVisibility getSocialNetworkVisibility() {
return socialNetworkVisibility;
}
@@ -74,7 +77,7 @@
return userBuddies;
}
- public UserBuddiesVisibilityDTO getUserBuddiesVisibility() {
+ public UserBuddiesVisibility getUserBuddiesVisibility() {
return userBuddiesVisibility;
}
@@ -114,16 +117,16 @@
this.isMembersVisible = isMembersVisible;
}
- public void setSocialNetworkVisibility(final SocialNetworkVisibilityDTO socialNetworkVisibilityDTO) {
- this.socialNetworkVisibility = socialNetworkVisibilityDTO;
+ public void setSocialNetworkVisibility(final SocialNetworkVisibility socialNetworkVisibility) {
+ this.socialNetworkVisibility = socialNetworkVisibility;
}
public void setUserBuddies(final UserBuddiesDataDTO userBuddies) {
this.userBuddies = userBuddies;
}
- public void setUserBuddiesVisibility(final UserBuddiesVisibilityDTO userBuddiesVisibilityDTO) {
- this.userBuddiesVisibility = userBuddiesVisibilityDTO;
+ public void setUserBuddiesVisibility(final UserBuddiesVisibility userBuddiesVisibility) {
+ this.userBuddiesVisibility = userBuddiesVisibility;
}
public void setUserParticipation(final ParticipationDataDTO userParticipation) {
Deleted: trunk/src/main/java/cc/kune/core/shared/dto/SocialNetworkVisibilityDTO.java
===================================================================
--- trunk/src/main/java/cc/kune/core/shared/dto/SocialNetworkVisibilityDTO.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/cc/kune/core/shared/dto/SocialNetworkVisibilityDTO.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -1,26 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package cc.kune.core.shared.dto;
-
-import com.google.gwt.user.client.rpc.IsSerializable;
-
-public enum SocialNetworkVisibilityDTO implements IsSerializable {
- anyone, onlymembers, onlyadmins
-}
Modified: trunk/src/main/java/cc/kune/core/shared/dto/StateContainerDTO.java
===================================================================
--- trunk/src/main/java/cc/kune/core/shared/dto/StateContainerDTO.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/cc/kune/core/shared/dto/StateContainerDTO.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -19,6 +19,8 @@
*/
package cc.kune.core.shared.dto;
+import cc.kune.core.shared.domain.TagCloudResult;
+
import com.google.gwt.user.client.rpc.IsSerializable;
public class StateContainerDTO extends StateAbstractDTO implements IsSerializable {
@@ -30,7 +32,7 @@
private ContainerDTO rootContainer;
private AccessRightsDTO containerRights;
private LicenseDTO license;
- private TagCloudResultDTO tagCloudResult;
+ private TagCloudResult tagCloudResult;
private AccessListsDTO accessLists;
public StateContainerDTO() {
@@ -60,7 +62,7 @@
return rootContainer;
}
- public TagCloudResultDTO getTagCloudResult() {
+ public TagCloudResult getTagCloudResult() {
return tagCloudResult;
}
@@ -72,43 +74,43 @@
return typeId;
}
- public boolean isType(String type) {
+ public boolean isType(final String type) {
return getTypeId().equals(type);
}
- public void setAccessLists(AccessListsDTO accessLists) {
+ public void setAccessLists(final AccessListsDTO accessLists) {
this.accessLists = accessLists;
}
- public void setContainer(ContainerDTO container) {
+ public void setContainer(final ContainerDTO container) {
this.container = container;
}
- public void setContainerRights(AccessRightsDTO containerRights) {
+ public void setContainerRights(final AccessRightsDTO containerRights) {
this.containerRights = containerRights;
}
- public void setLanguage(I18nLanguageDTO language) {
+ public void setLanguage(final I18nLanguageDTO language) {
this.language = language;
}
- public void setLicense(LicenseDTO license) {
+ public void setLicense(final LicenseDTO license) {
this.license = license;
}
- public void setRootContainer(ContainerDTO rootContainer) {
+ public void setRootContainer(final ContainerDTO rootContainer) {
this.rootContainer = rootContainer;
}
- public void setTagCloudResult(TagCloudResultDTO tagCloudResult) {
+ public void setTagCloudResult(final TagCloudResult tagCloudResult) {
this.tagCloudResult = tagCloudResult;
}
- public void setToolName(String toolName) {
+ public void setToolName(final String toolName) {
this.toolName = toolName;
}
- public void setTypeId(String typeId) {
+ public void setTypeId(final String typeId) {
this.typeId = typeId;
}
Modified: trunk/src/main/java/cc/kune/core/shared/dto/StateContentDTO.java
===================================================================
--- trunk/src/main/java/cc/kune/core/shared/dto/StateContentDTO.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/cc/kune/core/shared/dto/StateContentDTO.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -22,6 +22,9 @@
import java.util.Date;
import java.util.List;
+import cc.kune.core.shared.domain.ContentStatus;
+import cc.kune.core.shared.domain.RateResult;
+
import com.google.gwt.user.client.rpc.IsSerializable;
public class StateContentDTO extends StateContainerDTO implements IsSerializable {
@@ -30,7 +33,7 @@
private int version;
private String content;
private AccessRightsDTO contentRights;
- private ContentStatusDTO status;
+ private ContentStatus status;
private Double rate;
private Integer rateByUsers;
private Double currentUserRate;
@@ -78,7 +81,7 @@
return rateByUsers;
}
- public ContentStatusDTO getStatus() {
+ public ContentStatus getStatus() {
return status;
}
@@ -90,57 +93,57 @@
return version;
}
- public void setAuthors(List<UserSimpleDTO> authors) {
+ public void setAuthors(final List<UserSimpleDTO> authors) {
this.authors = authors;
}
- public void setContent(String content) {
+ public void setContent(final String content) {
this.content = content;
}
- public void setContentRights(AccessRightsDTO contentRights) {
+ public void setContentRights(final AccessRightsDTO contentRights) {
this.contentRights = contentRights;
}
- public void setCurrentUserRate(Double currentUserRate) {
+ public void setCurrentUserRate(final Double currentUserRate) {
this.currentUserRate = currentUserRate;
}
- public void setDocumentId(String documentId) {
+ public void setDocumentId(final String documentId) {
this.documentId = documentId;
}
- public void setMimeType(BasicMimeTypeDTO mimeType) {
+ public void setMimeType(final BasicMimeTypeDTO mimeType) {
this.mimeType = mimeType;
}
- public void setPublishedOn(Date publishedOn) {
+ public void setPublishedOn(final Date publishedOn) {
this.publishedOn = publishedOn;
}
- public void setRate(Double rate) {
+ public void setRate(final Double rate) {
this.rate = rate;
}
- public void setRate(RateResultDTO result) {
+ public void setRate(final RateResult result) {
setRate(result.getRate());
setRateByUsers(result.getRateByUsers());
setCurrentUserRate(result.getCurrentUserRate());
}
- public void setRateByUsers(Integer rateByUsers) {
+ public void setRateByUsers(final Integer rateByUsers) {
this.rateByUsers = rateByUsers;
}
- public void setStatus(ContentStatusDTO status) {
+ public void setStatus(final ContentStatus status) {
this.status = status;
}
- public void setTags(String tags) {
+ public void setTags(final String tags) {
this.tags = tags;
}
- public void setVersion(int version) {
+ public void setVersion(final int version) {
this.version = version;
}
Deleted: trunk/src/main/java/cc/kune/core/shared/dto/TagCloudResultDTO.java
===================================================================
--- trunk/src/main/java/cc/kune/core/shared/dto/TagCloudResultDTO.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/cc/kune/core/shared/dto/TagCloudResultDTO.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -1,69 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package cc.kune.core.shared.dto;
-
-import java.util.List;
-
-import com.google.gwt.user.client.rpc.IsSerializable;
-
-public class TagCloudResultDTO implements IsSerializable {
- private List<TagCountDTO> tagCountList;
- private int maxValue;
- private int minValue;
-
- public TagCloudResultDTO() {
- this(null, 0, 0);
- }
-
- public TagCloudResultDTO(List<TagCountDTO> tagCountList, int maxValue, int minValue) {
- this.tagCountList = tagCountList;
- this.maxValue = maxValue;
- this.minValue = minValue;
- }
-
- public int getMaxValue() {
- return maxValue;
- }
-
- public int getMinValue() {
- return minValue;
- }
-
- public List<TagCountDTO> getTagCountList() {
- return tagCountList;
- }
-
- public void setMaxValue(int maxValue) {
- this.maxValue = maxValue;
- }
-
- public void setMinValue(int minValue) {
- this.minValue = minValue;
- }
-
- public void setTagCountList(List<TagCountDTO> tagCountList) {
- this.tagCountList = tagCountList;
- }
-
- @Override
- public String toString() {
- return "TagCloudResultDTO[list:" + tagCountList + "; maxValue: " + maxValue + "; minValue: " + minValue + "]";
- }
-}
Deleted: trunk/src/main/java/cc/kune/core/shared/dto/TagCountDTO.java
===================================================================
--- trunk/src/main/java/cc/kune/core/shared/dto/TagCountDTO.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/cc/kune/core/shared/dto/TagCountDTO.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -1,59 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package cc.kune.core.shared.dto;
-
-import com.google.gwt.user.client.rpc.IsSerializable;
-
-public class TagCountDTO implements IsSerializable {
- private String name;
- // FIXME: try to use Integer
- private Long count;
-
- public TagCountDTO() {
- this(null, null);
- }
-
- public TagCountDTO(final String name, final Long count) {
- this.name = name;
- this.count = count;
- }
-
- public Long getCount() {
- return count;
- }
-
- public String getName() {
- return name;
- }
-
- public void setCount(final Long count) {
- this.count = count;
- }
-
- public void setName(final String name) {
- this.name = name;
- }
-
- @Override
- public String toString() {
- return name + "(" + count + ")";
- }
-
-}
Deleted: trunk/src/main/java/cc/kune/core/shared/dto/UserBuddiesVisibilityDTO.java
===================================================================
--- trunk/src/main/java/cc/kune/core/shared/dto/UserBuddiesVisibilityDTO.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/cc/kune/core/shared/dto/UserBuddiesVisibilityDTO.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -1,26 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package cc.kune.core.shared.dto;
-
-import com.google.gwt.user.client.rpc.IsSerializable;
-
-public enum UserBuddiesVisibilityDTO implements IsSerializable {
- anyone, yourbuddies, onlyyou
-}
Copied: trunk/src/main/java/cc/kune/domain/AccessLists.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/server/domain/AccessLists.java)
===================================================================
--- trunk/src/main/java/cc/kune/domain/AccessLists.java (rev 0)
+++ trunk/src/main/java/cc/kune/domain/AccessLists.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -0,0 +1,114 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.domain;
+
+import javax.persistence.CascadeType;
+import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.Id;
+import javax.persistence.OneToOne;
+import javax.persistence.Table;
+
+import org.hibernate.search.annotations.DocumentId;
+import org.ourproject.kune.platf.server.access.AccessRol;
+
+@Entity
+@Table(name = "access_lists")
+public class AccessLists {
+
+ @OneToOne(cascade = CascadeType.ALL)
+ protected GroupList admins;
+
+ @OneToOne(cascade = CascadeType.ALL)
+ protected GroupList editors;
+
+ @OneToOne(cascade = CascadeType.ALL)
+ protected GroupList viewers;
+
+ @Id
+ @GeneratedValue
+ @DocumentId
+ private Long id;
+
+ public AccessLists() {
+ this.admins = new GroupList();
+ this.editors = new GroupList();
+ this.viewers = new GroupList();
+ }
+
+ public void addAdmin(final Group group) {
+ admins.add(group);
+ }
+
+ public void addEditor(final Group group) {
+ editors.add(group);
+ }
+
+ public void addViewer(final Group group) {
+ viewers.add(group);
+ }
+
+ public GroupList getAdmins() {
+ return admins;
+ }
+
+ public GroupList getEditors() {
+ return editors;
+ }
+
+ public Long getId() {
+ return id;
+ }
+
+ public GroupList getList(final AccessRol rol) {
+ if (rol == AccessRol.Administrator) {
+ return getAdmins();
+ } else if (rol == AccessRol.Editor) {
+ return getEditors();
+ } else {
+ return getViewers();
+ }
+ }
+
+ public GroupList getViewers() {
+ return viewers;
+ }
+
+ public void removeAdmin(final Group group) {
+ admins.remove(group);
+ }
+
+ public void removeEditor(final Group group) {
+ editors.remove(group);
+ }
+
+ public void removeViewer(final Group group) {
+ viewers.remove(group);
+ }
+
+ public void setId(final Long id) {
+ this.id = id;
+ }
+
+ @Override
+ public String toString() {
+ return "AccessList[admins :" + admins + "; editors: " + editors + "; viewers: " + viewers + "]";
+ }
+}
Copied: trunk/src/main/java/cc/kune/domain/BasicMimeType.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/server/domain/BasicMimeType.java)
===================================================================
--- trunk/src/main/java/cc/kune/domain/BasicMimeType.java (rev 0)
+++ trunk/src/main/java/cc/kune/domain/BasicMimeType.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -0,0 +1,103 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ \*/
+package cc.kune.domain;
+
+import javax.persistence.Embeddable;
+
+import org.hibernate.search.annotations.Field;
+import org.hibernate.search.annotations.Index;
+import org.hibernate.search.annotations.Store;
+
+@Embeddable
+public class BasicMimeType {
+
+ @Field(index = Index.UN_TOKENIZED, store = Store.NO)
+ private String mimetype;
+ @Field(index = Index.UN_TOKENIZED, store = Store.NO)
+ private String mimesubtype;
+
+ public BasicMimeType() {
+ this(null, null);
+ }
+
+ public BasicMimeType(final String mimetype) {
+ if (mimetype != null) {
+ final String[] split = mimetype.split("/", 2);
+ this.mimetype = split[0];
+ if (split.length > 1 && split[1].length() > 0) {
+ this.mimesubtype = split[1];
+ }
+ }
+ }
+
+ public BasicMimeType(final String type, final String subtype) {
+ this.mimetype = type;
+ this.mimesubtype = subtype;
+ }
+
+ public String getSubtype() {
+ return mimesubtype;
+ }
+
+ public String getType() {
+ return mimetype;
+ }
+
+ /**
+ * Duplicate code in BMTDTO
+ *
+ * @return
+ */
+ public boolean isImage() {
+ return mimetype != null && mimetype.equals("image");
+ }
+
+ /**
+ * Duplicate code in BMTDTO
+ *
+ * @return
+ */
+ public boolean isPdf() {
+ return mimetype != null && mimesubtype != null && mimetype.equals("application") && mimesubtype.equals("pdf");
+ }
+
+ /**
+ * Duplicate code in BMTDTO
+ *
+ * @return
+ */
+ public boolean isText() {
+ return mimetype != null && mimesubtype != null && mimetype.equals("text") && mimesubtype.equals("plain");
+ }
+
+ public void setSubtype(final String subtype) {
+ this.mimesubtype = subtype;
+ }
+
+ public void setType(final String type) {
+ this.mimetype = type;
+ }
+
+ @Override
+ public String toString() {
+ return mimesubtype == null ? mimetype : mimetype + "/" + mimesubtype;
+ }
+
+}
Copied: trunk/src/main/java/cc/kune/domain/Comment.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/server/domain/Comment.java)
===================================================================
--- trunk/src/main/java/cc/kune/domain/Comment.java (rev 0)
+++ trunk/src/main/java/cc/kune/domain/Comment.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -0,0 +1,219 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ \*/
+package cc.kune.domain;
+
+import java.util.ArrayList;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Set;
+
+import javax.persistence.Basic;
+import javax.persistence.CascadeType;
+import javax.persistence.Entity;
+import javax.persistence.FetchType;
+import javax.persistence.GeneratedValue;
+import javax.persistence.Id;
+import javax.persistence.JoinColumn;
+import javax.persistence.ManyToMany;
+import javax.persistence.ManyToOne;
+import javax.persistence.OneToMany;
+import javax.persistence.OneToOne;
+import javax.persistence.Table;
+import javax.persistence.Transient;
+
+import org.hibernate.search.annotations.DocumentId;
+import org.hibernate.search.annotations.Field;
+import org.hibernate.search.annotations.Index;
+import org.hibernate.search.annotations.IndexedEmbedded;
+import org.hibernate.search.annotations.Store;
+
+@Entity
+@Table(name = "comment")
+public class Comment {
+
+ @Id
+ @GeneratedValue
+ @DocumentId
+ private Long id;
+
+ @ManyToOne
+ @JoinColumn
+ @IndexedEmbedded
+ private Content content;
+
+ @Basic(optional = false)
+ private Long publishedOn;
+
+ @IndexedEmbedded
+ @OneToOne(cascade = { CascadeType.PERSIST, CascadeType.MERGE })
+ private User author;
+
+ // Parent/Child pattern:
+ // http://www.hibernate.org/hib_docs/reference/en/html/example-parentchild.html
+ // http://www.researchkitchen.co.uk/blog/archives/57
+ @ManyToOne(fetch = FetchType.LAZY)
+ @JoinColumn
+ private Comment parent;
+
+ @OneToMany(mappedBy = "parent", cascade = CascadeType.ALL, fetch = FetchType.EAGER)
+ private Set<Comment> childs;
+
+ @IndexedEmbedded
+ @ManyToMany(cascade = { CascadeType.PERSIST, CascadeType.MERGE })
+ private List<User> positiveVoters;
+
+ @IndexedEmbedded
+ @ManyToMany(cascade = { CascadeType.PERSIST, CascadeType.MERGE })
+ private List<User> negativeVoters;
+
+ @IndexedEmbedded
+ @ManyToMany(cascade = { CascadeType.PERSIST, CascadeType.MERGE })
+ private List<User> abuseInformers;
+
+ @Field(index = Index.TOKENIZED, store = Store.NO)
+ private String text;
+
+ public Comment() {
+ this.publishedOn = System.currentTimeMillis();
+ this.childs = new HashSet<Comment>();
+ this.positiveVoters = new ArrayList<User>();
+ this.negativeVoters = new ArrayList<User>();
+ this.abuseInformers = new ArrayList<User>();
+ }
+
+ public void addAbuseInformer(final User informer) {
+ if (!abuseInformers.contains(informer)) {
+ abuseInformers.add(informer);
+ }
+ }
+
+ public void addNegativeVoter(final User voter) {
+ if (!negativeVoters.contains(voter)) {
+ negativeVoters.add(voter);
+ }
+ if (positiveVoters.contains(voter)) {
+ positiveVoters.remove(voter);
+ }
+ }
+
+ public void addPositiveVoter(final User voter) {
+ if (!positiveVoters.contains(voter)) {
+ positiveVoters.add(voter);
+ }
+ if (negativeVoters.contains(voter)) {
+ negativeVoters.remove(voter);
+ }
+ }
+
+ public List<User> getAbuseInformers() {
+ return abuseInformers;
+ }
+
+ @Transient
+ public int getAbuseInformersCount() {
+ return abuseInformers.size();
+ }
+
+ public User getAuthor() {
+ return author;
+ }
+
+ public Set<Comment> getChilds() {
+ return childs;
+ }
+
+ public Content getContent() {
+ return content;
+ }
+
+ public Long getId() {
+ return id;
+ }
+
+ public List<User> getNegativeVoters() {
+ return negativeVoters;
+ }
+
+ @Transient
+ public int getNegativeVotersCount() {
+ return negativeVoters.size();
+ }
+
+ public Comment getParent() {
+ return parent;
+ }
+
+ public List<User> getPositiveVoters() {
+ return positiveVoters;
+ }
+
+ @Transient
+ public int getPositiveVotersCount() {
+ return positiveVoters.size();
+ }
+
+ public Long getPublishedOn() {
+ return publishedOn;
+ }
+
+ public String getText() {
+ return text;
+ }
+
+ public void setAbuseInformers(final List<User> abuseInformers) {
+ this.abuseInformers = abuseInformers;
+ }
+
+ public void setAuthor(final User author) {
+ this.author = author;
+ }
+
+ public void setChilds(final Set<Comment> childs) {
+ this.childs = childs;
+ }
+
+ public void setContent(final Content content) {
+ this.content = content;
+ }
+
+ public void setId(final Long id) {
+ this.id = id;
+ }
+
+ public void setNegativeVoters(final List<User> negativeVoters) {
+ this.negativeVoters = negativeVoters;
+ }
+
+ public void setParent(final Comment parent) {
+ this.parent = parent;
+ }
+
+ public void setPositiveVoters(final List<User> positiveVoters) {
+ this.positiveVoters = positiveVoters;
+ }
+
+ public void setPublishedOn(final Long publishedOn) {
+ this.publishedOn = publishedOn;
+ }
+
+ public void setText(final String text) {
+ this.text = text;
+ }
+}
Copied: trunk/src/main/java/cc/kune/domain/Container.java (from rev 1163, trunk/src/main/java/org/ourproject/kune/platf/server/domain/Container.java)
===================================================================
--- trunk/src/main/java/cc/kune/domain/Container.java (rev 0)
+++ trunk/src/main/java/cc/kune/domain/Container.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -0,0 +1,299 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.domain;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Set;
+
+import javax.persistence.Basic;
+import javax.persistence.CascadeType;
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.FetchType;
+import javax.persistence.GeneratedValue;
+import javax.persistence.Id;
+import javax.persistence.JoinColumn;
+import javax.persistence.ManyToMany;
+import javax.persistence.ManyToOne;
+import javax.persistence.OneToMany;
+import javax.persistence.OneToOne;
+import javax.persistence.OrderBy;
+import javax.persistence.Table;
+import javax.persistence.Transient;
+
+import org.hibernate.search.annotations.ContainedIn;
+import org.hibernate.search.annotations.DocumentId;
+import org.hibernate.search.annotations.Field;
+import org.hibernate.search.annotations.Index;
+import org.hibernate.search.annotations.Indexed;
+import org.hibernate.search.annotations.IndexedEmbedded;
+import org.hibernate.search.annotations.Store;
+
+import cc.kune.core.shared.dto.StateToken;
+import cc.kune.domain.utils.HasId;
+import cc.kune.domain.utils.HasStateToken;
+
+import com.google.inject.name.Named;
+import com.wideplay.warp.persist.dao.Finder;
+
+@Entity
+@Indexed
+@Table(name = "containers")
+public class Container implements HasId, HasStateToken {
+ @Id
+ @GeneratedValue
+ @DocumentId
+ Long id;
+
+ @Column
+ @Field(index = Index.TOKENIZED, store = Store.NO)
+ private String name;
+
+ private String toolName;
+
+ private String typeId;
+
+ @ManyToOne
+ private I18nLanguage language;
+
+ @IndexedEmbedded(depth = 1, prefix = "owner_")
+ @OneToOne
+ private Group owner;
+
+ // Parent/Child pattern:
+ // http://www.hibernate.org/hib_docs/reference/en/html/example-parentchild.html
+ // http://www.researchkitchen.co.uk/blog/archives/57
+ @ManyToOne(fetch = FetchType.LAZY)
+ @JoinColumn
+ private Container parent;
+
+ @OrderBy("createdOn DESC")
+ @OneToMany(mappedBy = "parent", cascade = CascadeType.ALL, fetch = FetchType.EAGER)
+ private Set<Container> childs;
+
+ @ContainedIn
+ @OrderBy("createdOn DESC")
+ @OneToMany(mappedBy = "container", cascade = CascadeType.ALL, fetch = FetchType.EAGER)
+ private Set<Content> contents;
+
+ @ManyToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL)
+ private List<Container> absolutePath;
+
+ @OneToMany(cascade = CascadeType.ALL)
+ private List<ContainerTranslation> containerTranslations;
+
+ @OneToOne(cascade = CascadeType.ALL)
+ private AccessLists accessLists;
+
+ @Basic(optional = false)
+ private Long createdOn;
+
+ @Basic(optional = true)
+ private Date deletedOn;
+
+ public Container() {
+ this(null, null, null);
+ }
+
+ public Container(final String title, final Group group, final String toolName) {
+ this.name = title;
+ owner = group;
+ this.toolName = toolName;
+ this.contents = new HashSet<Content>();
+ this.childs = new HashSet<Container>();
+ this.absolutePath = new ArrayList<Container>();
+ this.createdOn = System.currentTimeMillis();
+ }
+
+ public void addChild(final Container child) {
+ child.setParent(this);
+ childs.add(child);
+ }
+
+ public void addContent(final Content descriptor) {
+ // FIXME: something related with lazy initialization (workaround using
+ // size())
+ contents.size();
+ contents.add(descriptor);
+ }
+
+ @Finder(query = "SELECT COUNT(*) FROM Container c WHERE c.parent = :container AND c.name LIKE :title")
+ public Long findIfExistsTitle(@Named("container") final Container container, @Named("title") final String title) {
+ return null;
+ }
+
+ public List<Container> getAbsolutePath() {
+ return absolutePath;
+ }
+
+ @Transient
+ public AccessLists getAccessLists() {
+ return hasAccessList() ? accessLists : isRoot() ? getOwner().getAccessLists() : getParent().getAccessLists();
+ }
+
+ public List<ContainerTranslation> getAliases() {
+ return containerTranslations;
+ }
+
+ public Set<Container> getChilds() {
+ return childs;
+ }
+
+ public List<ContainerTranslation> getContainerTranslations() {
+ return containerTranslations;
+ }
+
+ public Set<Content> getContents() {
+ return contents;
+ }
+
+ public Long getCreatedOn() {
+ return createdOn;
+ }
+
+ public Date getDeletedOn() {
+ return deletedOn;
+ }
+
+ public Long getId() {
+ return id;
+ }
+
+ public I18nLanguage getLanguage() {
+ return language;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public Group getOwner() {
+ return owner;
+ }
+
+ public Container getParent() {
+ return parent;
+ }
+
+ public Long getParentFolderId() {
+ return parent != null ? parent.getId() : null;
+ }
+
+ @Transient
+ public StateToken getStateToken() {
+ return new StateToken(getOwner().getShortName(), getToolName(), getId());
+ }
+
+ @Transient
+ public String getStateTokenEncoded() {
+ return getStateToken().getEncoded();
+ }
+
+ public String getToolName() {
+ return toolName;
+ }
+
+ public String getTypeId() {
+ return typeId;
+ }
+
+ @Transient
+ public boolean hasAccessList() {
+ return accessLists != null;
+ }
+
+ @Transient
+ public boolean isLeaf() {
+ return childs.size() == 0 && contents.size() == 0;
+ }
+
+ @Transient
+ public boolean isRoot() {
+ return parent == null;
+ }
+
+ public void setAbsolutePath(final List<Container> absolutePath) {
+ this.absolutePath = absolutePath;
+ }
+
+ public void setAccessLists(final AccessLists accessLists) {
+ this.accessLists = accessLists;
+ }
+
+ public void setAliases(final List<ContainerTranslation> containerTranslations) {
+ this.containerTranslations = containerTranslations;
+ }
+
+ public void setChilds(final Set<Container> childs) {
+ this.childs = childs;
+ }
+
+ public void setContainerTranslations(final List<ContainerTranslation> containerTranslations) {
+ this.containerTranslations = containerTranslations;
+ }
+
+ public void setContents(final HashSet<Content> contents) {
+ this.contents = contents;
+ }
+
+ public void setCreatedOn(final Long createdOn) {
+ this.createdOn = createdOn;
+ }
+
+ public void setDeletedOn(final Date deletedOn) {
+ this.deletedOn = deletedOn;
+ }
+
+ public void setId(final Long id) {
+ this.id = id;
+ }
+
+ public void setLanguage(final I18nLanguage language) {
+ this.language = language;
+ }
+
+ public void setName(final String name) {
+ this.name = name;
+ }
+
+ public void setOwner(final Group owner) {
+ this.owner = owner;
+ }
+
+ public void setParent(final Container parent) {
+ this.parent = parent;
+ }
+
+ public void setToolName(final String toolName) {
+ this.toolName = toolName;
+ }
+
+ public void setTypeId(final String typeId) {
+ this.typeId = typeId;
+ }
+
+ @Override
+ public String toString() {
+ return "Container[(" + getStateTokenEncoded() + "): " + getName() + "]";
+ }
+}
Copied: trunk/src/main/java/cc/kune/domain/ContainerTranslation.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/server/domain/ContainerTranslation.java)
===================================================================
--- trunk/src/main/java/cc/kune/domain/ContainerTranslation.java (rev 0)
+++ trunk/src/main/java/cc/kune/domain/ContainerTranslation.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -0,0 +1,67 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.domain;
+
+import javax.persistence.Entity;
+import javax.persistence.FetchType;
+import javax.persistence.GeneratedValue;
+import javax.persistence.Id;
+import javax.persistence.ManyToOne;
+import javax.persistence.Table;
+
+import cc.kune.domain.utils.HasId;
+
+@Entity
+@Table(name = "container_translation")
+public class ContainerTranslation implements HasId {
+ @Id
+ @GeneratedValue
+ private Long id;
+
+ @ManyToOne(fetch = FetchType.LAZY)
+ private I18nLanguage language;
+
+ private String name;
+
+ public Long getId() {
+ return id;
+ }
+
+ public void setId(final Long id) {
+ this.id = id;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(final String name) {
+ this.name = name;
+ }
+
+ public I18nLanguage getLanguage() {
+ return language;
+ }
+
+ public void setLanguage(final I18nLanguage language) {
+ this.language = language;
+ }
+
+}
Copied: trunk/src/main/java/cc/kune/domain/Content.java (from rev 1163, trunk/src/main/java/org/ourproject/kune/platf/server/domain/Content.java)
===================================================================
--- trunk/src/main/java/cc/kune/domain/Content.java (rev 0)
+++ trunk/src/main/java/cc/kune/domain/Content.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -0,0 +1,373 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.domain;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Set;
+
+import javax.persistence.Basic;
+import javax.persistence.CascadeType;
+import javax.persistence.Column;
+import javax.persistence.Embedded;
+import javax.persistence.Entity;
+import javax.persistence.EnumType;
+import javax.persistence.Enumerated;
+import javax.persistence.FetchType;
+import javax.persistence.GeneratedValue;
+import javax.persistence.Id;
+import javax.persistence.Inheritance;
+import javax.persistence.InheritanceType;
+import javax.persistence.JoinColumn;
+import javax.persistence.ManyToMany;
+import javax.persistence.ManyToOne;
+import javax.persistence.OneToMany;
+import javax.persistence.OneToOne;
+import javax.persistence.Table;
+import javax.persistence.Transient;
+import javax.persistence.Version;
+import javax.validation.constraints.NotNull;
+
+import org.hibernate.search.annotations.ContainedIn;
+import org.hibernate.search.annotations.DocumentId;
+import org.hibernate.search.annotations.Indexed;
+import org.hibernate.search.annotations.IndexedEmbedded;
+
+import cc.kune.core.shared.domain.ContentStatus;
+import cc.kune.core.shared.dto.StateToken;
+import cc.kune.domain.utils.HasStateToken;
+
+import com.google.inject.name.Named;
+import com.wideplay.warp.persist.dao.Finder;
+import com.wideplay.warp.persist.dao.FirstResult;
+import com.wideplay.warp.persist.dao.MaxResults;
+
+@Entity
+@Table(name = "contents")
+@Indexed
+@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
+public class Content implements HasStateToken {
+
+ private static final String TITLE = "title";
+ private static final String GROUP = "group";
+ private static final String MIMETYPE = "mimetype";
+
+ public static final Content NO_CONTENT = new Content();
+
+ @Id
+ @DocumentId
+ @GeneratedValue
+ // @PMD:REVIEWED:ShortVariable: by vjrj on 21/05/09 15:28
+ private Long id;
+
+ @Version
+ private int version;
+
+ @OneToOne
+ private License license;
+
+ @IndexedEmbedded
+ @OneToOne(cascade = { CascadeType.ALL })
+ private Revision lastRevision;
+
+ @Basic(optional = false)
+ private Long createdOn;
+
+ @Basic(optional = true)
+ private Date deletedOn;
+
+ @Basic(optional = true)
+ private Date publishedOn;
+
+ // @NotNull??
+ private String typeId;
+
+ @OneToMany(cascade = CascadeType.ALL)
+ private List<ContentTranslation> translations;
+
+ @ManyToOne
+ @JoinColumn
+ @IndexedEmbedded
+ private Container container;
+
+ @IndexedEmbedded
+ @NotNull
+ @ManyToOne(fetch = FetchType.LAZY)
+ private I18nLanguage language;
+
+ @OneToOne(cascade = CascadeType.ALL)
+ private AccessLists accessLists;
+
+ @IndexedEmbedded
+ @ManyToMany(cascade = { CascadeType.PERSIST, CascadeType.MERGE })
+ private List<User> authors;
+
+ @ContainedIn
+ @OneToMany(mappedBy = "content", cascade = CascadeType.ALL, fetch = FetchType.EAGER)
+ private Set<Comment> comments;
+
+ @Enumerated(EnumType.STRING)
+ @Column(nullable = false)
+ private ContentStatus status;
+
+ @IndexedEmbedded
+ @Embedded
+ private BasicMimeType mimeType;
+
+ /**
+ * filename if is an uploaded content
+ */
+ private String filename;
+
+ public Content() {
+ translations = new ArrayList<ContentTranslation>();
+ authors = new ArrayList<User>();
+ comments = new HashSet<Comment>();
+ createdOn = System.currentTimeMillis();
+ lastRevision = new Revision(this);
+ accessLists = null;
+ status = ContentStatus.editingInProgress;
+ }
+
+ public void addAuthor(final User user) {
+ if (!this.authors.contains(user)) {
+ this.authors.add(user);
+ }
+ }
+
+ public void addComment(final Comment comment) {
+ // FIXME: something related with lazy initialization (workaround using
+ // size())
+ comments.size();
+ comments.add(comment);
+ }
+
+ public void addRevision(final Revision revision) {
+ if (lastRevision == null) {
+ lastRevision = revision;
+ } else {
+ revision.setPrevious(lastRevision);
+ lastRevision = revision;
+ }
+ }
+
+ @Finder(query = "FROM Content WHERE lastRevision.title LIKE :title AND (mimeType.mimetype=:mimetype OR mimeType.mimetype=:mimetype2) AND container.owner.shortName=:group AND deletedOn=null ORDER BY lastRevision.title ASC")
+ public List<Content> find2Mime(@Named(GROUP) final String groupShortName, @Named(TITLE) final String title,
+ @Named(MIMETYPE) final String mimetype, @Named("mimetype2") final String mimetype2,
+ @FirstResult final int offset, @MaxResults final int limit) {
+ return null;
+ }
+
+ @Finder(query = "SELECT count(id) FROM Content WHERE lastRevision.title LIKE :title AND (mimeType.mimetype=:mimetype OR mimeType.mimetype=:mimetype2) AND container.owner.shortName=:group AND deletedOn=null")
+ public int find2MimeCount(@Named(GROUP) final String groupShortName, @Named(TITLE) final String title,
+ @Named(MIMETYPE) final String mimetype, @Named("mimetype2") final String mimetype2) {
+ return 0;
+ }
+
+ @Finder(query = "select count(*) from Container ctx, Content ctn where ctn.container.id = ctx.id and ctx = :container and ctn.lastRevision.title LIKE :title")
+ public Long findIfExistsTitle(@Named("container") final Container container, @Named(TITLE) final String title) {
+ return null;
+ }
+
+ @Finder(query = "FROM Content WHERE lastRevision.title LIKE :title AND mimeType.mimetype=:mimetype AND container.owner.shortName=:group AND deletedOn=null ORDER BY lastRevision.title ASC")
+ public List<Content> findMime(@Named(GROUP) final String groupShortName, @Named(TITLE) final String title,
+ @Named(MIMETYPE) final String mimetype, @FirstResult final int offset, @MaxResults final int limit) {
+ return null;
+ }
+
+ @Finder(query = "SELECT count(id) FROM Content WHERE lastRevision.title LIKE :title AND mimeType.mimetype=:mimetype AND container.owner.shortName=:group AND deletedOn=null")
+ public int findMimeCount(@Named(GROUP) final String groupShortName, @Named(TITLE) final String title,
+ @Named(MIMETYPE) final String mimetype) {
+ return 0;
+ }
+
+ @Transient
+ public AccessLists getAccessLists() {
+ return hasAccessList() ? accessLists : getContainer().getAccessLists();
+ }
+
+ public List<User> getAuthors() {
+ return authors;
+ }
+
+ public Set<Comment> getComments() {
+ return comments;
+ }
+
+ public Container getContainer() {
+ return container;
+ }
+
+ public Long getCreatedOn() {
+ return createdOn;
+ }
+
+ public Date getDeletedOn() {
+ return deletedOn;
+ }
+
+ public String getFilename() {
+ return filename;
+ }
+
+ public Long getId() {
+ return id;
+ }
+
+ public I18nLanguage getLanguage() {
+ return language;
+ }
+
+ public Revision getLastRevision() {
+ return lastRevision;
+ }
+
+ public License getLicense() {
+ return license;
+ }
+
+ public BasicMimeType getMimeType() {
+ return mimeType;
+ }
+
+ public Group getOwner(final Group group) {
+ return container.getOwner();
+ }
+
+ public Date getPublishedOn() {
+ return publishedOn;
+ }
+
+ @Transient
+ public StateToken getStateToken() {
+ return getContainer().getStateToken().copy().setDocument(getId());
+ }
+
+ @Transient
+ public String getStateTokenEncoded() {
+ return getStateToken().getEncoded();
+ }
+
+ public ContentStatus getStatus() {
+ return status;
+ }
+
+ public String getTitle() {
+ return lastRevision.getTitle();
+ }
+
+ public List<ContentTranslation> getTranslations() {
+ return translations;
+ }
+
+ public String getTypeId() {
+ return typeId;
+ }
+
+ public int getVersion() {
+ return version;
+ }
+
+ @Transient
+ public boolean hasAccessList() {
+ return accessLists != null;
+ }
+
+ public void removeAuthor(final User user) {
+ this.authors.remove(user);
+ }
+
+ public void setAccessLists(final AccessLists accessLists) {
+ this.accessLists = accessLists;
+ }
+
+ public void setAuthors(final List<User> authors) {
+ this.authors = authors;
+ }
+
+ public void setComments(final Set<Comment> comments) {
+ this.comments = comments;
+ }
+
+ public void setContainer(final Container container) {
+ this.container = container;
+ }
+
+ public void setCreatedOn(final Long createdOn) {
+ this.createdOn = createdOn;
+ }
+
+ public void setDeletedOn(final Date date) {
+ this.deletedOn = date;
+ }
+
+ public void setFilename(final String filename) {
+ this.filename = filename;
+ }
+
+ // @PMD:REVIEWED:ShortVariable: by vjrj on 21/05/09 15:28
+ public void setId(final Long id) {
+ this.id = id;
+ }
+
+ public void setLanguage(final I18nLanguage language) {
+ this.language = language;
+ }
+
+ public void setLastRevision(final Revision revision) {
+ this.lastRevision = revision;
+ }
+
+ public void setLicense(final License license) {
+ this.license = license;
+ }
+
+ public void setMimeType(final BasicMimeType mimeType) {
+ this.mimeType = mimeType;
+ }
+
+ public void setPublishedOn(final Date publishedOn) {
+ this.publishedOn = publishedOn;
+ }
+
+ public void setStatus(final ContentStatus status) {
+ this.status = status;
+ }
+
+ public void setTranslations(final List<ContentTranslation> translations) {
+ this.translations = translations;
+ }
+
+ public void setTypeId(final String typeId) {
+ this.typeId = typeId;
+ }
+
+ public void setVersion(final int version) {
+ this.version = version;
+ }
+
+ @Override
+ public String toString() {
+ return "Content[(" + getStateTokenEncoded() + "): " + getTitle() + "]";
+ }
+
+}
Copied: trunk/src/main/java/cc/kune/domain/ContentTranslation.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/server/domain/ContentTranslation.java)
===================================================================
--- trunk/src/main/java/cc/kune/domain/ContentTranslation.java (rev 0)
+++ trunk/src/main/java/cc/kune/domain/ContentTranslation.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -0,0 +1,69 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.domain;
+
+import javax.persistence.Entity;
+import javax.persistence.FetchType;
+import javax.persistence.GeneratedValue;
+import javax.persistence.Id;
+import javax.persistence.ManyToOne;
+import javax.persistence.Table;
+
+import cc.kune.domain.utils.HasId;
+
+
+@Entity
+@Table(name = "content_translations")
+public class ContentTranslation implements HasId {
+
+ @Id
+ @GeneratedValue
+ private Long id;
+
+ @ManyToOne(fetch = FetchType.LAZY)
+ private I18nLanguage language;
+
+ private Long contentId;
+
+ public Long getContentId() {
+ return contentId;
+ }
+
+ public Long getId() {
+ return id;
+ }
+
+ public I18nLanguage getLanguage() {
+ return language;
+ }
+
+ public void setContentId(final Long contentId) {
+ this.contentId = contentId;
+ }
+
+ public void setId(final Long id) {
+ this.id = id;
+ }
+
+ public void setLanguage(final I18nLanguage language) {
+ this.language = language;
+ }
+
+}
Copied: trunk/src/main/java/cc/kune/domain/CustomProperties.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/server/domain/CustomProperties.java)
===================================================================
--- trunk/src/main/java/cc/kune/domain/CustomProperties.java (rev 0)
+++ trunk/src/main/java/cc/kune/domain/CustomProperties.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -0,0 +1,76 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ \*/
+package cc.kune.domain;
+
+import java.util.HashMap;
+
+import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.Id;
+import javax.persistence.Lob;
+import javax.persistence.Table;
+
+import cc.kune.domain.utils.HasId;
+
+@Entity
+@Table(name = "customproperties")
+public class CustomProperties implements HasId {
+
+ @Id
+ @GeneratedValue
+ private Long id;
+
+ @Lob
+ private HashMap<Class<?>, Object> data;
+
+ public CustomProperties() {
+ data = new HashMap<Class<?>, Object>();
+ }
+
+ public HashMap<Class<?>, Object> getData() {
+ return data;
+ }
+
+ @SuppressWarnings("unchecked")
+ public <T> T getData(final Class<T> type) {
+ return (T) data.get(type);
+ }
+
+ public Long getId() {
+ return id;
+ }
+
+ public <T> boolean hasPropertie(final Class<T> type) {
+ return data.containsKey(type);
+ }
+
+ @SuppressWarnings("unchecked")
+ public <T> T setData(final Class<T> type, final T value) {
+ return (T) data.put(type, value);
+ }
+
+ public void setData(final HashMap<Class<?>, Object> data) {
+ this.data = data;
+ }
+
+ public void setId(final Long id) {
+ this.id = id;
+ }
+}
Copied: trunk/src/main/java/cc/kune/domain/ExtMediaDescrip.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/server/domain/ExtMediaDescrip.java)
===================================================================
--- trunk/src/main/java/cc/kune/domain/ExtMediaDescrip.java (rev 0)
+++ trunk/src/main/java/cc/kune/domain/ExtMediaDescrip.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -0,0 +1,121 @@
+package cc.kune.domain;
+
+import java.util.List;
+
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.Id;
+import javax.persistence.Table;
+
+import org.hibernate.validator.constraints.Length;
+
+import cc.kune.domain.utils.HasId;
+
+import com.wideplay.warp.persist.dao.Finder;
+
+@Entity
+@Table(name = "ext_media_descriptors")
+public class ExtMediaDescrip implements HasId {
+
+ @Id
+ @GeneratedValue
+ private Long id;
+ @Column(nullable = false)
+ private String name;
+ @Column(nullable = false)
+ private String siteurl;
+ @Column(nullable = false)
+ private String detectRegex;
+ @Column(nullable = false)
+ private String idRegex;
+ @Column(nullable = false)
+ @Length(max = 1000)
+ private String embedTemplate;
+ private int width;
+ private int height;
+
+ public ExtMediaDescrip() {
+ this(null, null, null, null, null, 0, 0);
+ }
+
+ public ExtMediaDescrip(final String name, final String siteurl, final String detectRegex, final String idRegex,
+ final String embedTemplate, final int defWidth, final int defHeight) {
+ this.name = name;
+ this.siteurl = siteurl;
+ this.detectRegex = detectRegex;
+ this.idRegex = idRegex;
+ this.embedTemplate = embedTemplate;
+ width = defWidth;
+ height = defHeight;
+ }
+
+ @Finder(query = "from ExtMediaDescrip")
+ public List<ExtMediaDescrip> getAll() {
+ return null;
+ }
+
+ public String getDetectRegex() {
+ return detectRegex;
+ }
+
+ public String getEmbedTemplate() {
+ return embedTemplate;
+ }
+
+ public int getHeight() {
+ return height;
+ }
+
+ public Long getId() {
+ return id;
+ }
+
+ public String getIdRegex() {
+ return idRegex;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public String getSiteurl() {
+ return siteurl;
+ }
+
+ public int getWidth() {
+ return width;
+ }
+
+ public void setDetectRegex(final String detectRegex) {
+ this.detectRegex = detectRegex;
+ }
+
+ public void setEmbedTemplate(final String embedTemplate) {
+ this.embedTemplate = embedTemplate;
+ }
+
+ public void setHeight(final int height) {
+ this.height = height;
+ }
+
+ public void setId(final Long id) {
+ this.id = id;
+ }
+
+ public void setIdRegex(final String idRegex) {
+ this.idRegex = idRegex;
+ }
+
+ public void setName(final String name) {
+ this.name = name;
+ }
+
+ public void setSiteurl(final String siteurl) {
+ this.siteurl = siteurl;
+ }
+
+ public void setWidth(final int width) {
+ this.width = width;
+ }
+}
Copied: trunk/src/main/java/cc/kune/domain/Group.java (from rev 1163, trunk/src/main/java/org/ourproject/kune/platf/server/domain/Group.java)
===================================================================
--- trunk/src/main/java/cc/kune/domain/Group.java (rev 0)
+++ trunk/src/main/java/cc/kune/domain/Group.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -0,0 +1,339 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.domain;
+
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import javax.persistence.Basic;
+import javax.persistence.CascadeType;
+import javax.persistence.Column;
+import javax.persistence.Embedded;
+import javax.persistence.Entity;
+import javax.persistence.EnumType;
+import javax.persistence.Enumerated;
+import javax.persistence.GeneratedValue;
+import javax.persistence.Id;
+import javax.persistence.Lob;
+import javax.persistence.OneToMany;
+import javax.persistence.OneToOne;
+import javax.persistence.Table;
+import javax.persistence.Transient;
+import javax.validation.constraints.Pattern;
+
+import org.hibernate.search.annotations.DocumentId;
+import org.hibernate.search.annotations.Field;
+import org.hibernate.search.annotations.Index;
+import org.hibernate.search.annotations.Indexed;
+import org.hibernate.search.annotations.Store;
+import org.hibernate.validator.constraints.Length;
+
+import cc.kune.core.shared.domain.AdmissionType;
+import cc.kune.core.shared.dto.GroupType;
+import cc.kune.core.shared.dto.StateToken;
+import cc.kune.domain.utils.HasId;
+
+import com.google.inject.name.Named;
+import com.wideplay.warp.persist.dao.Finder;
+
+@Entity
+@Indexed
+@Table(name = "groups")
+public class Group implements HasId {
+
+ // see: http://docs.codehaus.org/display/PICO/Good+Citizen:
+ // Never expect or return null
+ public static final Group NO_GROUP = null;
+ public static final String PROPS_ID = "groupprops";
+
+ @Id
+ @DocumentId
+ @GeneratedValue
+ private Long id;
+
+ @Enumerated(EnumType.STRING)
+ @Column(nullable = false)
+ AdmissionType admissionType;
+
+ @Enumerated(EnumType.STRING)
+ @Column(nullable = false)
+ GroupType groupType;
+
+ @Field(index = Index.UN_TOKENIZED, store = Store.NO)
+ @Column(unique = true)
+ @Length(min = 3, max = 15, message = "The shortname must be between 3 and 15 characters of length")
+ @Pattern(regexp = "^[a-z0-9_\\-]+$", message = "The name must be between 3 and 15 lowercase characters. It can only contain Western characters, numbers, and dashes")
+ private String shortName;
+
+ @Field(index = Index.TOKENIZED, store = Store.NO)
+ @Column(unique = true)
+ @Length(min = 3, max = 50, message = "The longName must be between 3 and 50 characters of length")
+ private String longName;
+
+ @OneToOne
+ private Content defaultContent;
+
+ @OneToOne
+ private Content groupBackImage;
+
+ @OneToOne(cascade = CascadeType.ALL)
+ private SocialNetwork socialNetwork;
+
+ @OneToOne
+ private License defaultLicense;
+
+ @OneToMany
+ private final Map<String, ToolConfiguration> toolsConfig;
+
+ private String workspaceTheme;
+
+ @Lob
+ private byte[] logo;
+
+ @Embedded
+ private BasicMimeType logoMime;
+
+ @Basic(optional = false)
+ private final Long createdOn;
+
+ public Group() {
+ this(null, null, null, null);
+ }
+
+ public Group(final String shortName, final String longName) {
+ this(shortName, longName, null, GroupType.PROJECT);
+ }
+
+ public Group(final String shortName, final String longName, final License defaultLicense, final GroupType type) {
+ this.shortName = shortName;
+ this.longName = longName;
+ this.toolsConfig = new HashMap<String, ToolConfiguration>();
+ this.socialNetwork = new SocialNetwork();
+ this.defaultLicense = defaultLicense;
+ this.groupType = type;
+ this.admissionType = AdmissionType.Moderated;
+ this.createdOn = System.currentTimeMillis();
+ }
+
+ @Override
+ public boolean equals(final Object obj) {
+ if (this == obj) {
+ return true;
+ }
+ if (obj == null) {
+ return false;
+ }
+ if (getClass() != obj.getClass()) {
+ return false;
+ }
+ final Group other = (Group) obj;
+ if (shortName == null) {
+ if (other.shortName != null) {
+ return false;
+ }
+ } else if (!shortName.equals(other.shortName)) {
+ return false;
+ }
+ return true;
+ }
+
+ public boolean existToolConfig(final String toolName) {
+ return toolsConfig.get(toolName) != null;
+ }
+
+ @Finder(query = "FROM Group g WHERE g.id IN (SELECT g.id FROM g.socialNetwork.accessLists.admins.list adm WHERE adm.id = :groupid)")
+ public List<Group> findAdminInGroups(@Named("groupid") final Long groupId) {
+ return null;
+ }
+
+ @Finder(query = "FROM Group g WHERE g.shortName = :shortName")
+ public Group findByShortName(@Named("shortName") final String shortName) {
+ return null;
+ }
+
+ @Finder(query = "FROM Group g WHERE g.id IN (SELECT g.id FROM g.socialNetwork.accessLists.editors.list AS ed WHERE ed.id = :groupid)")
+ public List<Group> findCollabInGroups(@Named("groupid") final Long groupId) {
+ return null;
+ }
+
+ @Finder(query = "SELECT t.root.toolName FROM ToolConfiguration t WHERE t.enabled=true AND t.root.owner.id = :groupid")
+ public List<String> findEnabledTools(@Named("groupid") final Long groupId) {
+ return null;
+ }
+
+ @Transient
+ public AccessLists getAccessLists() {
+ return getSocialNetwork().getAccessLists();
+ }
+
+ public AdmissionType getAdmissionType() {
+ return admissionType;
+ }
+
+ @Finder(query = "FROM Group")
+ public List<Group> getAll() {
+ return null;
+ }
+
+ public Long getCreatedOn() {
+ return createdOn;
+ }
+
+ public Content getDefaultContent() {
+ return defaultContent;
+ }
+
+ public License getDefaultLicense() {
+ return defaultLicense;
+ }
+
+ public Content getGroupBackImage() {
+ return groupBackImage;
+ }
+
+ public GroupType getGroupType() {
+ return groupType;
+ }
+
+ public boolean getHasLogo() {
+ return hasLogo();
+ }
+
+ public Long getId() {
+ return id;
+ }
+
+ public byte[] getLogo() {
+ return logo;
+ }
+
+ public BasicMimeType getLogoMime() {
+ return logoMime;
+ }
+
+ public String getLongName() {
+ return longName;
+ }
+
+ public Container getRoot(final String toolName) {
+ return toolsConfig.get(toolName).getRoot();
+ }
+
+ public String getShortName() {
+ return shortName;
+ }
+
+ public SocialNetwork getSocialNetwork() {
+ return socialNetwork;
+ }
+
+ @Transient
+ public StateToken getStateToken() {
+ return new StateToken(shortName);
+ }
+
+ public ToolConfiguration getToolConfiguration(final String name) {
+ return toolsConfig.get(name);
+ }
+
+ public Map<String, ToolConfiguration> getToolsConfig() {
+ return toolsConfig;
+ }
+
+ public String getWorkspaceTheme() {
+ return workspaceTheme;
+ }
+
+ @Override
+ public int hashCode() {
+ final int prime = 31;
+ int result = 1;
+ result = prime * result + (shortName == null ? 0 : shortName.hashCode());
+ return result;
+ }
+
+ @Transient
+ public boolean hasLogo() {
+ return (logo != null && logo.length > 0 && logoMime != null);
+ }
+
+ public boolean isPersonal() {
+ return getGroupType().equals(GroupType.PERSONAL);
+ }
+
+ public void setAdmissionType(final AdmissionType admissionType) {
+ this.admissionType = admissionType;
+ }
+
+ public void setDefaultContent(final Content defaultContent) {
+ this.defaultContent = defaultContent;
+ }
+
+ public void setDefaultLicense(final License defaultLicense) {
+ this.defaultLicense = defaultLicense;
+ }
+
+ public void setGroupBackImage(final Content groupBackImage) {
+ this.groupBackImage = groupBackImage;
+ }
+
+ public void setGroupType(final GroupType groupType) {
+ this.groupType = groupType;
+ }
+
+ public void setId(final Long id) {
+ this.id = id;
+ }
+
+ public void setLogo(final byte[] logo) {
+ this.logo = logo;
+ }
+
+ public void setLogoMime(final BasicMimeType logoMime) {
+ this.logoMime = logoMime;
+ }
+
+ public void setLongName(final String longName) {
+ this.longName = longName;
+ }
+
+ public void setShortName(final String shortName) {
+ this.shortName = shortName;
+ }
+
+ public void setSocialNetwork(final SocialNetwork socialNetwork) {
+ this.socialNetwork = socialNetwork;
+ }
+
+ public ToolConfiguration setToolConfig(final String name, final ToolConfiguration config) {
+ toolsConfig.put(name, config);
+ return config;
+ }
+
+ public void setWorkspaceTheme(final String workspaceTheme) {
+ this.workspaceTheme = workspaceTheme;
+ }
+
+ @Override
+ public String toString() {
+ return "Group[" + shortName + "]";
+ }
+}
\ No newline at end of file
Copied: trunk/src/main/java/cc/kune/domain/GroupList.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/server/domain/GroupList.java)
===================================================================
--- trunk/src/main/java/cc/kune/domain/GroupList.java (rev 0)
+++ trunk/src/main/java/cc/kune/domain/GroupList.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -0,0 +1,126 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.domain;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.persistence.Basic;
+import javax.persistence.CascadeType;
+import javax.persistence.Entity;
+import javax.persistence.EnumType;
+import javax.persistence.Enumerated;
+import javax.persistence.GeneratedValue;
+import javax.persistence.Id;
+import javax.persistence.Inheritance;
+import javax.persistence.InheritanceType;
+import javax.persistence.ManyToMany;
+import javax.persistence.OrderBy;
+import javax.persistence.Table;
+
+import cc.kune.core.shared.domain.GroupListMode;
+
+@Entity
+@Table(name = "group_list")
+@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
+public class GroupList {
+ @OrderBy("shortName ASC")
+ @ManyToMany(cascade = { CascadeType.PERSIST, CascadeType.MERGE })
+ List<Group> list;
+
+ @Id
+ @GeneratedValue
+ private Long id;
+
+ @Enumerated(EnumType.ORDINAL)
+ @Basic
+ private GroupListMode mode;
+
+ public GroupList() {
+ this(new ArrayList<Group>());
+ this.mode = GroupListMode.NORMAL;
+ }
+
+ public GroupList(final List<Group> list) {
+ this.list = list;
+ }
+
+ public void add(final Group group) {
+ // No group duplicate
+ // TODO: Get this outside Domain?
+ if (!list.contains(group)) {
+ list.add(group);
+ }
+ // TODO: Get this outside Domain?
+ if (getMode() == GroupListMode.NOBODY) {
+ setMode(GroupListMode.NORMAL);
+ }
+ }
+
+ public ArrayList<Group> duplicate() {
+ return new ArrayList<Group>(list);
+ }
+
+ public Long getId() {
+ return id;
+ }
+
+ public List<Group> getList() {
+ return list;
+ }
+
+ public GroupListMode getMode() {
+ return mode;
+ }
+
+ public boolean includes(final Group group) {
+ return mode.checkIfIncludes(group, this.list);
+ }
+
+ public boolean isEmpty() {
+ return list.size() == 0;
+ }
+
+ public void remove(final Group group) {
+ list.remove(group);
+ // TODO: Get this outside Domain?
+ if (list.isEmpty()) {
+ setMode(GroupListMode.NOBODY);
+ }
+ }
+
+ public void setId(final Long id) {
+ this.id = id;
+ }
+
+ public void setList(final List<Group> list) {
+ this.list = list;
+ }
+
+ public void setMode(final GroupListMode mode) {
+ this.mode = mode;
+ }
+
+ @Override
+ public String toString() {
+ return "GroupList[(" + mode + "): " + list + "]";
+ }
+
+}
Copied: trunk/src/main/java/cc/kune/domain/I18nCountry.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/server/domain/I18nCountry.java)
===================================================================
--- trunk/src/main/java/cc/kune/domain/I18nCountry.java (rev 0)
+++ trunk/src/main/java/cc/kune/domain/I18nCountry.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -0,0 +1,191 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.domain;
+
+import java.util.List;
+
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.Id;
+import javax.persistence.Table;
+
+import org.hibernate.search.annotations.DocumentId;
+import org.hibernate.search.annotations.Indexed;
+
+import cc.kune.domain.utils.HasId;
+
+import com.google.inject.name.Named;
+import com.wideplay.warp.persist.dao.Finder;
+
+/**
+ * GlobalizeCountries generated by hbm2java from original rails globalize schema
+ *
+ * More info: http://en.wikipedia.org/wiki/Date_and_time_notation_by_country
+ * http://en.wikipedia.org/wiki/Common_Locale_Data_Repository
+ *
+ */
+@Entity
+@Indexed
+@Table(name = "globalize_countries")
+public class I18nCountry implements HasId {
+
+ @Id
+ // Is not a @GeneratedValue similar to I18nLanguage (we have already ids)
+ @DocumentId
+ @Column(name = "id", unique = true, nullable = false)
+ private Long id;
+
+ @Column(name = "code", length = 2)
+ private String code;
+
+ @Column(name = "english_name")
+ private String englishName;
+
+ @Column(name = "date_format")
+ private String dateFormat;
+
+ @Column(name = "currency_format")
+ private String currencyFormat;
+
+ @Column(name = "currency_code", length = 3)
+ private String currencyCode;
+
+ @Column(name = "thousands_sep", length = 2)
+ private String thousandsSep;
+
+ @Column(name = "decimal_sep", length = 2)
+ private String decimalSep;
+
+ @Column(name = "currency_decimal_sep", length = 2)
+ private String currencyDecimalSep;
+
+ @Column(name = "number_grouping_scheme")
+ private String numberGroupingScheme;
+
+ public I18nCountry() {
+ this(null, null, null, null, null, null, null, null, null, null);
+ }
+
+ public I18nCountry(final Long id, final String code, final String currencyCode, final String currencyDecimalSep,
+ final String currencyFormat, final String dateFormat, final String decimalSep, final String englishName,
+ final String numberGroupingScheme, final String thousandsSep) {
+ this.id = id;
+ this.code = code;
+ this.englishName = englishName;
+ this.dateFormat = dateFormat;
+ this.currencyFormat = currencyFormat;
+ this.currencyCode = currencyCode;
+ this.thousandsSep = thousandsSep;
+ this.decimalSep = decimalSep;
+ this.currencyDecimalSep = currencyDecimalSep;
+ this.numberGroupingScheme = numberGroupingScheme;
+ }
+
+ @Finder(query = "FROM I18nCountry WHERE code = :country")
+ public I18nCountry findByCode(@Named("country") final String country) {
+ return null;
+ }
+
+ @Finder(query = "FROM I18nCountry ORDER BY english_name")
+ public List<I18nCountry> getAll() {
+ return null;
+ }
+
+ public String getCode() {
+ return this.code;
+ }
+
+ public String getCurrencyCode() {
+ return this.currencyCode;
+ }
+
+ public String getCurrencyDecimalSep() {
+ return this.currencyDecimalSep;
+ }
+
+ public String getCurrencyFormat() {
+ return this.currencyFormat;
+ }
+
+ public String getDateFormat() {
+ return this.dateFormat;
+ }
+
+ public String getDecimalSep() {
+ return this.decimalSep;
+ }
+
+ public String getEnglishName() {
+ return this.englishName;
+ }
+
+ public Long getId() {
+ return this.id;
+ }
+
+ public String getNumberGroupingScheme() {
+ return this.numberGroupingScheme;
+ }
+
+ public String getThousandsSep() {
+ return this.thousandsSep;
+ }
+
+ public void setCode(final String code) {
+ this.code = code;
+ }
+
+ public void setCurrencyCode(final String currencyCode) {
+ this.currencyCode = currencyCode;
+ }
+
+ public void setCurrencyDecimalSep(final String currencyDecimalSep) {
+ this.currencyDecimalSep = currencyDecimalSep;
+ }
+
+ public void setCurrencyFormat(final String currencyFormat) {
+ this.currencyFormat = currencyFormat;
+ }
+
+ public void setDateFormat(final String dateFormat) {
+ this.dateFormat = dateFormat;
+ }
+
+ public void setDecimalSep(final String decimalSep) {
+ this.decimalSep = decimalSep;
+ }
+
+ public void setEnglishName(final String englishName) {
+ this.englishName = englishName;
+ }
+
+ public void setId(final Long id) {
+ this.id = id;
+ }
+
+ public void setNumberGroupingScheme(final String numberGroupingScheme) {
+ this.numberGroupingScheme = numberGroupingScheme;
+ }
+
+ public void setThousandsSep(final String thousandsSep) {
+ this.thousandsSep = thousandsSep;
+ }
+
+}
Copied: trunk/src/main/java/cc/kune/domain/I18nLanguage.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/server/domain/I18nLanguage.java)
===================================================================
--- trunk/src/main/java/cc/kune/domain/I18nLanguage.java (rev 0)
+++ trunk/src/main/java/cc/kune/domain/I18nLanguage.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -0,0 +1,312 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.domain;
+
+import java.util.List;
+
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.Id;
+import javax.persistence.Table;
+import javax.validation.constraints.Pattern;
+
+import org.hibernate.search.annotations.DocumentId;
+import org.hibernate.search.annotations.Field;
+import org.hibernate.search.annotations.Index;
+import org.hibernate.search.annotations.Indexed;
+import org.hibernate.search.annotations.Store;
+import org.hibernate.validator.constraints.Length;
+
+import cc.kune.domain.utils.HasId;
+
+import com.google.inject.name.Named;
+import com.wideplay.warp.persist.dao.Finder;
+
+/**
+ * GlobalizeLanguages generated by hbm2java from original rails globalize schema
+ *
+ * http://en.wikipedia.org/wiki/Calendar_date
+ * http://en.wikipedia.org/wiki/Date_and_time_notation_by_country
+ */
+@Entity
+@Indexed
+@Table(name = "globalize_languages")
+public class I18nLanguage implements HasId {
+
+ @Id
+ // Is not GeneratedValue
+ @DocumentId
+ @Column(name = "id", unique = true, nullable = false)
+ private Long id;
+
+ @Field(index = Index.TOKENIZED, store = Store.NO)
+ @Column(name = "code", unique = true)
+ private String code;
+
+ @Column(name = "iso_639_1", length = 2)
+ private String iso6391;
+
+ @Column(name = "iso_639_2", length = 3, unique = true)
+ private String iso6392;
+
+ @Column(name = "iso_639_3", length = 3, unique = true)
+ private String iso6393;
+
+ @Column(name = "rfc_3066", unique = true)
+ private String rfc3066;
+
+ @Field(index = Index.TOKENIZED, store = Store.NO)
+ @Column(name = "english_name")
+ private String englishName;
+
+ @Column(name = "english_name_locale")
+ private String englishNameLocale;
+
+ @Column(name = "english_name_modifier")
+ private String englishNameModifier;
+
+ @Field(index = Index.TOKENIZED, store = Store.NO)
+ @Column(name = "native_name")
+ private String nativeName;
+
+ @Column(name = "native_name_locale")
+ private String nativeNameLocale;
+
+ @Column(name = "native_name_modifier")
+ private String nativeNameModifier;
+
+ @Column(name = "macro_language")
+ private Boolean macroLanguage;
+
+ @Column(name = "direction")
+ private String direction;
+
+ @Pattern(regexp = "^[c=\\d?:%!<>&|() ]+$")
+ @Column(name = "pluralization")
+ @Length(max = 200)
+ private String pluralization;
+
+ @Column(name = "scope", length = 1)
+ private String scope;
+
+ @Column(name = "date_format")
+ private String dateFormat;
+
+ @Column(name = "date_format_short")
+ private String dateFormatShort;
+
+ public I18nLanguage() {
+ this(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null);
+ }
+
+ // Only for tests
+ public I18nLanguage(final Long id, final String englishName, final String nativeName, final String code) {
+ this.id = id;
+ this.englishName = englishName;
+ this.nativeName = nativeName;
+ this.code = code;
+ }
+
+ // code is iso6391 || iso6392 || rfc3306 (see DatabaseInicializer)
+ public I18nLanguage(final Long id, final String code, final String direction, final String englishName,
+ final String englishNameLocale, final String englishNameModifier, final String iso6391,
+ final String iso6392, final String iso6393, final Boolean macroLanguage, final String nativeName,
+ final String nativeNameLocale, final String nativeNameModifier, final String pluralization,
+ final String rfc3066, final String scope, final String dateFormat) {
+ this.id = id;
+ this.iso6391 = iso6391;
+ this.iso6392 = iso6392;
+ this.iso6393 = iso6393;
+ this.rfc3066 = rfc3066;
+ this.englishName = englishName;
+ this.englishNameLocale = englishNameLocale;
+ this.englishNameModifier = englishNameModifier;
+ this.nativeName = nativeName;
+ this.nativeNameLocale = nativeNameLocale;
+ this.nativeNameModifier = nativeNameModifier;
+ this.macroLanguage = macroLanguage;
+ this.direction = direction;
+ this.pluralization = pluralization;
+ this.scope = scope;
+ this.code = code;
+ this.dateFormat = dateFormat;
+ }
+
+ @Finder(query = "FROM I18nLanguage l WHERE code = :language")
+ public I18nLanguage findByCode(@Named("language") final String language) {
+ return null;
+ }
+
+ @Finder(query = "FROM I18nLanguage ORDER BY englishName")
+ public List<I18nLanguage> getAll() {
+ return null;
+ }
+
+ public String getCode() {
+ return code;
+ }
+
+ public String getDateFormat() {
+ return dateFormat;
+ }
+
+ public String getDateFormatShort() {
+ return dateFormatShort;
+ }
+
+ public String getDirection() {
+ return this.direction;
+ }
+
+ public String getEnglishName() {
+ return this.englishName;
+ }
+
+ public String getEnglishNameLocale() {
+ return this.englishNameLocale;
+ }
+
+ public String getEnglishNameModifier() {
+ return this.englishNameModifier;
+ }
+
+ public Long getId() {
+ return this.id;
+ }
+
+ public String getIso6391() {
+ return this.iso6391;
+ }
+
+ public String getIso6392() {
+ return this.iso6392;
+ }
+
+ public String getIso6393() {
+ return this.iso6393;
+ }
+
+ public Boolean getMacroLanguage() {
+ return this.macroLanguage;
+ }
+
+ public String getNativeName() {
+ return this.nativeName;
+ }
+
+ public String getNativeNameLocale() {
+ return this.nativeNameLocale;
+ }
+
+ public String getNativeNameModifier() {
+ return this.nativeNameModifier;
+ }
+
+ public String getPluralization() {
+ return this.pluralization;
+ }
+
+ public String getRfc3066() {
+ return this.rfc3066;
+ }
+
+ public String getScope() {
+ return this.scope;
+ }
+
+ @Column(unique = true)
+ public void setCode(final String code) {
+ this.code = code;
+ }
+
+ public void setDateFormat(final String dateFormat) {
+ this.dateFormat = dateFormat;
+ }
+
+ public void setDateFormatShort(final String dateFormatShort) {
+ this.dateFormatShort = dateFormatShort;
+ }
+
+ public void setDirection(final String direction) {
+ this.direction = direction;
+ }
+
+ public void setEnglishName(final String englishName) {
+ this.englishName = englishName;
+ }
+
+ public void setEnglishNameLocale(final String englishNameLocale) {
+ this.englishNameLocale = englishNameLocale;
+ }
+
+ public void setEnglishNameModifier(final String englishNameModifier) {
+ this.englishNameModifier = englishNameModifier;
+ }
+
+ public void setId(final Long id) {
+ this.id = id;
+ }
+
+ public void setIso6391(final String iso6391) {
+ this.iso6391 = iso6391;
+ }
+
+ public void setIso6392(final String iso6392) {
+ this.iso6392 = iso6392;
+ }
+
+ public void setIso6393(final String iso6393) {
+ this.iso6393 = iso6393;
+ }
+
+ public void setMacroLanguage(final Boolean macroLanguage) {
+ this.macroLanguage = macroLanguage;
+ }
+
+ public void setNativeName(final String nativeName) {
+ this.nativeName = nativeName;
+ }
+
+ public void setNativeNameLocale(final String nativeNameLocale) {
+ this.nativeNameLocale = nativeNameLocale;
+ }
+
+ public void setNativeNameModifier(final String nativeNameModifier) {
+ this.nativeNameModifier = nativeNameModifier;
+ }
+
+ public void setPluralization(final String pluralization) {
+ this.pluralization = pluralization;
+ }
+
+ public void setRfc3066(final String rfc3066) {
+ this.rfc3066 = rfc3066;
+ }
+
+ public void setScope(final String scope) {
+ this.scope = scope;
+ }
+
+ @Override
+ public String toString() {
+ return "I18nLanguage[" + englishName + "]";
+ }
+
+}
Copied: trunk/src/main/java/cc/kune/domain/I18nTranslation.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/server/domain/I18nTranslation.java)
===================================================================
--- trunk/src/main/java/cc/kune/domain/I18nTranslation.java (rev 0)
+++ trunk/src/main/java/cc/kune/domain/I18nTranslation.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -0,0 +1,253 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.domain;
+
+import java.util.List;
+
+import javax.persistence.CascadeType;
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.Id;
+import javax.persistence.JoinColumn;
+import javax.persistence.ManyToOne;
+import javax.persistence.NamedQueries;
+import javax.persistence.NamedQuery;
+import javax.persistence.Table;
+
+import org.hibernate.search.annotations.DocumentId;
+import org.hibernate.search.annotations.Indexed;
+
+import cc.kune.domain.utils.HasId;
+
+import com.google.inject.name.Named;
+import com.wideplay.warp.persist.dao.Finder;
+import com.wideplay.warp.persist.dao.FirstResult;
+import com.wideplay.warp.persist.dao.MaxResults;
+
+/**
+ * GlobalizeTranslations generated by hbm2java from original rails globalize
+ * schema
+ */
+@Entity
+@Indexed
+@Table(name = "globalize_translations")
+@NamedQueries( {
+ @NamedQuery(name = "untranslated", query = "SELECT gt FROM I18nTranslation gt WHERE gt.language = :language and text=null"),
+ @NamedQuery(name = "translated", query = "SELECT gt FROM I18nTranslation gt WHERE gt.language = :language and text!=null"),
+ @NamedQuery(name = "untranslatedcount", query = "SELECT COUNT(gt.id) FROM I18nTranslation gt WHERE gt.language = :language and text=null"),
+ @NamedQuery(name = "translatedcount", query = "SELECT COUNT(gt.id) FROM I18nTranslation gt WHERE gt.language = :language and text!=null") })
+public class I18nTranslation implements HasId {
+
+ public static final String DEF_NAMESPACE = "kune_core";
+ public static final Integer DEF_PLUR_INDEX = 1;
+ public static final String DEFAULT_LANG = "en";
+ public static final String UNTRANSLATED_VALUE = null;
+ private static final String TRANSLATED_QUERY = "translated";
+ private static final String UNTRANSLATED_QUERY = "untranslated";
+ private static final String TRANSLATED_COUNT_QUERY = "translatedcount";
+ private static final String UNTRANSLATED_COUNT_QUERY = "untranslatedcount";
+
+ @Id
+ @GeneratedValue
+ @DocumentId
+ @Column(name = "id", unique = true, nullable = false)
+ private Long id;
+
+ @Column(name = "gtype")
+ private String type;
+
+ @Column(name = "tr_key")
+ private String trKey;
+
+ @Column(name = "table_name")
+ private String tableName;
+
+ @Column(name = "item_id")
+ private Integer itemId;
+
+ @Column(name = "facet")
+ private String facet;
+
+ @ManyToOne(cascade = CascadeType.ALL)
+ @JoinColumn(name = "language_id")
+ private I18nLanguage language;
+
+ @Column(name = "pluralization_index")
+ private Integer pluralizationIndex;
+
+ @Column(name = "text")
+ private String text;
+
+ public I18nTranslation() {
+ this(null, null, null, null, null, null, null, null);
+ }
+
+ public I18nTranslation(final String trKey, final I18nLanguage language, final String text) {
+ this("", null, DEF_PLUR_INDEX, "", text, trKey, DEF_NAMESPACE, language);
+ }
+
+ public I18nTranslation(final String facet, final Integer itemId, final Integer pluralizationIndex,
+ final String tableName, final String text, final String trKey, final String type,
+ final I18nLanguage language) {
+ this.type = type;
+ this.trKey = trKey;
+ this.tableName = tableName;
+ this.itemId = itemId;
+ this.facet = facet;
+ this.language = language;
+ this.pluralizationIndex = pluralizationIndex;
+ this.text = text;
+ }
+
+ public I18nTranslation cloneForNewLanguage() {
+ final I18nTranslation clone = new I18nTranslation();
+ clone.type = type;
+ clone.trKey = trKey;
+ clone.tableName = tableName;
+ clone.itemId = itemId;
+ clone.facet = facet;
+ clone.language = null;
+ clone.pluralizationIndex = pluralizationIndex;
+ clone.text = null;
+ return clone;
+ }
+
+ @Finder(query = "SELECT gt FROM I18nTranslation gt JOIN gt.language gl WHERE gl.code = :language")
+ public List<I18nTranslation> findByLanguage(@Named("language") final String language) {
+ return null;
+ }
+
+ public String getFacet() {
+ return this.facet;
+ }
+
+ public Long getId() {
+ return this.id;
+ }
+
+ public Integer getItemId() {
+ return this.itemId;
+ }
+
+ public I18nLanguage getLanguage() {
+ return language;
+ }
+
+ @Finder(query = "SELECT gt FROM I18nTranslation gt WHERE gt.language = :deflanguage AND gt.trKey NOT IN (SELECT gt.trKey FROM I18nTranslation gt WHERE gt.language = :language)")
+ public List<I18nTranslation> getNonExistentFromDefault(@Named("deflanguage") final I18nLanguage deflanguage,
+ @Named("language") final I18nLanguage language) {
+ return null;
+ }
+
+ public Integer getPluralizationIndex() {
+ return this.pluralizationIndex;
+ }
+
+ public String getTableName() {
+ return this.tableName;
+ }
+
+ public String getText() {
+ return this.text;
+ }
+
+ @Finder(namedQuery = TRANSLATED_QUERY)
+ public List<I18nTranslation> getTranslatedLexicon(@Named("language") final I18nLanguage language) {
+ return null;
+ }
+
+ @Finder(namedQuery = TRANSLATED_QUERY)
+ public List<I18nTranslation> getTranslatedLexicon(@Named("language") final I18nLanguage language,
+ @FirstResult final int first, @MaxResults final int max) {
+ return null;
+ }
+
+ @Finder(namedQuery = TRANSLATED_COUNT_QUERY)
+ public Long getTranslatedLexiconCount(@Named("language") final I18nLanguage language) {
+ return null;
+ }
+
+ public String getTrKey() {
+ return this.trKey;
+ }
+
+ public String getType() {
+ return this.type;
+ }
+
+ @Finder(namedQuery = UNTRANSLATED_QUERY)
+ public List<I18nTranslation> getUnstranslatedLexicon(@Named("language") final I18nLanguage language) {
+ return null;
+ }
+
+ @Finder(namedQuery = UNTRANSLATED_QUERY)
+ public List<I18nTranslation> getUnstranslatedLexicon(@Named("language") final I18nLanguage language,
+ @FirstResult final int first, @MaxResults final int max) {
+ return null;
+ }
+
+ @Finder(namedQuery = UNTRANSLATED_COUNT_QUERY)
+ public Long getUnstranslatedLexiconCount(@Named("language") final I18nLanguage language) {
+ return null;
+ }
+
+ public void setFacet(final String facet) {
+ this.facet = facet;
+ }
+
+ public void setId(final Long id) {
+ this.id = id;
+ }
+
+ public void setItemId(final Integer itemId) {
+ this.itemId = itemId;
+ }
+
+ public void setLanguage(final I18nLanguage language) {
+ this.language = language;
+ }
+
+ public void setPluralizationIndex(final Integer pluralizationIndex) {
+ this.pluralizationIndex = pluralizationIndex;
+ }
+
+ public void setTableName(final String tableName) {
+ this.tableName = tableName;
+ }
+
+ public void setText(final String text) {
+ this.text = text;
+ }
+
+ public void setTrKey(final String trKey) {
+ this.trKey = trKey;
+ }
+
+ public void setType(final String type) {
+ this.type = type;
+ }
+
+ @Override
+ public String toString() {
+ return "I18nTranslation[" + trKey + " (" + language + ") " + text + "]";
+ }
+
+}
Copied: trunk/src/main/java/cc/kune/domain/License.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/server/domain/License.java)
===================================================================
--- trunk/src/main/java/cc/kune/domain/License.java (rev 0)
+++ trunk/src/main/java/cc/kune/domain/License.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -0,0 +1,177 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.domain;
+
+import java.util.List;
+
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.Id;
+import javax.persistence.Table;
+
+
+import cc.kune.domain.utils.HasId;
+
+import com.google.inject.name.Named;
+import com.wideplay.warp.persist.dao.Finder;
+
+@Entity
+@Table(name = "licenses")
+public class License implements HasId {
+ @Id
+ @GeneratedValue
+ private Long id;
+
+ @Column(unique = true)
+ private String shortName;
+
+ @Column(unique = true)
+ private String longName;
+
+ private String description;
+
+ @Column(nullable = false)
+ private String url;
+ private boolean isCC;
+ private boolean isCopyleft;
+ private boolean isDeprecated;
+ private String rdf;
+ @Column(nullable = false)
+ private String imageUrl;
+
+ public License() {
+ this(null, null, null, null, false, false, false, null, null);
+ }
+
+ public License(final String shortName, final String longName, final String description, final String url,
+ final boolean isCC, final boolean isCopyleft, final boolean isDeprecated, final String rdf,
+ final String imageUrl) {
+ this.shortName = shortName;
+ this.longName = longName;
+ this.description = description;
+ this.url = url;
+ this.isCC = isCC;
+ this.isCopyleft = isCopyleft;
+ this.isDeprecated = isDeprecated;
+ this.rdf = rdf;
+ this.imageUrl = imageUrl;
+ }
+
+ public Long getId() {
+ return id;
+ }
+
+ public void setId(final Long id) {
+ this.id = id;
+ }
+
+ public String getShortName() {
+ return shortName;
+ }
+
+ public void setShortName(final String shortName) {
+ this.shortName = shortName;
+ }
+
+ public String getLongName() {
+ return longName;
+ }
+
+ public void setLongName(final String longName) {
+ this.longName = longName;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(final String description) {
+ this.description = description;
+ }
+
+ public String getImageUrl() {
+ return imageUrl;
+ }
+
+ public void setImageUrl(final String imageUrl) {
+ this.imageUrl = imageUrl;
+ }
+
+ public String getRdf() {
+ return rdf;
+ }
+
+ public void setRdf(final String rdf) {
+ this.rdf = rdf;
+ }
+
+ public String getUrl() {
+ return url;
+ }
+
+ public void setUrl(final String url) {
+ this.url = url;
+ }
+
+ public boolean isCC() {
+ return isCC;
+ }
+
+ public boolean isCopyleft() {
+ return isCopyleft;
+ }
+
+ public boolean isDeprecated() {
+ return isDeprecated;
+ }
+
+ public void setCC(final boolean isCC) {
+ this.isCC = isCC;
+ }
+
+ public void setCopyleft(final boolean isCopyleft) {
+ this.isCopyleft = isCopyleft;
+ }
+
+ public void setDeprecated(final boolean isDeprecated) {
+ this.isDeprecated = isDeprecated;
+ }
+
+ @Finder(query = "from License l where l.shortName = :shortName")
+ public License findByShortName(@Named("shortName") final String shortName) {
+ return null;
+ }
+
+ @Finder(query = "from License")
+ public List<License> getAll() {
+ return null;
+ }
+
+ @Finder(query = "from License where isCC = true")
+ public List<License> getCC() {
+ return null;
+ }
+
+ @Finder(query = "from License where isCC = false")
+ public List<License> getNotCC() {
+ return null;
+ }
+}
Copied: trunk/src/main/java/cc/kune/domain/Properties.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/server/domain/Properties.java)
===================================================================
--- trunk/src/main/java/cc/kune/domain/Properties.java (rev 0)
+++ trunk/src/main/java/cc/kune/domain/Properties.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -0,0 +1,80 @@
+package cc.kune.domain;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import javax.persistence.CascadeType;
+import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.Id;
+import javax.persistence.ManyToOne;
+import javax.persistence.MapKey;
+import javax.persistence.OneToMany;
+import javax.persistence.Table;
+import javax.validation.constraints.NotNull;
+
+import cc.kune.domain.utils.HasId;
+
+/**
+ * Properties defined for some elements (identified by the group)
+ *
+ */
+@Entity
+@Table(name = "properties")
+public class Properties implements HasId {
+
+ @Id
+ @GeneratedValue
+ private Long id;
+
+ /**
+ * Every list of properties are from a unique PropertyGroup (like User
+ * properties, or Group properties)
+ *
+ */
+ @NotNull
+ @ManyToOne
+ private final PropertyGroup pgroup;
+
+ @OneToMany(cascade = CascadeType.ALL)
+ @MapKey(name = "property")
+ // @Cascade( { org.hibernate.annotations.CascadeType.DELETE_ORPHAN })
+ // @OnDelete(action = OnDeleteAction.CASCADE)
+ private Map<Property, PropertySetted> list;
+
+ public Properties() {
+ this(null);
+ }
+
+ public Properties(final PropertyGroup group) {
+ pgroup = group;
+ list = new HashMap<Property, PropertySetted>();
+ }
+
+ // @Finder(query =
+ // "SELECT p FROM Properties ps JOIN ps.list p WHERE p.property.name = :pname")
+ // public PropertySetted find(@Named("pname") final String key) {
+ // return null;
+ // }
+
+ public Long getId() {
+ return id;
+ }
+
+ public Map<Property, PropertySetted> getList() {
+ return list;
+ }
+
+ public PropertyGroup getPgroup() {
+ return pgroup;
+ }
+
+ public void setId(final Long id) {
+ this.id = id;
+ }
+
+ public void setList(final Map<Property, PropertySetted> list) {
+ this.list = list;
+ }
+
+}
Copied: trunk/src/main/java/cc/kune/domain/Property.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/server/domain/Property.java)
===================================================================
--- trunk/src/main/java/cc/kune/domain/Property.java (rev 0)
+++ trunk/src/main/java/cc/kune/domain/Property.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -0,0 +1,217 @@
+package cc.kune.domain;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.persistence.Basic;
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.EnumType;
+import javax.persistence.Enumerated;
+import javax.persistence.GeneratedValue;
+import javax.persistence.Id;
+import javax.persistence.ManyToOne;
+import javax.persistence.Table;
+import javax.validation.constraints.NotNull;
+import javax.validation.constraints.Pattern;
+
+import org.hibernate.annotations.Index;
+
+import cc.kune.domain.utils.HasId;
+
+import com.google.gwt.user.client.rpc.IsSerializable;
+import com.google.inject.name.Named;
+import com.wideplay.warp.persist.dao.Finder;
+
+@Entity
+@Table(name = "property")
+// @Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
+public class Property implements HasId {
+
+ public enum Type implements IsSerializable {
+ STRING, ENUM, BOOL, LIST, HIDDEN
+ }
+
+ @Id
+ @GeneratedValue
+ // (strategy = GenerationType.TABLE)
+ private Long id;
+
+ /**
+ * Required "symbolic" name of the user preference; displayed to the user
+ * during editing if no display_name is defined. Must contain only letters,
+ * number and underscores, i.e. the regular expression ^[a-zA-Z0-9_]+$. Must
+ * be unique.
+ **/
+ @Index(name = "propname")
+ @Column(unique = true)
+ @Pattern(regexp = "^[a-zA-Z0-9_]+$", message = "The name can only contain Western characters, numbers, and dashes")
+ private String name;
+
+ /**
+ * Optional string to display alongside the user preferences in the edit
+ * window (in google gadgets must be unique).
+ **/
+ private String displayName;
+
+ /**
+ * Optional string that indicates the data type of this attribute. Can be
+ * string, bool, enum, hidden (final a string that is not visible or user
+ * editable), or list (final dynamic array generated from user input). The
+ * default is string.
+ **/
+ @Enumerated(EnumType.STRING)
+ @Column(nullable = false)
+ private Type datatype;
+
+ /**
+ * Optional boolean argument (true or false) indicating whether this user
+ * preference is required. The default is false.
+ **/
+ @Basic
+ private boolean required;
+
+ /**
+ * Optional string that indicates a user preference's default value.
+ **/
+ private String defaultValue;
+
+ /**
+ * Optional string list that indicates enum valid values.
+ **/
+ @Basic
+ private ArrayList<String> enumValues;
+
+ @NotNull
+ @ManyToOne
+ private PropertyGroup pgroup;
+
+ @NotNull
+ @ManyToOne
+ private PropertySubgroup sgroup;
+
+ public Property() {
+ this(null, null, Type.STRING, false, null, new ArrayList<String>(), null, null);
+ }
+
+ public Property(final Property prop) {
+ this.name = prop.getName();
+ this.required = prop.getRequired();
+ this.datatype = prop.getDatatype();
+ this.defaultValue = prop.getDefaultValue();
+ this.displayName = prop.getDisplayName();
+ this.enumValues = prop.getEnumValues();
+ this.pgroup = prop.getPgroup();
+ this.sgroup = prop.getSgroup();
+ }
+
+ public Property(final String name, final String displayName, final Type datatype, final boolean required,
+ final String defaultValue, final ArrayList<String> enumValues, final PropertyGroup pgroup,
+ final PropertySubgroup sgroup) {
+ this.name = name;
+ this.displayName = displayName;
+ this.datatype = datatype;
+ this.required = required;
+ this.defaultValue = defaultValue;
+ this.enumValues = enumValues;
+ this.pgroup = pgroup;
+ this.sgroup = sgroup;
+ }
+
+ public Property(final String name, final String displayName, final Type datatype, final boolean required,
+ final String defaultValue, final PropertyGroup pgroup, final PropertySubgroup sgroup) {
+ this(name, displayName, datatype, required, defaultValue, new ArrayList<String>(), pgroup, sgroup);
+ }
+
+ @Finder(query = "SELECT p FROM Property p JOIN p.pgroup g WHERE g = :pgroup")
+ public List<Property> find(@Named("pgroup") final PropertyGroup pGroup) {
+ return null;
+ }
+
+ @Finder(query = "SELECT p.name FROM Property p JOIN p.sgroup g WHERE g = :sgroup")
+ public List<String> find(@Named("sgroup") final PropertySubgroup sGroup) {
+ return null;
+ }
+
+ @Finder(query = "FROM Property p WHERE p.name = :name")
+ public Property find(@Named("name") final String name) {
+ return null;
+ }
+
+ @Finder(query = "FROM Property")
+ public List<Property> getAll() {
+ return null;
+ }
+
+ public Type getDatatype() {
+ return datatype;
+ }
+
+ public String getDefaultValue() {
+ return defaultValue;
+ }
+
+ public String getDisplayName() {
+ return displayName;
+ }
+
+ public ArrayList<String> getEnumValues() {
+ return enumValues;
+ }
+
+ public Long getId() {
+ return id;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public PropertyGroup getPgroup() {
+ return pgroup;
+ }
+
+ public boolean getRequired() {
+ return required;
+ }
+
+ public PropertySubgroup getSgroup() {
+ return sgroup;
+ }
+
+ public void setDatatype(final Type datatype) {
+ this.datatype = datatype;
+ }
+
+ public void setDefaultValue(final String defaultValue) {
+ this.defaultValue = defaultValue;
+ }
+
+ public void setDisplayName(final String displayName) {
+ this.displayName = displayName;
+ }
+
+ public void setEnumValues(final ArrayList<String> enumValues) {
+ this.enumValues = enumValues;
+ }
+
+ public void setId(final Long id) {
+ this.id = id;
+ }
+
+ public void setName(final String name) {
+ this.name = name;
+ }
+
+ public void setPgroup(final PropertyGroup pgroup) {
+ this.pgroup = pgroup;
+ }
+
+ public void setRequired(final boolean required) {
+ this.required = required;
+ }
+
+ public void setSgroup(final PropertySubgroup sgroup) {
+ this.sgroup = sgroup;
+ }
+}
Copied: trunk/src/main/java/cc/kune/domain/PropertyGroup.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/server/domain/PropertyGroup.java)
===================================================================
--- trunk/src/main/java/cc/kune/domain/PropertyGroup.java (rev 0)
+++ trunk/src/main/java/cc/kune/domain/PropertyGroup.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -0,0 +1,94 @@
+package cc.kune.domain;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.Id;
+import javax.persistence.OneToMany;
+import javax.persistence.Table;
+import javax.validation.constraints.NotNull;
+
+import org.hibernate.annotations.OnDelete;
+import org.hibernate.annotations.OnDeleteAction;
+
+import cc.kune.domain.utils.HasId;
+
+import com.google.inject.name.Named;
+import com.wideplay.warp.persist.dao.Finder;
+
+@Entity
+@Table(name = "property_group")
+public class PropertyGroup implements HasId {
+
+ @Id
+ @GeneratedValue
+ private Long id;
+
+ @OneToMany(mappedBy = "pgroup")
+ @OnDelete(action = OnDeleteAction.CASCADE)
+ private List<Property> propertyList;
+
+ @OneToMany(mappedBy = "pgroup")
+ @OnDelete(action = OnDeleteAction.CASCADE)
+ private List<Properties> propertiesList;
+
+ @NotNull
+ @Column(unique = true)
+ private String name;
+
+ public PropertyGroup() {
+ this(null);
+ }
+
+ public PropertyGroup(final String name) {
+ this.name = name;
+ propertyList = new ArrayList<Property>();
+ propertiesList = new ArrayList<Properties>();
+ }
+
+ @Finder(query = "FROM PropertyGroup pg WHERE pg.name = :groupname")
+ public PropertyGroup find(@Named("groupname") final String groupName) {
+ return null;
+ }
+
+ @Finder(query = "FROM PropertyGroup")
+ public List<PropertyGroup> getAll() {
+ return null;
+ }
+
+ public Long getId() {
+ return id;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public List<Properties> getPropertiesList() {
+ return propertiesList;
+ }
+
+ public List<Property> getPropertyList() {
+ return propertyList;
+ }
+
+ public void setId(final Long id) {
+ this.id = id;
+ }
+
+ public void setName(final String name) {
+ this.name = name;
+ }
+
+ public void setPropertiesList(final List<Properties> propertiesList) {
+ this.propertiesList = propertiesList;
+ }
+
+ public void setPropertyList(final List<Property> propertyList) {
+ this.propertyList = propertyList;
+ }
+
+}
Copied: trunk/src/main/java/cc/kune/domain/PropertySetted.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/server/domain/PropertySetted.java)
===================================================================
--- trunk/src/main/java/cc/kune/domain/PropertySetted.java (rev 0)
+++ trunk/src/main/java/cc/kune/domain/PropertySetted.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -0,0 +1,97 @@
+package cc.kune.domain;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.Id;
+import javax.persistence.ManyToOne;
+import javax.persistence.Table;
+import javax.validation.constraints.NotNull;
+
+import cc.kune.domain.Property.Type;
+import cc.kune.domain.utils.HasId;
+
+import com.wideplay.warp.persist.dao.Finder;
+
+@Entity
+@Table(name = "property_setted")
+public class PropertySetted implements HasId {
+
+ @Id
+ @GeneratedValue
+ private Long id;
+
+ private String value;
+
+ @NotNull
+ @ManyToOne
+ private final Property property;
+
+ public PropertySetted() {
+ this(null, null);
+ }
+
+ public PropertySetted(final Property property, final String value) {
+ this.value = value;
+ this.property = property;
+ }
+
+ @Finder(query = "FROM PropertySetted")
+ public List<PropertySetted> getAll() {
+ return null;
+ }
+
+ public Type getDatatype() {
+ return property.getDatatype();
+ }
+
+ public String getDefaultValue() {
+ return property.getDefaultValue();
+ }
+
+ public String getDisplayName() {
+ return property.getDisplayName();
+ }
+
+ public ArrayList<String> getEnumValues() {
+ return property.getEnumValues();
+ }
+
+ public Long getId() {
+ return id;
+ }
+
+ public String getName() {
+ return property.getName();
+ }
+
+ public PropertyGroup getPgroup() {
+ return property.getPgroup();
+ }
+
+ public Property getProperty() {
+ return property;
+ }
+
+ public boolean getRequired() {
+ return property.getRequired();
+ }
+
+ public PropertySubgroup getSgroup() {
+ return property.getSgroup();
+ }
+
+ public String getValue() {
+ return value;
+ }
+
+ public void setId(final Long id) {
+ this.id = id;
+ }
+
+ public void setValue(final String value) {
+ this.value = value;
+ }
+}
Copied: trunk/src/main/java/cc/kune/domain/PropertySubgroup.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/server/domain/PropertySubgroup.java)
===================================================================
--- trunk/src/main/java/cc/kune/domain/PropertySubgroup.java (rev 0)
+++ trunk/src/main/java/cc/kune/domain/PropertySubgroup.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -0,0 +1,74 @@
+package cc.kune.domain;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.Id;
+import javax.persistence.OneToMany;
+import javax.persistence.Table;
+import javax.validation.constraints.NotNull;
+
+import org.hibernate.annotations.OnDelete;
+import org.hibernate.annotations.OnDeleteAction;
+
+import cc.kune.domain.utils.HasId;
+
+import com.wideplay.warp.persist.dao.Finder;
+
+@Entity
+@Table(name = "property_subgroup")
+public class PropertySubgroup implements HasId {
+
+ @Id
+ @GeneratedValue
+ private Long id;
+
+ @NotNull
+ @Column(unique = true)
+ private String name;
+
+ @OneToMany(mappedBy = "sgroup")
+ @OnDelete(action = OnDeleteAction.CASCADE)
+ private List<Property> properties;
+
+ public PropertySubgroup() {
+ this.name = null;
+ this.properties = new ArrayList<Property>();
+ }
+
+ public PropertySubgroup(final String name) {
+ this.name = name;
+ }
+
+ @Finder(query = "FROM PropertySubgroup")
+ public List<PropertySubgroup> getAll() {
+ return null;
+ }
+
+ public Long getId() {
+ return id;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public List<Property> getProperties() {
+ return properties;
+ }
+
+ public void setId(final Long id) {
+ this.id = id;
+ }
+
+ public void setName(final String name) {
+ this.name = name;
+ }
+
+ public void setProperties(final List<Property> properties) {
+ this.properties = properties;
+ }
+}
Copied: trunk/src/main/java/cc/kune/domain/Rate.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/server/domain/Rate.java)
===================================================================
--- trunk/src/main/java/cc/kune/domain/Rate.java (rev 0)
+++ trunk/src/main/java/cc/kune/domain/Rate.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -0,0 +1,120 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.domain;
+
+import javax.persistence.Basic;
+import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.Id;
+import javax.persistence.ManyToOne;
+import javax.persistence.Table;
+import javax.persistence.UniqueConstraint;
+
+import org.hibernate.validator.constraints.Range;
+
+import com.google.inject.name.Named;
+import com.wideplay.warp.persist.dao.Finder;
+
+@Entity
+@Table(name = "rates", uniqueConstraints = { @UniqueConstraint(columnNames = { "content_id", "rater_id" }) })
+public class Rate {
+ @Id
+ @GeneratedValue
+ Long id;
+
+ @ManyToOne
+ Content content;
+
+ @ManyToOne
+ User rater;
+
+ @Range(min = 0, max = 5)
+ Double value;
+
+ @Basic(optional = false)
+ private final Long createdOn;
+
+ public Rate() {
+ this(null, null, null);
+ }
+
+ public Rate(final User rater, final Content content, final Double value) {
+ this.rater = rater;
+ this.content = content;
+ this.value = value;
+ this.createdOn = System.currentTimeMillis();
+ }
+
+ @Finder(query = "SELECT AVG(r.value) FROM Rate r WHERE r.content = :content")
+ public Double calculateRate(@Named("content") final Content content) {
+ return null;
+ }
+
+ @Finder(query = "SELECT count(*) FROM Rate r WHERE r.content = :content")
+ public Long calculateRateNumberOfUsers(@Named("content") final Content content) {
+ return null;
+ }
+
+ @Finder(query = "SELECT r FROM Rate r WHERE r.rater = :user AND r.content = :content")
+ public Rate find(@Named("user") final User user, @Named("content") final Content content) {
+ return null;
+ }
+
+ public Content getContent() {
+ return content;
+ }
+
+ public Long getCreatedOn() {
+ return createdOn;
+ }
+
+ public Long getId() {
+ return id;
+ }
+
+ public User getRater() {
+ return rater;
+ }
+
+ public Double getValue() {
+ return value;
+ }
+
+ public void setContent(final Content content) {
+ this.content = content;
+ }
+
+ public void setId(final Long id) {
+ this.id = id;
+ }
+
+ public void setRater(final User rater) {
+ this.rater = rater;
+ }
+
+ public void setValue(final Double value) {
+ this.value = value;
+ }
+
+ @Override
+ public String toString() {
+ return "Rate[" + getRater() + " to " + content.getStateTokenEncoded() + "rated: " + getValue() + "]";
+ }
+}
Copied: trunk/src/main/java/cc/kune/domain/Revision.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/server/domain/Revision.java)
===================================================================
--- trunk/src/main/java/cc/kune/domain/Revision.java (rev 0)
+++ trunk/src/main/java/cc/kune/domain/Revision.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -0,0 +1,161 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.domain;
+
+import javax.persistence.Basic;
+import javax.persistence.CascadeType;
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.FetchType;
+import javax.persistence.GeneratedValue;
+import javax.persistence.Id;
+import javax.persistence.JoinColumn;
+import javax.persistence.Lob;
+import javax.persistence.ManyToOne;
+import javax.persistence.OneToOne;
+import javax.persistence.Table;
+import javax.persistence.Transient;
+import javax.persistence.Version;
+
+import org.hibernate.search.annotations.ContainedIn;
+import org.hibernate.search.annotations.DocumentId;
+import org.hibernate.search.annotations.Field;
+import org.hibernate.search.annotations.FieldBridge;
+import org.hibernate.search.annotations.Index;
+import org.hibernate.search.annotations.Indexed;
+import org.hibernate.search.annotations.Store;
+
+import cc.kune.domain.utils.DataFieldBridge;
+
+@Entity
+@Table(name = "revisions")
+@Indexed
+public class Revision {
+ @Id
+ @GeneratedValue
+ @DocumentId
+ private Long id;
+
+ @Field(index = Index.TOKENIZED, store = Store.NO)
+ String title;
+
+ // http://www.hibernate.org/112.html
+ @Lob
+ @Column(length = 2147483647)
+ @Field(index = Index.TOKENIZED, store = Store.NO)
+ @FieldBridge(impl = DataFieldBridge.class)
+ char[] body;
+
+ @OneToOne
+ private User editor;
+
+ @Basic(optional = false)
+ private Long createdOn;
+
+ @Version
+ private int version;
+
+ @ContainedIn
+ @ManyToOne
+ @JoinColumn
+ private Content content;
+
+ @OneToOne(fetch = FetchType.LAZY, cascade = CascadeType.ALL)
+ private Revision previous;
+
+ public Revision() {
+ this(null);
+ }
+
+ public Revision(final Content content) {
+ this.content = content;
+ createdOn = System.currentTimeMillis();
+ }
+
+ public Long getId() {
+ return id;
+ }
+
+ public void setId(final Long id) {
+ this.id = id;
+ }
+
+ public User getEditor() {
+ return editor;
+ }
+
+ public void setEditor(final User editor) {
+ this.editor = editor;
+ }
+
+ public Long getCreatedOn() {
+ return createdOn;
+ }
+
+ public void setCreatedOn(final Long modifiedOn) {
+ this.createdOn = modifiedOn;
+ }
+
+ public int getVersion() {
+ return version;
+ }
+
+ public void setVersion(final int version) {
+ this.version = version;
+ }
+
+ public Revision getPrevious() {
+ return previous;
+ }
+
+ public void setPrevious(final Revision previous) {
+ this.previous = previous;
+ }
+
+ public Content getContent() {
+ return content;
+ }
+
+ public void setContent(final Content content) {
+ this.content = content;
+ }
+
+ public String getTitle() {
+ return title;
+ }
+
+ public void setTitle(final String title) {
+ this.title = title;
+ }
+
+ public char[] getBody() {
+ return body;
+ }
+
+ public void setBody(final String body) {
+ this.body = body.toCharArray();
+ }
+
+ @Transient
+ public boolean isLast() {
+ return content.getLastRevision().equals(this);
+ }
+
+}
Copied: trunk/src/main/java/cc/kune/domain/SocialNetwork.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/server/domain/SocialNetwork.java)
===================================================================
--- trunk/src/main/java/cc/kune/domain/SocialNetwork.java (rev 0)
+++ trunk/src/main/java/cc/kune/domain/SocialNetwork.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -0,0 +1,144 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.domain;
+
+import javax.persistence.CascadeType;
+import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.Id;
+import javax.persistence.OneToOne;
+import javax.persistence.Table;
+
+import cc.kune.core.shared.domain.SocialNetworkVisibility;
+
+@Entity
+@Table(name = "social_networks")
+public class SocialNetwork {
+ public static final SocialNetwork EMPTY = new SocialNetwork(SocialNetworkVisibility.onlyadmins);
+
+ @Id
+ @GeneratedValue
+ Long id;
+
+ @OneToOne(cascade = CascadeType.ALL)
+ AccessLists accessLists;
+
+ @OneToOne(cascade = CascadeType.ALL)
+ GroupList pendingCollaborators;
+
+ SocialNetworkVisibility visibility;
+
+ public SocialNetwork() {
+ accessLists = new AccessLists();
+ pendingCollaborators = new GroupList();
+ visibility = SocialNetworkVisibility.anyone;
+ }
+
+ public SocialNetwork(SocialNetworkVisibility visibility) {
+ accessLists = new AccessLists();
+ pendingCollaborators = new GroupList();
+ this.visibility = visibility;
+ }
+
+ public void addAdmin(final Group group) {
+ accessLists.addAdmin(group);
+ }
+
+ public void addCollaborator(final Group group) {
+ accessLists.addEditor(group);
+ }
+
+ public void addPendingCollaborator(final Group group) {
+ pendingCollaborators.add(group);
+ }
+
+ public void addViewer(final Group group) {
+ accessLists.addViewer(group);
+ }
+
+ public AccessLists getAccessLists() {
+ return accessLists;
+ }
+
+ public Long getId() {
+ return id;
+ }
+
+ public GroupList getPendingCollaborators() {
+ return pendingCollaborators;
+ }
+
+ public SocialNetworkVisibility getVisibility() {
+ return visibility;
+ }
+
+ public boolean isAdmin(final Group group) {
+ return accessLists.getAdmins().includes(group);
+ }
+
+ public boolean isCollab(final Group group) {
+ return accessLists.getEditors().includes(group);
+ }
+
+ public boolean isPendingCollab(final Group group) {
+ return pendingCollaborators.getList().contains(group);
+ }
+
+ public boolean isViewer(final Group group) {
+ return accessLists.getViewers().includes(group);
+ }
+
+ public void removeAdmin(final Group group) {
+ accessLists.removeAdmin(group);
+ }
+
+ public void removeCollaborator(final Group group) {
+ accessLists.removeEditor(group);
+ }
+
+ public void removePendingCollaborator(final Group group) {
+ pendingCollaborators.getList().remove(group);
+ }
+
+ public void removeViewer(final Group group) {
+ accessLists.removeViewer(group);
+ }
+
+ public void setAccessLists(final AccessLists accessList) {
+ this.accessLists = accessList;
+ }
+
+ public void setId(final Long id) {
+ this.id = id;
+ }
+
+ public void setPendingCollaborators(final GroupList pendingCollaborators) {
+ this.pendingCollaborators = pendingCollaborators;
+ }
+
+ public void setVisibility(SocialNetworkVisibility visibility) {
+ this.visibility = visibility;
+ }
+
+ @Override
+ public String toString() {
+ return "SocialNetwork[accessList: " + accessLists + "; pendingsCollabs: " + pendingCollaborators + "]";
+ }
+}
Copied: trunk/src/main/java/cc/kune/domain/Tag.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/server/domain/Tag.java)
===================================================================
--- trunk/src/main/java/cc/kune/domain/Tag.java (rev 0)
+++ trunk/src/main/java/cc/kune/domain/Tag.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -0,0 +1,96 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.domain;
+
+import javax.persistence.Basic;
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.Id;
+import javax.persistence.Table;
+
+import org.hibernate.search.annotations.DocumentId;
+import org.hibernate.search.annotations.Field;
+import org.hibernate.search.annotations.Index;
+import org.hibernate.search.annotations.Indexed;
+import org.hibernate.search.annotations.Store;
+
+import cc.kune.domain.utils.HasId;
+
+import com.google.inject.name.Named;
+import com.wideplay.warp.persist.dao.Finder;
+
+@Entity
+@Indexed
+@Table(name = "tags")
+public class Tag implements HasId {
+
+ @Id
+ @GeneratedValue
+ @DocumentId
+ private Long id;
+
+ @Field(index = Index.TOKENIZED, store = Store.NO)
+ @Column(unique = true)
+ private String name;
+
+ @Basic(optional = false)
+ private final Long createdOn;
+
+ public Tag() {
+ this(null);
+ }
+
+ public Tag(final String name) {
+ this.name = name;
+ this.createdOn = System.currentTimeMillis();
+ }
+
+ @Finder(query = "FROM Tag g WHERE g.name = :name")
+ public Tag findByTagName(@Named("name") final String tag) {
+ return null;
+ }
+
+ public Long getCreatedOn() {
+ return createdOn;
+ }
+
+ public Long getId() {
+ return id;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setId(final Long id) {
+ this.id = id;
+ }
+
+ public void setName(final String name) {
+ this.name = name;
+ }
+
+ @Override
+ public String toString() {
+ return "Tag[" + getName() + "]";
+ }
+
+}
Copied: trunk/src/main/java/cc/kune/domain/TagUserContent.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/server/domain/TagUserContent.java)
===================================================================
--- trunk/src/main/java/cc/kune/domain/TagUserContent.java (rev 0)
+++ trunk/src/main/java/cc/kune/domain/TagUserContent.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -0,0 +1,120 @@
+package cc.kune.domain;
+
+import java.util.List;
+
+import javax.persistence.Basic;
+import javax.persistence.Entity;
+import javax.persistence.FetchType;
+import javax.persistence.GeneratedValue;
+import javax.persistence.Id;
+import javax.persistence.ManyToOne;
+import javax.persistence.NamedQueries;
+import javax.persistence.NamedQuery;
+import javax.persistence.Table;
+import javax.validation.constraints.NotNull;
+
+import org.hibernate.search.annotations.DocumentId;
+import org.hibernate.search.annotations.Indexed;
+import org.hibernate.search.annotations.IndexedEmbedded;
+
+import cc.kune.domain.utils.HasId;
+
+import com.google.inject.name.Named;
+import com.wideplay.warp.persist.dao.Finder;
+
+//See:
+//http://openjpa.apache.org/docs/latest/manual/manual.html#jpa_langref_resulttype
+@NamedQueries({
+ @NamedQuery(name = "tagsgrouped", query = "SELECT NEW cc.kune.core.shared.domain.TagCount(t.name, COUNT(tuc.content.id)) "
+ + "FROM TagUserContent tuc JOIN tuc.tag t WHERE tuc.content.container.owner = :group "
+ + "GROUP BY t.name ORDER BY t.name"),
+ @NamedQuery(name = "tagsmaxgrouped", query = "SELECT Count(tuc.content.id) FROM TagUserContent tuc JOIN tuc.tag t WHERE tuc.content.container.owner = :group GROUP BY t.name ORDER BY count(*) DESC LIMIT 0,1"),
+ @NamedQuery(name = "tagsmingrouped", query = "SELECT Count(tuc.content.id) FROM TagUserContent tuc JOIN tuc.tag t WHERE tuc.content.container.owner = :group GROUP BY t.name ORDER BY count(*) ASC LIMIT 0,1") })
+@Entity
+@Indexed
+@Table(name = "tag_user_content")
+public class TagUserContent implements HasId {
+ public static final String TAGSGROUPED = "tagsgrouped";
+ public static final String TAGSMINGROUPED = "tagsmingrouped";
+ public static final String TAGSMAXGROUPED = "tagsmaxgrouped";
+
+ @Id
+ @GeneratedValue
+ @DocumentId
+ private Long id;
+
+ @IndexedEmbedded
+ @NotNull
+ @ManyToOne(fetch = FetchType.LAZY)
+ private Tag tag;
+
+ @IndexedEmbedded
+ @NotNull
+ @ManyToOne(fetch = FetchType.LAZY)
+ private Content content;
+
+ @IndexedEmbedded
+ @NotNull
+ @ManyToOne(fetch = FetchType.LAZY)
+ private User user;
+
+ @Basic(optional = false)
+ private final Long createdOn;
+
+ public TagUserContent() {
+ this(null, null, null);
+ }
+
+ public TagUserContent(final Tag tag, final User user, final Content content) {
+ this.tag = tag;
+ this.user = user;
+ this.content = content;
+ this.createdOn = System.currentTimeMillis();
+ }
+
+ @Finder(query = "FROM TagUserContent t WHERE t.user = :user AND t.content = :content")
+ public List<TagUserContent> find(@Named("user") final User user, @Named("content") final Content content) {
+ return null;
+ }
+
+ @Finder(query = "SELECT t.tag FROM TagUserContent t WHERE t.user = :user AND t.content = :content")
+ public List<Tag> findTags(@Named("user") final User user, @Named("content") final Content content) {
+ return null;
+ }
+
+ public Content getContent() {
+ return content;
+ }
+
+ public Long getCreatedOn() {
+ return createdOn;
+ }
+
+ public Long getId() {
+ return id;
+ }
+
+ public Tag getTag() {
+ return tag;
+ }
+
+ public User getUser() {
+ return user;
+ }
+
+ public void setContent(final Content content) {
+ this.content = content;
+ }
+
+ public void setId(final Long id) {
+ this.id = id;
+ }
+
+ public void setTag(final Tag tag) {
+ this.tag = tag;
+ }
+
+ public void setUser(final User user) {
+ this.user = user;
+ }
+}
Copied: trunk/src/main/java/cc/kune/domain/ToolConfiguration.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/server/domain/ToolConfiguration.java)
===================================================================
--- trunk/src/main/java/cc/kune/domain/ToolConfiguration.java (rev 0)
+++ trunk/src/main/java/cc/kune/domain/ToolConfiguration.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -0,0 +1,70 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.domain;
+
+import javax.persistence.CascadeType;
+import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.Id;
+import javax.persistence.OneToOne;
+import javax.persistence.Table;
+
+@Entity
+@Table(name = "tool_configurations")
+public class ToolConfiguration {
+
+ @Id
+ @GeneratedValue
+ private Long id;
+ private boolean enabled;
+
+ @OneToOne(cascade = { CascadeType.MERGE, CascadeType.PERSIST })
+ private Container root;
+
+ public ToolConfiguration() {
+ enabled = true;
+ }
+
+ public Long getId() {
+ return id;
+ }
+
+ public Container getRoot() {
+ return root;
+ }
+
+ public boolean isEnabled() {
+ return enabled;
+ }
+
+ public void setEnabled(final boolean enabled) {
+ this.enabled = enabled;
+ }
+
+ public void setId(final Long id) {
+ this.id = id;
+ }
+
+ public Container setRoot(final Container root) {
+ this.root = root;
+ return root;
+ }
+
+}
Copied: trunk/src/main/java/cc/kune/domain/User.java (from rev 1164, trunk/src/main/java/org/ourproject/kune/platf/server/domain/User.java)
===================================================================
--- trunk/src/main/java/cc/kune/domain/User.java (rev 0)
+++ trunk/src/main/java/cc/kune/domain/User.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -0,0 +1,289 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.domain;
+
+import java.util.List;
+import java.util.TimeZone;
+
+import javax.persistence.Basic;
+import javax.persistence.CascadeType;
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.Id;
+import javax.persistence.ManyToOne;
+import javax.persistence.OneToOne;
+import javax.persistence.Table;
+import javax.persistence.Transient;
+import javax.validation.constraints.NotNull;
+import javax.validation.constraints.Pattern;
+
+import org.hibernate.annotations.OnDelete;
+import org.hibernate.annotations.OnDeleteAction;
+import org.hibernate.search.annotations.DocumentId;
+import org.hibernate.search.annotations.Field;
+import org.hibernate.search.annotations.Index;
+import org.hibernate.search.annotations.Indexed;
+import org.hibernate.search.annotations.Store;
+import org.hibernate.validator.constraints.Email;
+import org.hibernate.validator.constraints.Length;
+
+import cc.kune.core.shared.domain.UserBuddiesVisibility;
+import cc.kune.core.shared.dto.StateToken;
+import cc.kune.domain.utils.HasId;
+
+import com.google.inject.name.Named;
+import com.wideplay.warp.persist.dao.Finder;
+
+@Entity
+@Indexed
+@Table(name = "kusers")
+public class User implements HasId {
+
+ // see: http://docs.codehaus.org/display/PICO/Good+Citizen:
+ // Never expect or return null
+ public static final User UNKNOWN_USER = new User();
+ public static final String PROPS_ID = "userprops";
+
+ public static boolean isKnownUser(final User user) {
+ return !user.equals(UNKNOWN_USER);
+ }
+
+ @Id
+ @DocumentId
+ @GeneratedValue
+ private Long id;
+
+ @Column(unique = true, nullable = false)
+ @Email
+ @Length(min = 1)
+ private String email;
+
+ @Column(nullable = false)
+ @Length(min = 6, max = 40)
+ private String password;
+
+ @OneToOne(cascade = CascadeType.REMOVE)
+ private Group userGroup;
+
+ @Field(index = Index.TOKENIZED, store = Store.NO)
+ @Column(nullable = false)
+ @Length(min = 3, max = 50)
+ private String name;
+
+ @Field(index = Index.UN_TOKENIZED, store = Store.NO)
+ @Column(unique = true)
+ // http://www.hibernate.org/hib_docs/validator/reference/en/html/validator-def…
+ @Length(min = 3, max = 15)
+ @Pattern(regexp = "^[a-z0-9_\\-]+$", message = "The name must be between 3 and 15 lowercase characters. It can only contain Western characters, numbers, and dashes")
+ private String shortName;
+
+ @ManyToOne
+ @NotNull
+ private I18nLanguage language;
+
+ @ManyToOne
+ @NotNull
+ private I18nCountry country;
+
+ @NotNull
+ private TimeZone timezone;
+
+ @OneToOne(cascade = CascadeType.REMOVE)
+ private final CustomProperties customProperties;
+
+ private UserBuddiesVisibility buddiesVisibility;
+
+ @Basic(optional = false)
+ private final Long createdOn;
+
+ @Basic
+ private Long lastLogin;
+
+ @OneToOne
+ @OnDelete(action = OnDeleteAction.CASCADE)
+ private Properties properties;
+
+ public User() {
+ this(null, null, null, null, null, null, null, null);
+ }
+
+ public User(final String shortName, final String longName, final String email, final String passwd,
+ final I18nLanguage language, final I18nCountry country, final TimeZone timezone) {
+ this(shortName, longName, email, passwd, language, country, timezone, null);
+ }
+
+ public User(final String shortName, final String longName, final String email, final String passwd,
+ final I18nLanguage language, final I18nCountry country, final TimeZone timezone, final Properties properties) {
+ this.shortName = shortName;
+ this.name = longName;
+ this.email = email;
+ this.password = passwd;
+ this.userGroup = null;
+ this.language = language;
+ this.country = country;
+ this.timezone = timezone;
+ customProperties = new CustomProperties();
+ buddiesVisibility = UserBuddiesVisibility.anyone;
+ this.createdOn = System.currentTimeMillis();
+ this.lastLogin = null;
+ this.properties = properties;
+ }
+
+ @Finder(query = "from User")
+ public List<User> getAll() {
+ return null;
+ }
+
+ public UserBuddiesVisibility getBuddiesVisibility() {
+ return buddiesVisibility;
+ }
+
+ @Finder(query = "from User where email = :email")
+ public User getByEmail(@Named("email") final String email) {
+ return null;
+ }
+
+ @Finder(query = "from User where shortName = :shortName")
+ public User getByShortName(@Named("shortName") final String shortName) {
+ return null;
+ }
+
+ public I18nCountry getCountry() {
+ return country;
+ }
+
+ public Long getCreatedOn() {
+ return createdOn;
+ }
+
+ public CustomProperties getCustomProperties() {
+ return customProperties;
+ }
+
+ public String getEmail() {
+ return email;
+ }
+
+ public boolean getHasLogo() {
+ return hasLogo();
+ }
+
+ public Long getId() {
+ return id;
+ }
+
+ public I18nLanguage getLanguage() {
+ return language;
+ }
+
+ public Long getLastLogin() {
+ return lastLogin;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public String getPassword() {
+ return password;
+ }
+
+ public Properties getProperties() {
+ return properties;
+ }
+
+ public String getShortName() {
+ return shortName;
+ }
+
+ @Transient
+ public StateToken getStateToken() {
+ return userGroup.getStateToken();
+ }
+
+ public TimeZone getTimezone() {
+ return timezone;
+ }
+
+ public Group getUserGroup() {
+ return userGroup;
+ }
+
+ @Transient
+ public boolean hasLogo() {
+ return getUserGroup().hasLogo();
+ }
+
+ public void setBuddiesVisibility(final UserBuddiesVisibility buddiesVisibility) {
+ this.buddiesVisibility = buddiesVisibility;
+ }
+
+ public void setCountry(final I18nCountry country) {
+ this.country = country;
+ }
+
+ public void setEmail(final String email) {
+ this.email = email;
+ }
+
+ public void setId(final Long id) {
+ this.id = id;
+ }
+
+ public void setLanguage(final I18nLanguage language) {
+ this.language = language;
+ }
+
+ public void setLastLogin(final Long lastLogin) {
+ this.lastLogin = lastLogin;
+ }
+
+ public void setName(final String name) {
+ this.name = name;
+ }
+
+ public void setPassword(final String password) {
+ this.password = password;
+ // http://www.dynamic.net.au/christos/crypt/
+ // Use UnixCrypt (jetty)
+ }
+
+ public void setProperties(final Properties properties) {
+ this.properties = properties;
+ }
+
+ public void setShortName(final String shortName) {
+ this.shortName = shortName;
+ }
+
+ public void setTimezone(final TimeZone timezone) {
+ this.timezone = timezone;
+ }
+
+ public void setUserGroup(final Group userGroup) {
+ this.userGroup = userGroup;
+ }
+
+ @Override
+ public String toString() {
+ return "User[" + shortName + "]";
+ }
+}
Copied: trunk/src/main/java/cc/kune/domain/utils/DataFieldBridge.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/server/domain/DataFieldBridge.java)
===================================================================
--- trunk/src/main/java/cc/kune/domain/utils/DataFieldBridge.java (rev 0)
+++ trunk/src/main/java/cc/kune/domain/utils/DataFieldBridge.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -0,0 +1,32 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.domain.utils;
+
+import org.hibernate.search.bridge.builtin.StringBridge;
+
+public class DataFieldBridge extends StringBridge {
+ public String objectToString(final Object object) {
+ if (object != null) {
+ return new String((char[]) object);
+ } else {
+ return null;
+ }
+ }
+}
Copied: trunk/src/main/java/cc/kune/domain/utils/HasId.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/server/domain/HasId.java)
===================================================================
--- trunk/src/main/java/cc/kune/domain/utils/HasId.java (rev 0)
+++ trunk/src/main/java/cc/kune/domain/utils/HasId.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -0,0 +1,26 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.domain.utils;
+
+public interface HasId {
+ Long getId();
+
+ void setId(Long id);
+}
Copied: trunk/src/main/java/cc/kune/domain/utils/HasStateToken.java (from rev 1163, trunk/src/main/java/org/ourproject/kune/platf/server/domain/HasStateToken.java)
===================================================================
--- trunk/src/main/java/cc/kune/domain/utils/HasStateToken.java (rev 0)
+++ trunk/src/main/java/cc/kune/domain/utils/HasStateToken.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -0,0 +1,28 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.domain.utils;
+
+import cc.kune.core.shared.dto.StateToken;
+
+public interface HasStateToken {
+
+ StateToken getStateToken();
+
+}
Copied: trunk/src/main/java/cc/kune/domain/utils/SocialNetworkData.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/server/domain/SocialNetworkData.java)
===================================================================
--- trunk/src/main/java/cc/kune/domain/utils/SocialNetworkData.java (rev 0)
+++ trunk/src/main/java/cc/kune/domain/utils/SocialNetworkData.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -0,0 +1,137 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.domain.utils;
+
+import org.ourproject.kune.platf.server.access.AccessRights;
+import org.ourproject.kune.platf.server.sn.ParticipationData;
+import org.ourproject.kune.platf.server.sn.UserBuddiesData;
+
+import cc.kune.core.shared.domain.SocialNetworkVisibility;
+import cc.kune.core.shared.domain.UserBuddiesVisibility;
+import cc.kune.domain.SocialNetwork;
+
+public class SocialNetworkData {
+ private SocialNetworkVisibility socialNetworkVisibility;
+ private SocialNetwork groupMembers;
+ private ParticipationData userParticipation;
+ private UserBuddiesVisibility userBuddiesVisibility;
+ private UserBuddiesData userBuddies;
+ private AccessRights groupRights;
+ private boolean isBuddiesVisible;
+ private boolean isMembersVisible;
+
+ public SocialNetworkData() {
+ this(null, null, null, null, null, null, false, false);
+ }
+
+ public SocialNetworkData(SocialNetworkVisibility socialNetworkVisibility, SocialNetwork groupMembers,
+ ParticipationData userParticipation, UserBuddiesVisibility userBuddiesVisibility,
+ UserBuddiesData userBuddies, AccessRights groupRights, boolean isBuddiesVisible, boolean isMembersVisible) {
+ this.socialNetworkVisibility = socialNetworkVisibility;
+ this.groupMembers = groupMembers;
+ this.userParticipation = userParticipation;
+ this.userBuddiesVisibility = userBuddiesVisibility;
+ this.userBuddies = userBuddies;
+ this.groupRights = groupRights;
+ this.isBuddiesVisible = isBuddiesVisible;
+ this.isMembersVisible = isMembersVisible;
+ }
+
+ public SocialNetwork getGroupMembers() {
+ return groupMembers;
+ }
+
+ public AccessRights getGroupRights() {
+ return groupRights;
+ }
+
+ public boolean getIsBuddiesVisible() {
+ return isBuddiesVisible;
+ }
+
+ public boolean getIsMembersVisible() {
+ return isMembersVisible;
+ }
+
+ public SocialNetworkVisibility getSocialNetworkVisibility() {
+ return socialNetworkVisibility;
+ }
+
+ public UserBuddiesData getUserBuddies() {
+ return userBuddies;
+ }
+
+ public UserBuddiesVisibility getUserBuddiesVisibility() {
+ return userBuddiesVisibility;
+ }
+
+ public ParticipationData getUserParticipation() {
+ return userParticipation;
+ }
+
+ public boolean isBuddiesVisible() {
+ return isBuddiesVisible;
+ }
+
+ public boolean isMembersVisible() {
+ return isMembersVisible;
+ }
+
+ public void setBuddiesVisible(boolean isBuddiesVisible) {
+ this.isBuddiesVisible = isBuddiesVisible;
+ }
+
+ public void setGroupMembers(SocialNetwork groupMembers) {
+ this.groupMembers = groupMembers;
+ }
+
+ public void setGroupRights(AccessRights groupRights) {
+ this.groupRights = groupRights;
+ }
+
+ public void setIsBuddiesVisible(boolean isBuddiesVisible) {
+ setBuddiesVisible(isBuddiesVisible);
+ }
+
+ public void setIsMembersVisible(boolean isMembersVisible) {
+ setMembersVisible(isMembersVisible);
+ }
+
+ public void setMembersVisible(boolean isMembersVisible) {
+ this.isMembersVisible = isMembersVisible;
+ }
+
+ public void setSocialNetworkVisibility(SocialNetworkVisibility socialNetworkVisibility) {
+ this.socialNetworkVisibility = socialNetworkVisibility;
+ }
+
+ public void setUserBuddies(UserBuddiesData userBuddies) {
+ this.userBuddies = userBuddies;
+ }
+
+ public void setUserBuddiesVisibility(UserBuddiesVisibility userBuddiesVisibility) {
+ this.userBuddiesVisibility = userBuddiesVisibility;
+ }
+
+ public void setUserParticipation(ParticipationData userParticipation) {
+ this.userParticipation = userParticipation;
+ }
+
+}
Modified: trunk/src/main/java/org/ourproject/kune/blogs/server/BlogServerTool.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/blogs/server/BlogServerTool.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/blogs/server/BlogServerTool.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -21,13 +21,6 @@
import org.ourproject.kune.platf.server.content.ContainerManager;
import org.ourproject.kune.platf.server.content.ContentManager;
-import org.ourproject.kune.platf.server.domain.Container;
-import org.ourproject.kune.platf.server.domain.Content;
-import org.ourproject.kune.platf.server.domain.ContentStatus;
-import org.ourproject.kune.platf.server.domain.Group;
-import org.ourproject.kune.platf.server.domain.I18nLanguage;
-import org.ourproject.kune.platf.server.domain.ToolConfiguration;
-import org.ourproject.kune.platf.server.domain.User;
import org.ourproject.kune.platf.server.manager.ToolConfigurationManager;
import org.ourproject.kune.platf.server.tool.ServerTool;
import org.ourproject.kune.platf.server.tool.ServerToolRegistry;
@@ -35,7 +28,14 @@
import cc.kune.core.client.errors.ContainerNotPermittedException;
import cc.kune.core.client.errors.ContentNotPermittedException;
+import cc.kune.core.shared.domain.ContentStatus;
import cc.kune.core.shared.i18n.I18nTranslationService;
+import cc.kune.domain.Container;
+import cc.kune.domain.Content;
+import cc.kune.domain.Group;
+import cc.kune.domain.I18nLanguage;
+import cc.kune.domain.ToolConfiguration;
+import cc.kune.domain.User;
import com.google.inject.Inject;
Modified: trunk/src/main/java/org/ourproject/kune/chat/client/ChatClientActions.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/chat/client/ChatClientActions.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/chat/client/ChatClientActions.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -34,8 +34,8 @@
import cc.kune.core.client.i18n.I18nUITranslationService;
import cc.kune.core.client.state.Session;
+import cc.kune.core.shared.domain.ContentStatus;
import cc.kune.core.shared.dto.AccessRolDTO;
-import cc.kune.core.shared.dto.ContentStatusDTO;
import cc.kune.core.shared.dto.StateToken;
import com.calclab.suco.client.events.Listener;
@@ -72,7 +72,7 @@
public void onEvent(final StateToken token) {
deferredWrapper.get().addCommand(new Listener0() {
public void onEvent() {
- String subject = i18n.t("Chat about: [%s]", session.getContentState().getTitle());
+ final String subject = i18n.t("Chat about: [%s]", session.getContentState().getTitle());
chatEngineProvider.get().joinRoom(token.toString().replaceAll("\\.", "-"), subject,
session.getCurrentUserInfo().getShortName());
chatEngineProvider.get().show();
@@ -86,10 +86,10 @@
chatAbout.setLeftSeparator(ActionToolbarButtonSeparator.fill);
chatAbout.setEnableCondition(notDeleted());
- ActionToolbarButtonDescriptor<StateToken> joinRoom = new ActionToolbarButtonDescriptor<StateToken>(
+ final ActionToolbarButtonDescriptor<StateToken> joinRoom = new ActionToolbarButtonDescriptor<StateToken>(
AccessRolDTO.Viewer, AbstractFoldableContentActions.CONTENT_TOPBAR, new Listener<StateToken>() {
public void onEvent(final StateToken token) {
- ChatEngine chatEngine = chatEngineProvider.get();
+ final ChatEngine chatEngine = chatEngineProvider.get();
chatEngine.joinRoom(session.getContainerState().getContainer().getName(),
session.getCurrentUserInfo().getShortName());
chatEngine.show();
@@ -99,7 +99,7 @@
joinRoom.setToolTip(i18n.t("Enter in this chat room"));
joinRoom.setMustBeAuthenticated(true);
- ActionToolbarButtonDescriptor<StateToken> addRoom = new ActionToolbarButtonDescriptor<StateToken>(
+ final ActionToolbarButtonDescriptor<StateToken> addRoom = new ActionToolbarButtonDescriptor<StateToken>(
AccessRolDTO.Administrator, AbstractFoldableContentActions.CONTEXT_TOPBAR, new Listener<StateToken>() {
public void onEvent(final StateToken token) {
addRoomProvider.get().show();
@@ -125,7 +125,7 @@
return new ActionEnableCondition<StateToken>() {
public boolean mustBeEnabled(final StateToken token) {
final boolean isNotDeleted = !(session.isCurrentStateAContent() && session.getContentState().getStatus().equals(
- ContentStatusDTO.inTheDustbin));
+ ContentStatus.inTheDustbin));
return isNotDeleted;
}
};
Modified: trunk/src/main/java/org/ourproject/kune/chat/server/ChatServerTool.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/chat/server/ChatServerTool.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/chat/server/ChatServerTool.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -21,17 +21,17 @@
import org.ourproject.kune.chat.client.ChatClientTool;
import org.ourproject.kune.platf.server.content.ContainerManager;
-import org.ourproject.kune.platf.server.domain.Container;
-import org.ourproject.kune.platf.server.domain.Content;
-import org.ourproject.kune.platf.server.domain.Group;
-import org.ourproject.kune.platf.server.domain.ToolConfiguration;
-import org.ourproject.kune.platf.server.domain.User;
import org.ourproject.kune.platf.server.manager.ToolConfigurationManager;
import org.ourproject.kune.platf.server.tool.ServerTool;
import org.ourproject.kune.platf.server.tool.ServerToolRegistry;
import org.ourproject.kune.platf.server.tool.ServerToolTarget;
import cc.kune.core.client.errors.ContainerNotPermittedException;
+import cc.kune.domain.Container;
+import cc.kune.domain.Content;
+import cc.kune.domain.Group;
+import cc.kune.domain.ToolConfiguration;
+import cc.kune.domain.User;
import com.google.inject.Inject;
Modified: trunk/src/main/java/org/ourproject/kune/docs/server/DocumentServerTool.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/docs/server/DocumentServerTool.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/docs/server/DocumentServerTool.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -23,12 +23,6 @@
import org.ourproject.kune.platf.server.content.ContainerManager;
import org.ourproject.kune.platf.server.content.ContentManager;
-import org.ourproject.kune.platf.server.domain.Container;
-import org.ourproject.kune.platf.server.domain.Content;
-import org.ourproject.kune.platf.server.domain.ContentStatus;
-import org.ourproject.kune.platf.server.domain.Group;
-import org.ourproject.kune.platf.server.domain.ToolConfiguration;
-import org.ourproject.kune.platf.server.domain.User;
import org.ourproject.kune.platf.server.manager.ToolConfigurationManager;
import org.ourproject.kune.platf.server.tool.ServerTool;
import org.ourproject.kune.platf.server.tool.ServerToolRegistry;
@@ -36,7 +30,13 @@
import cc.kune.core.client.errors.ContainerNotPermittedException;
import cc.kune.core.client.errors.ContentNotPermittedException;
+import cc.kune.core.shared.domain.ContentStatus;
import cc.kune.core.shared.i18n.I18nTranslationService;
+import cc.kune.domain.Container;
+import cc.kune.domain.Content;
+import cc.kune.domain.Group;
+import cc.kune.domain.ToolConfiguration;
+import cc.kune.domain.User;
import com.google.inject.Inject;
Modified: trunk/src/main/java/org/ourproject/kune/gallery/server/GalleryServerTool.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/gallery/server/GalleryServerTool.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/gallery/server/GalleryServerTool.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -20,11 +20,6 @@
package org.ourproject.kune.gallery.server;
import org.ourproject.kune.platf.server.content.ContainerManager;
-import org.ourproject.kune.platf.server.domain.Container;
-import org.ourproject.kune.platf.server.domain.Content;
-import org.ourproject.kune.platf.server.domain.Group;
-import org.ourproject.kune.platf.server.domain.ToolConfiguration;
-import org.ourproject.kune.platf.server.domain.User;
import org.ourproject.kune.platf.server.manager.ToolConfigurationManager;
import org.ourproject.kune.platf.server.tool.ServerTool;
import org.ourproject.kune.platf.server.tool.ServerToolRegistry;
@@ -33,6 +28,11 @@
import cc.kune.core.client.errors.ContainerNotPermittedException;
import cc.kune.core.client.errors.ContentNotPermittedException;
import cc.kune.core.shared.i18n.I18nTranslationService;
+import cc.kune.domain.Container;
+import cc.kune.domain.Content;
+import cc.kune.domain.Group;
+import cc.kune.domain.ToolConfiguration;
+import cc.kune.domain.User;
import com.google.inject.Inject;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/InitData.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/InitData.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/InitData.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -22,13 +22,14 @@
import java.util.ArrayList;
import java.util.List;
-import org.ourproject.kune.platf.server.domain.ExtMediaDescrip;
-import org.ourproject.kune.platf.server.domain.I18nCountry;
-import org.ourproject.kune.platf.server.domain.I18nLanguage;
-import org.ourproject.kune.platf.server.domain.License;
import org.ourproject.kune.platf.server.tool.ToolSimple;
import org.ourproject.kune.platf.server.users.UserInfo;
+import cc.kune.domain.ExtMediaDescrip;
+import cc.kune.domain.I18nCountry;
+import cc.kune.domain.I18nLanguage;
+import cc.kune.domain.License;
+
public class InitData {
private String siteUrl;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/UserSession.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/UserSession.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/UserSession.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -19,9 +19,10 @@
*/
package org.ourproject.kune.platf.server;
-import org.ourproject.kune.platf.server.domain.User;
import org.ourproject.kune.platf.server.manager.UserManager;
+import cc.kune.domain.User;
+
import com.google.inject.Inject;
import com.google.inject.servlet.SessionScoped;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/access/AccessRightsService.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/access/AccessRightsService.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/access/AccessRightsService.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -19,8 +19,8 @@
*/
package org.ourproject.kune.platf.server.access;
-import org.ourproject.kune.platf.server.domain.AccessLists;
-import org.ourproject.kune.platf.server.domain.User;
+import cc.kune.domain.AccessLists;
+import cc.kune.domain.User;
public interface AccessRightsService {
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/access/AccessRightsServiceDefault.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/access/AccessRightsServiceDefault.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/access/AccessRightsServiceDefault.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -22,12 +22,13 @@
import java.util.ArrayList;
import java.util.HashSet;
-import org.ourproject.kune.platf.server.domain.AccessLists;
-import org.ourproject.kune.platf.server.domain.Group;
-import org.ourproject.kune.platf.server.domain.GroupList;
-import org.ourproject.kune.platf.server.domain.SocialNetwork;
-import org.ourproject.kune.platf.server.domain.User;
+import cc.kune.domain.AccessLists;
+import cc.kune.domain.Group;
+import cc.kune.domain.GroupList;
+import cc.kune.domain.SocialNetwork;
+import cc.kune.domain.User;
+
import com.google.inject.Singleton;
@Singleton
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/access/AccessService.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/access/AccessService.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/access/AccessService.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -19,11 +19,11 @@
*/
package org.ourproject.kune.platf.server.access;
-import org.ourproject.kune.platf.server.domain.Container;
-import org.ourproject.kune.platf.server.domain.Content;
-import org.ourproject.kune.platf.server.domain.User;
import cc.kune.core.client.errors.DefaultException;
+import cc.kune.domain.Container;
+import cc.kune.domain.Content;
+import cc.kune.domain.User;
public interface AccessService {
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/access/AccessServiceDefault.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/access/AccessServiceDefault.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/access/AccessServiceDefault.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -19,13 +19,13 @@
*/
package org.ourproject.kune.platf.server.access;
-import org.ourproject.kune.platf.server.domain.AccessLists;
-import org.ourproject.kune.platf.server.domain.Container;
-import org.ourproject.kune.platf.server.domain.Content;
-import org.ourproject.kune.platf.server.domain.User;
import cc.kune.core.client.errors.AccessViolationException;
import cc.kune.core.client.errors.DefaultException;
+import cc.kune.domain.AccessLists;
+import cc.kune.domain.Container;
+import cc.kune.domain.Content;
+import cc.kune.domain.User;
import com.google.inject.Inject;
import com.google.inject.Singleton;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/access/FinderService.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/access/FinderService.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/access/FinderService.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -19,15 +19,15 @@
*/
package org.ourproject.kune.platf.server.access;
-import org.ourproject.kune.platf.server.domain.Comment;
-import org.ourproject.kune.platf.server.domain.Container;
-import org.ourproject.kune.platf.server.domain.Content;
-import org.ourproject.kune.platf.server.domain.Group;
-import org.ourproject.kune.platf.server.domain.Rate;
-import org.ourproject.kune.platf.server.domain.User;
import cc.kune.core.client.errors.DefaultException;
import cc.kune.core.shared.dto.StateToken;
+import cc.kune.domain.Comment;
+import cc.kune.domain.Container;
+import cc.kune.domain.Content;
+import cc.kune.domain.Group;
+import cc.kune.domain.Rate;
+import cc.kune.domain.User;
public interface FinderService {
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/access/FinderServiceDefault.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/access/FinderServiceDefault.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/access/FinderServiceDefault.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -25,12 +25,6 @@
import org.ourproject.kune.platf.server.content.CommentManager;
import org.ourproject.kune.platf.server.content.ContainerManager;
import org.ourproject.kune.platf.server.content.ContentManager;
-import org.ourproject.kune.platf.server.domain.Comment;
-import org.ourproject.kune.platf.server.domain.Container;
-import org.ourproject.kune.platf.server.domain.Content;
-import org.ourproject.kune.platf.server.domain.Group;
-import org.ourproject.kune.platf.server.domain.Rate;
-import org.ourproject.kune.platf.server.domain.User;
import org.ourproject.kune.platf.server.manager.GroupManager;
import org.ourproject.kune.platf.server.manager.RateManager;
@@ -40,6 +34,12 @@
import cc.kune.core.client.errors.NoDefaultContentException;
import cc.kune.core.client.errors.ToolNotFoundException;
import cc.kune.core.shared.dto.StateToken;
+import cc.kune.domain.Comment;
+import cc.kune.domain.Container;
+import cc.kune.domain.Content;
+import cc.kune.domain.Group;
+import cc.kune.domain.Rate;
+import cc.kune.domain.User;
import com.google.inject.Inject;
import com.google.inject.Singleton;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/auth/AuthorizatedMethodInterceptor.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/auth/AuthorizatedMethodInterceptor.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/auth/AuthorizatedMethodInterceptor.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -29,14 +29,14 @@
import org.ourproject.kune.platf.server.access.AccessRol;
import org.ourproject.kune.platf.server.access.AccessService;
import org.ourproject.kune.platf.server.content.ContentUtils;
-import org.ourproject.kune.platf.server.domain.Container;
-import org.ourproject.kune.platf.server.domain.Content;
-import org.ourproject.kune.platf.server.domain.Group;
-import org.ourproject.kune.platf.server.domain.User;
import org.ourproject.kune.platf.server.manager.GroupManager;
import cc.kune.core.client.errors.AccessViolationException;
import cc.kune.core.shared.dto.StateToken;
+import cc.kune.domain.Container;
+import cc.kune.domain.Content;
+import cc.kune.domain.Group;
+import cc.kune.domain.User;
import com.google.inject.Inject;
import com.google.inject.Provider;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/content/CommentManager.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/content/CommentManager.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/content/CommentManager.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -19,11 +19,11 @@
\*/
package org.ourproject.kune.platf.server.content;
-import org.ourproject.kune.platf.server.domain.Comment;
-import org.ourproject.kune.platf.server.domain.User;
import org.ourproject.kune.platf.server.manager.Manager;
import cc.kune.core.client.errors.DefaultException;
+import cc.kune.domain.Comment;
+import cc.kune.domain.User;
public interface CommentManager extends Manager<Comment, Long> {
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/content/CommentManagerDefault.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/content/CommentManagerDefault.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/content/CommentManagerDefault.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -22,13 +22,13 @@
import javax.persistence.EntityManager;
import org.ourproject.kune.platf.server.access.FinderService;
-import org.ourproject.kune.platf.server.domain.Comment;
-import org.ourproject.kune.platf.server.domain.Content;
-import org.ourproject.kune.platf.server.domain.User;
import org.ourproject.kune.platf.server.manager.impl.DefaultManager;
import cc.kune.core.client.errors.ContentNotFoundException;
import cc.kune.core.client.errors.DefaultException;
+import cc.kune.domain.Comment;
+import cc.kune.domain.Content;
+import cc.kune.domain.User;
import com.google.inject.Inject;
import com.google.inject.Provider;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/content/ContainerManager.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/content/ContainerManager.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/content/ContainerManager.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -19,14 +19,14 @@
*/
package org.ourproject.kune.platf.server.content;
-import org.ourproject.kune.platf.server.domain.AccessLists;
-import org.ourproject.kune.platf.server.domain.Container;
-import org.ourproject.kune.platf.server.domain.Group;
-import org.ourproject.kune.platf.server.domain.I18nLanguage;
import org.ourproject.kune.platf.server.manager.Manager;
import org.ourproject.kune.platf.server.manager.impl.SearchResult;
import cc.kune.core.client.errors.DefaultException;
+import cc.kune.domain.AccessLists;
+import cc.kune.domain.Container;
+import cc.kune.domain.Group;
+import cc.kune.domain.I18nLanguage;
public interface ContainerManager extends Manager<Container, Long> {
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/content/ContainerManagerDefault.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/content/ContainerManagerDefault.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/content/ContainerManagerDefault.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -28,11 +28,6 @@
import org.apache.lucene.queryParser.MultiFieldQueryParser;
import org.apache.lucene.queryParser.ParseException;
import org.apache.lucene.search.Query;
-import org.ourproject.kune.platf.server.domain.AccessLists;
-import org.ourproject.kune.platf.server.domain.Container;
-import org.ourproject.kune.platf.server.domain.Content;
-import org.ourproject.kune.platf.server.domain.Group;
-import org.ourproject.kune.platf.server.domain.I18nLanguage;
import org.ourproject.kune.platf.server.manager.file.FileUtils;
import org.ourproject.kune.platf.server.manager.impl.DefaultManager;
import org.ourproject.kune.platf.server.manager.impl.SearchResult;
@@ -41,6 +36,11 @@
import cc.kune.core.client.errors.DefaultException;
import cc.kune.core.client.errors.NameInUseException;
+import cc.kune.domain.AccessLists;
+import cc.kune.domain.Container;
+import cc.kune.domain.Content;
+import cc.kune.domain.Group;
+import cc.kune.domain.I18nLanguage;
import com.google.inject.Inject;
import com.google.inject.Provider;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/content/ContentManager.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/content/ContentManager.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/content/ContentManager.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -21,16 +21,16 @@
import java.util.Date;
-import org.ourproject.kune.platf.server.domain.Container;
-import org.ourproject.kune.platf.server.domain.Content;
-import org.ourproject.kune.platf.server.domain.ContentStatus;
-import org.ourproject.kune.platf.server.domain.I18nLanguage;
-import org.ourproject.kune.platf.server.domain.RateResult;
-import org.ourproject.kune.platf.server.domain.User;
import org.ourproject.kune.platf.server.manager.Manager;
import org.ourproject.kune.platf.server.manager.impl.SearchResult;
import cc.kune.core.client.errors.DefaultException;
+import cc.kune.core.shared.domain.ContentStatus;
+import cc.kune.core.shared.domain.RateResult;
+import cc.kune.domain.Container;
+import cc.kune.domain.Content;
+import cc.kune.domain.I18nLanguage;
+import cc.kune.domain.User;
public interface ContentManager extends Manager<Content, Long> {
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/content/ContentManagerDefault.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/content/ContentManagerDefault.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/content/ContentManagerDefault.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -29,14 +29,6 @@
import org.apache.lucene.queryParser.ParseException;
import org.apache.lucene.search.Query;
import org.ourproject.kune.platf.server.access.FinderService;
-import org.ourproject.kune.platf.server.domain.Container;
-import org.ourproject.kune.platf.server.domain.Content;
-import org.ourproject.kune.platf.server.domain.ContentStatus;
-import org.ourproject.kune.platf.server.domain.I18nLanguage;
-import org.ourproject.kune.platf.server.domain.Rate;
-import org.ourproject.kune.platf.server.domain.RateResult;
-import org.ourproject.kune.platf.server.domain.Revision;
-import org.ourproject.kune.platf.server.domain.User;
import org.ourproject.kune.platf.server.manager.TagUserContentManager;
import org.ourproject.kune.platf.server.manager.file.FileUtils;
import org.ourproject.kune.platf.server.manager.impl.DefaultManager;
@@ -48,6 +40,14 @@
import cc.kune.core.client.errors.I18nNotFoundException;
import cc.kune.core.client.errors.NameInUseException;
import cc.kune.core.client.errors.UserNotFoundException;
+import cc.kune.core.shared.domain.ContentStatus;
+import cc.kune.core.shared.domain.RateResult;
+import cc.kune.domain.Container;
+import cc.kune.domain.Content;
+import cc.kune.domain.I18nLanguage;
+import cc.kune.domain.Rate;
+import cc.kune.domain.Revision;
+import cc.kune.domain.User;
import com.google.inject.Inject;
import com.google.inject.Provider;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/content/CreationService.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/content/CreationService.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/content/CreationService.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -19,12 +19,13 @@
*/
package org.ourproject.kune.platf.server.content;
-import org.ourproject.kune.platf.server.domain.Container;
-import org.ourproject.kune.platf.server.domain.Content;
-import org.ourproject.kune.platf.server.domain.Group;
-import org.ourproject.kune.platf.server.domain.I18nLanguage;
-import org.ourproject.kune.platf.server.domain.User;
+import cc.kune.domain.Container;
+import cc.kune.domain.Content;
+import cc.kune.domain.Group;
+import cc.kune.domain.I18nLanguage;
+import cc.kune.domain.User;
+
public interface CreationService {
Content createContent(String title, String body, User user, Container container, String typeId);
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/content/CreationServiceDefault.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/content/CreationServiceDefault.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/content/CreationServiceDefault.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -19,13 +19,14 @@
*/
package org.ourproject.kune.platf.server.content;
-import org.ourproject.kune.platf.server.domain.Container;
-import org.ourproject.kune.platf.server.domain.Content;
-import org.ourproject.kune.platf.server.domain.Group;
-import org.ourproject.kune.platf.server.domain.I18nLanguage;
-import org.ourproject.kune.platf.server.domain.User;
import org.ourproject.kune.platf.server.tool.ServerToolRegistry;
+import cc.kune.domain.Container;
+import cc.kune.domain.Content;
+import cc.kune.domain.Group;
+import cc.kune.domain.I18nLanguage;
+import cc.kune.domain.User;
+
import com.google.inject.Inject;
import com.google.inject.Singleton;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/i18n/I18nTranslationServiceDefault.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/i18n/I18nTranslationServiceDefault.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/i18n/I18nTranslationServiceDefault.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -20,11 +20,11 @@
package org.ourproject.kune.platf.server.i18n;
import org.ourproject.kune.platf.server.UserSession;
-import org.ourproject.kune.platf.server.domain.I18nTranslation;
import org.ourproject.kune.platf.server.manager.I18nTranslationManager;
import cc.kune.core.client.utils.TextUtils;
import cc.kune.core.shared.i18n.I18nTranslationService;
+import cc.kune.domain.I18nTranslation;
import com.google.inject.Inject;
import com.google.inject.Provider;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/init/DatabaseInitializer.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/init/DatabaseInitializer.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/init/DatabaseInitializer.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -6,17 +6,6 @@
import javax.persistence.NoResultException;
import org.ourproject.kune.platf.server.content.ContentManager;
-import org.ourproject.kune.platf.server.domain.Content;
-import org.ourproject.kune.platf.server.domain.ContentStatus;
-import org.ourproject.kune.platf.server.domain.Group;
-import org.ourproject.kune.platf.server.domain.I18nCountry;
-import org.ourproject.kune.platf.server.domain.I18nLanguage;
-import org.ourproject.kune.platf.server.domain.I18nTranslation;
-import org.ourproject.kune.platf.server.domain.License;
-import org.ourproject.kune.platf.server.domain.Property;
-import org.ourproject.kune.platf.server.domain.PropertyGroup;
-import org.ourproject.kune.platf.server.domain.PropertySubgroup;
-import org.ourproject.kune.platf.server.domain.User;
import org.ourproject.kune.platf.server.manager.GroupManager;
import org.ourproject.kune.platf.server.manager.I18nCountryManager;
import org.ourproject.kune.platf.server.manager.I18nLanguageManager;
@@ -29,7 +18,18 @@
import org.ourproject.kune.platf.server.properties.DatabaseProperties;
import cc.kune.core.client.errors.UserMustBeLoggedException;
+import cc.kune.core.shared.domain.ContentStatus;
import cc.kune.core.shared.dto.GroupType;
+import cc.kune.domain.Content;
+import cc.kune.domain.Group;
+import cc.kune.domain.I18nCountry;
+import cc.kune.domain.I18nLanguage;
+import cc.kune.domain.I18nTranslation;
+import cc.kune.domain.License;
+import cc.kune.domain.Property;
+import cc.kune.domain.PropertyGroup;
+import cc.kune.domain.PropertySubgroup;
+import cc.kune.domain.User;
import com.calclab.emiteuimodule.client.SubscriptionMode;
import com.google.inject.Inject;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/ExtMediaDescripManager.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/ExtMediaDescripManager.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/ExtMediaDescripManager.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -21,7 +21,7 @@
import java.util.List;
-import org.ourproject.kune.platf.server.domain.ExtMediaDescrip;
+import cc.kune.domain.ExtMediaDescrip;
public interface ExtMediaDescripManager extends Manager<ExtMediaDescrip, Long> {
List<ExtMediaDescrip> getAll();
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/GroupManager.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/GroupManager.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/GroupManager.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -21,15 +21,15 @@
import java.util.List;
-import org.ourproject.kune.platf.server.domain.Content;
-import org.ourproject.kune.platf.server.domain.Group;
-import org.ourproject.kune.platf.server.domain.User;
import org.ourproject.kune.platf.server.manager.impl.SearchResult;
import cc.kune.core.client.errors.AccessViolationException;
import cc.kune.core.client.errors.EmailAddressInUseException;
import cc.kune.core.client.errors.GroupNameInUseException;
import cc.kune.core.client.errors.UserMustBeLoggedException;
+import cc.kune.domain.Content;
+import cc.kune.domain.Group;
+import cc.kune.domain.User;
public interface GroupManager extends Manager<Group, Long> {
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/I18nCountryManager.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/I18nCountryManager.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/I18nCountryManager.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -21,7 +21,7 @@
import java.util.List;
-import org.ourproject.kune.platf.server.domain.I18nCountry;
+import cc.kune.domain.I18nCountry;
public interface I18nCountryManager extends Manager<I18nCountry, Long> {
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/I18nLanguageManager.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/I18nLanguageManager.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/I18nLanguageManager.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -21,7 +21,7 @@
import java.util.List;
-import org.ourproject.kune.platf.server.domain.I18nLanguage;
+import cc.kune.domain.I18nLanguage;
public interface I18nLanguageManager extends Manager<I18nLanguage, Long> {
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/I18nTranslationManager.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/I18nTranslationManager.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/I18nTranslationManager.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -22,10 +22,10 @@
import java.util.HashMap;
import java.util.List;
-import org.ourproject.kune.platf.server.domain.I18nTranslation;
import org.ourproject.kune.platf.server.manager.impl.SearchResult;
import cc.kune.core.client.errors.DefaultException;
+import cc.kune.domain.I18nTranslation;
public interface I18nTranslationManager extends Manager<I18nTranslation, Long> {
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/LicenseManager.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/LicenseManager.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/LicenseManager.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -21,7 +21,7 @@
import java.util.List;
-import org.ourproject.kune.platf.server.domain.License;
+import cc.kune.domain.License;
public interface LicenseManager {
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/PropertiesManager.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/PropertiesManager.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/PropertiesManager.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -2,8 +2,8 @@
import java.util.HashMap;
-import org.ourproject.kune.platf.server.domain.Properties;
-import org.ourproject.kune.platf.server.domain.PropertySetted;
+import cc.kune.domain.Properties;
+import cc.kune.domain.PropertySetted;
public interface PropertiesManager extends Manager<Properties, Long> {
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/PropertyGroupManager.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/PropertyGroupManager.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/PropertyGroupManager.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -1,6 +1,6 @@
package org.ourproject.kune.platf.server.manager;
-import org.ourproject.kune.platf.server.domain.PropertyGroup;
+import cc.kune.domain.PropertyGroup;
public interface PropertyGroupManager extends Manager<PropertyGroup, Long> {
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/PropertyManager.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/PropertyManager.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/PropertyManager.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -1,6 +1,6 @@
package org.ourproject.kune.platf.server.manager;
-import org.ourproject.kune.platf.server.domain.Property;
+import cc.kune.domain.Property;
public interface PropertyManager extends Manager<Property, Long> {
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/PropertySettedManager.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/PropertySettedManager.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/PropertySettedManager.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -1,6 +1,6 @@
package org.ourproject.kune.platf.server.manager;
-import org.ourproject.kune.platf.server.domain.PropertySetted;
+import cc.kune.domain.PropertySetted;
public interface PropertySettedManager extends Manager<PropertySetted, Long> {
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/PropertySubgroupManager.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/PropertySubgroupManager.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/PropertySubgroupManager.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -1,6 +1,6 @@
package org.ourproject.kune.platf.server.manager;
-import org.ourproject.kune.platf.server.domain.PropertySubgroup;
+import cc.kune.domain.PropertySubgroup;
public interface PropertySubgroupManager extends Manager<PropertySubgroup, Long> {
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/RateManager.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/RateManager.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/RateManager.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -19,10 +19,11 @@
*/
package org.ourproject.kune.platf.server.manager;
-import org.ourproject.kune.platf.server.domain.Content;
-import org.ourproject.kune.platf.server.domain.Rate;
-import org.ourproject.kune.platf.server.domain.User;
+import cc.kune.domain.Content;
+import cc.kune.domain.Rate;
+import cc.kune.domain.User;
+
public interface RateManager extends Manager<Rate, Long> {
Rate find(User user, Content content);
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/SocialNetworkManager.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/SocialNetworkManager.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/SocialNetworkManager.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -19,15 +19,15 @@
*/
package org.ourproject.kune.platf.server.manager;
-import org.ourproject.kune.platf.server.domain.Group;
-import org.ourproject.kune.platf.server.domain.SocialNetwork;
-import org.ourproject.kune.platf.server.domain.SocialNetworkData;
-import org.ourproject.kune.platf.server.domain.User;
import org.ourproject.kune.platf.server.sn.ParticipationData;
import cc.kune.core.client.errors.AccessViolationException;
import cc.kune.core.client.errors.DefaultException;
import cc.kune.core.shared.dto.SocialNetworkRequestResult;
+import cc.kune.domain.Group;
+import cc.kune.domain.SocialNetwork;
+import cc.kune.domain.User;
+import cc.kune.domain.utils.SocialNetworkData;
public interface SocialNetworkManager extends Manager<SocialNetwork, Long> {
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/TagManager.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/TagManager.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/TagManager.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -19,7 +19,7 @@
*/
package org.ourproject.kune.platf.server.manager;
-import org.ourproject.kune.platf.server.domain.Tag;
+import cc.kune.domain.Tag;
public interface TagManager extends Manager<Tag, Long> {
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/TagUserContentManager.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/TagUserContentManager.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/TagUserContentManager.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -2,13 +2,14 @@
import java.util.List;
-import org.ourproject.kune.platf.server.domain.Content;
-import org.ourproject.kune.platf.server.domain.Group;
-import org.ourproject.kune.platf.server.domain.Tag;
-import org.ourproject.kune.platf.server.domain.TagCloudResult;
-import org.ourproject.kune.platf.server.domain.TagUserContent;
-import org.ourproject.kune.platf.server.domain.User;
+import cc.kune.core.shared.domain.TagCloudResult;
+import cc.kune.domain.Content;
+import cc.kune.domain.Group;
+import cc.kune.domain.Tag;
+import cc.kune.domain.TagUserContent;
+import cc.kune.domain.User;
+
public interface TagUserContentManager extends Manager<TagUserContent, Long> {
List<Tag> find(User user, Content content);
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/TagUserContentManagerDefault.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/TagUserContentManagerDefault.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/TagUserContentManagerDefault.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -7,16 +7,16 @@
import javax.persistence.NoResultException;
import javax.persistence.Query;
-import org.ourproject.kune.platf.server.domain.Content;
-import org.ourproject.kune.platf.server.domain.Group;
-import org.ourproject.kune.platf.server.domain.Tag;
-import org.ourproject.kune.platf.server.domain.TagCloudResult;
-import org.ourproject.kune.platf.server.domain.TagCount;
-import org.ourproject.kune.platf.server.domain.TagUserContent;
-import org.ourproject.kune.platf.server.domain.User;
import org.ourproject.kune.platf.server.manager.impl.DefaultManager;
import cc.kune.core.client.utils.TextUtils;
+import cc.kune.core.shared.domain.TagCloudResult;
+import cc.kune.core.shared.domain.TagCount;
+import cc.kune.domain.Content;
+import cc.kune.domain.Group;
+import cc.kune.domain.Tag;
+import cc.kune.domain.TagUserContent;
+import cc.kune.domain.User;
import com.google.inject.Inject;
import com.google.inject.Provider;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/ToolConfigurationManager.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/ToolConfigurationManager.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/ToolConfigurationManager.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -19,7 +19,7 @@
*/
package org.ourproject.kune.platf.server.manager;
-import org.ourproject.kune.platf.server.domain.ToolConfiguration;
+import cc.kune.domain.ToolConfiguration;
public interface ToolConfigurationManager extends Manager<ToolConfiguration, Long> {
ToolConfiguration persist(ToolConfiguration config);
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/UserManager.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/UserManager.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/UserManager.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -19,11 +19,11 @@
*/
package org.ourproject.kune.platf.server.manager;
-import org.ourproject.kune.platf.server.domain.User;
import org.ourproject.kune.platf.server.manager.impl.SearchResult;
import org.ourproject.kune.platf.server.sn.UserBuddiesData;
import cc.kune.core.client.errors.I18nNotFoundException;
+import cc.kune.domain.User;
public interface UserManager {
/**
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/EntityLogoDownloadManager.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/EntityLogoDownloadManager.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/EntityLogoDownloadManager.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -28,10 +28,10 @@
import javax.servlet.http.HttpServletResponse;
import org.ourproject.kune.platf.client.ui.download.FileConstants;
-import org.ourproject.kune.platf.server.domain.Group;
import org.ourproject.kune.platf.server.manager.GroupManager;
import cc.kune.core.shared.dto.StateToken;
+import cc.kune.domain.Group;
import com.google.inject.Inject;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/EntityLogoUploadManager.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/EntityLogoUploadManager.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/EntityLogoUploadManager.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -34,12 +34,12 @@
import org.ourproject.kune.platf.server.auth.ActionLevel;
import org.ourproject.kune.platf.server.auth.Authenticated;
import org.ourproject.kune.platf.server.auth.Authorizated;
-import org.ourproject.kune.platf.server.domain.BasicMimeType;
-import org.ourproject.kune.platf.server.domain.Group;
import org.ourproject.kune.platf.server.manager.GroupManager;
import cc.kune.core.shared.dto.StateToken;
import cc.kune.core.shared.i18n.I18nTranslationService;
+import cc.kune.domain.BasicMimeType;
+import cc.kune.domain.Group;
import com.google.inject.Inject;
import com.wideplay.warp.persist.TransactionType;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/FileDownloadManager.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/FileDownloadManager.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/FileDownloadManager.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -39,12 +39,12 @@
import org.ourproject.kune.platf.server.auth.Authorizated;
import org.ourproject.kune.platf.server.content.ContentManager;
import org.ourproject.kune.platf.server.content.ContentUtils;
-import org.ourproject.kune.platf.server.domain.BasicMimeType;
-import org.ourproject.kune.platf.server.domain.Content;
import org.ourproject.kune.platf.server.properties.KuneProperties;
import cc.kune.core.client.errors.ContentNotFoundException;
import cc.kune.core.shared.dto.StateToken;
+import cc.kune.domain.BasicMimeType;
+import cc.kune.domain.Content;
import com.google.inject.Inject;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/FileUploadManager.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/FileUploadManager.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/FileUploadManager.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -35,16 +35,16 @@
import org.ourproject.kune.platf.server.auth.Authorizated;
import org.ourproject.kune.platf.server.content.ContentManager;
import org.ourproject.kune.platf.server.content.ContentUtils;
-import org.ourproject.kune.platf.server.domain.BasicMimeType;
-import org.ourproject.kune.platf.server.domain.Container;
-import org.ourproject.kune.platf.server.domain.Content;
-import org.ourproject.kune.platf.server.domain.User;
import org.ourproject.kune.platf.server.manager.FileManager;
import org.ourproject.kune.platf.server.properties.KuneProperties;
import org.ourproject.kune.platf.server.utils.StringW;
import cc.kune.core.shared.dto.StateToken;
import cc.kune.core.shared.i18n.I18nTranslationService;
+import cc.kune.domain.BasicMimeType;
+import cc.kune.domain.Container;
+import cc.kune.domain.Content;
+import cc.kune.domain.User;
import com.google.inject.Inject;
import com.google.inject.servlet.RequestScoped;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/ExtMediaDescripManagerDefault.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/ExtMediaDescripManagerDefault.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/ExtMediaDescripManagerDefault.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -4,9 +4,10 @@
import javax.persistence.EntityManager;
-import org.ourproject.kune.platf.server.domain.ExtMediaDescrip;
import org.ourproject.kune.platf.server.manager.ExtMediaDescripManager;
+import cc.kune.domain.ExtMediaDescrip;
+
import com.google.inject.Inject;
import com.google.inject.Provider;
import com.google.inject.Singleton;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/GroupManagerDefault.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/GroupManagerDefault.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/GroupManagerDefault.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -31,15 +31,6 @@
import org.apache.lucene.queryParser.ParseException;
import org.apache.lucene.search.Query;
import org.hibernate.exception.ConstraintViolationException;
-import org.ourproject.kune.platf.server.domain.AccessLists;
-import org.ourproject.kune.platf.server.domain.AdmissionType;
-import org.ourproject.kune.platf.server.domain.Content;
-import org.ourproject.kune.platf.server.domain.Group;
-import org.ourproject.kune.platf.server.domain.GroupListMode;
-import org.ourproject.kune.platf.server.domain.License;
-import org.ourproject.kune.platf.server.domain.SocialNetwork;
-import org.ourproject.kune.platf.server.domain.ToolConfiguration;
-import org.ourproject.kune.platf.server.domain.User;
import org.ourproject.kune.platf.server.manager.GroupManager;
import org.ourproject.kune.platf.server.manager.LicenseManager;
import org.ourproject.kune.platf.server.properties.DatabaseProperties;
@@ -52,7 +43,16 @@
import cc.kune.core.client.errors.EmailAddressInUseException;
import cc.kune.core.client.errors.GroupNameInUseException;
import cc.kune.core.client.errors.UserMustBeLoggedException;
+import cc.kune.core.shared.domain.AdmissionType;
+import cc.kune.core.shared.domain.GroupListMode;
import cc.kune.core.shared.dto.GroupType;
+import cc.kune.domain.AccessLists;
+import cc.kune.domain.Content;
+import cc.kune.domain.Group;
+import cc.kune.domain.License;
+import cc.kune.domain.SocialNetwork;
+import cc.kune.domain.ToolConfiguration;
+import cc.kune.domain.User;
import com.google.inject.Inject;
import com.google.inject.Provider;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/I18nCountryManagerDefault.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/I18nCountryManagerDefault.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/I18nCountryManagerDefault.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -23,9 +23,10 @@
import javax.persistence.EntityManager;
-import org.ourproject.kune.platf.server.domain.I18nCountry;
import org.ourproject.kune.platf.server.manager.I18nCountryManager;
+import cc.kune.domain.I18nCountry;
+
import com.google.inject.Inject;
import com.google.inject.Provider;
import com.google.inject.Singleton;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/I18nLanguageManagerDefault.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/I18nLanguageManagerDefault.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/I18nLanguageManagerDefault.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -23,9 +23,10 @@
import javax.persistence.EntityManager;
-import org.ourproject.kune.platf.server.domain.I18nLanguage;
import org.ourproject.kune.platf.server.manager.I18nLanguageManager;
+import cc.kune.domain.I18nLanguage;
+
import com.google.inject.Inject;
import com.google.inject.Provider;
import com.google.inject.Singleton;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/I18nTranslationManagerDefault.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/I18nTranslationManagerDefault.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/I18nTranslationManagerDefault.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -25,13 +25,13 @@
import javax.persistence.EntityManager;
-import org.ourproject.kune.platf.server.domain.I18nLanguage;
-import org.ourproject.kune.platf.server.domain.I18nTranslation;
import org.ourproject.kune.platf.server.manager.I18nLanguageManager;
import org.ourproject.kune.platf.server.manager.I18nTranslationManager;
import cc.kune.core.client.errors.DefaultException;
import cc.kune.core.client.utils.TextUtils;
+import cc.kune.domain.I18nLanguage;
+import cc.kune.domain.I18nTranslation;
import com.google.inject.Inject;
import com.google.inject.Provider;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/LicenseManagerDefault.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/LicenseManagerDefault.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/LicenseManagerDefault.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -23,10 +23,11 @@
import javax.persistence.EntityManager;
-import org.ourproject.kune.platf.server.domain.License;
import org.ourproject.kune.platf.server.manager.LicenseManager;
import org.ourproject.kune.platf.server.properties.DatabaseProperties;
+import cc.kune.domain.License;
+
import com.google.inject.Inject;
import com.google.inject.Provider;
import com.google.inject.Singleton;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/PropertiesManagerDefault.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/PropertiesManagerDefault.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/PropertiesManagerDefault.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -6,12 +6,12 @@
import javax.persistence.EntityManager;
-import org.ourproject.kune.platf.server.domain.Properties;
-import org.ourproject.kune.platf.server.domain.Property;
-import org.ourproject.kune.platf.server.domain.PropertySetted;
import org.ourproject.kune.platf.server.manager.PropertiesManager;
import cc.kune.core.client.errors.UnknownPropertyException;
+import cc.kune.domain.Properties;
+import cc.kune.domain.Property;
+import cc.kune.domain.PropertySetted;
import com.google.inject.Inject;
import com.google.inject.Provider;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/PropertyGroupManagerDefault.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/PropertyGroupManagerDefault.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/PropertyGroupManagerDefault.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -2,11 +2,12 @@
import javax.persistence.EntityManager;
-import org.ourproject.kune.platf.server.domain.Properties;
-import org.ourproject.kune.platf.server.domain.PropertyGroup;
import org.ourproject.kune.platf.server.manager.PropertiesManager;
import org.ourproject.kune.platf.server.manager.PropertyGroupManager;
+import cc.kune.domain.Properties;
+import cc.kune.domain.PropertyGroup;
+
import com.google.inject.Inject;
import com.google.inject.Provider;
import com.google.inject.Singleton;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/PropertyManagerDefault.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/PropertyManagerDefault.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/PropertyManagerDefault.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -2,9 +2,10 @@
import javax.persistence.EntityManager;
-import org.ourproject.kune.platf.server.domain.Property;
import org.ourproject.kune.platf.server.manager.PropertyManager;
+import cc.kune.domain.Property;
+
import com.google.inject.Inject;
import com.google.inject.Provider;
import com.google.inject.Singleton;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/PropertySettedManagerDefault.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/PropertySettedManagerDefault.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/PropertySettedManagerDefault.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -2,9 +2,10 @@
import javax.persistence.EntityManager;
-import org.ourproject.kune.platf.server.domain.PropertySetted;
import org.ourproject.kune.platf.server.manager.PropertySettedManager;
+import cc.kune.domain.PropertySetted;
+
import com.google.inject.Inject;
import com.google.inject.Provider;
import com.google.inject.Singleton;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/PropertySubgroupManagerDefault.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/PropertySubgroupManagerDefault.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/PropertySubgroupManagerDefault.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -2,9 +2,10 @@
import javax.persistence.EntityManager;
-import org.ourproject.kune.platf.server.domain.PropertySubgroup;
import org.ourproject.kune.platf.server.manager.PropertySubgroupManager;
+import cc.kune.domain.PropertySubgroup;
+
import com.google.inject.Inject;
import com.google.inject.Provider;
import com.google.inject.Singleton;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/RateManagerDefault.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/RateManagerDefault.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/RateManagerDefault.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -22,11 +22,12 @@
import javax.persistence.EntityManager;
import javax.persistence.NoResultException;
-import org.ourproject.kune.platf.server.domain.Content;
-import org.ourproject.kune.platf.server.domain.Rate;
-import org.ourproject.kune.platf.server.domain.User;
import org.ourproject.kune.platf.server.manager.RateManager;
+import cc.kune.domain.Content;
+import cc.kune.domain.Rate;
+import cc.kune.domain.User;
+
import com.google.inject.Inject;
import com.google.inject.Provider;
import com.google.inject.Singleton;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/SocialNetworkManagerDefault.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/SocialNetworkManagerDefault.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/SocialNetworkManagerDefault.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -26,14 +26,6 @@
import org.ourproject.kune.platf.server.ServerException;
import org.ourproject.kune.platf.server.access.AccessRights;
import org.ourproject.kune.platf.server.access.AccessRightsService;
-import org.ourproject.kune.platf.server.domain.AdmissionType;
-import org.ourproject.kune.platf.server.domain.Group;
-import org.ourproject.kune.platf.server.domain.GroupListMode;
-import org.ourproject.kune.platf.server.domain.SocialNetwork;
-import org.ourproject.kune.platf.server.domain.SocialNetworkData;
-import org.ourproject.kune.platf.server.domain.SocialNetworkVisibility;
-import org.ourproject.kune.platf.server.domain.User;
-import org.ourproject.kune.platf.server.domain.UserBuddiesVisibility;
import org.ourproject.kune.platf.server.manager.SocialNetworkManager;
import org.ourproject.kune.platf.server.manager.UserManager;
import org.ourproject.kune.platf.server.sn.ParticipationData;
@@ -45,8 +37,16 @@
import cc.kune.core.client.errors.DefaultException;
import cc.kune.core.client.errors.LastAdminInGroupException;
import cc.kune.core.client.errors.UserMustBeLoggedException;
+import cc.kune.core.shared.domain.AdmissionType;
+import cc.kune.core.shared.domain.GroupListMode;
+import cc.kune.core.shared.domain.SocialNetworkVisibility;
+import cc.kune.core.shared.domain.UserBuddiesVisibility;
import cc.kune.core.shared.dto.GroupType;
import cc.kune.core.shared.dto.SocialNetworkRequestResult;
+import cc.kune.domain.Group;
+import cc.kune.domain.SocialNetwork;
+import cc.kune.domain.User;
+import cc.kune.domain.utils.SocialNetworkData;
import com.google.inject.Inject;
import com.google.inject.Provider;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/TagManagerDefault.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/TagManagerDefault.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/TagManagerDefault.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -21,9 +21,10 @@
import javax.persistence.EntityManager;
-import org.ourproject.kune.platf.server.domain.Tag;
import org.ourproject.kune.platf.server.manager.TagManager;
+import cc.kune.domain.Tag;
+
import com.google.inject.Inject;
import com.google.inject.Provider;
import com.google.inject.Singleton;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/ToolConfigurationManagerDefault.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/ToolConfigurationManagerDefault.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/ToolConfigurationManagerDefault.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -21,9 +21,10 @@
import javax.persistence.EntityManager;
-import org.ourproject.kune.platf.server.domain.ToolConfiguration;
import org.ourproject.kune.platf.server.manager.ToolConfigurationManager;
+import cc.kune.domain.ToolConfiguration;
+
import com.google.inject.Inject;
import com.google.inject.Provider;
import com.google.inject.Singleton;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/UserManagerDefault.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/UserManagerDefault.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/UserManagerDefault.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -34,11 +34,6 @@
import org.jivesoftware.smack.packet.RosterPacket.ItemType;
import org.ourproject.kune.chat.server.managers.ChatConnection;
import org.ourproject.kune.chat.server.managers.XmppManager;
-import org.ourproject.kune.platf.server.domain.I18nCountry;
-import org.ourproject.kune.platf.server.domain.I18nLanguage;
-import org.ourproject.kune.platf.server.domain.Properties;
-import org.ourproject.kune.platf.server.domain.PropertyGroup;
-import org.ourproject.kune.platf.server.domain.User;
import org.ourproject.kune.platf.server.manager.I18nCountryManager;
import org.ourproject.kune.platf.server.manager.I18nLanguageManager;
import org.ourproject.kune.platf.server.manager.PropertiesManager;
@@ -49,6 +44,11 @@
import cc.kune.core.client.errors.I18nNotFoundException;
import cc.kune.core.shared.i18n.I18nTranslationService;
+import cc.kune.domain.I18nCountry;
+import cc.kune.domain.I18nLanguage;
+import cc.kune.domain.Properties;
+import cc.kune.domain.PropertyGroup;
+import cc.kune.domain.User;
import com.google.inject.Inject;
import com.google.inject.Provider;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/mapper/GroupListModeConverter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/mapper/GroupListModeConverter.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/mapper/GroupListModeConverter.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -25,7 +25,7 @@
import net.sf.dozer.util.mapping.MappingException;
import net.sf.dozer.util.mapping.converters.CustomConverter;
-import org.ourproject.kune.platf.server.domain.GroupListMode;
+import cc.kune.core.shared.domain.GroupListMode;
public class GroupListModeConverter implements CustomConverter {
private final HashMap<String, GroupListMode> stringToEnum;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/rest/ContentJSONService.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/rest/ContentJSONService.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/rest/ContentJSONService.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -22,14 +22,14 @@
import org.ourproject.kune.platf.client.services.SearcherConstants;
import org.ourproject.kune.platf.server.content.ContainerManager;
import org.ourproject.kune.platf.server.content.ContentManager;
-import org.ourproject.kune.platf.server.domain.Container;
-import org.ourproject.kune.platf.server.domain.Content;
import org.ourproject.kune.platf.server.manager.impl.SearchResult;
import org.ourproject.kune.platf.server.mapper.Mapper;
import org.ourproject.kune.rack.filters.rest.REST;
import cc.kune.core.shared.dto.LinkDTO;
import cc.kune.core.shared.dto.SearchResultDTO;
+import cc.kune.domain.Container;
+import cc.kune.domain.Content;
import com.google.inject.Inject;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/rest/GroupJSONService.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/rest/GroupJSONService.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/rest/GroupJSONService.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -20,7 +20,6 @@
package org.ourproject.kune.platf.server.rest;
import org.ourproject.kune.platf.client.services.SearcherConstants;
-import org.ourproject.kune.platf.server.domain.Group;
import org.ourproject.kune.platf.server.manager.GroupManager;
import org.ourproject.kune.platf.server.manager.impl.SearchResult;
import org.ourproject.kune.platf.server.mapper.Mapper;
@@ -28,6 +27,7 @@
import cc.kune.core.shared.dto.LinkDTO;
import cc.kune.core.shared.dto.SearchResultDTO;
+import cc.kune.domain.Group;
import com.google.inject.Inject;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/rest/I18nTranslationJSONService.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/rest/I18nTranslationJSONService.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/rest/I18nTranslationJSONService.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -22,7 +22,6 @@
import java.util.List;
import org.ourproject.kune.platf.client.services.SearcherConstants;
-import org.ourproject.kune.platf.server.domain.I18nTranslation;
import org.ourproject.kune.platf.server.manager.I18nTranslationManager;
import org.ourproject.kune.platf.server.manager.impl.SearchResult;
import org.ourproject.kune.platf.server.mapper.Mapper;
@@ -30,6 +29,7 @@
import cc.kune.core.shared.dto.I18nTranslationDTO;
import cc.kune.core.shared.dto.SearchResultDTO;
+import cc.kune.domain.I18nTranslation;
import com.google.inject.Inject;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/rest/UserJSONService.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/rest/UserJSONService.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/rest/UserJSONService.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -20,7 +20,6 @@
package org.ourproject.kune.platf.server.rest;
import org.ourproject.kune.platf.client.services.SearcherConstants;
-import org.ourproject.kune.platf.server.domain.User;
import org.ourproject.kune.platf.server.manager.UserManager;
import org.ourproject.kune.platf.server.manager.impl.SearchResult;
import org.ourproject.kune.platf.server.mapper.Mapper;
@@ -28,6 +27,7 @@
import cc.kune.core.shared.dto.LinkDTO;
import cc.kune.core.shared.dto.SearchResultDTO;
+import cc.kune.domain.User;
import com.google.inject.Inject;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/rpc/ContentRPC.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/rpc/ContentRPC.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/rpc/ContentRPC.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -39,15 +39,6 @@
import org.ourproject.kune.platf.server.content.ContentManager;
import org.ourproject.kune.platf.server.content.ContentUtils;
import org.ourproject.kune.platf.server.content.CreationService;
-import org.ourproject.kune.platf.server.domain.AccessLists;
-import org.ourproject.kune.platf.server.domain.Comment;
-import org.ourproject.kune.platf.server.domain.Container;
-import org.ourproject.kune.platf.server.domain.Content;
-import org.ourproject.kune.platf.server.domain.ContentStatus;
-import org.ourproject.kune.platf.server.domain.Group;
-import org.ourproject.kune.platf.server.domain.RateResult;
-import org.ourproject.kune.platf.server.domain.TagCloudResult;
-import org.ourproject.kune.platf.server.domain.User;
import org.ourproject.kune.platf.server.manager.GroupManager;
import org.ourproject.kune.platf.server.manager.TagUserContentManager;
import org.ourproject.kune.platf.server.mapper.Mapper;
@@ -62,19 +53,24 @@
import cc.kune.core.client.errors.NoDefaultContentException;
import cc.kune.core.client.errors.ToolNotFoundException;
import cc.kune.core.client.rpcservices.ContentService;
+import cc.kune.core.shared.domain.ContentStatus;
+import cc.kune.core.shared.domain.RateResult;
+import cc.kune.core.shared.domain.TagCloudResult;
import cc.kune.core.shared.dto.AccessRightsDTO;
import cc.kune.core.shared.dto.CommentDTO;
import cc.kune.core.shared.dto.ContentSimpleDTO;
-import cc.kune.core.shared.dto.ContentStatusDTO;
import cc.kune.core.shared.dto.I18nLanguageDTO;
-import cc.kune.core.shared.dto.RateResultDTO;
import cc.kune.core.shared.dto.StateAbstractDTO;
import cc.kune.core.shared.dto.StateContainerDTO;
import cc.kune.core.shared.dto.StateContentDTO;
import cc.kune.core.shared.dto.StateNoContentDTO;
import cc.kune.core.shared.dto.StateToken;
-import cc.kune.core.shared.dto.TagCloudResultDTO;
-import cc.kune.core.shared.dto.TagCountDTO;
+import cc.kune.domain.AccessLists;
+import cc.kune.domain.Comment;
+import cc.kune.domain.Container;
+import cc.kune.domain.Content;
+import cc.kune.domain.Group;
+import cc.kune.domain.User;
import com.google.inject.Inject;
import com.google.inject.Provider;
@@ -244,7 +240,7 @@
@Authenticated(mandatory = false)
@Authorizated(accessRolRequired = AccessRol.Viewer)
@Transactional(type = TransactionType.READ_ONLY)
- public TagCloudResultDTO getSummaryTags(final String userHash, final StateToken groupToken) {
+ public TagCloudResult getSummaryTags(final String userHash, final StateToken groupToken) {
final Group group = groupManager.findByShortName(groupToken.getGroup());
return getSummaryTags(group);
}
@@ -263,14 +259,13 @@
@Authenticated
@Authorizated(accessRolRequired = AccessRol.Viewer)
@Transactional(type = TransactionType.READ_WRITE)
- public RateResultDTO rateContent(final String userHash, final StateToken token, final Double value)
+ public RateResult rateContent(final String userHash, final StateToken token, final Double value)
throws DefaultException {
final User rater = getCurrentUser();
final Long contentId = ContentUtils.parseId(token.getDocument());
if (isUserLoggedIn()) {
- final RateResult result = contentManager.rateContent(rater, contentId, value);
- return mapper.map(result, RateResultDTO.class);
+ return contentManager.rateContent(rater, contentId, value);
} else {
throw new AccessViolationException();
}
@@ -353,9 +348,9 @@
@Authenticated
@Authorizated(accessRolRequired = AccessRol.Editor)
@Transactional(type = TransactionType.READ_WRITE)
- public StateAbstractDTO setStatus(final String userHash, final StateToken token, final ContentStatusDTO status) {
- if (status.equals(ContentStatusDTO.publishedOnline) || status.equals(ContentStatusDTO.rejected)
- || status.equals(ContentStatusDTO.inTheDustbin)) {
+ public StateAbstractDTO setStatus(final String userHash, final StateToken token, final ContentStatus status) {
+ if (status.equals(ContentStatus.publishedOnline) || status.equals(ContentStatus.rejected)
+ || status.equals(ContentStatus.inTheDustbin)) {
throw new AccessViolationException();
}
final Content content = contentManager.setStatus(ContentUtils.parseId(token.getDocument()),
@@ -366,8 +361,7 @@
@Authenticated
@Authorizated(accessRolRequired = AccessRol.Administrator)
@Transactional(type = TransactionType.READ_WRITE)
- public StateAbstractDTO setStatusAsAdmin(final String userHash, final StateToken token,
- final ContentStatusDTO status) {
+ public StateAbstractDTO setStatusAsAdmin(final String userHash, final StateToken token, final ContentStatus status) {
final Content content = contentManager.setStatus(ContentUtils.parseId(token.getDocument()),
ContentStatus.valueOf(status.toString()));
return getState(getCurrentUser(), content);
@@ -376,7 +370,7 @@
@Authenticated
@Authorizated(accessRolRequired = AccessRol.Editor, mustCheckMembership = false)
@Transactional(type = TransactionType.READ_WRITE)
- public TagCloudResultDTO setTags(final String userHash, final StateToken token, final String tags)
+ public TagCloudResult setTags(final String userHash, final StateToken token, final String tags)
throws DefaultException {
final Long contentId = ContentUtils.parseId(token.getDocument());
final User user = getCurrentUser();
@@ -443,10 +437,9 @@
return mapState(state, user);
}
- private TagCloudResultDTO getSummaryTags(final Group group) {
+ private TagCloudResult getSummaryTags(final Group group) {
final TagCloudResult result = tagManager.getTagCloudResultByGroup(group);
- return new TagCloudResultDTO(mapper.mapList(result.getTagCountList(), TagCountDTO.class), result.getMaxValue(),
- result.getMinValue());
+ return result;
}
private UserSession getUserSession() {
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/rpc/GroupRPC.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/rpc/GroupRPC.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/rpc/GroupRPC.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -26,21 +26,19 @@
import org.ourproject.kune.platf.server.auth.Authorizated;
import org.ourproject.kune.platf.server.content.ContentManager;
import org.ourproject.kune.platf.server.content.ContentUtils;
-import org.ourproject.kune.platf.server.domain.AdmissionType;
-import org.ourproject.kune.platf.server.domain.Content;
-import org.ourproject.kune.platf.server.domain.Group;
-import org.ourproject.kune.platf.server.domain.SocialNetworkVisibility;
-import org.ourproject.kune.platf.server.domain.User;
import org.ourproject.kune.platf.server.manager.GroupManager;
import org.ourproject.kune.platf.server.mapper.Mapper;
import cc.kune.core.client.errors.DefaultException;
import cc.kune.core.client.rpcservices.GroupService;
-import cc.kune.core.shared.dto.AdmissionTypeDTO;
+import cc.kune.core.shared.domain.AdmissionType;
+import cc.kune.core.shared.domain.SocialNetworkVisibility;
import cc.kune.core.shared.dto.GroupDTO;
import cc.kune.core.shared.dto.LicenseDTO;
-import cc.kune.core.shared.dto.SocialNetworkVisibilityDTO;
import cc.kune.core.shared.dto.StateToken;
+import cc.kune.domain.Content;
+import cc.kune.domain.Group;
+import cc.kune.domain.User;
import com.google.inject.Inject;
import com.google.inject.Provider;
@@ -126,7 +124,7 @@
@Authorizated(accessRolRequired = AccessRol.Administrator, actionLevel = ActionLevel.group)
@Transactional(type = TransactionType.READ_WRITE)
public void setGroupNewMembersJoiningPolicy(final String userHash, final StateToken token,
- final AdmissionTypeDTO admissionPolicy) {
+ final AdmissionType admissionPolicy) {
final Group group = groupManager.findByShortName(token.getGroup());
group.setAdmissionType(AdmissionType.valueOf(admissionPolicy.toString()));
}
@@ -135,7 +133,7 @@
@Authorizated(accessRolRequired = AccessRol.Administrator, actionLevel = ActionLevel.group)
@Transactional(type = TransactionType.READ_WRITE)
public void setSocialNetworkVisibility(final String userHash, final StateToken token,
- final SocialNetworkVisibilityDTO visibility) {
+ final SocialNetworkVisibility visibility) {
final Group group = groupManager.findByShortName(token.getGroup());
group.getSocialNetwork().setVisibility(SocialNetworkVisibility.valueOf(visibility.toString()));
}
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/rpc/I18nRPC.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/rpc/I18nRPC.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/rpc/I18nRPC.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -26,8 +26,6 @@
import org.ourproject.kune.platf.server.UserSession;
import org.ourproject.kune.platf.server.auth.Authenticated;
-import org.ourproject.kune.platf.server.domain.I18nLanguage;
-import org.ourproject.kune.platf.server.domain.I18nTranslation;
import org.ourproject.kune.platf.server.manager.I18nLanguageManager;
import org.ourproject.kune.platf.server.manager.I18nTranslationManager;
import org.ourproject.kune.platf.server.mapper.Mapper;
@@ -36,6 +34,8 @@
import cc.kune.core.client.errors.SessionExpiredException;
import cc.kune.core.client.rpcservices.I18nService;
import cc.kune.core.shared.dto.I18nLanguageDTO;
+import cc.kune.domain.I18nLanguage;
+import cc.kune.domain.I18nTranslation;
import com.google.inject.Inject;
import com.google.inject.Provider;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/rpc/SocialNetworkRPC.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/rpc/SocialNetworkRPC.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/rpc/SocialNetworkRPC.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -24,8 +24,6 @@
import org.ourproject.kune.platf.server.auth.ActionLevel;
import org.ourproject.kune.platf.server.auth.Authenticated;
import org.ourproject.kune.platf.server.auth.Authorizated;
-import org.ourproject.kune.platf.server.domain.Group;
-import org.ourproject.kune.platf.server.domain.User;
import org.ourproject.kune.platf.server.manager.GroupManager;
import org.ourproject.kune.platf.server.manager.SocialNetworkManager;
import org.ourproject.kune.platf.server.mapper.Mapper;
@@ -35,6 +33,8 @@
import cc.kune.core.shared.dto.SocialNetworkDataDTO;
import cc.kune.core.shared.dto.SocialNetworkRequestResult;
import cc.kune.core.shared.dto.StateToken;
+import cc.kune.domain.Group;
+import cc.kune.domain.User;
import com.google.inject.Inject;
import com.google.inject.Provider;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/rpc/UserRPC.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/rpc/UserRPC.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/rpc/UserRPC.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -28,9 +28,6 @@
import org.ourproject.kune.platf.server.auth.Authenticated;
import org.ourproject.kune.platf.server.auth.Authorizated;
import org.ourproject.kune.platf.server.auth.SessionService;
-import org.ourproject.kune.platf.server.domain.Group;
-import org.ourproject.kune.platf.server.domain.User;
-import org.ourproject.kune.platf.server.domain.UserBuddiesVisibility;
import org.ourproject.kune.platf.server.manager.GroupManager;
import org.ourproject.kune.platf.server.manager.UserManager;
import org.ourproject.kune.platf.server.mapper.Mapper;
@@ -41,10 +38,12 @@
import cc.kune.core.client.errors.DefaultException;
import cc.kune.core.client.errors.UserAuthException;
import cc.kune.core.client.rpcservices.UserService;
+import cc.kune.core.shared.domain.UserBuddiesVisibility;
import cc.kune.core.shared.dto.StateToken;
-import cc.kune.core.shared.dto.UserBuddiesVisibilityDTO;
import cc.kune.core.shared.dto.UserDTO;
import cc.kune.core.shared.dto.UserInfoDTO;
+import cc.kune.domain.Group;
+import cc.kune.domain.User;
import com.google.inject.Inject;
import com.google.inject.Provider;
@@ -135,7 +134,7 @@
@Authorizated(accessRolRequired = AccessRol.Administrator, actionLevel = ActionLevel.group)
@Transactional(type = TransactionType.READ_WRITE)
public void setBuddiesVisibility(final String userHash, final StateToken groupToken,
- final UserBuddiesVisibilityDTO visibility) {
+ final UserBuddiesVisibility visibility) {
final UserSession userSession = getUserSession();
final User user = userSession.getUser();
if (!groupToken.getGroup().equals(user.getShortName())) {
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/sn/ParticipationData.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/sn/ParticipationData.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/sn/ParticipationData.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -21,7 +21,7 @@
import java.util.List;
-import org.ourproject.kune.platf.server.domain.Group;
+import cc.kune.domain.Group;
public class ParticipationData {
private List<Group> groupsIsAdmin;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/sn/UserBuddiesData.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/sn/UserBuddiesData.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/sn/UserBuddiesData.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -22,7 +22,7 @@
import java.util.ArrayList;
import java.util.List;
-import org.ourproject.kune.platf.server.domain.User;
+import cc.kune.domain.User;
public class UserBuddiesData {
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/state/StateAbstract.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/state/StateAbstract.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/state/StateAbstract.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -22,13 +22,13 @@
import java.util.List;
import org.ourproject.kune.platf.server.access.AccessRights;
-import org.ourproject.kune.platf.server.domain.Group;
-import org.ourproject.kune.platf.server.domain.SocialNetwork;
-import org.ourproject.kune.platf.server.domain.SocialNetworkData;
import org.ourproject.kune.platf.server.sn.ParticipationData;
import org.ourproject.kune.platf.server.sn.UserBuddiesData;
import cc.kune.core.shared.dto.StateToken;
+import cc.kune.domain.Group;
+import cc.kune.domain.SocialNetwork;
+import cc.kune.domain.utils.SocialNetworkData;
public abstract class StateAbstract {
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/state/StateContainer.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/state/StateContainer.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/state/StateContainer.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -20,12 +20,13 @@
package org.ourproject.kune.platf.server.state;
import org.ourproject.kune.platf.server.access.AccessRights;
-import org.ourproject.kune.platf.server.domain.AccessLists;
-import org.ourproject.kune.platf.server.domain.Container;
-import org.ourproject.kune.platf.server.domain.I18nLanguage;
-import org.ourproject.kune.platf.server.domain.License;
-import org.ourproject.kune.platf.server.domain.TagCloudResult;
+import cc.kune.core.shared.domain.TagCloudResult;
+import cc.kune.domain.AccessLists;
+import cc.kune.domain.Container;
+import cc.kune.domain.I18nLanguage;
+import cc.kune.domain.License;
+
public class StateContainer extends StateAbstract {
private I18nLanguage language;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/state/StateContent.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/state/StateContent.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/state/StateContent.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -23,10 +23,12 @@
import java.util.List;
import org.ourproject.kune.platf.server.access.AccessRights;
-import org.ourproject.kune.platf.server.domain.BasicMimeType;
-import org.ourproject.kune.platf.server.domain.ContentStatus;
-import org.ourproject.kune.platf.server.domain.User;
+import cc.kune.core.shared.domain.ContentStatus;
+import cc.kune.domain.BasicMimeType;
+import cc.kune.domain.User;
+
+
public class StateContent extends StateContainer {
private String documentId;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/state/StateService.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/state/StateService.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/state/StateService.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -19,10 +19,11 @@
*/
package org.ourproject.kune.platf.server.state;
-import org.ourproject.kune.platf.server.domain.Container;
-import org.ourproject.kune.platf.server.domain.Content;
-import org.ourproject.kune.platf.server.domain.User;
+import cc.kune.domain.Container;
+import cc.kune.domain.Content;
+import cc.kune.domain.User;
+
public interface StateService {
StateContainer create(User userLogged, Container container);
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/state/StateServiceDefault.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/state/StateServiceDefault.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/state/StateServiceDefault.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -21,17 +21,17 @@
import org.ourproject.kune.platf.server.access.AccessRightsService;
import org.ourproject.kune.platf.server.content.ContentManager;
-import org.ourproject.kune.platf.server.domain.Container;
-import org.ourproject.kune.platf.server.domain.Content;
-import org.ourproject.kune.platf.server.domain.Group;
-import org.ourproject.kune.platf.server.domain.License;
-import org.ourproject.kune.platf.server.domain.Revision;
-import org.ourproject.kune.platf.server.domain.User;
import org.ourproject.kune.platf.server.manager.GroupManager;
import org.ourproject.kune.platf.server.manager.SocialNetworkManager;
import org.ourproject.kune.platf.server.manager.TagUserContentManager;
import cc.kune.core.shared.i18n.I18nTranslationService;
+import cc.kune.domain.Container;
+import cc.kune.domain.Content;
+import cc.kune.domain.Group;
+import cc.kune.domain.License;
+import cc.kune.domain.Revision;
+import cc.kune.domain.User;
import com.google.inject.Inject;
import com.google.inject.Singleton;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/tool/ServerTool.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/tool/ServerTool.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/tool/ServerTool.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -19,11 +19,12 @@
*/
package org.ourproject.kune.platf.server.tool;
-import org.ourproject.kune.platf.server.domain.Container;
-import org.ourproject.kune.platf.server.domain.Content;
-import org.ourproject.kune.platf.server.domain.Group;
-import org.ourproject.kune.platf.server.domain.User;
+import cc.kune.domain.Container;
+import cc.kune.domain.Content;
+import cc.kune.domain.Group;
+import cc.kune.domain.User;
+
/**
*
* Tools must have a corresponding module and must be marked asEagerSingleton.
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/users/Link.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/users/Link.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/users/Link.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -21,7 +21,7 @@
import java.util.List;
-import org.ourproject.kune.platf.server.domain.Tag;
+import cc.kune.domain.Tag;
public class Link {
private String shortName;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/users/UserInfo.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/users/UserInfo.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/users/UserInfo.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -21,10 +21,10 @@
import java.util.List;
-import org.ourproject.kune.platf.server.domain.Group;
-import org.ourproject.kune.platf.server.domain.I18nCountry;
-import org.ourproject.kune.platf.server.domain.I18nLanguage;
-import org.ourproject.kune.platf.server.domain.User;
+import cc.kune.domain.Group;
+import cc.kune.domain.I18nCountry;
+import cc.kune.domain.I18nLanguage;
+import cc.kune.domain.User;
public class UserInfo {
private User user;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/users/UserInfoService.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/users/UserInfoService.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/users/UserInfoService.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -19,9 +19,9 @@
*/
package org.ourproject.kune.platf.server.users;
-import org.ourproject.kune.platf.server.domain.User;
import cc.kune.core.client.errors.DefaultException;
+import cc.kune.domain.User;
public interface UserInfoService {
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/users/UserInfoServiceDefault.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/users/UserInfoServiceDefault.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/users/UserInfoServiceDefault.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -19,14 +19,14 @@
*/
package org.ourproject.kune.platf.server.users;
-import org.ourproject.kune.platf.server.domain.Content;
-import org.ourproject.kune.platf.server.domain.Group;
-import org.ourproject.kune.platf.server.domain.User;
import org.ourproject.kune.platf.server.manager.GroupManager;
import org.ourproject.kune.platf.server.manager.SocialNetworkManager;
import org.ourproject.kune.platf.server.sn.ParticipationData;
import cc.kune.core.client.errors.DefaultException;
+import cc.kune.domain.Content;
+import cc.kune.domain.Group;
+import cc.kune.domain.User;
import com.google.inject.Inject;
import com.google.inject.Singleton;
Modified: trunk/src/main/java/org/ourproject/kune/wiki/server/WikiServerTool.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/wiki/server/WikiServerTool.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/wiki/server/WikiServerTool.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -23,14 +23,6 @@
import org.ourproject.kune.platf.server.content.ContainerManager;
import org.ourproject.kune.platf.server.content.ContentManager;
-import org.ourproject.kune.platf.server.domain.AccessLists;
-import org.ourproject.kune.platf.server.domain.Container;
-import org.ourproject.kune.platf.server.domain.Content;
-import org.ourproject.kune.platf.server.domain.ContentStatus;
-import org.ourproject.kune.platf.server.domain.Group;
-import org.ourproject.kune.platf.server.domain.GroupListMode;
-import org.ourproject.kune.platf.server.domain.ToolConfiguration;
-import org.ourproject.kune.platf.server.domain.User;
import org.ourproject.kune.platf.server.manager.ToolConfigurationManager;
import org.ourproject.kune.platf.server.tool.ServerTool;
import org.ourproject.kune.platf.server.tool.ServerToolRegistry;
@@ -38,7 +30,15 @@
import cc.kune.core.client.errors.ContainerNotPermittedException;
import cc.kune.core.client.errors.ContentNotPermittedException;
+import cc.kune.core.shared.domain.ContentStatus;
+import cc.kune.core.shared.domain.GroupListMode;
import cc.kune.core.shared.i18n.I18nTranslationService;
+import cc.kune.domain.AccessLists;
+import cc.kune.domain.Container;
+import cc.kune.domain.Content;
+import cc.kune.domain.Group;
+import cc.kune.domain.ToolConfiguration;
+import cc.kune.domain.User;
import com.google.inject.Inject;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/AbstractFoldableContentActions.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/AbstractFoldableContentActions.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/AbstractFoldableContentActions.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -54,9 +54,9 @@
import cc.kune.core.client.rpcservices.GroupServiceAsync;
import cc.kune.core.client.state.Session;
import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.domain.ContentStatus;
import cc.kune.core.shared.dto.AccessRolDTO;
import cc.kune.core.shared.dto.ContentSimpleDTO;
-import cc.kune.core.shared.dto.ContentStatusDTO;
import cc.kune.core.shared.dto.GroupDTO;
import cc.kune.core.shared.dto.InitDataDTO;
import cc.kune.core.shared.dto.StateAbstractDTO;
@@ -145,15 +145,14 @@
protected abstract void createActions();
protected void createContentModeratedActions(final String parentMenuTitle, final String... contentsModerated) {
- createSetStatusAction(AccessRolDTO.Administrator, i18n.t("Published online"), ContentStatusDTO.publishedOnline,
+ createSetStatusAction(AccessRolDTO.Administrator, i18n.t("Published online"), ContentStatus.publishedOnline,
contentsModerated);
- createSetStatusAction(AccessRolDTO.Editor, i18n.t("Editing in progress"), ContentStatusDTO.editingInProgress,
+ createSetStatusAction(AccessRolDTO.Editor, i18n.t("Editing in progress"), ContentStatus.editingInProgress,
contentsModerated);
- createSetStatusAction(AccessRolDTO.Administrator, i18n.t("Rejected"), ContentStatusDTO.rejected,
- contentsModerated);
+ createSetStatusAction(AccessRolDTO.Administrator, i18n.t("Rejected"), ContentStatus.rejected, contentsModerated);
createSetStatusAction(AccessRolDTO.Editor, i18n.t("Submitted for publish"),
- ContentStatusDTO.submittedForEvaluation, contentsModerated);
- createSetStatusAction(AccessRolDTO.Administrator, i18n.t("In the rubbish bin"), ContentStatusDTO.inTheDustbin,
+ ContentStatus.submittedForEvaluation, contentsModerated);
+ createSetStatusAction(AccessRolDTO.Administrator, i18n.t("In the rubbish bin"), ContentStatus.inTheDustbin,
contentsModerated);
}
@@ -493,7 +492,7 @@
}
protected void createSetStatusAction(final AccessRolDTO rol, final String textDescription,
- final ContentStatusDTO status, final String[] contentsModerated) {
+ final ContentStatus status, final String[] contentsModerated) {
final ActionToolbarMenuRadioDescriptor<StateToken> action = new ActionToolbarMenuRadioDescriptor<StateToken>(
rol, CONTENT_TOPBAR, new Listener<StateToken>() {
public void onEvent(final StateToken stateToken) {
@@ -502,7 +501,7 @@
}, "ContentRadioStatus", new RadioMustBeChecked() {
public boolean mustBeChecked() {
if (session.getContainerState() instanceof StateContentDTO) {
- final ContentStatusDTO currentStatus = session.getContentState().getStatus();
+ final ContentStatus currentStatus = session.getContentState().getStatus();
return status.equals(currentStatus);
}
return false;
@@ -521,7 +520,7 @@
final boolean mustShow = !session.getCurrentUserInfo().getShowDeletedContent();
session.getCurrentUserInfo().setShowDeletedContent(mustShow);
if (!mustShow && session.isCurrentStateAContent()
- && session.getContentState().getStatus().equals(ContentStatusDTO.inTheDustbin)) {
+ && session.getContentState().getStatus().equals(ContentStatus.inTheDustbin)) {
stateManager.gotoToken(session.getCurrentStateToken().getGroup());
}
contextNavigator.clear();
@@ -622,7 +621,7 @@
return new ActionEnableCondition<StateToken>() {
public boolean mustBeEnabled(final StateToken token) {
final boolean isNotDeleted = !(session.isCurrentStateAContent() && session.getContentState().getStatus().equals(
- ContentStatusDTO.inTheDustbin));
+ ContentStatus.inTheDustbin));
return isNotDeleted;
}
};
@@ -637,7 +636,7 @@
}
}
- private void setContentStatus(final ContentStatusDTO status, final StateToken stateToken) {
+ private void setContentStatus(final ContentStatus status, final StateToken stateToken) {
final AsyncCallbackSimple<StateAbstractDTO> callback = new AsyncCallbackSimple<StateAbstractDTO>() {
public void onSuccess(final StateAbstractDTO state) {
if (session.inSameToken(stateToken)) {
@@ -648,8 +647,8 @@
contextNavigator.setItemStatus(stateToken, status);
}
};
- if (status.equals(ContentStatusDTO.publishedOnline) || status.equals(ContentStatusDTO.rejected)
- || status.equals(ContentStatusDTO.inTheDustbin)) {
+ if (status.equals(ContentStatus.publishedOnline) || status.equals(ContentStatus.rejected)
+ || status.equals(ContentStatus.inTheDustbin)) {
contentServiceProvider.get().setStatusAsAdmin(session.getUserHash(), stateToken, status, callback);
} else {
contentServiceProvider.get().setStatus(session.getUserHash(), stateToken, status, callback);
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigator.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigator.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigator.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -21,7 +21,7 @@
import org.ourproject.kune.workspace.client.upload.FileUploader;
-import cc.kune.core.shared.dto.ContentStatusDTO;
+import cc.kune.core.shared.domain.ContentStatus;
import cc.kune.core.shared.dto.StateContainerDTO;
import cc.kune.core.shared.dto.StateToken;
@@ -45,7 +45,7 @@
void setEditOnNextStateChange(boolean edit);
- void setItemStatus(StateToken stateToken, ContentStatusDTO status);
+ void setItemStatus(StateToken stateToken, ContentStatus status);
void setState(StateContainerDTO state, boolean selectItem);
}
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigatorItem.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigatorItem.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigatorItem.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -21,7 +21,7 @@
import org.ourproject.kune.platf.client.actions.ActionItemCollection;
-import cc.kune.core.shared.dto.ContentStatusDTO;
+import cc.kune.core.shared.domain.ContentStatus;
import cc.kune.core.shared.dto.StateToken;
public class ContextNavigatorItem {
@@ -30,21 +30,21 @@
private final String iconUrl;
private final String text;
private final String tooltip;
- private final ContentStatusDTO contentStatusDTO;
+ private final ContentStatus contentStatus;
private final StateToken token;
private final ActionItemCollection<StateToken> actionCollection;
private final boolean allowDrag;
private final boolean allowDrop;
public ContextNavigatorItem(final String id, final String parentId, final String iconUrl, final String text,
- final String tooltip, final ContentStatusDTO contentStatusDTO, final StateToken token,
- final boolean allowDrag, final boolean allowDrop, final ActionItemCollection<StateToken> actionCollection) {
+ final String tooltip, final ContentStatus contentStatus, final StateToken token, final boolean allowDrag,
+ final boolean allowDrop, final ActionItemCollection<StateToken> actionCollection) {
this.id = id;
this.parentId = parentId;
this.iconUrl = iconUrl;
this.text = text;
this.tooltip = tooltip;
- this.contentStatusDTO = contentStatusDTO;
+ this.contentStatus = contentStatus;
this.token = token;
this.allowDrag = allowDrag;
this.allowDrop = allowDrop;
@@ -55,8 +55,8 @@
return actionCollection;
}
- public ContentStatusDTO getContentStatus() {
- return contentStatusDTO;
+ public ContentStatus getContentStatus() {
+ return contentStatus;
}
public String getIconUrl() {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigatorPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigatorPanel.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigatorPanel.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -25,7 +25,7 @@
import org.ourproject.kune.platf.client.ui.noti.NotifyUser;
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
-import cc.kune.core.shared.dto.ContentStatusDTO;
+import cc.kune.core.shared.domain.ContentStatus;
import cc.kune.core.shared.dto.StateToken;
import cc.kune.core.shared.i18n.I18nTranslationService;
@@ -200,7 +200,7 @@
this.isEditable = editable;
}
- public void setItemStatus(final String id, final ContentStatusDTO status) {
+ public void setItemStatus(final String id, final ContentStatus status) {
setNodeStatus(getNode(id), status);
}
@@ -316,7 +316,7 @@
this.mustFireOnTextChange = fireOnTextChange;
}
- private void setNodeStatus(final TreeNode node, final ContentStatusDTO status) {
+ private void setNodeStatus(final TreeNode node, final ContentStatus status) {
switch (status) {
case publishedOnline:
node.setCls("k-ctn-status-normal");
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigatorPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigatorPresenter.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigatorPresenter.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -38,12 +38,12 @@
import cc.kune.core.client.state.Session;
import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.domain.ContentStatus;
import cc.kune.core.shared.dto.AccessRightsDTO;
import cc.kune.core.shared.dto.BasicMimeTypeDTO;
import cc.kune.core.shared.dto.ContainerDTO;
import cc.kune.core.shared.dto.ContainerSimpleDTO;
import cc.kune.core.shared.dto.ContentSimpleDTO;
-import cc.kune.core.shared.dto.ContentStatusDTO;
import cc.kune.core.shared.dto.StateAbstractDTO;
import cc.kune.core.shared.dto.StateContainerDTO;
import cc.kune.core.shared.dto.StateContentDTO;
@@ -159,7 +159,7 @@
editOnNextStateChange = edit;
}
- public void setItemStatus(final StateToken stateToken, final ContentStatusDTO status) {
+ public void setItemStatus(final StateToken stateToken, final ContentStatus status) {
clear();
refreshState();
}
@@ -177,7 +177,7 @@
}
private ActionItemCollection<StateToken> addItem(final String title, final String contentTypeId,
- final BasicMimeTypeDTO mimeType, final ContentStatusDTO status, final StateToken stateToken,
+ final BasicMimeTypeDTO mimeType, final ContentStatus status, final StateToken stateToken,
final StateToken parentStateToken, final AccessRightsDTO rights, final boolean isNodeSelected) {
final ActionItemCollection<StateToken> toolbarActions = actionRegistry.getCurrentActions(stateToken,
contentTypeId, session.isLogged(), rights, true);
@@ -189,7 +189,7 @@
&& rights.isAdministrable(), capabilitiesRegistry.isDropable(contentTypeId)
&& rights.isAdministrable(), actionRegistry.getCurrentActions(stateToken, contentTypeId,
session.isLogged(), rights, false));
- if (status.equals(ContentStatusDTO.inTheDustbin) && !session.getShowDeletedContent()) {
+ if (status.equals(ContentStatus.inTheDustbin) && !session.getShowDeletedContent()) {
// Don't show
} else {
view.addItem(item);
@@ -227,9 +227,10 @@
private void createChildItems(final ContainerDTO container, final AccessRightsDTO containerRights) {
for (final ContainerSimpleDTO siblingFolder : container.getChilds()) {
- addItem(siblingFolder.getName(), siblingFolder.getTypeId(), null, ContentStatusDTO.publishedOnline,
- siblingFolder.getStateToken(), siblingFolder.getStateToken().copy().setFolder(
- siblingFolder.getParentFolderId()), containerRights, false);
+ addItem(siblingFolder.getName(), siblingFolder.getTypeId(), null, ContentStatus.publishedOnline,
+ siblingFolder.getStateToken(),
+ siblingFolder.getStateToken().copy().setFolder(siblingFolder.getParentFolderId()), containerRights,
+ false);
}
for (final ContentSimpleDTO content : container.getContents()) {
addItem(content.getTitle(), content.getTypeId(), content.getMimeType(), content.getStatus(),
@@ -244,7 +245,7 @@
final StateToken parentStateToken = state.copy().clearDocument().setFolder(folder.getParentFolderId());
if (folder.getParentFolderId() != null) {
- addItem(folder.getName(), folder.getTypeId(), null, ContentStatusDTO.publishedOnline, folderStateToken,
+ addItem(folder.getName(), folder.getTypeId(), null, ContentStatus.publishedOnline, folderStateToken,
parentStateToken, rights, false);
} else {
// Root must be already created
@@ -268,8 +269,8 @@
private String getTooltip(final StateToken token, final BasicMimeTypeDTO mimeType) {
if (mimeType != null && (mimeType.isImage() || mimeType.isPdf())) {
- return KuneUiUtils.genQuickTipWithImage(downloadUtilsProvider.get().getImageResizedUrl(token,
- ImageSize.thumb), session.getImgCropsize());
+ return KuneUiUtils.genQuickTipWithImage(
+ downloadUtilsProvider.get().getImageResizedUrl(token, ImageSize.thumb), session.getImgCropsize());
} else {
return null;
}
@@ -325,7 +326,7 @@
} else {
rights = containerRights;
final ActionItemCollection<StateToken> containerActions = addItem(container.getName(),
- container.getTypeId(), null, ContentStatusDTO.publishedOnline, container.getStateToken(),
+ container.getTypeId(), null, ContentStatus.publishedOnline, container.getStateToken(),
container.getStateToken().copy().setFolder(container.getParentFolderId()), containerRights, false);
actionItems.addAll(containerActions);
}
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigatorView.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigatorView.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigatorView.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -21,7 +21,7 @@
import org.ourproject.kune.platf.client.View;
-import cc.kune.core.shared.dto.ContentStatusDTO;
+import cc.kune.core.shared.domain.ContentStatus;
import cc.kune.core.shared.dto.StateToken;
public interface ContextNavigatorView extends View {
@@ -42,7 +42,7 @@
void setEditable(boolean editable);
- void setItemStatus(String id, ContentStatusDTO status);
+ void setItemStatus(String id, ContentStatus status);
void setItemText(String id, String text);
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/cxt/ContextPropEditorPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/cxt/ContextPropEditorPresenter.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/cxt/ContextPropEditorPresenter.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -31,11 +31,11 @@
import cc.kune.core.client.rpcservices.ContentServiceAsync;
import cc.kune.core.client.state.Session;
import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.domain.TagCloudResult;
import cc.kune.core.shared.dto.AccessListsDTO;
import cc.kune.core.shared.dto.I18nLanguageDTO;
import cc.kune.core.shared.dto.StateContainerDTO;
import cc.kune.core.shared.dto.StateContentDTO;
-import cc.kune.core.shared.dto.TagCloudResultDTO;
import cc.kune.core.shared.dto.UserSimpleDTO;
import com.calclab.suco.client.ioc.Provider;
@@ -182,8 +182,8 @@
NotifyUser.showProgressProcessing();
final StateContainerDTO currentState = session.getContentState();
contentServiceProvider.get().setTags(session.getUserHash(), currentState.getStateToken(), tagsString,
- new AsyncCallbackSimple<TagCloudResultDTO>() {
- public void onSuccess(final TagCloudResultDTO result) {
+ new AsyncCallbackSimple<TagCloudResult>() {
+ public void onSuccess(final TagCloudResult result) {
tagsSummaryProvider.get().setGroupTags(result);
NotifyUser.hideProgress();
}
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/rate/RateItPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/rate/RateItPresenter.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/rate/RateItPresenter.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -26,7 +26,7 @@
import cc.kune.core.client.rpcservices.ContentServiceAsync;
import cc.kune.core.client.state.Session;
import cc.kune.core.client.state.StateManager;
-import cc.kune.core.shared.dto.RateResultDTO;
+import cc.kune.core.shared.domain.RateResult;
import cc.kune.core.shared.dto.StateAbstractDTO;
import cc.kune.core.shared.dto.StateContentDTO;
import cc.kune.core.shared.i18n.I18nTranslationService;
@@ -97,8 +97,8 @@
NotifyUser.showProgressProcessing();
final StateAbstractDTO currentState = session.getCurrentState();
contentServiceProvider.get().rateContent(session.getUserHash(), currentState.getStateToken(), newValue,
- new AsyncCallbackSimple<RateResultDTO>() {
- public void onSuccess(final RateResultDTO result) {
+ new AsyncCallbackSimple<RateResult>() {
+ public void onSuccess(final RateResult result) {
NotifyUser.hideProgress();
// NotifyUser.info(i18n.t("Content rated"));
if (currentState.getStateToken().equals(session.getCurrentStateToken())) {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/rate/RatePresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/rate/RatePresenter.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/rate/RatePresenter.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -22,7 +22,7 @@
import org.ourproject.kune.platf.client.registry.ContentCapabilitiesRegistry;
import cc.kune.core.client.state.StateManager;
-import cc.kune.core.shared.dto.RateResultDTO;
+import cc.kune.core.shared.domain.RateResult;
import cc.kune.core.shared.dto.StateAbstractDTO;
import cc.kune.core.shared.dto.StateContentDTO;
@@ -33,7 +33,7 @@
private RateView view;
private final ContentCapabilitiesRegistry capabilitiesRegistry;
- public RatePresenter(final StateManager stateManager, ContentCapabilitiesRegistry capabilitiesRegistry) {
+ public RatePresenter(final StateManager stateManager, final ContentCapabilitiesRegistry capabilitiesRegistry) {
this.capabilitiesRegistry = capabilitiesRegistry;
stateManager.onStateChanged(new Listener<StateAbstractDTO>() {
public void onEvent(final StateAbstractDTO state) {
@@ -50,7 +50,7 @@
this.view = view;
}
- public void setRate(RateResultDTO result) {
+ public void setRate(final RateResult result) {
setRate(result.getRateByUsers(), result.getRate());
}
@@ -58,15 +58,15 @@
view.setVisible(visible);
}
- private void setRate(Integer rateByUsers, Double rate) {
+ private void setRate(final Integer rateByUsers, final Double rate) {
view.setVisible(true);
view.setRate(rate);
view.setByUsers(rateByUsers);
}
private void setState(final StateContentDTO state) {
- Integer rateByUsers = state.getRateByUsers();
- Double rate = state.getRate();
+ final Integer rateByUsers = state.getRateByUsers();
+ final Double rate = state.getRate();
if (capabilitiesRegistry.isRateable(state.getTypeId())) {
setRate(rateByUsers, rate);
} else {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/sitepublic/SitePublicSpaceLinkPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/sitepublic/SitePublicSpaceLinkPresenter.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/sitepublic/SitePublicSpaceLinkPresenter.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -22,7 +22,7 @@
import org.ourproject.kune.platf.client.View;
import cc.kune.core.client.state.StateManager;
-import cc.kune.core.shared.dto.ContentStatusDTO;
+import cc.kune.core.shared.domain.ContentStatus;
import cc.kune.core.shared.dto.GroupListDTO;
import cc.kune.core.shared.dto.StateAbstractDTO;
import cc.kune.core.shared.dto.StateContainerDTO;
@@ -61,8 +61,8 @@
final String publicUrl = stateTokenUtils.getPublicUrl(token);
view.setContentGotoPublicUrl(publicUrl);
if (state instanceof StateContentDTO) {
- StateContentDTO content = (StateContentDTO) state;
- if (content.getStatus().equals(ContentStatusDTO.publishedOnline)) {
+ final StateContentDTO content = (StateContentDTO) state;
+ if (content.getStatus().equals(ContentStatus.publishedOnline)) {
view.setContentPublic(true);
} else {
view.setContentPublic(false);
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/BuddiesSummaryPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/BuddiesSummaryPresenter.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/BuddiesSummaryPresenter.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -41,12 +41,12 @@
import cc.kune.core.client.state.AccessRightsClientManager;
import cc.kune.core.client.state.Session;
import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.domain.UserBuddiesVisibility;
import cc.kune.core.shared.dto.AccessRightsDTO;
import cc.kune.core.shared.dto.AccessRolDTO;
import cc.kune.core.shared.dto.SocialNetworkDataDTO;
import cc.kune.core.shared.dto.StateAbstractDTO;
import cc.kune.core.shared.dto.UserBuddiesDataDTO;
-import cc.kune.core.shared.dto.UserBuddiesVisibilityDTO;
import cc.kune.core.shared.dto.UserSimpleDTO;
import cc.kune.core.shared.i18n.I18nTranslationService;
@@ -138,8 +138,9 @@
}
}
toolbar.disableMenusAndClearButtons();
- toolbar.addActions(actionRegistry.getCurrentActions(session.getCurrentUser(), session.isLogged(),
- state.getGroupRights(), true), ActionToolbar.IN_ANY);
+ toolbar.addActions(
+ actionRegistry.getCurrentActions(session.getCurrentUser(), session.isLogged(),
+ state.getGroupRights(), true), ActionToolbar.IN_ANY);
toolbar.attach();
view.show();
} else {
@@ -164,8 +165,7 @@
actionRegistry.addAction(addNewBuddiesAction);
}
- private void createSetBuddiesVisibilityAction(final String textDescription,
- final UserBuddiesVisibilityDTO visibility) {
+ private void createSetBuddiesVisibilityAction(final String textDescription, final UserBuddiesVisibility visibility) {
final ActionToolbarMenuRadioDescriptor<UserSimpleDTO> buddiesVisibilityAction = new ActionToolbarMenuRadioDescriptor<UserSimpleDTO>(
AccessRolDTO.Administrator, buddiesBottom, new Listener<UserSimpleDTO>() {
public void onEvent(final UserSimpleDTO parameter) {
@@ -222,9 +222,9 @@
actionRegistry.addAction(go);
createAddNewBuddiesAction();
- createSetBuddiesVisibilityAction(i18n.t("anyone"), UserBuddiesVisibilityDTO.anyone);
- createSetBuddiesVisibilityAction(i18n.t("only your buddies"), UserBuddiesVisibilityDTO.yourbuddies);
- createSetBuddiesVisibilityAction(i18n.t("only you"), UserBuddiesVisibilityDTO.onlyyou);
+ createSetBuddiesVisibilityAction(i18n.t("anyone"), UserBuddiesVisibility.anyone);
+ createSetBuddiesVisibilityAction(i18n.t("only your buddies"), UserBuddiesVisibility.yourbuddies);
+ createSetBuddiesVisibilityAction(i18n.t("only you"), UserBuddiesVisibility.onlyyou);
}
}
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/GroupMembersSummaryPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/GroupMembersSummaryPresenter.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/GroupMembersSummaryPresenter.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -43,16 +43,16 @@
import cc.kune.core.client.state.AccessRightsClientManager;
import cc.kune.core.client.state.Session;
import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.domain.AdmissionType;
+import cc.kune.core.shared.domain.SocialNetworkVisibility;
import cc.kune.core.shared.dto.AccessListsDTO;
import cc.kune.core.shared.dto.AccessRightsDTO;
import cc.kune.core.shared.dto.AccessRolDTO;
-import cc.kune.core.shared.dto.AdmissionTypeDTO;
import cc.kune.core.shared.dto.GroupDTO;
import cc.kune.core.shared.dto.InitDataDTO;
import cc.kune.core.shared.dto.LinkDTO;
import cc.kune.core.shared.dto.SocialNetworkDTO;
import cc.kune.core.shared.dto.SocialNetworkDataDTO;
-import cc.kune.core.shared.dto.SocialNetworkVisibilityDTO;
import cc.kune.core.shared.dto.StateAbstractDTO;
import cc.kune.core.shared.dto.StateToken;
@@ -173,14 +173,14 @@
// groupActionRegistry.addAction(unJoin);
// groupActionRegistry.addAction(participate);
- createSetMembersVisibilityAction(i18n.t("anyone"), SocialNetworkVisibilityDTO.anyone);
- createSetMembersVisibilityAction(i18n.t("only members"), SocialNetworkVisibilityDTO.onlymembers);
- createSetMembersVisibilityAction(i18n.t("only admins"), SocialNetworkVisibilityDTO.onlyadmins);
- createNewMembersPolicyAction(i18n.t("moderate request to join"), AdmissionTypeDTO.Moderated);
- createNewMembersPolicyAction(i18n.t("auto accept request to join"), AdmissionTypeDTO.Open);
+ createSetMembersVisibilityAction(i18n.t("anyone"), SocialNetworkVisibility.anyone);
+ createSetMembersVisibilityAction(i18n.t("only members"), SocialNetworkVisibility.onlymembers);
+ createSetMembersVisibilityAction(i18n.t("only admins"), SocialNetworkVisibility.onlyadmins);
+ createNewMembersPolicyAction(i18n.t("moderate request to join"), AdmissionType.Moderated);
+ createNewMembersPolicyAction(i18n.t("auto accept request to join"), AdmissionType.Open);
}
- private void createNewMembersPolicyAction(final String textDescription, final AdmissionTypeDTO admissionPolicy) {
+ private void createNewMembersPolicyAction(final String textDescription, final AdmissionType admissionPolicy) {
final ActionToolbarMenuRadioDescriptor<StateToken> newMembersPolicy = new ActionToolbarMenuRadioDescriptor<StateToken>(
AccessRolDTO.Administrator, membersBottom, new Listener<StateToken>() {
public void onEvent(final StateToken parameter) {
@@ -204,8 +204,7 @@
groupActionRegistry.addAction(newMembersPolicy);
}
- private void createSetMembersVisibilityAction(final String textDescription,
- final SocialNetworkVisibilityDTO visibility) {
+ private void createSetMembersVisibilityAction(final String textDescription, final SocialNetworkVisibility visibility) {
final ActionToolbarMenuRadioDescriptor<StateToken> showMembers = new ActionToolbarMenuRadioDescriptor<StateToken>(
AccessRolDTO.Administrator, membersBottom, new Listener<StateToken>() {
public void onEvent(final StateToken parameter) {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/tags/TagsSummary.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/tags/TagsSummary.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/tags/TagsSummary.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -19,10 +19,10 @@
*/
package org.ourproject.kune.workspace.client.tags;
-import cc.kune.core.shared.dto.TagCloudResultDTO;
+import cc.kune.core.shared.domain.TagCloudResult;
public interface TagsSummary {
- void setGroupTags(TagCloudResultDTO tagCloud);
+ void setGroupTags(TagCloudResult tagCloud);
}
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/tags/TagsSummaryPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/tags/TagsSummaryPresenter.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/tags/TagsSummaryPresenter.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -25,10 +25,10 @@
import cc.kune.core.client.state.Session;
import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.domain.TagCloudResult;
+import cc.kune.core.shared.domain.TagCount;
import cc.kune.core.shared.dto.StateAbstractDTO;
import cc.kune.core.shared.dto.StateContainerDTO;
-import cc.kune.core.shared.dto.TagCloudResultDTO;
-import cc.kune.core.shared.dto.TagCountDTO;
import com.allen_sauer.gwt.log.client.Log;
import com.calclab.suco.client.events.Listener;
@@ -72,7 +72,7 @@
this.view = view;
}
- public void setGroupTags(final TagCloudResultDTO tagCloud) {
+ public void setGroupTags(final TagCloudResult tagCloud) {
setCloud(tagCloud);
view.expand();
}
@@ -87,14 +87,14 @@
}
}
- private void setCloud(final TagCloudResultDTO tagCloudResult) {
+ private void setCloud(final TagCloudResult tagCloudResult) {
// Inspired in snippet http://www.bytemycode.com/snippets/snippet/415/
view.clear();
final int max = tagCloudResult.getMaxValue();
final int min = tagCloudResult.getMinValue();
final int diff = max - min;
final int step = (MAXSIZE - MINSIZE) / (diff == 0 ? 1 : diff);
- for (final TagCountDTO tagCount : tagCloudResult.getTagCountList()) {
+ for (final TagCount tagCount : tagCloudResult.getTagCountList()) {
final int size = Math.round((MINSIZE + (tagCount.getCount().floatValue() - min) * step));
view.addTag(tagCount.getName(), tagCount.getCount(), "kune-ft" + size + "px");
}
Modified: trunk/src/main/resources/dozerBeanMapping.xml
===================================================================
--- trunk/src/main/resources/dozerBeanMapping.xml 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/resources/dozerBeanMapping.xml 2010-12-16 02:20:33 UTC (rev 1167)
@@ -14,23 +14,23 @@
<a>licenses</a>
<b>licenses</b>
<a-hint> cc.kune.core.shared.dto.LicenseDTO </a-hint>
- <b-hint> org.ourproject.kune.platf.server.domain.License </b-hint>
+ <b-hint> cc.kune.domain.License </b-hint>
</field>
<field>
<a>languages</a>
<b>languages</b>
<a-hint> cc.kune.core.shared.dto.I18nLanguageSimpleDTO </a-hint>
- <b-hint> org.ourproject.kune.platf.server.domain.I18nLanguage </b-hint>
+ <b-hint> cc.kune.domain.I18nLanguage </b-hint>
</field>
<field>
<a>countries</a>
<b>countries</b>
<a-hint> cc.kune.core.shared.dto.I18nCountryDTO </a-hint>
- <b-hint> org.ourproject.kune.platf.server.domain.I18nCountry </b-hint>
+ <b-hint> cc.kune.domain.I18nCountry </b-hint>
</field>
</mapping>
<mapping>
- <class-a>org.ourproject.kune.platf.server.domain.Group</class-a>
+ <class-a>cc.kune.domain.Group</class-a>
<class-b>cc.kune.core.shared.dto.GroupDTO</class-b>
<field type="one-way">
<a>hasLogo</a>
@@ -39,12 +39,12 @@
</mapping>
<mapping>
<class-a> cc.kune.core.shared.dto.GroupListDTO </class-a>
- <class-b> org.ourproject.kune.platf.server.domain.GroupList </class-b>
+ <class-b> cc.kune.domain.GroupList </class-b>
<field>
<a>list</a>
<b>list</b>
<a-hint> cc.kune.core.shared.dto.GroupDTO </a-hint>
- <b-hint> org.ourproject.kune.platf.server.domain.Group </b-hint>
+ <b-hint> cc.kune.domain.Group </b-hint>
</field>
<field
custom-converter="org.ourproject.kune.platf.server.mapper.GroupListModeConverter">
@@ -54,24 +54,24 @@
</mapping>
<mapping>
<class-a> cc.kune.core.shared.dto.AccessListsDTO </class-a>
- <class-b> org.ourproject.kune.platf.server.domain.AccessLists </class-b>
+ <class-b> cc.kune.domain.AccessLists </class-b>
<field>
<a>admins</a>
<b>admins</b>
<a-hint> cc.kune.core.shared.dto.GroupListDTO </a-hint>
- <b-hint> org.ourproject.kune.platf.server.domain.GroupList </b-hint>
+ <b-hint> cc.kune.domain.GroupList </b-hint>
</field>
<field>
<a>editors</a>
<b>editors</b>
<a-hint> cc.kune.core.shared.dto.GroupListDTO </a-hint>
- <b-hint> org.ourproject.kune.platf.server.domain.GroupList </b-hint>
+ <b-hint> cc.kune.domain.GroupList </b-hint>
</field>
<field>
<a>viewers</a>
<b>viewers</b>
<a-hint> cc.kune.core.shared.dto.GroupListDTO </a-hint>
- <b-hint> org.ourproject.kune.platf.server.domain.GroupList </b-hint>
+ <b-hint> cc.kune.domain.GroupList </b-hint>
</field>
</mapping>
<mapping>
@@ -85,18 +85,12 @@
<a>authors</a>
<b>authors</b>
<a-hint> cc.kune.core.shared.dto.UserSimpleDTO </a-hint>
- <b-hint> org.ourproject.kune.platf.server.domain.User </b-hint>
+ <b-hint> cc.kune.domain.User </b-hint>
</field>
</mapping>
<mapping>
<class-a>cc.kune.core.shared.dto.StateContainerDTO</class-a>
<class-b>org.ourproject.kune.platf.server.state.StateContainer</class-b>
- <field>
- <a>tagCloudResult</a>
- <b>tagCloudResult</b>
- <a-hint> cc.kune.core.shared.dto.TagCloudResultDTO </a-hint>
- <b-hint> org.ourproject.kune.platf.server.domain.TagCloudResult </b-hint>
- </field>
</mapping>
<mapping>
<class-a>cc.kune.core.shared.dto.StateAbstractDTO</class-a>
@@ -112,15 +106,15 @@
</mapping>
<mapping>
<class-a> cc.kune.core.shared.dto.BasicMimeTypeDTO </class-a>
- <class-b> org.ourproject.kune.platf.server.domain.BasicMimeType </class-b>
+ <class-b> cc.kune.domain.BasicMimeType </class-b>
</mapping>
<mapping>
<class-a> cc.kune.core.shared.dto.LicenseDTO </class-a>
- <class-b> org.ourproject.kune.platf.server.domain.License </class-b>
+ <class-b> cc.kune.domain.License </class-b>
</mapping>
<mapping>
<class-a> cc.kune.core.shared.dto.ContainerSimpleDTO </class-a>
- <class-b> org.ourproject.kune.platf.server.domain.Container </class-b>
+ <class-b> cc.kune.domain.Container </class-b>
<field>
<a get-method="getStateToken">stateToken</a>
<b>stateToken</b>
@@ -128,7 +122,7 @@
</mapping>
<mapping>
<class-a> cc.kune.core.shared.dto.ContentSimpleDTO </class-a>
- <class-b> org.ourproject.kune.platf.server.domain.Content </class-b>
+ <class-b> cc.kune.domain.Content </class-b>
<field>
<a>title</a>
<b>lastRevision.title</b>
@@ -139,7 +133,7 @@
</field>
</mapping>
<mapping type="one-way">
- <class-a> org.ourproject.kune.platf.server.domain.Content </class-a>
+ <class-a> cc.kune.domain.Content </class-a>
<class-b>cc.kune.core.shared.dto.LinkDTO</class-b>
<field>
<a>lastRevision.title</a>
@@ -156,24 +150,24 @@
</mapping>
<mapping>
<class-a> cc.kune.core.shared.dto.ContainerDTO </class-a>
- <class-b> org.ourproject.kune.platf.server.domain.Container </class-b>
+ <class-b> cc.kune.domain.Container </class-b>
<field>
<a>contents</a>
<b>contents</b>
<a-hint> cc.kune.core.shared.dto.ContentSimpleDTO </a-hint>
- <b-hint> org.ourproject.kune.platf.server.domain.Content </b-hint>
+ <b-hint> cc.kune.domain.Content </b-hint>
</field>
<field>
<a>absolutePath</a>
<b>absolutePath</b>
<a-hint> cc.kune.core.shared.dto.ContainerSimpleDTO </a-hint>
- <b-hint> org.ourproject.kune.platf.server.domain.Container </b-hint>
+ <b-hint> cc.kune.domain.Container </b-hint>
</field>
<field>
<a>childs</a>
<b>childs</b>
<a-hint> cc.kune.core.shared.dto.ContainerSimpleDTO </a-hint>
- <b-hint> org.ourproject.kune.platf.server.domain.Container </b-hint>
+ <b-hint> cc.kune.domain.Container </b-hint>
</field>
<field>
<a get-method="getStateToken">stateToken</a>
@@ -187,7 +181,7 @@
<a>user</a>
<b>user</b>
<a-hint> cc.kune.core.shared.dto.UserSimpleDTO </a-hint>
- <b-hint> org.ourproject.kune.platf.server.domain.User </b-hint>
+ <b-hint> cc.kune.domain.User </b-hint>
</field>
</mapping>
<mapping>
@@ -196,14 +190,14 @@
</mapping>
<mapping>
<class-a> cc.kune.core.shared.dto.I18nLanguageDTO </class-a>
- <class-b> org.ourproject.kune.platf.server.domain.I18nLanguage </class-b>
+ <class-b> cc.kune.domain.I18nLanguage </class-b>
</mapping>
<mapping>
<class-a> cc.kune.core.shared.dto.I18nCountryDTO </class-a>
- <class-b> org.ourproject.kune.platf.server.domain.I18nCountry </class-b>
+ <class-b> cc.kune.domain.I18nCountry </class-b>
</mapping>
<mapping>
- <class-a>org.ourproject.kune.platf.server.domain.User</class-a>
+ <class-a>cc.kune.domain.User</class-a>
<class-b>cc.kune.core.shared.dto.UserSimpleDTO</class-b>
<field type="one-way">
<a>hasLogo</a>
@@ -216,33 +210,21 @@
</mapping>
<mapping>
<class-a>cc.kune.core.shared.dto.TagDTO</class-a>
- <class-b>org.ourproject.kune.platf.server.domain.Tag</class-b>
+ <class-b>cc.kune.domain.Tag</class-b>
</mapping>
<mapping>
- <class-a> cc.kune.core.shared.dto.TagCloudResultDTO </class-a>
- <class-b> org.ourproject.kune.platf.server.domain.TagCloudResult </class-b>
- </mapping>
- <mapping>
- <class-a> cc.kune.core.shared.dto.TagCountDTO </class-a>
- <class-b> org.ourproject.kune.platf.server.domain.TagCount </class-b>
- </mapping>
- <mapping>
- <class-a> cc.kune.core.shared.dto.RateResultDTO </class-a>
- <class-b> org.ourproject.kune.platf.server.domain.RateResult </class-b>
- </mapping>
- <mapping>
- <class-a> org.ourproject.kune.platf.server.domain.Comment </class-a>
+ <class-a> cc.kune.domain.Comment </class-a>
<class-b> cc.kune.core.shared.dto.CommentDTO </class-b>
<field>
<a>author</a>
<b>author</b>
- <a-hint> org.ourproject.kune.platf.server.domain.User </a-hint>
+ <a-hint> cc.kune.domain.User </a-hint>
<b-hint> cc.kune.core.shared.dto.UserSimpleDTO </b-hint>
</field>
<field>
<a>childs</a>
<b>childs</b>
- <a-hint> org.ourproject.kune.platf.server.domain.Comment </a-hint>
+ <a-hint> cc.kune.domain.Comment </a-hint>
<b-hint> cc.kune.core.shared.dto.CommentDTO </b-hint>
</field>
<field type="one-way">
@@ -260,35 +242,13 @@
</mapping>
<mapping>
<class-a>cc.kune.core.shared.dto.LinkDTO</class-a>
- <class-b>org.ourproject.kune.platf.server.domain.User</class-b>
+ <class-b>cc.kune.domain.User</class-b>
<field>
<a>longName</a>
<b>name</b>
</field>
</mapping>
<mapping>
- <class-a> cc.kune.core.shared.dto.ChatUserParamsDTO </class-a>
- <class-b> org.ourproject.kune.platf.server.domain.ChatUserParams </class-b>
- </mapping>
- <mapping>
- <class-a> cc.kune.core.shared.dto.SocialNetworkVisibilityDTO </class-a>
- <class-b>
- org.ourproject.kune.platf.server.domain.SocialNetworkVisibility </class-b>
- </mapping>
- <mapping>
- <class-a> cc.kune.core.shared.dto.AdmissionTypeDTO </class-a>
- <class-b> org.ourproject.kune.platf.server.domain.AdmissionType </class-b>
- </mapping>
- <mapping>
- <class-a> cc.kune.core.shared.dto.UserBuddiesVisibilityDTO </class-a>
- <class-b>
- org.ourproject.kune.platf.server.domain.UserBuddiesVisibility </class-b>
- </mapping>
- <mapping>
- <class-a> cc.kune.core.shared.dto.ContentStatusDTO </class-a>
- <class-b> org.ourproject.kune.platf.server.domain.ContentStatus </class-b>
- </mapping>
- <mapping>
<class-a> cc.kune.core.shared.dto.AccessRolDTO </class-a>
<class-b> org.ourproject.kune.platf.server.access.AccessRol </class-b>
</mapping>
@@ -302,6 +262,6 @@
</mapping>
<mapping>
<class-a> cc.kune.core.shared.dto.SocialNetworkDataDTO </class-a>
- <class-b> org.ourproject.kune.platf.server.domain.SocialNetworkData </class-b>
+ <class-b> cc.kune.domain.utils.SocialNetworkData </class-b>
</mapping>
</mappings>
\ No newline at end of file
Modified: trunk/src/main/resources/log4j.properties
===================================================================
--- trunk/src/main/resources/log4j.properties 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/main/resources/log4j.properties 2010-12-16 02:20:33 UTC (rev 1167)
@@ -1,5 +1,17 @@
-log4j.rootLogger=ERROR, stdout
+log4j.rootLogger=error, stdout
log4j.logger.org.ourproject=DEBUG;
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
-log4j.appender.stdout.layout.ConversionPattern=%d [%t] %-5p - %m%n
\ No newline at end of file
+
+# Print the date in ISO 8601 format
+log4j.appender.stdout.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
+
+log4j.appender.R=org.apache.log4j.RollingFileAppender
+log4j.appender.R.File=application.log
+
+log4j.appender.R.MaxFileSize=100KB
+# Keep one backup file
+log4j.appender.R.MaxBackupIndex=1
+
+log4j.appender.R.layout=org.apache.log4j.PatternLayout
+log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n
Modified: trunk/src/test/java/org/ourproject/kune/platf/integration/DatabaseInitializationTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/integration/DatabaseInitializationTest.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/test/java/org/ourproject/kune/platf/integration/DatabaseInitializationTest.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -12,16 +12,17 @@
import org.ourproject.kune.docs.server.DocumentServerTool;
import org.ourproject.kune.platf.server.content.ContainerManager;
import org.ourproject.kune.platf.server.content.ContentManager;
-import org.ourproject.kune.platf.server.domain.Container;
-import org.ourproject.kune.platf.server.domain.Content;
-import org.ourproject.kune.platf.server.domain.Group;
-import org.ourproject.kune.platf.server.domain.ToolConfiguration;
import org.ourproject.kune.platf.server.manager.GroupManager;
import org.ourproject.kune.platf.server.manager.I18nCountryManager;
import org.ourproject.kune.platf.server.manager.I18nLanguageManager;
import org.ourproject.kune.platf.server.manager.I18nTranslationManager;
import org.ourproject.kune.platf.server.manager.LicenseManager;
+import cc.kune.domain.Container;
+import cc.kune.domain.Content;
+import cc.kune.domain.Group;
+import cc.kune.domain.ToolConfiguration;
+
import com.google.inject.Inject;
import com.wideplay.warp.persist.Transactional;
Modified: trunk/src/test/java/org/ourproject/kune/platf/integration/content/ContentServiceVariousTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/integration/content/ContentServiceVariousTest.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/test/java/org/ourproject/kune/platf/integration/content/ContentServiceVariousTest.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -1,9 +1,6 @@
package org.ourproject.kune.platf.integration.content;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.*;
import java.util.List;
@@ -15,14 +12,14 @@
import org.ourproject.kune.platf.integration.IntegrationTestHelper;
import cc.kune.core.client.errors.AccessViolationException;
+import cc.kune.core.shared.domain.TagCloudResult;
+import cc.kune.core.shared.domain.TagCount;
import cc.kune.core.shared.dto.ContainerDTO;
import cc.kune.core.shared.dto.ContentSimpleDTO;
import cc.kune.core.shared.dto.StateAbstractDTO;
import cc.kune.core.shared.dto.StateContainerDTO;
import cc.kune.core.shared.dto.StateContentDTO;
import cc.kune.core.shared.dto.StateToken;
-import cc.kune.core.shared.dto.TagCloudResultDTO;
-import cc.kune.core.shared.dto.TagCountDTO;
import cc.kune.core.shared.dto.UserSimpleDTO;
public class ContentServiceVariousTest extends ContentServiceIntegrationTest {
@@ -151,9 +148,8 @@
@Test
public void setTagsAndResults() throws Exception {
contentService.setTags(getHash(), defaultContent.getStateToken(), "bfoo cfoa afoo2");
- final TagCloudResultDTO cloudResultDTO = contentService.getSummaryTags(getHash(),
- defaultContent.getStateToken());
- checkResult(cloudResultDTO);
+ final TagCloudResult cloudResult = contentService.getSummaryTags(getHash(), defaultContent.getStateToken());
+ checkResult(cloudResult);
checkResult(((StateContentDTO) contentService.getContent(getHash(), defaultContent.getStateToken())).getTagCloudResult());
}
@@ -207,22 +203,22 @@
assertEquals(newTitle, folderAgain.getContainer().getName());
}
- private void checkResult(final TagCloudResultDTO cloudResultDTO) {
- assertNotNull(cloudResultDTO.getTagCountList());
- final List<TagCountDTO> summaryTags = cloudResultDTO.getTagCountList();
+ private void checkResult(final TagCloudResult cloudResult) {
+ assertNotNull(cloudResult.getTagCountList());
+ final List<TagCount> summaryTags = cloudResult.getTagCountList();
assertEquals(3, summaryTags.size());
- TagCountDTO tagResultDTO = summaryTags.get(0);
- assertEquals("afoo2", tagResultDTO.getName());
- assertEquals(1, (long) tagResultDTO.getCount());
+ TagCount tagResult = summaryTags.get(0);
+ assertEquals("afoo2", tagResult.getName());
+ assertEquals(1, (long) tagResult.getCount());
- tagResultDTO = summaryTags.get(1);
- assertEquals("bfoo", tagResultDTO.getName());
- assertEquals(1, (long) tagResultDTO.getCount());
+ tagResult = summaryTags.get(1);
+ assertEquals("bfoo", tagResult.getName());
+ assertEquals(1, (long) tagResult.getCount());
- tagResultDTO = summaryTags.get(2);
- assertEquals("cfoa", tagResultDTO.getName());
- assertEquals(1, (long) tagResultDTO.getCount());
+ tagResult = summaryTags.get(2);
+ assertEquals("cfoa", tagResult.getName());
+ assertEquals(1, (long) tagResult.getCount());
}
}
Modified: trunk/src/test/java/org/ourproject/kune/platf/integration/kuneservice/GroupServiceTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/integration/kuneservice/GroupServiceTest.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/test/java/org/ourproject/kune/platf/integration/kuneservice/GroupServiceTest.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -7,14 +7,14 @@
import org.ourproject.kune.platf.integration.IntegrationTest;
import org.ourproject.kune.platf.integration.IntegrationTestHelper;
import org.ourproject.kune.platf.server.UserSession;
-import org.ourproject.kune.platf.server.domain.AdmissionType;
-import org.ourproject.kune.platf.server.domain.Group;
import cc.kune.core.client.errors.UserMustBeLoggedException;
import cc.kune.core.client.rpcservices.GroupService;
+import cc.kune.core.shared.domain.AdmissionType;
import cc.kune.core.shared.dto.GroupDTO;
import cc.kune.core.shared.dto.GroupType;
import cc.kune.core.shared.dto.LicenseDTO;
+import cc.kune.domain.Group;
import com.google.inject.Inject;
Modified: trunk/src/test/java/org/ourproject/kune/platf/integration/site/SiteServiceTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/integration/site/SiteServiceTest.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/test/java/org/ourproject/kune/platf/integration/site/SiteServiceTest.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -11,12 +11,12 @@
import org.ourproject.kune.platf.integration.IntegrationTest;
import org.ourproject.kune.platf.integration.IntegrationTestHelper;
import org.ourproject.kune.platf.server.UserSession;
-import org.ourproject.kune.platf.server.domain.Group;
import org.ourproject.kune.platf.server.manager.I18nLanguageManager;
import cc.kune.core.client.rpcservices.SiteService;
import cc.kune.core.shared.dto.InitDataDTO;
import cc.kune.core.shared.dto.LicenseDTO;
+import cc.kune.domain.Group;
import com.google.inject.Inject;
Modified: trunk/src/test/java/org/ourproject/kune/platf/integration/site/UserServiceTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/integration/site/UserServiceTest.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/test/java/org/ourproject/kune/platf/integration/site/UserServiceTest.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -8,7 +8,6 @@
import org.junit.Test;
import org.ourproject.kune.platf.integration.IntegrationTest;
import org.ourproject.kune.platf.integration.IntegrationTestHelper;
-import org.ourproject.kune.platf.server.domain.Group;
import org.ourproject.kune.platf.server.manager.I18nLanguageManager;
import org.ourproject.kune.platf.server.mapper.Mapper;
import org.ourproject.kune.platf.server.properties.DatabaseProperties;
@@ -26,6 +25,7 @@
import cc.kune.core.shared.dto.TimeZoneDTO;
import cc.kune.core.shared.dto.UserDTO;
import cc.kune.core.shared.dto.UserInfoDTO;
+import cc.kune.domain.Group;
import com.google.inject.Inject;
Modified: trunk/src/test/java/org/ourproject/kune/platf/integration/socialnet/SocialNetworkMembersTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/integration/socialnet/SocialNetworkMembersTest.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/test/java/org/ourproject/kune/platf/integration/socialnet/SocialNetworkMembersTest.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -9,10 +9,11 @@
import org.ourproject.kune.platf.integration.IntegrationTest;
import org.ourproject.kune.platf.integration.IntegrationTestHelper;
import org.ourproject.kune.platf.server.UserSession;
-import org.ourproject.kune.platf.server.domain.Group;
import org.ourproject.kune.platf.server.manager.GroupManager;
import org.ourproject.kune.platf.server.manager.SocialNetworkManager;
+import cc.kune.domain.Group;
+
import com.google.inject.Inject;
import com.wideplay.warp.persist.Transactional;
Modified: trunk/src/test/java/org/ourproject/kune/platf/server/PersistencePreLoadedDataTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/server/PersistencePreLoadedDataTest.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/test/java/org/ourproject/kune/platf/server/PersistencePreLoadedDataTest.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -9,14 +9,6 @@
import org.ourproject.kune.docs.server.DocumentServerTool;
import org.ourproject.kune.platf.server.content.ContainerManager;
import org.ourproject.kune.platf.server.content.ContentManager;
-import org.ourproject.kune.platf.server.domain.Container;
-import org.ourproject.kune.platf.server.domain.Content;
-import org.ourproject.kune.platf.server.domain.Group;
-import org.ourproject.kune.platf.server.domain.I18nCountry;
-import org.ourproject.kune.platf.server.domain.I18nLanguage;
-import org.ourproject.kune.platf.server.domain.License;
-import org.ourproject.kune.platf.server.domain.PropertyGroup;
-import org.ourproject.kune.platf.server.domain.User;
import org.ourproject.kune.platf.server.manager.GroupManager;
import org.ourproject.kune.platf.server.manager.I18nCountryManager;
import org.ourproject.kune.platf.server.manager.I18nLanguageManager;
@@ -24,6 +16,15 @@
import org.ourproject.kune.platf.server.manager.PropertyGroupManager;
import org.ourproject.kune.platf.server.manager.UserManager;
+import cc.kune.domain.Container;
+import cc.kune.domain.Content;
+import cc.kune.domain.Group;
+import cc.kune.domain.I18nCountry;
+import cc.kune.domain.I18nLanguage;
+import cc.kune.domain.License;
+import cc.kune.domain.PropertyGroup;
+import cc.kune.domain.User;
+
import com.google.inject.Inject;
public abstract class PersistencePreLoadedDataTest extends PersistenceTest {
Modified: trunk/src/test/java/org/ourproject/kune/platf/server/TestDomainHelper.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/server/TestDomainHelper.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/test/java/org/ourproject/kune/platf/server/TestDomainHelper.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -2,15 +2,16 @@
import java.util.TimeZone;
-import org.ourproject.kune.platf.server.domain.AccessLists;
-import org.ourproject.kune.platf.server.domain.AdmissionType;
-import org.ourproject.kune.platf.server.domain.Container;
-import org.ourproject.kune.platf.server.domain.Content;
-import org.ourproject.kune.platf.server.domain.Group;
-import org.ourproject.kune.platf.server.domain.Revision;
-import org.ourproject.kune.platf.server.domain.SocialNetwork;
-import org.ourproject.kune.platf.server.domain.User;
+import cc.kune.core.shared.domain.AdmissionType;
+import cc.kune.domain.AccessLists;
+import cc.kune.domain.Container;
+import cc.kune.domain.Content;
+import cc.kune.domain.Group;
+import cc.kune.domain.Revision;
+import cc.kune.domain.SocialNetwork;
+import cc.kune.domain.User;
+
public abstract class TestDomainHelper {
public static AccessLists createAccessLists(final Group groupAdmin, final Group groupEditor, final Group groupViewer) {
Modified: trunk/src/test/java/org/ourproject/kune/platf/server/access/AccessRightsServiceTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/server/access/AccessRightsServiceTest.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/test/java/org/ourproject/kune/platf/server/access/AccessRightsServiceTest.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -6,11 +6,12 @@
import org.junit.Before;
import org.junit.Test;
import org.ourproject.kune.platf.server.TestDomainHelper;
-import org.ourproject.kune.platf.server.domain.AccessLists;
-import org.ourproject.kune.platf.server.domain.Group;
-import org.ourproject.kune.platf.server.domain.SocialNetwork;
import org.ourproject.kune.testhelper.ctx.DomainContext;
+import cc.kune.domain.AccessLists;
+import cc.kune.domain.Group;
+import cc.kune.domain.SocialNetwork;
+
public class AccessRightsServiceTest {
private AccessRightsServiceDefault accessRightsManager;
private Group group1;
Modified: trunk/src/test/java/org/ourproject/kune/platf/server/access/FinderTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/server/access/FinderTest.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/test/java/org/ourproject/kune/platf/server/access/FinderTest.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -10,15 +10,15 @@
import org.ourproject.kune.platf.server.content.CommentManager;
import org.ourproject.kune.platf.server.content.ContainerManager;
import org.ourproject.kune.platf.server.content.ContentManager;
-import org.ourproject.kune.platf.server.domain.Container;
-import org.ourproject.kune.platf.server.domain.Content;
-import org.ourproject.kune.platf.server.domain.Group;
-import org.ourproject.kune.platf.server.domain.ToolConfiguration;
import org.ourproject.kune.platf.server.manager.GroupManager;
import org.ourproject.kune.platf.server.manager.RateManager;
import cc.kune.core.client.errors.ContentNotFoundException;
import cc.kune.core.shared.dto.StateToken;
+import cc.kune.domain.Container;
+import cc.kune.domain.Content;
+import cc.kune.domain.Group;
+import cc.kune.domain.ToolConfiguration;
public class FinderTest {
Modified: trunk/src/test/java/org/ourproject/kune/platf/server/domain/GroupListTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/server/domain/GroupListTest.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/test/java/org/ourproject/kune/platf/server/domain/GroupListTest.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -6,6 +6,10 @@
import org.junit.Before;
import org.junit.Test;
+import cc.kune.core.shared.domain.GroupListMode;
+import cc.kune.domain.Group;
+import cc.kune.domain.GroupList;
+
public class GroupListTest {
private GroupList list;
private Group includedGroup;
Modified: trunk/src/test/java/org/ourproject/kune/platf/server/finders/GroupFinderTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/server/finders/GroupFinderTest.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/test/java/org/ourproject/kune/platf/server/finders/GroupFinderTest.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -6,8 +6,9 @@
import org.junit.Before;
import org.junit.Test;
import org.ourproject.kune.platf.server.PersistenceTest;
-import org.ourproject.kune.platf.server.domain.Group;
+import cc.kune.domain.Group;
+
import com.google.inject.Inject;
public class GroupFinderTest extends PersistenceTest {
Modified: trunk/src/test/java/org/ourproject/kune/platf/server/finders/LicenseFinderTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/server/finders/LicenseFinderTest.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/test/java/org/ourproject/kune/platf/server/finders/LicenseFinderTest.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -9,9 +9,10 @@
import org.junit.Before;
import org.junit.Test;
import org.ourproject.kune.platf.server.PersistenceTest;
-import org.ourproject.kune.platf.server.domain.License;
import org.ourproject.kune.platf.server.properties.DatabaseProperties;
+import cc.kune.domain.License;
+
import com.google.inject.Inject;
public class LicenseFinderTest extends PersistenceTest {
Modified: trunk/src/test/java/org/ourproject/kune/platf/server/finders/RateFinderTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/server/finders/RateFinderTest.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/test/java/org/ourproject/kune/platf/server/finders/RateFinderTest.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -10,10 +10,11 @@
import org.junit.Test;
import org.ourproject.kune.platf.server.PersistencePreLoadedDataTest;
import org.ourproject.kune.platf.server.TestDomainHelper;
-import org.ourproject.kune.platf.server.domain.Content;
-import org.ourproject.kune.platf.server.domain.Rate;
-import org.ourproject.kune.platf.server.domain.User;
+import cc.kune.domain.Content;
+import cc.kune.domain.Rate;
+import cc.kune.domain.User;
+
import com.google.inject.Inject;
public class RateFinderTest extends PersistencePreLoadedDataTest {
Modified: trunk/src/test/java/org/ourproject/kune/platf/server/finders/UserFinderTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/server/finders/UserFinderTest.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/test/java/org/ourproject/kune/platf/server/finders/UserFinderTest.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -9,8 +9,9 @@
import org.junit.Before;
import org.junit.Test;
import org.ourproject.kune.platf.server.PersistencePreLoadedDataTest;
-import org.ourproject.kune.platf.server.domain.User;
+import cc.kune.domain.User;
+
import com.google.inject.Inject;
public class UserFinderTest extends PersistencePreLoadedDataTest {
Modified: trunk/src/test/java/org/ourproject/kune/platf/server/manager/ContentManagerTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/server/manager/ContentManagerTest.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/test/java/org/ourproject/kune/platf/server/manager/ContentManagerTest.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -5,10 +5,12 @@
import org.junit.Test;
import org.ourproject.kune.docs.server.DocumentServerTool;
import org.ourproject.kune.platf.server.PersistencePreLoadedDataTest;
-import org.ourproject.kune.platf.server.domain.BasicMimeType;
-import org.ourproject.kune.platf.server.domain.Content;
import org.ourproject.kune.platf.server.manager.impl.SearchResult;
+import cc.kune.domain.BasicMimeType;
+import cc.kune.domain.Content;
+
+
public class ContentManagerTest extends PersistencePreLoadedDataTest {
private static final String MIMETYPE = "image";
Modified: trunk/src/test/java/org/ourproject/kune/platf/server/manager/GroupManagerTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/server/manager/GroupManagerTest.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/test/java/org/ourproject/kune/platf/server/manager/GroupManagerTest.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -8,16 +8,16 @@
import org.apache.lucene.queryParser.ParseException;
import org.junit.Test;
import org.ourproject.kune.platf.server.PersistencePreLoadedDataTest;
-import org.ourproject.kune.platf.server.domain.AccessLists;
-import org.ourproject.kune.platf.server.domain.Group;
-import org.ourproject.kune.platf.server.domain.SocialNetwork;
-import org.ourproject.kune.platf.server.domain.User;
import org.ourproject.kune.platf.server.manager.impl.SearchResult;
import cc.kune.core.client.errors.EmailAddressInUseException;
import cc.kune.core.client.errors.GroupNameInUseException;
import cc.kune.core.client.errors.I18nNotFoundException;
import cc.kune.core.shared.dto.GroupType;
+import cc.kune.domain.AccessLists;
+import cc.kune.domain.Group;
+import cc.kune.domain.SocialNetwork;
+import cc.kune.domain.User;
public class GroupManagerTest extends PersistencePreLoadedDataTest {
Modified: trunk/src/test/java/org/ourproject/kune/platf/server/manager/I18nManagerTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/server/manager/I18nManagerTest.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/test/java/org/ourproject/kune/platf/server/manager/I18nManagerTest.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -10,11 +10,11 @@
import org.junit.Before;
import org.junit.Test;
import org.ourproject.kune.platf.server.PersistenceTest;
-import org.ourproject.kune.platf.server.domain.I18nCountry;
-import org.ourproject.kune.platf.server.domain.I18nLanguage;
-import org.ourproject.kune.platf.server.domain.I18nTranslation;
import cc.kune.core.shared.i18n.I18nTranslationService;
+import cc.kune.domain.I18nCountry;
+import cc.kune.domain.I18nLanguage;
+import cc.kune.domain.I18nTranslation;
import com.google.inject.Inject;
Modified: trunk/src/test/java/org/ourproject/kune/platf/server/manager/LicenseManagerTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/server/manager/LicenseManagerTest.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/test/java/org/ourproject/kune/platf/server/manager/LicenseManagerTest.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -7,8 +7,9 @@
import org.junit.Before;
import org.junit.Test;
import org.ourproject.kune.platf.server.PersistenceTest;
-import org.ourproject.kune.platf.server.domain.License;
+import cc.kune.domain.License;
+
import com.google.inject.Inject;
public class LicenseManagerTest extends PersistenceTest {
Modified: trunk/src/test/java/org/ourproject/kune/platf/server/manager/TagManagerTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/server/manager/TagManagerTest.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/test/java/org/ourproject/kune/platf/server/manager/TagManagerTest.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -7,8 +7,9 @@
import org.junit.Test;
import org.ourproject.kune.platf.server.PersistenceTest;
import org.ourproject.kune.platf.server.content.ContentManager;
-import org.ourproject.kune.platf.server.domain.Tag;
+import cc.kune.domain.Tag;
+
import com.google.inject.Inject;
public class TagManagerTest extends PersistenceTest {
Modified: trunk/src/test/java/org/ourproject/kune/platf/server/manager/TagUserContentTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/server/manager/TagUserContentTest.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/test/java/org/ourproject/kune/platf/server/manager/TagUserContentTest.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -8,9 +8,10 @@
import org.junit.Before;
import org.junit.Test;
import org.ourproject.kune.platf.server.PersistencePreLoadedDataTest;
-import org.ourproject.kune.platf.server.domain.Tag;
-import org.ourproject.kune.platf.server.domain.TagUserContent;
+import cc.kune.domain.Tag;
+import cc.kune.domain.TagUserContent;
+
import com.google.inject.Inject;
public class TagUserContentTest extends PersistencePreLoadedDataTest {
Modified: trunk/src/test/java/org/ourproject/kune/platf/server/manager/UserManagerTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/server/manager/UserManagerTest.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/test/java/org/ourproject/kune/platf/server/manager/UserManagerTest.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -1,22 +1,20 @@
package org.ourproject.kune.platf.server.manager;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNull;
+import static org.junit.Assert.*;
import java.util.TimeZone;
import javax.persistence.EntityExistsException;
+import javax.validation.ValidationException;
import org.apache.lucene.queryParser.ParseException;
-import org.hibernate.validator.InvalidStateException;
import org.junit.Test;
import org.ourproject.kune.platf.server.PersistencePreLoadedDataTest;
-import org.ourproject.kune.platf.server.domain.Group;
-import org.ourproject.kune.platf.server.domain.User;
import org.ourproject.kune.platf.server.manager.impl.SearchResult;
import cc.kune.core.client.errors.I18nNotFoundException;
+import cc.kune.domain.Group;
+import cc.kune.domain.User;
import com.google.inject.Inject;
@@ -30,13 +28,13 @@
persist(user);
}
- @Test(expected = InvalidStateException.class)
+ @Test(expected = ValidationException.class)
public void emailEmpty() {
- user = new User("test1", "test1 name", "", "some passwd", english, gb, getTimeZone());
+ user = new User("test1", "test1 name", null, "some passwd", english, gb, getTimeZone());
persist(user);
}
- @Test(expected = InvalidStateException.class)
+ @Test(expected = ValidationException.class)
public void emailIncorrect() {
user = new User("test1", "test1 name", "falseEmail@", "some passwd", english, gb, getTimeZone());
persist(user);
@@ -60,7 +58,7 @@
assertNotNull(result.getId());
}
- @Test(expected = InvalidStateException.class)
+ @Test(expected = ValidationException.class)
public void passwdLengthIncorrect() {
user = new User("test1", "test1 name", "test(a)example.com", "pass", english, gb, getTimeZone());
persist(user);
@@ -80,7 +78,7 @@
persist(user2);
}
- @Test(expected = InvalidStateException.class)
+ @Test(expected = ValidationException.class)
public void userNameLengthIncorrect() {
user = new User("test1", "te", "test(a)example.com", "some passwd", english, gb, getTimeZone());
persist(user);
@@ -95,7 +93,7 @@
rollbackTransaction();
}
- @Test(expected = InvalidStateException.class)
+ @Test(expected = ValidationException.class)
public void userShortNameIncorrect() {
user = new User("test1A", "test1 name", "test(a)example.com", "some passwd", english, gb, getTimeZone());
persist(user);
Modified: trunk/src/test/java/org/ourproject/kune/platf/server/manager/file/FileDownloadManagerTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/server/manager/file/FileDownloadManagerTest.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/test/java/org/ourproject/kune/platf/server/manager/file/FileDownloadManagerTest.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -13,11 +13,11 @@
import org.mockito.Mockito;
import org.ourproject.kune.platf.client.ui.download.ImageSize;
import org.ourproject.kune.platf.integration.IntegrationTestHelper;
-import org.ourproject.kune.platf.server.domain.BasicMimeType;
-import org.ourproject.kune.platf.server.domain.Content;
import org.ourproject.kune.platf.server.properties.KuneProperties;
import cc.kune.core.shared.dto.StateToken;
+import cc.kune.domain.BasicMimeType;
+import cc.kune.domain.Content;
import com.google.inject.Inject;
Modified: trunk/src/test/java/org/ourproject/kune/platf/server/manager/impl/PropertySettedManagerDefaultTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/server/manager/impl/PropertySettedManagerDefaultTest.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/test/java/org/ourproject/kune/platf/server/manager/impl/PropertySettedManagerDefaultTest.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -9,16 +9,17 @@
import org.junit.Before;
import org.junit.Test;
import org.ourproject.kune.platf.server.PersistenceTest;
-import org.ourproject.kune.platf.server.domain.Properties;
-import org.ourproject.kune.platf.server.domain.Property;
-import org.ourproject.kune.platf.server.domain.PropertyGroup;
-import org.ourproject.kune.platf.server.domain.PropertySetted;
-import org.ourproject.kune.platf.server.domain.PropertySubgroup;
import org.ourproject.kune.platf.server.manager.PropertiesManager;
import org.ourproject.kune.platf.server.manager.PropertyGroupManager;
import org.ourproject.kune.platf.server.manager.PropertyManager;
import org.ourproject.kune.platf.server.manager.PropertySubgroupManager;
+import cc.kune.domain.Properties;
+import cc.kune.domain.Property;
+import cc.kune.domain.PropertyGroup;
+import cc.kune.domain.PropertySetted;
+import cc.kune.domain.PropertySubgroup;
+
import com.google.inject.Inject;
public class PropertySettedManagerDefaultTest extends PersistenceTest {
Modified: trunk/src/test/java/org/ourproject/kune/platf/server/manager/impl/SocialNetworkManagerTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/server/manager/impl/SocialNetworkManagerTest.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/test/java/org/ourproject/kune/platf/server/manager/impl/SocialNetworkManagerTest.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -8,18 +8,18 @@
import org.junit.Before;
import org.junit.Test;
import org.ourproject.kune.platf.server.PersistenceTest;
-import org.ourproject.kune.platf.server.domain.AdmissionType;
-import org.ourproject.kune.platf.server.domain.Group;
-import org.ourproject.kune.platf.server.domain.GroupListMode;
-import org.ourproject.kune.platf.server.domain.User;
import org.ourproject.kune.platf.server.sn.ParticipationData;
import org.ourproject.kune.testhelper.ctx.DomainContext;
import cc.kune.core.client.errors.AccessViolationException;
import cc.kune.core.client.errors.AlreadyGroupMemberException;
import cc.kune.core.client.errors.LastAdminInGroupException;
+import cc.kune.core.shared.domain.AdmissionType;
+import cc.kune.core.shared.domain.GroupListMode;
import cc.kune.core.shared.dto.GroupType;
import cc.kune.core.shared.dto.SocialNetworkRequestResult;
+import cc.kune.domain.Group;
+import cc.kune.domain.User;
import com.google.inject.Inject;
import com.wideplay.warp.persist.Transactional;
Modified: trunk/src/test/java/org/ourproject/kune/platf/server/mapper/MapperTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/server/mapper/MapperTest.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/test/java/org/ourproject/kune/platf/server/mapper/MapperTest.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -1,9 +1,6 @@
package org.ourproject.kune.platf.server.mapper;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.*;
import java.util.ArrayList;
import java.util.List;
@@ -13,25 +10,14 @@
import org.ourproject.kune.platf.server.TestDomainHelper;
import org.ourproject.kune.platf.server.TestHelper;
import org.ourproject.kune.platf.server.access.AccessRights;
-import org.ourproject.kune.platf.server.domain.BasicMimeType;
-import org.ourproject.kune.platf.server.domain.Comment;
-import org.ourproject.kune.platf.server.domain.Container;
-import org.ourproject.kune.platf.server.domain.Content;
-import org.ourproject.kune.platf.server.domain.Group;
-import org.ourproject.kune.platf.server.domain.GroupList;
-import org.ourproject.kune.platf.server.domain.GroupListMode;
-import org.ourproject.kune.platf.server.domain.License;
-import org.ourproject.kune.platf.server.domain.Revision;
-import org.ourproject.kune.platf.server.domain.SocialNetwork;
-import org.ourproject.kune.platf.server.domain.SocialNetworkData;
-import org.ourproject.kune.platf.server.domain.SocialNetworkVisibility;
-import org.ourproject.kune.platf.server.domain.User;
-import org.ourproject.kune.platf.server.domain.UserBuddiesVisibility;
import org.ourproject.kune.platf.server.manager.GroupManager;
import org.ourproject.kune.platf.server.sn.ParticipationData;
import org.ourproject.kune.platf.server.sn.UserBuddiesData;
import org.ourproject.kune.platf.server.state.StateContent;
+import cc.kune.core.shared.domain.GroupListMode;
+import cc.kune.core.shared.domain.SocialNetworkVisibility;
+import cc.kune.core.shared.domain.UserBuddiesVisibility;
import cc.kune.core.shared.dto.CommentDTO;
import cc.kune.core.shared.dto.ContainerDTO;
import cc.kune.core.shared.dto.ContainerSimpleDTO;
@@ -41,10 +27,19 @@
import cc.kune.core.shared.dto.LicenseDTO;
import cc.kune.core.shared.dto.LinkDTO;
import cc.kune.core.shared.dto.SocialNetworkDataDTO;
-import cc.kune.core.shared.dto.SocialNetworkVisibilityDTO;
import cc.kune.core.shared.dto.StateContentDTO;
import cc.kune.core.shared.dto.StateToken;
-import cc.kune.core.shared.dto.UserBuddiesVisibilityDTO;
+import cc.kune.domain.BasicMimeType;
+import cc.kune.domain.Comment;
+import cc.kune.domain.Container;
+import cc.kune.domain.Content;
+import cc.kune.domain.Group;
+import cc.kune.domain.GroupList;
+import cc.kune.domain.License;
+import cc.kune.domain.Revision;
+import cc.kune.domain.SocialNetwork;
+import cc.kune.domain.User;
+import cc.kune.domain.utils.SocialNetworkData;
import com.google.inject.Inject;
@@ -257,8 +252,8 @@
UserBuddiesVisibility.onlyyou, budData, new AccessRights(false, false, true), true, true);
final SocialNetworkDataDTO map = mapper.map(snResult, SocialNetworkDataDTO.class);
assertNotNull(map);
- assertEquals(SocialNetworkVisibilityDTO.onlymembers, map.getSocialNetworkVisibility());
- assertEquals(UserBuddiesVisibilityDTO.onlyyou, map.getUserBuddiesVisibility());
+ assertEquals(SocialNetworkVisibility.onlymembers, map.getSocialNetworkVisibility());
+ assertEquals(UserBuddiesVisibility.onlyyou, map.getUserBuddiesVisibility());
assertEquals("test", map.getGroupMembers().getAccessLists().getAdmins().getList().get(0).getShortName());
assertEquals("test", map.getUserParticipation().getGroupsIsAdmin().get(0).getShortName());
assertEquals("usertest", map.getUserBuddies().getBuddies().get(0).getShortName());
Modified: trunk/src/test/java/org/ourproject/kune/testhelper/ctx/DomainContext.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/testhelper/ctx/DomainContext.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/test/java/org/ourproject/kune/testhelper/ctx/DomainContext.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -3,14 +3,14 @@
import java.util.HashMap;
import java.util.TimeZone;
-import org.ourproject.kune.platf.server.domain.AccessLists;
-import org.ourproject.kune.platf.server.domain.Group;
-import org.ourproject.kune.platf.server.domain.I18nCountry;
-import org.ourproject.kune.platf.server.domain.I18nLanguage;
-import org.ourproject.kune.platf.server.domain.SocialNetwork;
-import org.ourproject.kune.platf.server.domain.User;
import cc.kune.core.shared.dto.GroupType;
+import cc.kune.domain.AccessLists;
+import cc.kune.domain.Group;
+import cc.kune.domain.I18nCountry;
+import cc.kune.domain.I18nLanguage;
+import cc.kune.domain.SocialNetwork;
+import cc.kune.domain.User;
public class DomainContext {
private final HashMap<String, User> users;
Modified: trunk/src/test/java/org/ourproject/kune/testhelper/ctx/SocialNetworkOperator.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/testhelper/ctx/SocialNetworkOperator.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/test/java/org/ourproject/kune/testhelper/ctx/SocialNetworkOperator.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -1,6 +1,6 @@
package org.ourproject.kune.testhelper.ctx;
-import org.ourproject.kune.platf.server.domain.SocialNetwork;
+import cc.kune.domain.SocialNetwork;
public class SocialNetworkOperator {
private final DomainContext ctx;
Modified: trunk/src/test/java/org/ourproject/kune/workspace/client/tags/TagsSummaryPresenterTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/workspace/client/tags/TagsSummaryPresenterTest.java 2010-12-15 02:40:31 UTC (rev 1166)
+++ trunk/src/test/java/org/ourproject/kune/workspace/client/tags/TagsSummaryPresenterTest.java 2010-12-16 02:20:33 UTC (rev 1167)
@@ -9,9 +9,9 @@
import cc.kune.core.client.state.Session;
import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.domain.TagCloudResult;
+import cc.kune.core.shared.domain.TagCount;
import cc.kune.core.shared.dto.StateContainerDTO;
-import cc.kune.core.shared.dto.TagCloudResultDTO;
-import cc.kune.core.shared.dto.TagCountDTO;
import com.calclab.suco.client.ioc.Provider;
@@ -43,8 +43,8 @@
@Test
public void withTagsViewFalse() {
final StateContainerDTO state = new StateContainerDTO();
- final ArrayList<TagCountDTO> list = new ArrayList<TagCountDTO>();
- state.setTagCloudResult(new TagCloudResultDTO(list, 0, 0));
+ final ArrayList<TagCount> list = new ArrayList<TagCount>();
+ state.setTagCloudResult(new TagCloudResult(list, 0, 0));
tagsSummaryPresenter.setState(state);
Mockito.verify(view).setVisible(false);
}
@@ -52,9 +52,9 @@
@Test
public void withTagsViewVisible() {
final StateContainerDTO state = new StateContainerDTO();
- final ArrayList<TagCountDTO> list = new ArrayList<TagCountDTO>();
- list.add(new TagCountDTO("abc", 1L));
- state.setTagCloudResult(new TagCloudResultDTO(list, 0, 0));
+ final ArrayList<TagCount> list = new ArrayList<TagCount>();
+ list.add(new TagCount("abc", 1L));
+ state.setTagCloudResult(new TagCloudResult(list, 0, 0));
tagsSummaryPresenter.setState(state);
Mockito.verify(view).setVisible(true);
}
1
0
r1166 - in kune-ws-armor/trunk: . src/org/ourproject/kune/ws/armor/client
by Vicente J. Ruiz Jurado 15 Dec '10
by Vicente J. Ruiz Jurado 15 Dec '10
15 Dec '10
Author: vjrj_
Date: 2010-12-15 03:40:31 +0100 (Wed, 15 Dec 2010)
New Revision: 1166
Removed:
kune-ws-armor/trunk/src/org/ourproject/kune/ws/armor/client/Body.java
kune-ws-armor/trunk/src/org/ourproject/kune/ws/armor/client/Body.ui.xml
kune-ws-armor/trunk/src/org/ourproject/kune/ws/armor/client/IBody.java
kune-ws-armor/trunk/src/org/ourproject/kune/ws/armor/client/WsArmor.java
kune-ws-armor/trunk/target/
Log:
Incomplete - task : Startup cleanup and gwtp integration
CLOSED - # 8: Startup cleanup and gwtp integration
http://kune.ourproject.org/issues/ticket/8
Deleted: kune-ws-armor/trunk/src/org/ourproject/kune/ws/armor/client/Body.java
===================================================================
--- kune-ws-armor/trunk/src/org/ourproject/kune/ws/armor/client/Body.java 2010-12-15 02:38:20 UTC (rev 1165)
+++ kune-ws-armor/trunk/src/org/ourproject/kune/ws/armor/client/Body.java 2010-12-15 02:40:31 UTC (rev 1166)
@@ -1,99 +0,0 @@
-package org.ourproject.kune.ws.armor.client;
-
-import com.google.gwt.core.client.GWT;
-import com.google.gwt.uibinder.client.UiBinder;
-import com.google.gwt.uibinder.client.UiField;
-import com.google.gwt.user.client.ui.Composite;
-import com.google.gwt.user.client.ui.DockLayoutPanel;
-import com.google.gwt.user.client.ui.FlowPanel;
-import com.google.gwt.user.client.ui.HasWidgets;
-import com.google.gwt.user.client.ui.SplitLayoutPanel;
-import com.google.gwt.user.client.ui.VerticalPanel;
-import com.google.gwt.user.client.ui.Widget;
-
-public class Body extends Composite implements IBody {
-
- interface BodyUiBinder extends UiBinder<Widget, Body> {
- }
-
- private static BodyUiBinder uiBinder = GWT.create(BodyUiBinder.class);
-
- @UiField
- DockLayoutPanel mainpanel;
- @UiField
- FlowPanel sitebar;
- @UiField
- SplitLayoutPanel split;
- @UiField
- DockLayoutPanel splitCenter;
- @UiField
- DockLayoutPanel splitEast;
- @UiField
- VerticalPanel entityToolsSouth;
- @UiField
- VerticalPanel entityToolsNorth;
- @UiField
- VerticalPanel entityToolsCenter;
- @UiField
- FlowPanel entityHeader;
- @UiField
- FlowPanel entityFooter;
- @UiField
- FlowPanel docHeader;
- @UiField
- FlowPanel docSubheader;
- @UiField
- FlowPanel docFooter;
-
- public Body() {
- initWidget(uiBinder.createAndBindUi(this));
- split.setWidgetMinSize(splitEast, 150);
- // split.setWidgetMinSize(splitCenter, 200);
- }
-
- @Override
- public HasWidgets getDocFooter() {
- return docFooter;
- }
-
- @Override
- public HasWidgets getDocHeader() {
- return docHeader;
- }
-
- @Override
- public HasWidgets getDocSubheader() {
- return docSubheader;
- }
-
- @Override
- public HasWidgets getEntityFooter() {
- return entityFooter;
- }
-
- @Override
- public HasWidgets getEntityHeader() {
- return entityHeader;
- }
-
- @Override
- public HasWidgets getEntityToolsCenter() {
- return entityToolsCenter;
- }
-
- @Override
- public HasWidgets getEntityToolsNorth() {
- return entityToolsNorth;
- }
-
- @Override
- public HasWidgets getEntityToolsSouth() {
- return entityToolsSouth;
- }
-
- @Override
- public HasWidgets getSitebar() {
- return sitebar;
- }
-
-}
Deleted: kune-ws-armor/trunk/src/org/ourproject/kune/ws/armor/client/Body.ui.xml
===================================================================
--- kune-ws-armor/trunk/src/org/ourproject/kune/ws/armor/client/Body.ui.xml 2010-12-15 02:38:20 UTC (rev 1165)
+++ kune-ws-armor/trunk/src/org/ourproject/kune/ws/armor/client/Body.ui.xml 2010-12-15 02:40:31 UTC (rev 1166)
@@ -1,84 +0,0 @@
-<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
-<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
- xmlns:g="urn:import:com.google.gwt.user.client.ui">
- <ui:with field='res'
- type='org.ourproject.kune.ws.armor.client.resources.WsArmorResources' />
- <g:DockLayoutPanel ui:field="mainpanel" styleName='{res.style.mainPanel}'
- unit="PX">
- <g:north size="20">
- <g:FlowPanel ui:field="sitebar" height="20px" styleName='{res.style.siteBar}'>
- </g:FlowPanel>
- </g:north>
- <g:center>
- <g:SplitLayoutPanel width="100%" height="100%" ui:field="split">
- <g:center size="1.0">
- <g:DockLayoutPanel unit="PX" ui:field="splitCenter">
- <g:north size="168">
- <g:VerticalPanel width="100%" height="168px">
- <g:FlowPanel height="70px" width="100%"
- styleName="{res.style.entityHeader}" ui:field="entityHeader">
- <!--<g:RichTextArea width="100%" height="70px" /> -->
- </g:FlowPanel>
- <g:FlowPanel width="100%" height="38px"
- styleName="{res.style.docHeader}" ui:field="docHeader">
-
- </g:FlowPanel>
- <g:FlowPanel width="100%" height="60px"
- styleName="{res.style.docSubheader}" ui:field="docSubheader">
- <g:Image resource='{res.defThemeDocArrowDown}' styleName='{res.style.docHeaderArrow}'/>
- </g:FlowPanel>
- </g:VerticalPanel>
- </g:north>
- <g:center>
- <g:DockLayoutPanel unit="PX"
- styleName="{res.style.docEditorMargin}">
- <g:west size="10">
- <g:HTMLPanel />
- </g:west>
- <g:east size="15">
- <g:HTMLPanel />
- </g:east>
- <g:center>
- <g:ScrollPanel styleName="{res.style.docEditor}">
- <g:HTML wordWrap="true" width="100%" height="100%"></g:HTML>
- </g:ScrollPanel>
- </g:center>
- <g:south size="33.0">
- <g:VerticalPanel height="33px" width="100%"
- styleName="{res.style.docFooter}">
- <g:FlowPanel width="100%"
- height="33" ui:field="docFooter">
- </g:FlowPanel>
- </g:VerticalPanel>
- </g:south>
- </g:DockLayoutPanel>
- </g:center>
- <g:south size="36">
- <g:FlowPanel height="36px" width="100%"
- styleName="{res.style.entityFooter}" ui:field="entityFooter">
- </g:FlowPanel>
- </g:south>
- </g:DockLayoutPanel>
- </g:center>
- <g:east size="200.0">
- <g:DockLayoutPanel unit="PX"
- styleName="{res.style.entityTools}" ui:field="splitEast">
- <g:north size="190">
- <g:VerticalPanel width="100%" ui:field="entityToolsNorth"
- styleName="{res.style.entityToolsNorth}"></g:VerticalPanel>
- </g:north>
- <g:center>
- <g:VerticalPanel width="100%" ui:field="entityToolsCenter"
- styleName="{res.style.entityToolsCenter}">
- </g:VerticalPanel>
- </g:center>
- <g:south size="98">
- <g:VerticalPanel width="100%"
- styleName="{res.style.entityToolsSouth}" ui:field="entityToolsSouth"></g:VerticalPanel>
- </g:south>
- </g:DockLayoutPanel>
- </g:east>
- </g:SplitLayoutPanel>
- </g:center>
- </g:DockLayoutPanel>
-</ui:UiBinder>
\ No newline at end of file
Deleted: kune-ws-armor/trunk/src/org/ourproject/kune/ws/armor/client/IBody.java
===================================================================
--- kune-ws-armor/trunk/src/org/ourproject/kune/ws/armor/client/IBody.java 2010-12-15 02:38:20 UTC (rev 1165)
+++ kune-ws-armor/trunk/src/org/ourproject/kune/ws/armor/client/IBody.java 2010-12-15 02:40:31 UTC (rev 1166)
@@ -1,24 +0,0 @@
-package org.ourproject.kune.ws.armor.client;
-
-import com.google.gwt.user.client.ui.HasWidgets;
-
-public interface IBody {
-
- HasWidgets getDocFooter();
-
- HasWidgets getDocHeader();
-
- HasWidgets getDocSubheader();
-
- HasWidgets getEntityFooter();
-
- HasWidgets getEntityHeader();
-
- HasWidgets getEntityToolsCenter();
-
- HasWidgets getEntityToolsNorth();
-
- HasWidgets getEntityToolsSouth();
-
- HasWidgets getSitebar();
-}
\ No newline at end of file
Deleted: kune-ws-armor/trunk/src/org/ourproject/kune/ws/armor/client/WsArmor.java
===================================================================
--- kune-ws-armor/trunk/src/org/ourproject/kune/ws/armor/client/WsArmor.java 2010-12-15 02:38:20 UTC (rev 1165)
+++ kune-ws-armor/trunk/src/org/ourproject/kune/ws/armor/client/WsArmor.java 2010-12-15 02:40:31 UTC (rev 1166)
@@ -1,42 +0,0 @@
-package org.ourproject.kune.ws.armor.client;
-
-import org.ourproject.kune.ws.armor.client.resources.WsArmorResources;
-
-import com.google.gwt.core.client.EntryPoint;
-import com.google.gwt.user.client.ui.InlineLabel;
-import com.google.gwt.user.client.ui.RootLayoutPanel;
-
-/**
- * Entry point classes define <code>onModuleLoad()</code>.
- */
-public class WsArmor implements EntryPoint {
- public void onModuleLoad() {
- final WsArmorResources resources = WsArmorResources.INSTANCE;
- resources.style().ensureInjected();
-
- final RootLayoutPanel rootPanel = RootLayoutPanel.get();
- final Body armor = new Body();
- final InlineLabel icons = new InlineLabel("Icons");
- final InlineLabel login = new InlineLabel("Login");
- final InlineLabel logo = new InlineLabel("Logo");
- icons.setStyleName(resources.style().floatLeft());
- login.setStyleName(resources.style().floatRight());
- logo.setStyleName(resources.style().floatRight());
- armor.getSitebar().add(icons);
- armor.getSitebar().add(logo);
- armor.getSitebar().add(login);
- armor.getEntityToolsNorth().add(new InlineLabel("Group members"));
- armor.getEntityToolsCenter().add(new InlineLabel("Documents"));
- armor.getEntityToolsSouth().add(new InlineLabel("Group tags"));
- armor.getEntityHeader().add(new InlineLabel("Name of the Initiative"));
- armor.getDocHeader().add(new InlineLabel("Some doc title"));
- final InlineLabel editors = new InlineLabel("Editors:");
- editors.addStyleName(resources.style().docSubheaderLeft());
- armor.getDocSubheader().add(editors);
- armor.getDocFooter().add(new InlineLabel("Tags:"));
- armor.getEntityFooter().add(new InlineLabel("Rate it:"));
- rootPanel.add(armor);
-
- }
-
-}
1
0
r1165 - in kune-ws-armor/trunk: . src src/cc src/cc/kune src/cc/kune/core src/cc/kune/core/ws src/cc/kune/core/ws/armor src/cc/kune/core/ws/armor/client src/cc/kune/core/ws/armor/client/resources src/org/ourproject/kune/ws/armor src/org/ourproject/kune/ws/armor/client war war/WEB-INF
by Vicente J. Ruiz Jurado 15 Dec '10
by Vicente J. Ruiz Jurado 15 Dec '10
15 Dec '10
Author: vjrj_
Date: 2010-12-15 03:38:20 +0100 (Wed, 15 Dec 2010)
New Revision: 1165
Added:
kune-ws-armor/trunk/src/cc/
kune-ws-armor/trunk/src/cc/kune/
kune-ws-armor/trunk/src/cc/kune/core/
kune-ws-armor/trunk/src/cc/kune/core/ws/
kune-ws-armor/trunk/src/cc/kune/core/ws/armor/
kune-ws-armor/trunk/src/cc/kune/core/ws/armor/WsArmor.gwt.xml
kune-ws-armor/trunk/src/cc/kune/core/ws/armor/client/
kune-ws-armor/trunk/src/cc/kune/core/ws/armor/client/Body.java
kune-ws-armor/trunk/src/cc/kune/core/ws/armor/client/Body.ui.xml
kune-ws-armor/trunk/src/cc/kune/core/ws/armor/client/IBody.java
kune-ws-armor/trunk/src/cc/kune/core/ws/armor/client/WsArmor.java
kune-ws-armor/trunk/src/cc/kune/core/ws/armor/client/entitytools/
kune-ws-armor/trunk/src/cc/kune/core/ws/armor/client/resources/
kune-ws-armor/trunk/src/cc/kune/core/ws/armor/client/resources/WsArmorResources.java
kune-ws-armor/trunk/src/cc/kune/core/ws/armor/public/
kune-ws-armor/trunk/src/cc/kune/core/ws/armor/server/
Removed:
kune-ws-armor/trunk/src/cc/kune/core/ws/armor/client/resources/WsArmorResources.java
kune-ws-armor/trunk/src/org/ourproject/kune/ws/armor/WsArmor.gwt.xml
kune-ws-armor/trunk/src/org/ourproject/kune/ws/armor/client/entitytools/
kune-ws-armor/trunk/src/org/ourproject/kune/ws/armor/client/resources/
kune-ws-armor/trunk/src/org/ourproject/kune/ws/armor/public/
kune-ws-armor/trunk/src/org/ourproject/kune/ws/armor/server/
Modified:
kune-ws-armor/trunk/
kune-ws-armor/trunk/pom.xml
kune-ws-armor/trunk/war/
kune-ws-armor/trunk/war/WEB-INF/web.xml
kune-ws-armor/trunk/war/WsArmor.html
Log:
Incomplete - task : Startup cleanup and gwtp integration
CLOSED - # 8: Startup cleanup and gwtp integration
http://kune.ourproject.org/issues/ticket/8
Property changes on: kune-ws-armor/trunk
___________________________________________________________________
Name: svn:ignore
- .gwt
+ .gwt
target
Modified: kune-ws-armor/trunk/pom.xml
===================================================================
--- kune-ws-armor/trunk/pom.xml 2010-12-15 02:26:32 UTC (rev 1164)
+++ kune-ws-armor/trunk/pom.xml 2010-12-15 02:38:20 UTC (rev 1165)
@@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>kune-ws-armor</groupId>
<artifactId>kune-ws-armor</artifactId>
- <version>0.0.4</version>
+ <version>0.0.5</version>
<name>Kune Armor Main Layout</name>
<description>The current armor of Kune Workspace</description>
<properties>
Copied: kune-ws-armor/trunk/src/cc/kune/core/ws/armor/WsArmor.gwt.xml (from rev 1161, kune-ws-armor/trunk/src/org/ourproject/kune/ws/armor/WsArmor.gwt.xml)
===================================================================
--- kune-ws-armor/trunk/src/cc/kune/core/ws/armor/WsArmor.gwt.xml (rev 0)
+++ kune-ws-armor/trunk/src/cc/kune/core/ws/armor/WsArmor.gwt.xml 2010-12-15 02:38:20 UTC (rev 1165)
@@ -0,0 +1,12 @@
+<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.1.0//EN" "http://google-web-toolkit.googlecode.com/svn/tags/2.1.0/distro-source/core/…">
+<module>
+ <inherits name="com.google.gwt.user.User" />
+ <inherits name="com.google.gwt.user.theme.standard.Standard" />
+ <entry-point class="cc.kune.core.ws.armor.client.WsArmor" />
+ <public path="public" />
+ <source path="client" />
+ <!-- NOTE: this only compiles for chromium/safari ============= -->
+ <!--http://code.google.com/p/google-web-toolkit/issues/detail?id=42 -->
+ <!-- <set-property name="user.agent" value="gecko1_8" /> -->
+ <set-property name="user.agent" value="safari" />
+</module>
\ No newline at end of file
Copied: kune-ws-armor/trunk/src/cc/kune/core/ws/armor/client/Body.java (from rev 1155, kune-ws-armor/trunk/src/org/ourproject/kune/ws/armor/client/Body.java)
===================================================================
--- kune-ws-armor/trunk/src/cc/kune/core/ws/armor/client/Body.java (rev 0)
+++ kune-ws-armor/trunk/src/cc/kune/core/ws/armor/client/Body.java 2010-12-15 02:38:20 UTC (rev 1165)
@@ -0,0 +1,99 @@
+package cc.kune.core.ws.armor.client;
+
+import com.google.gwt.core.client.GWT;
+import com.google.gwt.uibinder.client.UiBinder;
+import com.google.gwt.uibinder.client.UiField;
+import com.google.gwt.user.client.ui.Composite;
+import com.google.gwt.user.client.ui.DockLayoutPanel;
+import com.google.gwt.user.client.ui.FlowPanel;
+import com.google.gwt.user.client.ui.HasWidgets;
+import com.google.gwt.user.client.ui.SplitLayoutPanel;
+import com.google.gwt.user.client.ui.VerticalPanel;
+import com.google.gwt.user.client.ui.Widget;
+
+public class Body extends Composite implements IBody {
+
+ interface BodyUiBinder extends UiBinder<Widget, Body> {
+ }
+
+ private static BodyUiBinder uiBinder = GWT.create(BodyUiBinder.class);
+
+ @UiField
+ DockLayoutPanel mainpanel;
+ @UiField
+ FlowPanel sitebar;
+ @UiField
+ SplitLayoutPanel split;
+ @UiField
+ DockLayoutPanel splitCenter;
+ @UiField
+ DockLayoutPanel splitEast;
+ @UiField
+ VerticalPanel entityToolsSouth;
+ @UiField
+ VerticalPanel entityToolsNorth;
+ @UiField
+ VerticalPanel entityToolsCenter;
+ @UiField
+ FlowPanel entityHeader;
+ @UiField
+ FlowPanel entityFooter;
+ @UiField
+ FlowPanel docHeader;
+ @UiField
+ FlowPanel docSubheader;
+ @UiField
+ FlowPanel docFooter;
+
+ public Body() {
+ initWidget(uiBinder.createAndBindUi(this));
+ split.setWidgetMinSize(splitEast, 150);
+ // split.setWidgetMinSize(splitCenter, 200);
+ }
+
+ @Override
+ public HasWidgets getDocFooter() {
+ return docFooter;
+ }
+
+ @Override
+ public HasWidgets getDocHeader() {
+ return docHeader;
+ }
+
+ @Override
+ public HasWidgets getDocSubheader() {
+ return docSubheader;
+ }
+
+ @Override
+ public HasWidgets getEntityFooter() {
+ return entityFooter;
+ }
+
+ @Override
+ public HasWidgets getEntityHeader() {
+ return entityHeader;
+ }
+
+ @Override
+ public HasWidgets getEntityToolsCenter() {
+ return entityToolsCenter;
+ }
+
+ @Override
+ public HasWidgets getEntityToolsNorth() {
+ return entityToolsNorth;
+ }
+
+ @Override
+ public HasWidgets getEntityToolsSouth() {
+ return entityToolsSouth;
+ }
+
+ @Override
+ public HasWidgets getSitebar() {
+ return sitebar;
+ }
+
+}
Copied: kune-ws-armor/trunk/src/cc/kune/core/ws/armor/client/Body.ui.xml (from rev 1161, kune-ws-armor/trunk/src/org/ourproject/kune/ws/armor/client/Body.ui.xml)
===================================================================
--- kune-ws-armor/trunk/src/cc/kune/core/ws/armor/client/Body.ui.xml (rev 0)
+++ kune-ws-armor/trunk/src/cc/kune/core/ws/armor/client/Body.ui.xml 2010-12-15 02:38:20 UTC (rev 1165)
@@ -0,0 +1,86 @@
+<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
+<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
+ xmlns:g="urn:import:com.google.gwt.user.client.ui">
+ <ui:with field='res'
+ type='cc.kune.core.ws.armor.client.resources.WsArmorResources' />
+ <g:DockLayoutPanel ui:field="mainpanel" styleName='{res.style.mainPanel}'
+ unit="PX">
+ <g:north size="20">
+ <g:FlowPanel ui:field="sitebar" height="20px"
+ styleName='{res.style.siteBar}'>
+ </g:FlowPanel>
+ </g:north>
+ <g:center>
+ <g:SplitLayoutPanel width="100%" height="100%"
+ ui:field="split">
+ <g:center size="1.0">
+ <g:DockLayoutPanel unit="PX" ui:field="splitCenter">
+ <g:north size="168">
+ <g:VerticalPanel width="100%" height="168px">
+ <g:FlowPanel height="70px" width="100%"
+ styleName="{res.style.entityHeader}" ui:field="entityHeader">
+ <!--<g:RichTextArea width="100%" height="70px" /> -->
+ </g:FlowPanel>
+ <g:FlowPanel width="100%" height="38px"
+ styleName="{res.style.docHeader}" ui:field="docHeader">
+ </g:FlowPanel>
+ <g:FlowPanel width="100%" height="60px"
+ styleName="{res.style.docSubheader}" ui:field="docSubheader">
+ <g:Image resource='{res.defThemeDocArrowDown}'
+ styleName='{res.style.docHeaderArrow}' />
+ </g:FlowPanel>
+ </g:VerticalPanel>
+ </g:north>
+ <g:center>
+ <g:DockLayoutPanel unit="PX"
+ styleName="{res.style.docEditorMargin}">
+ <g:west size="10">
+ <g:HTMLPanel />
+ </g:west>
+ <g:east size="15">
+ <g:HTMLPanel />
+ </g:east>
+ <g:center>
+ <g:ScrollPanel styleName="{res.style.docEditor}">
+ <g:HTML wordWrap="true" width="100%" height="100%"></g:HTML>
+ </g:ScrollPanel>
+ </g:center>
+ <g:south size="33.0">
+ <g:VerticalPanel height="33px" width="100%"
+ styleName="{res.style.docFooter}">
+ <g:FlowPanel width="100%" height="33"
+ ui:field="docFooter">
+ </g:FlowPanel>
+ </g:VerticalPanel>
+ </g:south>
+ </g:DockLayoutPanel>
+ </g:center>
+ <g:south size="36">
+ <g:FlowPanel height="36px" width="100%"
+ styleName="{res.style.entityFooter}" ui:field="entityFooter">
+ </g:FlowPanel>
+ </g:south>
+ </g:DockLayoutPanel>
+ </g:center>
+ <g:east size="200.0">
+ <g:DockLayoutPanel unit="PX"
+ styleName="{res.style.entityTools}" ui:field="splitEast">
+ <g:north size="190">
+ <g:VerticalPanel width="100%" ui:field="entityToolsNorth"
+ styleName="{res.style.entityToolsNorth}"></g:VerticalPanel>
+ </g:north>
+ <g:center>
+ <g:VerticalPanel width="100%" ui:field="entityToolsCenter"
+ styleName="{res.style.entityToolsCenter}">
+ </g:VerticalPanel>
+ </g:center>
+ <g:south size="98">
+ <g:VerticalPanel width="100%"
+ styleName="{res.style.entityToolsSouth}" ui:field="entityToolsSouth"></g:VerticalPanel>
+ </g:south>
+ </g:DockLayoutPanel>
+ </g:east>
+ </g:SplitLayoutPanel>
+ </g:center>
+ </g:DockLayoutPanel>
+</ui:UiBinder>
\ No newline at end of file
Copied: kune-ws-armor/trunk/src/cc/kune/core/ws/armor/client/IBody.java (from rev 1155, kune-ws-armor/trunk/src/org/ourproject/kune/ws/armor/client/IBody.java)
===================================================================
--- kune-ws-armor/trunk/src/cc/kune/core/ws/armor/client/IBody.java (rev 0)
+++ kune-ws-armor/trunk/src/cc/kune/core/ws/armor/client/IBody.java 2010-12-15 02:38:20 UTC (rev 1165)
@@ -0,0 +1,24 @@
+package cc.kune.core.ws.armor.client;
+
+import com.google.gwt.user.client.ui.HasWidgets;
+
+public interface IBody {
+
+ HasWidgets getDocFooter();
+
+ HasWidgets getDocHeader();
+
+ HasWidgets getDocSubheader();
+
+ HasWidgets getEntityFooter();
+
+ HasWidgets getEntityHeader();
+
+ HasWidgets getEntityToolsCenter();
+
+ HasWidgets getEntityToolsNorth();
+
+ HasWidgets getEntityToolsSouth();
+
+ HasWidgets getSitebar();
+}
\ No newline at end of file
Property changes on: kune-ws-armor/trunk/src/cc/kune/core/ws/armor/client/IBody.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Copied: kune-ws-armor/trunk/src/cc/kune/core/ws/armor/client/WsArmor.java (from rev 1156, kune-ws-armor/trunk/src/org/ourproject/kune/ws/armor/client/WsArmor.java)
===================================================================
--- kune-ws-armor/trunk/src/cc/kune/core/ws/armor/client/WsArmor.java (rev 0)
+++ kune-ws-armor/trunk/src/cc/kune/core/ws/armor/client/WsArmor.java 2010-12-15 02:38:20 UTC (rev 1165)
@@ -0,0 +1,43 @@
+package cc.kune.core.ws.armor.client;
+
+
+import cc.kune.core.ws.armor.client.resources.WsArmorResources;
+
+import com.google.gwt.core.client.EntryPoint;
+import com.google.gwt.user.client.ui.InlineLabel;
+import com.google.gwt.user.client.ui.RootLayoutPanel;
+
+/**
+ * Entry point classes define <code>onModuleLoad()</code>.
+ */
+public class WsArmor implements EntryPoint {
+ public void onModuleLoad() {
+ final WsArmorResources resources = WsArmorResources.INSTANCE;
+ resources.style().ensureInjected();
+
+ final RootLayoutPanel rootPanel = RootLayoutPanel.get();
+ final Body armor = new Body();
+ final InlineLabel icons = new InlineLabel("Icons");
+ final InlineLabel login = new InlineLabel("Login");
+ final InlineLabel logo = new InlineLabel("Logo");
+ icons.setStyleName(resources.style().floatLeft());
+ login.setStyleName(resources.style().floatRight());
+ logo.setStyleName(resources.style().floatRight());
+ armor.getSitebar().add(icons);
+ armor.getSitebar().add(logo);
+ armor.getSitebar().add(login);
+ armor.getEntityToolsNorth().add(new InlineLabel("Group members"));
+ armor.getEntityToolsCenter().add(new InlineLabel("Documents"));
+ armor.getEntityToolsSouth().add(new InlineLabel("Group tags"));
+ armor.getEntityHeader().add(new InlineLabel("Name of the Initiative"));
+ armor.getDocHeader().add(new InlineLabel("Some doc title"));
+ final InlineLabel editors = new InlineLabel("Editors:");
+ editors.addStyleName(resources.style().docSubheaderLeft());
+ armor.getDocSubheader().add(editors);
+ armor.getDocFooter().add(new InlineLabel("Tags:"));
+ armor.getEntityFooter().add(new InlineLabel("Rate it:"));
+ rootPanel.add(armor);
+
+ }
+
+}
Copied: kune-ws-armor/trunk/src/cc/kune/core/ws/armor/client/entitytools (from rev 1155, kune-ws-armor/trunk/src/org/ourproject/kune/ws/armor/client/entitytools)
Copied: kune-ws-armor/trunk/src/cc/kune/core/ws/armor/client/resources (from rev 1156, kune-ws-armor/trunk/src/org/ourproject/kune/ws/armor/client/resources)
Deleted: kune-ws-armor/trunk/src/cc/kune/core/ws/armor/client/resources/WsArmorResources.java
===================================================================
--- kune-ws-armor/trunk/src/org/ourproject/kune/ws/armor/client/resources/WsArmorResources.java 2010-12-06 20:15:56 UTC (rev 1156)
+++ kune-ws-armor/trunk/src/cc/kune/core/ws/armor/client/resources/WsArmorResources.java 2010-12-15 02:38:20 UTC (rev 1165)
@@ -1,56 +0,0 @@
-package org.ourproject.kune.ws.armor.client.resources;
-
-import com.google.gwt.core.client.GWT;
-import com.google.gwt.resources.client.ClientBundle;
-import com.google.gwt.resources.client.CssResource;
-import com.google.gwt.resources.client.ImageResource;
-
-public interface WsArmorResources extends ClientBundle {
- public interface Style extends CssResource {
-
- String docEditor();
-
- String docEditorMargin();
-
- String docFooter();
-
- String docHeader();
-
- String docHeaderArrow();
-
- String docSubheader();
-
- String docSubheaderLeft();
-
- String entityFooter();
-
- String entityHeader();
-
- String entityTools();
-
- String entityToolsCenter();
-
- String entityToolsNorth();
-
- String entityToolsSouth();
-
- String floatLeft();
-
- String floatRight();
-
- String mainPanel();
-
- String siteBar();
- }
-
- public static final WsArmorResources INSTANCE = GWT.create(WsArmorResources.class);
-
- @Source("def-theme-doc-arrow-down.png")
- ImageResource defThemeDocArrowDown();
-
- @Source("def-theme-tools-arrow-left.png")
- ImageResource defThemeToolsArrowLeft();
-
- @Source("DefaultStyle.css")
- Style style();
-}
\ No newline at end of file
Copied: kune-ws-armor/trunk/src/cc/kune/core/ws/armor/client/resources/WsArmorResources.java (from rev 1161, kune-ws-armor/trunk/src/org/ourproject/kune/ws/armor/client/resources/WsArmorResources.java)
===================================================================
--- kune-ws-armor/trunk/src/cc/kune/core/ws/armor/client/resources/WsArmorResources.java (rev 0)
+++ kune-ws-armor/trunk/src/cc/kune/core/ws/armor/client/resources/WsArmorResources.java 2010-12-15 02:38:20 UTC (rev 1165)
@@ -0,0 +1,57 @@
+package cc.kune.core.ws.armor.client.resources;
+
+import com.google.gwt.core.client.GWT;
+import com.google.gwt.resources.client.ClientBundle;
+import com.google.gwt.resources.client.CssResource;
+import com.google.gwt.resources.client.ImageResource;
+
+public interface WsArmorResources extends ClientBundle {
+ public interface Style extends CssResource {
+
+ String docEditor();
+
+ String docEditorMargin();
+
+ String docFooter();
+
+ String docHeader();
+
+ String docHeaderArrow();
+
+ String docSubheader();
+
+ String docSubheaderLeft();
+
+ String entityFooter();
+
+ String entityHeader();
+
+ String entityTools();
+
+ String entityToolsCenter();
+
+ String entityToolsNorth();
+
+ String entityToolsSouth();
+
+ String floatLeft();
+
+ String floatRight();
+
+ String mainPanel();
+
+ String siteBar();
+ }
+
+ @Deprecated
+ public static final WsArmorResources INSTANCE = GWT.create(WsArmorResources.class);
+
+ @Source("def-theme-doc-arrow-down.png")
+ ImageResource defThemeDocArrowDown();
+
+ @Source("def-theme-tools-arrow-left.png")
+ ImageResource defThemeToolsArrowLeft();
+
+ @Source("DefaultStyle.css")
+ Style style();
+}
\ No newline at end of file
Copied: kune-ws-armor/trunk/src/cc/kune/core/ws/armor/public (from rev 1152, kune-ws-armor/trunk/src/org/ourproject/kune/ws/armor/public)
Copied: kune-ws-armor/trunk/src/cc/kune/core/ws/armor/server (from rev 1152, kune-ws-armor/trunk/src/org/ourproject/kune/ws/armor/server)
Deleted: kune-ws-armor/trunk/src/org/ourproject/kune/ws/armor/WsArmor.gwt.xml
===================================================================
--- kune-ws-armor/trunk/src/org/ourproject/kune/ws/armor/WsArmor.gwt.xml 2010-12-15 02:26:32 UTC (rev 1164)
+++ kune-ws-armor/trunk/src/org/ourproject/kune/ws/armor/WsArmor.gwt.xml 2010-12-15 02:38:20 UTC (rev 1165)
@@ -1,8 +0,0 @@
-<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.1.0//EN" "http://google-web-toolkit.googlecode.com/svn/tags/2.1.0/distro-source/core/…">
-<module>
- <inherits name="com.google.gwt.user.User" />
- <inherits name="com.google.gwt.user.theme.standard.Standard" />
- <!-- <entry-point class="org.ourproject.kune.ws.armor.client.WsArmor" /> -->
- <public path="public" />
- <source path="client" />
-</module>
\ No newline at end of file
Property changes on: kune-ws-armor/trunk/war
___________________________________________________________________
Name: svn:ignore
- org.ourproject.kune.ws.armor.WsArmor
+ cc.kune.core.ws.armor.WsArmor
Modified: kune-ws-armor/trunk/war/WEB-INF/web.xml
===================================================================
--- kune-ws-armor/trunk/war/WEB-INF/web.xml 2010-12-15 02:26:32 UTC (rev 1164)
+++ kune-ws-armor/trunk/war/WEB-INF/web.xml 2010-12-15 02:38:20 UTC (rev 1165)
@@ -2,12 +2,9 @@
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
-
<web-app>
-
- <!-- Default page to serve -->
- <welcome-file-list>
- <welcome-file>WsArmor.html</welcome-file>
- </welcome-file-list>
-
-</web-app>
+ <!-- Default page to serve -->
+ <welcome-file-list>
+ <welcome-file>WsArmor.html</welcome-file>
+ </welcome-file-list>
+</web-app>
\ No newline at end of file
Modified: kune-ws-armor/trunk/war/WsArmor.html
===================================================================
--- kune-ws-armor/trunk/war/WsArmor.html 2010-12-15 02:26:32 UTC (rev 1164)
+++ kune-ws-armor/trunk/war/WsArmor.html 2010-12-15 02:38:20 UTC (rev 1165)
@@ -6,7 +6,7 @@
<!-- -->
<!-- Consider inlining CSS to reduce the number of requested files -->
<!-- -->
- <link rel="stylesheet" href="org.ourproject.kune.ws.armor.WsArmor/fontface/stylesheet.css" type="text/css" charset="utf-8">
+ <link rel="stylesheet" href="cc.kune.core.ws.armor.WsArmor/fontface/stylesheet.css" type="text/css" charset="utf-8">
<link type="text/css" rel="stylesheet" href="WsArmor.css">
@@ -20,7 +20,7 @@
<!-- If you add any GWT meta tags, they must -->
<!-- be added before this line. -->
<!-- -->
- <script language="javascript" src="org.ourproject.kune.ws.armor.WsArmor/org.ourproject.kune.ws.armor.WsArmor.nocache.js"></script>
+ <script language="javascript" src="cc.kune.core.ws.armor.WsArmor/cc.kune.core.ws.armor.WsArmor.nocache.js"></script>
</head>
1
0
Author: vjrj_
Date: 2010-12-15 03:26:32 +0100 (Wed, 15 Dec 2010)
New Revision: 1164
Added:
trunk/src/main/java/cc/kune/core/client/CoreGinjector.java
trunk/src/main/java/cc/kune/core/client/i18n/I18nReadyEvent.java
trunk/src/main/java/cc/kune/core/client/notify/SpinerPresenter.java
trunk/src/main/java/cc/kune/core/client/notify/SpinerViewImpl.java
trunk/src/main/java/cc/kune/core/client/notify/UserNotifierViewImpl.java
trunk/src/main/java/cc/kune/core/client/ws/CorePlaceManager.java
trunk/src/main/java/cc/kune/core/client/ws/CoreViewImpl.java
Removed:
trunk/src/main/java/cc/kune/core/client/notify/UserNotifierView.java
trunk/src/main/java/cc/kune/core/client/ws/CoreView.java
Modified:
trunk/TROUBLESHOOT
trunk/pom.xml
trunk/src/main/java/cc/kune/core/Core.gwt.xml
trunk/src/main/java/cc/kune/core/client/CoreEventBus.java
trunk/src/main/java/cc/kune/core/client/CoreGinModule.java
trunk/src/main/java/cc/kune/core/client/KuneEntryPoint.java
trunk/src/main/java/cc/kune/core/client/cookies/CookiesManager.java
trunk/src/main/java/cc/kune/core/client/errors/ErrorHandler.java
trunk/src/main/java/cc/kune/core/client/notify/UserNotifierPresenter.java
trunk/src/main/java/cc/kune/core/client/state/ContentProviderDefault.java
trunk/src/main/java/cc/kune/core/client/state/SessionDefault.java
trunk/src/main/java/cc/kune/core/client/state/StateManagerDefault.java
trunk/src/main/java/cc/kune/core/client/ws/CorePresenter.java
trunk/src/main/java/cc/kune/core/public/ws.css
trunk/src/main/java/org/ourproject/kune/app/client/KuneEntryPoint.java
trunk/src/main/java/org/ourproject/kune/platf/server/domain/AdmissionType.java
trunk/src/main/java/org/ourproject/kune/platf/server/domain/User.java
trunk/src/test/java/cc/kune/core/client/state/StateManagerTest.java
Log:
Incomplete - task : Startup cleanup and gwtp integration
CLOSED - # 8: Startup cleanup and gwtp integration
http://kune.ourproject.org/issues/ticket/8
Modified: trunk/TROUBLESHOOT
===================================================================
--- trunk/TROUBLESHOOT 2010-12-09 16:03:51 UTC (rev 1163)
+++ trunk/TROUBLESHOOT 2010-12-15 02:26:32 UTC (rev 1164)
@@ -69,3 +69,5 @@
Error: method should override method xxx (or similar)
Fix: Project --> Properties --> Java Compiler ---> Unenable project specific settings
+ Error: Running Web application seems that are running an old GWT code
+ Fix: Open Run > Run configurations and remove a recreate your launch configuration
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2010-12-09 16:03:51 UTC (rev 1163)
+++ trunk/pom.xml 2010-12-15 02:26:32 UTC (rev 1164)
@@ -39,7 +39,7 @@
<dependency>
<groupId>com.googlecode.gwt.inject</groupId>
<artifactId>gin</artifactId>
- <version>1.0</version>
+ <version>r137</version>
</dependency>
<dependency>
<groupId>com.google.code.guice</groupId>
@@ -47,16 +47,6 @@
<version>2.0.1</version>
</dependency>
<dependency>
- <groupId>com.googlecode.mvp4g</groupId>
- <artifactId>mvp4g</artifactId>
- <version>1.2.0</version>
- </dependency>
- <dependency>
- <groupId>com.googlecode.mvc4g</groupId>
- <artifactId>mvc4g</artifactId>
- <version>1.0.0-jboss</version>
- </dependency>
- <dependency>
<groupId>org.ourproject.common</groupId>
<artifactId>gwt-common</artifactId>
<version>0.0.3</version>
@@ -74,10 +64,15 @@
<version>1.3.1</version>
</dependency>
<dependency>
- <groupId>org.ourproject.kune.ws.armor</groupId>
+ <groupId>cc.kune.core.ws.armor</groupId>
<artifactId>ws-armor</artifactId>
- <version>0.0.4</version>
+ <version>0.0.5</version>
</dependency>
+ <dependency>
+ <groupId>com.gwtplatform</groupId>
+ <artifactId>gwtp</artifactId>
+ <version>0.4</version>
+ </dependency>
<!-- cc -->
<dependency>
<groupId>com.gwtext</groupId>
@@ -497,6 +492,11 @@
<name>Cobogw repository at googlecode</name>
<url>http://cobogw.googlecode.com/svn/maven2</url>
</repository>
+ <repository>
+ <id>gwtp</id>
+ <name>gwtp repo</name>
+ <url>http://maven.gwt-platform.googlecode.com/hg/</url>
+ </repository>
<!-- cc -->
<repository>
<id>dyndns-repo</id>
@@ -868,4 +868,4 @@
</dependencies>
</profile>
</profiles>
-</project>
+</project>
\ No newline at end of file
Modified: trunk/src/main/java/cc/kune/core/Core.gwt.xml
===================================================================
--- trunk/src/main/java/cc/kune/core/Core.gwt.xml 2010-12-09 16:03:51 UTC (rev 1163)
+++ trunk/src/main/java/cc/kune/core/Core.gwt.xml 2010-12-15 02:26:32 UTC (rev 1164)
@@ -10,16 +10,21 @@
<public path="public" />
<!-- Dependencies ============================================= -->
<inherits name="com.google.gwt.user.User" />
- <inherits name='com.mvp4g.Mvp4gModule' />
- <inherits name="org.ourproject.kune.ws.armor.WsArmor" />
+ <!-- <inherits name='com.mvp4g.Mvp4gModule' /> -->
+ <inherits name="cc.kune.core.ws.armor.WsArmor" />
<inherits name="org.ourproject.common.Common" />
<inherits name="com.extjs.gxt.ui.GXT" />
<inherits name="com.calclab.suco.Suco" />
+ <inherits name='com.gwtplatform.mvp.Mvp' />
+ <define-configuration-property name="gin.ginjector"
+ is-multi-valued="false" />
+ <set-configuration-property name="gin.ginjector"
+ value="cc.kune.core.client.CoreGinjector" />
<!-- Styles =================================================== -->
<stylesheet src="ws.css" />
<stylesheet src="fontface/stylesheet.css" />
<!-- Entrypoint =============================================== -->
- <entry-point class="cc.kune.core.client.KuneEntryPoint" />
+ <!-- <entry-point class="cc.kune.core.client.KuneEntryPoint" /> -->
<!-- NOTE: this only compiles for chromium/safari ============= -->
<!--http://code.google.com/p/google-web-toolkit/issues/detail?id=42 -->
<!-- <set-property name="user.agent" value="gecko1_8" /> -->
Modified: trunk/src/main/java/cc/kune/core/client/CoreEventBus.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/CoreEventBus.java 2010-12-09 16:03:51 UTC (rev 1163)
+++ trunk/src/main/java/cc/kune/core/client/CoreEventBus.java 2010-12-15 02:26:32 UTC (rev 1164)
@@ -1,63 +1,49 @@
package cc.kune.core.client;
-import org.ourproject.common.client.CommonGinModule;
-import org.ourproject.common.client.notify.ConfirmationAsk;
-import org.ourproject.common.client.notify.NotifyLevel;
-
-import cc.kune.core.client.cookies.CookiesManager;
-import cc.kune.core.client.notify.UserNotifierPresenter;
-import cc.kune.core.client.ws.CorePresenter;
-import cc.kune.core.client.ws.CoreView;
-
-import com.mvp4g.client.annotation.Debug;
-import com.mvp4g.client.annotation.Debug.LogLevel;
-import com.mvp4g.client.annotation.Event;
-import com.mvp4g.client.annotation.Events;
-import com.mvp4g.client.annotation.Start;
-import com.mvp4g.client.event.EventBus;
-
-/**
- * The Kune Core EventBus.
- */
-@Events(startView = CoreView.class, ginModules = { CoreGinModule.class, CommonGinModule.class })
-@Debug(logLevel = LogLevel.DETAILED)
-public interface CoreEventBus extends EventBus {
-
- @Event(handlers = UserNotifierPresenter.class)
- public void alert(String title, String message);
-
- @Event(handlers = UserNotifierPresenter.class)
- public void confirmationAsk(ConfirmationAsk<?> confirmation);
-
- @Event(handlers = CookiesManager.class)
- public void doNothing();
-
- @Event
- // FIXME (nobody do nothing with this)
- public void gotoToken(String token);
-
- @Event(handlers = UserNotifierPresenter.class)
- public void hideSpin();
-
- @Event
- // FIXME (nobody do nothing with this)
- public void i18nReady();
-
- @Event(handlers = UserNotifierPresenter.class)
- public void notify(NotifyLevel level, String message);
-
- @Event(handlers = UserNotifierPresenter.class)
- public void showSpin(String message);
-
- @Event
- // FIXME (nobody do nothing with this)
- public void showSpinLoading();
-
- /**
- * Application start event
- */
- @Start
- @Event(handlers = { CorePresenter.class })
- void start();
-
+public interface CoreEventBus {
}
+// /**
+// * The Kune Core EventBus.
+// */
+// @Events(startView = CoreView.class, ginModules = { CoreGinModule.class,
+// CommonGinModule.class })
+// @Debug(logLevel = LogLevel.DETAILED)
+// public interface CoreEventBus extends EventBus {
+//
+// @Event(handlers = UserNotifierPresenter.class)
+// public void alert(String title, String message);
+//
+// @Event(handlers = UserNotifierPresenter.class)
+// public void confirmationAsk(ConfirmationAsk<?> confirmation);
+//
+// @Event(handlers = CookiesManager.class)
+// public void doNothing();
+//
+// @Event
+// // FIXME (nobody do nothing with this)
+// public void gotoToken(String token);
+//
+// @Event(handlers = UserNotifierPresenter.class)
+// public void hideSpin();
+//
+// @Event
+// // FIXME (nobody do nothing with this)
+// public void i18nReady();
+//
+// @Event(handlers = UserNotifierPresenter.class)
+// public void notify(NotifyLevel level, String message);
+//
+// @Event(handlers = UserNotifierPresenter.class)
+// public void showSpin(String message);
+//
+// @Event
+// // FIXME (nobody do nothing with this)
+// public void showSpinLoading();
+//
+// /**
+// * Application start event
+// */
+// @Start
+// @Event(handlers = { CorePresenter.class })
+// void start();
+
Modified: trunk/src/main/java/cc/kune/core/client/CoreGinModule.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/CoreGinModule.java 2010-12-09 16:03:51 UTC (rev 1163)
+++ trunk/src/main/java/cc/kune/core/client/CoreGinModule.java 2010-12-15 02:26:32 UTC (rev 1164)
@@ -1,24 +1,40 @@
package cc.kune.core.client;
-import org.ourproject.kune.ws.armor.client.Body;
-import org.ourproject.kune.ws.armor.client.IBody;
-
+import cc.kune.core.client.errors.ErrorHandler;
import cc.kune.core.client.i18n.I18nUITranslationService;
+import cc.kune.core.client.notify.SpinerPresenter;
+import cc.kune.core.client.notify.SpinerViewImpl;
+import cc.kune.core.client.notify.UserNotifierPresenter;
+import cc.kune.core.client.notify.UserNotifierPresenter.UserNotifierProxy;
+import cc.kune.core.client.notify.UserNotifierViewImpl;
import cc.kune.core.client.state.ContentProvider;
import cc.kune.core.client.state.ContentProviderDefault;
import cc.kune.core.client.state.HistoryWrapper;
import cc.kune.core.client.state.HistoryWrapperDefault;
import cc.kune.core.client.state.Session;
import cc.kune.core.client.state.SessionDefault;
+import cc.kune.core.client.ws.CorePlaceManager;
+import cc.kune.core.client.ws.CorePresenter;
+import cc.kune.core.client.ws.CoreViewImpl;
import cc.kune.core.shared.i18n.I18nTranslationService;
+import cc.kune.core.ws.armor.client.Body;
+import cc.kune.core.ws.armor.client.IBody;
-import com.google.gwt.inject.client.AbstractGinModule;
import com.google.inject.Singleton;
+import com.gwtplatform.mvp.client.DefaultEventBus;
+import com.gwtplatform.mvp.client.DefaultProxyFailureHandler;
+import com.gwtplatform.mvp.client.EventBus;
+import com.gwtplatform.mvp.client.RootPresenter;
+import com.gwtplatform.mvp.client.gin.AbstractPresenterModule;
+import com.gwtplatform.mvp.client.proxy.ParameterTokenFormatter;
+import com.gwtplatform.mvp.client.proxy.PlaceManager;
+import com.gwtplatform.mvp.client.proxy.ProxyFailureHandler;
+import com.gwtplatform.mvp.client.proxy.TokenFormatter;
/**
* The Class Core GinModule.
*/
-public class CoreGinModule extends AbstractGinModule {
+public class CoreGinModule extends AbstractPresenterModule {
/*
* (non-Javadoc)
@@ -27,10 +43,24 @@
*/
@Override
protected void configure() {
+ bind(EventBus.class).to(DefaultEventBus.class).in(Singleton.class);
+ bind(PlaceManager.class).to(CorePlaceManager.class).in(Singleton.class);
+ bind(TokenFormatter.class).to(ParameterTokenFormatter.class).in(Singleton.class);
+ bind(RootPresenter.class).asEagerSingleton();
+ bind(ProxyFailureHandler.class).to(DefaultProxyFailureHandler.class).in(Singleton.class);
+
+ // Presenters
+ bindPresenter(CorePresenter.class, CorePresenter.CoreView.class, CoreViewImpl.class,
+ CorePresenter.CoreProxy.class);
+ bindPresenter(SpinerPresenter.class, SpinerPresenter.SpinerView.class, SpinerViewImpl.class,
+ SpinerPresenter.SpinerProxy.class);
+ bindPresenter(UserNotifierPresenter.class, UserNotifierPresenter.UserNotifierView.class,
+ UserNotifierViewImpl.class, UserNotifierProxy.class);
+
bind(IBody.class).to(Body.class).in(Singleton.class);
bind(Session.class).to(SessionDefault.class).in(Singleton.class);
bind(I18nTranslationService.class).to(I18nUITranslationService.class).in(Singleton.class);
- // bind(ErrorHandler.class).in(Singleton.class);
+ bind(ErrorHandler.class).in(Singleton.class);
bind(ContentProvider.class).to(ContentProviderDefault.class).in(Singleton.class);
bind(HistoryWrapper.class).to(HistoryWrapperDefault.class).in(Singleton.class);
// bind(StateManager.class).to(StateManagerDefault.class).in(Singleton.class);
Added: trunk/src/main/java/cc/kune/core/client/CoreGinjector.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/CoreGinjector.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/CoreGinjector.java 2010-12-15 02:26:32 UTC (rev 1164)
@@ -0,0 +1,29 @@
+package cc.kune.core.client;
+
+import cc.kune.core.client.notify.SpinerPresenter;
+import cc.kune.core.client.notify.UserNotifierPresenter;
+import cc.kune.core.client.ws.CorePresenter;
+
+import com.google.gwt.inject.client.AsyncProvider;
+import com.google.gwt.inject.client.GinModules;
+import com.google.gwt.inject.client.Ginjector;
+import com.gwtplatform.mvp.client.EventBus;
+import com.gwtplatform.mvp.client.proxy.PlaceManager;
+import com.gwtplatform.mvp.client.proxy.ProxyFailureHandler;
+
+@GinModules({ CoreGinModule.class })
+public interface CoreGinjector extends Ginjector {
+
+ AsyncProvider<CorePresenter> getCorePresenter();
+
+ EventBus getEventBus();
+
+ PlaceManager getPlaceManager();
+
+ ProxyFailureHandler getProxyFailureHandler();
+
+ AsyncProvider<SpinerPresenter> getSpinerPresenter();
+
+ AsyncProvider<UserNotifierPresenter> getUserNotifierPresenter();
+
+}
\ No newline at end of file
Property changes on: trunk/src/main/java/cc/kune/core/client/CoreGinjector.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/src/main/java/cc/kune/core/client/KuneEntryPoint.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/KuneEntryPoint.java 2010-12-09 16:03:51 UTC (rev 1163)
+++ trunk/src/main/java/cc/kune/core/client/KuneEntryPoint.java 2010-12-15 02:26:32 UTC (rev 1164)
@@ -5,14 +5,13 @@
import com.google.gwt.core.client.GWT.UncaughtExceptionHandler;
import com.google.gwt.core.client.Scheduler;
import com.google.gwt.core.client.Scheduler.ScheduledCommand;
-import com.google.gwt.user.client.ui.RootLayoutPanel;
-import com.google.gwt.user.client.ui.Widget;
-import com.mvp4g.client.Mvp4gModule;
+import com.gwtplatform.mvp.client.DelayedBindRegistry;
/**
* The Class KuneEntryPoint.
*/
public class KuneEntryPoint implements EntryPoint {
+ public final CoreGinjector ginjector = GWT.create(CoreGinjector.class);
/*
* (non-Javadoc)
@@ -39,9 +38,9 @@
* On module load cont.
*/
public void onModuleLoadCont() {
- final Mvp4gModule module = (Mvp4gModule) GWT.create(Mvp4gModule.class);
- module.createAndStartModule();
- RootLayoutPanel.get().add((Widget) module.getStartView());
+ DelayedBindRegistry.bind(ginjector);
+
+ ginjector.getPlaceManager().revealCurrentPlace();
}
}
Modified: trunk/src/main/java/cc/kune/core/client/cookies/CookiesManager.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/cookies/CookiesManager.java 2010-12-09 16:03:51 UTC (rev 1163)
+++ trunk/src/main/java/cc/kune/core/client/cookies/CookiesManager.java 2010-12-15 02:26:32 UTC (rev 1164)
@@ -1,16 +1,11 @@
package cc.kune.core.client.cookies;
-import cc.kune.core.client.CoreEventBus;
-import cc.kune.core.client.cookies.CookiesManager.ICookiesView;
import cc.kune.core.client.state.Session;
import com.google.gwt.user.client.Cookies;
import com.google.inject.Inject;
-import com.mvp4g.client.annotation.Presenter;
-import com.mvp4g.client.presenter.BasePresenter;
-@Presenter(view = CookiesView.class)
-public class CookiesManager extends BasePresenter<ICookiesView, CoreEventBus> {
+public class CookiesManager {
public interface ICookiesView {
String getCurrentCookie();
}
Modified: trunk/src/main/java/cc/kune/core/client/errors/ErrorHandler.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/errors/ErrorHandler.java 2010-12-09 16:03:51 UTC (rev 1163)
+++ trunk/src/main/java/cc/kune/core/client/errors/ErrorHandler.java 2010-12-15 02:26:32 UTC (rev 1164)
@@ -21,7 +21,8 @@
import org.ourproject.common.client.notify.NotifyLevel;
-import cc.kune.core.client.CoreEventBus;
+import cc.kune.core.client.notify.SpinerPresenter;
+import cc.kune.core.client.notify.UserNotifierPresenter;
import cc.kune.core.client.state.Session;
import cc.kune.core.shared.i18n.I18nTranslationService;
@@ -31,23 +32,30 @@
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException;
import com.google.inject.Inject;
-import com.mvp4g.client.event.BaseEventHandler;
+import com.gwtplatform.mvp.client.proxy.PlaceManager;
-public class ErrorHandler extends BaseEventHandler<CoreEventBus> {
+public class ErrorHandler {
private final Session session;
private final I18nTranslationService i18n;
private final Event0 onSessionExpired;
+ private final UserNotifierPresenter notifier;
+ private final SpinerPresenter spiner;
+ private final PlaceManager placeManager;
@Inject
- public ErrorHandler(final Session session, final I18nTranslationService i18n) {
+ public ErrorHandler(final Session session, final I18nTranslationService i18n, final UserNotifierPresenter notifier,
+ final SpinerPresenter spiner, final PlaceManager placeManager) {
this.session = session;
this.i18n = i18n;
+ this.notifier = notifier;
+ this.spiner = spiner;
+ this.placeManager = placeManager;
this.onSessionExpired = new Event0("onSessionExpired");
}
public void doSessionExpired() {
onSessionExpired.fire();
- eventBus.notify(NotifyLevel.info, "Your session has expired. Please log in again.");
+ notifier.notify(NotifyLevel.info, "Your session has expired. Please log in again.");
}
public void onSessionExpired(final Listener0 listener) {
@@ -55,10 +63,10 @@
}
public void process(final Throwable caught) {
- eventBus.hideSpin();
+ spiner.fade();
if (caught instanceof AccessViolationException) {
logException(caught);
- eventBus.notify(NotifyLevel.error, i18n.t("You do not have rights to perform that action"));
+ notifier.notify(NotifyLevel.error, i18n.t("You do not have rights to perform that action"));
} else if (caught instanceof SessionExpiredException) {
logException(caught);
doSessionExpired();
@@ -67,45 +75,48 @@
if (session.isLogged()) {
doSessionExpired();
} else {
- eventBus.notify(NotifyLevel.important, i18n.t("Please sign in or register to collaborate"));
+ notifier.notify(NotifyLevel.important, i18n.t("Please sign in or register to collaborate"));
}
} else if (caught instanceof GroupNotFoundException) {
logException(caught);
-
- eventBus.notify(NotifyLevel.veryImportant, i18n.t("Group not found"));
- eventBus.gotoToken("");
+ notifier.notify(NotifyLevel.veryImportant, i18n.t("Group not found"));
+ goHome();
} else if (caught instanceof IncompatibleRemoteServiceException) {
- eventBus.notify(NotifyLevel.error,
+ notifier.notify(NotifyLevel.error,
i18n.t("Your browser is outdated with the server software. Please reload this page."));
} else if (caught instanceof ContentNotFoundException) {
logException(caught);
- eventBus.notify(NotifyLevel.veryImportant, i18n.t("Content not found"));
- eventBus.gotoToken("");
+ notifier.notify(NotifyLevel.veryImportant, i18n.t("Content not found"));
+ goHome();
} else if (caught instanceof ContentNotPermittedException) {
logException(caught);
- eventBus.notify(NotifyLevel.error, i18n.t("Action not permitted in this location"));
- eventBus.gotoToken("");
+ notifier.notify(NotifyLevel.error, i18n.t("Action not permitted in this location"));
+ goHome();
} else if (caught instanceof ContainerNotPermittedException) {
logException(caught);
- eventBus.notify(NotifyLevel.error, i18n.t("Action not permitted in this location"));
- eventBus.gotoToken("");
+ notifier.notify(NotifyLevel.error, i18n.t("Action not permitted in this location"));
+ goHome();
} else if (caught instanceof LastAdminInGroupException) {
logException(caught);
- eventBus.alert(i18n.t("Warning"), i18n.t("Sorry, you are the last admin of this group."
+ notifier.alert(i18n.t("Warning"), i18n.t("Sorry, you are the last admin of this group."
+ " Look for someone to substitute you appropriately as admin before leaving this group."));
} else if (caught instanceof AlreadyGroupMemberException) {
logException(caught);
- eventBus.notify(NotifyLevel.error, i18n.t("This group is already a group member"));
+ notifier.notify(NotifyLevel.error, i18n.t("This group is already a group member"));
} else if (caught instanceof AlreadyUserMemberException) {
logException(caught);
- eventBus.notify(NotifyLevel.error, i18n.t("This user is already a group member"));
+ notifier.notify(NotifyLevel.error, i18n.t("This user is already a group member"));
} else {
logException(caught, true);
- eventBus.notify(NotifyLevel.error, i18n.t("Error performing operation"));
+ notifier.notify(NotifyLevel.error, i18n.t("Error performing operation"));
GWT.log("Other kind of exception in StateManagerDefault/processErrorException", caught);
}
}
+ private void goHome() {
+ placeManager.revealDefaultPlace();
+ }
+
private void logException(final Throwable caught) {
logException(caught, false);
}
Added: trunk/src/main/java/cc/kune/core/client/i18n/I18nReadyEvent.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/i18n/I18nReadyEvent.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/i18n/I18nReadyEvent.java 2010-12-15 02:26:32 UTC (rev 1164)
@@ -0,0 +1,32 @@
+package cc.kune.core.client.i18n;
+
+import com.google.gwt.event.shared.EventHandler;
+import com.google.gwt.event.shared.GwtEvent;
+
+public class I18nReadyEvent extends GwtEvent<I18nReadyEvent.I18nReadyHandler> {
+
+ public interface I18nReadyHandler extends EventHandler {
+
+ void fire(I18nReadyEvent event);
+ }
+
+ public static final GwtEvent.Type<I18nReadyHandler> TYPE = new GwtEvent.Type<I18nReadyHandler>();
+
+ public static Type<I18nReadyHandler> getType() {
+ return TYPE;
+ }
+
+ public I18nReadyEvent() {
+ }
+
+ @Override
+ public com.google.gwt.event.shared.GwtEvent.Type<I18nReadyHandler> getAssociatedType() {
+ return TYPE;
+ }
+
+ @Override
+ protected void dispatch(final I18nReadyHandler handler) {
+ handler.fire(this);
+ }
+
+}
\ No newline at end of file
Property changes on: trunk/src/main/java/cc/kune/core/client/i18n/I18nReadyEvent.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/src/main/java/cc/kune/core/client/notify/SpinerPresenter.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/notify/SpinerPresenter.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/notify/SpinerPresenter.java 2010-12-15 02:26:32 UTC (rev 1164)
@@ -0,0 +1,45 @@
+package cc.kune.core.client.notify;
+
+import com.google.inject.Inject;
+import com.gwtplatform.mvp.client.EventBus;
+import com.gwtplatform.mvp.client.Presenter;
+import com.gwtplatform.mvp.client.View;
+import com.gwtplatform.mvp.client.proxy.ProxyPlace;
+import com.gwtplatform.mvp.client.proxy.RevealRootContentEvent;
+
+public class SpinerPresenter extends Presenter<SpinerPresenter.SpinerView, SpinerPresenter.SpinerProxy> {
+
+ public interface SpinerProxy extends ProxyPlace<SpinerPresenter> {
+ }
+
+ public interface SpinerView extends View {
+
+ void fade();
+
+ void show(String message);
+
+ void showLoading();
+ }
+
+ @Inject
+ public SpinerPresenter(final EventBus eventBus, final SpinerView view, final SpinerProxy proxy) {
+ super(eventBus, view, proxy);
+ }
+
+ public void fade() {
+ getView().fade();
+ }
+
+ public void show(final String message) {
+ getView().show(message);
+ }
+
+ public void showLoading() {
+ getView().showLoading();
+ }
+
+ @Override
+ protected void revealInParent() {
+ RevealRootContentEvent.fire(this, this);
+ }
+}
Property changes on: trunk/src/main/java/cc/kune/core/client/notify/SpinerPresenter.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/src/main/java/cc/kune/core/client/notify/SpinerViewImpl.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/notify/SpinerViewImpl.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/notify/SpinerViewImpl.java 2010-12-15 02:26:32 UTC (rev 1164)
@@ -0,0 +1,38 @@
+package cc.kune.core.client.notify;
+
+import cc.kune.core.client.notify.SpinerPresenter.SpinerView;
+
+import com.google.gwt.user.client.ui.Label;
+import com.google.gwt.user.client.ui.Widget;
+import com.gwtplatform.mvp.client.ViewImpl;
+
+public class SpinerViewImpl extends ViewImpl implements SpinerView {
+
+ private final Label label;
+
+ public SpinerViewImpl() {
+ label = new Label();
+ }
+
+ @Override
+ public Widget asWidget() {
+ return label;
+ }
+
+ @Override
+ public void fade() {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void show(final String message) {
+ label.setText(message);
+ }
+
+ @Override
+ public void showLoading() {
+ label.setText("FIXME");
+ }
+
+}
Property changes on: trunk/src/main/java/cc/kune/core/client/notify/SpinerViewImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/src/main/java/cc/kune/core/client/notify/UserNotifierPresenter.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/notify/UserNotifierPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
+++ trunk/src/main/java/cc/kune/core/client/notify/UserNotifierPresenter.java 2010-12-15 02:26:32 UTC (rev 1164)
@@ -3,45 +3,47 @@
import org.ourproject.common.client.notify.ConfirmationAsk;
import org.ourproject.common.client.notify.NotifyLevel;
-import cc.kune.core.client.CoreEventBus;
-import cc.kune.core.client.notify.UserNotifierPresenter.IUserNotifierView;
+import cc.kune.core.client.notify.UserNotifierPresenter.UserNotifierProxy;
+import cc.kune.core.client.notify.UserNotifierPresenter.UserNotifierView;
-import com.mvp4g.client.annotation.Presenter;
-import com.mvp4g.client.presenter.LazyPresenter;
-import com.mvp4g.client.view.LazyView;
+import com.google.inject.Inject;
+import com.gwtplatform.mvp.client.EventBus;
+import com.gwtplatform.mvp.client.Presenter;
+import com.gwtplatform.mvp.client.View;
+import com.gwtplatform.mvp.client.proxy.ProxyPlace;
-@Presenter(view = UserNotifierView.class)
-public class UserNotifierPresenter extends LazyPresenter<IUserNotifierView, CoreEventBus> {
+public class UserNotifierPresenter extends Presenter<UserNotifierView, UserNotifierProxy> {
- public interface IUserNotifierView extends LazyView {
+ public interface UserNotifierProxy extends ProxyPlace<UserNotifierPresenter> {
+ }
+
+ public interface UserNotifierView extends View {
public void alert(String title, String message);
public void confirmationAsk(ConfirmationAsk<?> ask);
- public void hideSpin();
-
public void notify(NotifyLevel level, String message);
+ }
- public void showSpin(String message);
+ @Inject
+ public UserNotifierPresenter(final EventBus eventBus, final UserNotifierView view, final UserNotifierProxy proxy) {
+ super(eventBus, view, proxy);
}
- public void onAlert(final String title, final String message) {
- view.alert(title, message);
+ public void notify(final NotifyLevel level, final String message) {
+ getView().notify(level, message);
}
- public void onConfirmationAsk(final ConfirmationAsk<?> ask) {
- view.confirmationAsk(ask);
+ public void alert(final String title, final String message) {
+ getView().alert(title, message);
};
- public void onHideSpin() {
- view.hideSpin();
+ public void onConfirmationAsk(final ConfirmationAsk<?> ask) {
+ getView().confirmationAsk(ask);
}
- public void onNotify(final NotifyLevel level, final String message) {
- view.notify(level, message);
+ @Override
+ protected void revealInParent() {
}
- public void onShowSpin(final String message) {
- view.showSpin(message);
- }
}
\ No newline at end of file
Deleted: trunk/src/main/java/cc/kune/core/client/notify/UserNotifierView.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/notify/UserNotifierView.java 2010-12-09 16:03:51 UTC (rev 1163)
+++ trunk/src/main/java/cc/kune/core/client/notify/UserNotifierView.java 2010-12-15 02:26:32 UTC (rev 1164)
@@ -1,49 +0,0 @@
-package cc.kune.core.client.notify;
-
-import org.ourproject.common.client.notify.ConfirmationAsk;
-import org.ourproject.common.client.notify.NotifyLevel;
-
-import cc.kune.core.client.notify.UserNotifierPresenter.IUserNotifierView;
-
-import com.google.gwt.user.client.Window;
-
-public class UserNotifierView implements IUserNotifierView {
-
- @Override
- public void alert(final String title, final String message) {
- message(title, message);
- }
-
- @Override
- public void confirmationAsk(final ConfirmationAsk<?> ask) {
- // TODO Auto-generated method stub
-
- }
-
- @Override
- public void createView() {
- // TODO Auto-generated method stub
- }
-
- @Override
- public void hideSpin() {
- // TODO Auto-generated method stub
-
- }
-
- @Override
- public void notify(final NotifyLevel level, final String message) {
- message("", message);
- }
-
- @Override
- public void showSpin(final String message) {
- // TODO Auto-generated method stub
-
- }
-
- private void message(final String title, final String message) {
- Window.alert(title + " " + message);
- }
-
-}
Copied: trunk/src/main/java/cc/kune/core/client/notify/UserNotifierViewImpl.java (from rev 1163, trunk/src/main/java/cc/kune/core/client/notify/UserNotifierView.java)
===================================================================
--- trunk/src/main/java/cc/kune/core/client/notify/UserNotifierViewImpl.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/notify/UserNotifierViewImpl.java 2010-12-15 02:26:32 UTC (rev 1164)
@@ -0,0 +1,43 @@
+package cc.kune.core.client.notify;
+
+import org.ourproject.common.client.notify.ConfirmationAsk;
+import org.ourproject.common.client.notify.NotifyLevel;
+
+import cc.kune.core.client.notify.UserNotifierPresenter.UserNotifierView;
+
+import com.google.gwt.user.client.Window;
+import com.google.gwt.user.client.ui.Widget;
+import com.google.inject.Inject;
+import com.gwtplatform.mvp.client.ViewImpl;
+
+public class UserNotifierViewImpl extends ViewImpl implements UserNotifierView {
+ @Inject
+ public UserNotifierViewImpl() {
+ }
+
+ @Override
+ public void alert(final String title, final String message) {
+ message(title, message);
+ }
+
+ @Override
+ public Widget asWidget() {
+ return null;
+ }
+
+ @Override
+ public void confirmationAsk(final ConfirmationAsk<?> ask) {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void notify(final NotifyLevel level, final String message) {
+ message("", message);
+ }
+
+ private void message(final String title, final String message) {
+ Window.alert(title + " " + message);
+ }
+
+}
Property changes on: trunk/src/main/java/cc/kune/core/client/notify/UserNotifierViewImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/src/main/java/cc/kune/core/client/state/ContentProviderDefault.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/state/ContentProviderDefault.java 2010-12-09 16:03:51 UTC (rev 1163)
+++ trunk/src/main/java/cc/kune/core/client/state/ContentProviderDefault.java 2010-12-15 02:26:32 UTC (rev 1164)
@@ -21,23 +21,23 @@
import java.util.HashMap;
-import cc.kune.core.client.CoreEventBus;
+import cc.kune.core.client.notify.SpinerPresenter;
import cc.kune.core.client.rpcservices.ContentServiceAsync;
import cc.kune.core.shared.dto.StateAbstractDTO;
import cc.kune.core.shared.dto.StateToken;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.inject.Inject;
-import com.mvp4g.client.event.BaseEventHandler;
-public class ContentProviderDefault extends BaseEventHandler<CoreEventBus> implements ContentProvider {
-
+public class ContentProviderDefault implements ContentProvider {
private final ContentServiceAsync server;
private final HashMap<StateToken, StateAbstractDTO> cache;
+ private final SpinerPresenter spiner;
@Inject
- public ContentProviderDefault(final ContentServiceAsync server) {
+ public ContentProviderDefault(final ContentServiceAsync server, final SpinerPresenter spiner) {
this.server = server;
+ this.spiner = spiner;
this.cache = new HashMap<StateToken, StateAbstractDTO>();
}
@@ -46,7 +46,7 @@
}
public void getContent(final String user, final StateToken newState, final AsyncCallback<StateAbstractDTO> callback) {
- eventBus.showSpinLoading();
+ spiner.showLoading();
final StateAbstractDTO catched = getCached(newState);
if (catched != null) {
callback.onSuccess(catched);
Modified: trunk/src/main/java/cc/kune/core/client/state/SessionDefault.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/state/SessionDefault.java 2010-12-09 16:03:51 UTC (rev 1163)
+++ trunk/src/main/java/cc/kune/core/client/state/SessionDefault.java 2010-12-15 02:26:32 UTC (rev 1164)
@@ -22,8 +22,8 @@
import java.util.Collection;
import java.util.List;
-import cc.kune.core.client.CoreEventBus;
import cc.kune.core.client.cookies.CookiesManager;
+import cc.kune.core.client.i18n.I18nReadyEvent;
import cc.kune.core.client.rpcservices.AsyncCallbackSimple;
import cc.kune.core.client.rpcservices.UserServiceAsync;
import cc.kune.core.shared.dto.I18nCountryDTO;
@@ -47,9 +47,9 @@
import com.google.gwt.core.client.GWT;
import com.google.inject.Inject;
import com.google.inject.Provider;
-import com.mvp4g.client.event.BaseEventHandler;
+import com.gwtplatform.mvp.client.EventBus;
-public class SessionDefault extends BaseEventHandler<CoreEventBus> implements Session {
+public class SessionDefault implements Session {
private String userHash;
private InitDataDTO initData;
private UserInfoDTO currentUserInfo;
@@ -64,6 +64,9 @@
private final Provider<UserServiceAsync> userServiceProvider;
@Inject
+ private static EventBus eventBus;
+
+ @Inject
public SessionDefault(final CookiesManager cookieManager, final Provider<UserServiceAsync> userServiceProvider) {
this.userHash = cookieManager.getCurrentCookie();
this.userHash = userHash == null || userHash.equals("null") ? null : userHash;
@@ -241,7 +244,7 @@
public void setCurrentLanguage(final I18nLanguageDTO currentLanguage) {
this.currentLanguage = currentLanguage;
- eventBus.i18nReady();
+ eventBus.fireEvent(new I18nReadyEvent());
}
public void setCurrentState(final StateAbstractDTO currentState) {
Modified: trunk/src/main/java/cc/kune/core/client/state/StateManagerDefault.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/state/StateManagerDefault.java 2010-12-09 16:03:51 UTC (rev 1163)
+++ trunk/src/main/java/cc/kune/core/client/state/StateManagerDefault.java 2010-12-15 02:26:32 UTC (rev 1164)
@@ -21,9 +21,9 @@
import java.util.HashMap;
-import cc.kune.core.client.CoreEventBus;
import cc.kune.core.client.actions.BeforeActionCollection;
import cc.kune.core.client.actions.BeforeActionListener;
+import cc.kune.core.client.notify.SpinerPresenter;
import cc.kune.core.client.rpcservices.AsyncCallbackSimple;
import cc.kune.core.shared.dto.SocialNetworkDataDTO;
import cc.kune.core.shared.dto.StateAbstractDTO;
@@ -40,10 +40,8 @@
import com.google.gwt.event.logical.shared.ValueChangeHandler;
import com.google.gwt.user.client.History;
import com.google.inject.Inject;
-import com.mvp4g.client.event.BaseEventHandler;
-public class StateManagerDefault extends BaseEventHandler<CoreEventBus> implements StateManager,
- ValueChangeHandler<String> {
+public class StateManagerDefault implements StateManager, ValueChangeHandler<String> {
private final ContentProvider contentProvider;
private StateToken previousToken;
/**
@@ -59,10 +57,12 @@
private final Event2<String, String> onToolChanged;
private final Event2<String, String> onGroupChanged;
private final BeforeActionCollection beforeStateChangeCollection;
+ private final SpinerPresenter spiner;
@Inject
public StateManagerDefault(final ContentProvider contentProvider, final Session session,
- final HistoryWrapper history) {
+ final HistoryWrapper history, final SpinerPresenter spinner) {
+ this.spiner = spinner;
// Put this outside here
History.addValueChangeHandler(this);
this.contentProvider = contentProvider;
@@ -201,7 +201,7 @@
void setState(final StateAbstractDTO newState) {
session.setCurrentState(newState);
onStateChanged.fire(newState);
- eventBus.hideSpin();
+ spiner.fade();
checkGroupAndToolChange(newState);
previousToken = newState.getStateToken();
Added: trunk/src/main/java/cc/kune/core/client/ws/CorePlaceManager.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/ws/CorePlaceManager.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/ws/CorePlaceManager.java 2010-12-15 02:26:32 UTC (rev 1164)
@@ -0,0 +1,20 @@
+package cc.kune.core.client.ws;
+
+import com.google.inject.Inject;
+import com.gwtplatform.mvp.client.EventBus;
+import com.gwtplatform.mvp.client.proxy.PlaceManagerImpl;
+import com.gwtplatform.mvp.client.proxy.PlaceRequest;
+import com.gwtplatform.mvp.client.proxy.TokenFormatter;
+
+public class CorePlaceManager extends PlaceManagerImpl {
+
+ @Inject
+ public CorePlaceManager(final EventBus eventBus, final TokenFormatter tokenFormatter) {
+ super(eventBus, tokenFormatter);
+ }
+
+ @Override
+ public void revealDefaultPlace() {
+ revealPlace(new PlaceRequest("home"));
+ }
+}
Property changes on: trunk/src/main/java/cc/kune/core/client/ws/CorePlaceManager.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/src/main/java/cc/kune/core/client/ws/CorePresenter.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/ws/CorePresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
+++ trunk/src/main/java/cc/kune/core/client/ws/CorePresenter.java 2010-12-15 02:26:32 UTC (rev 1164)
@@ -1,32 +1,37 @@
package cc.kune.core.client.ws;
-import cc.kune.core.client.CoreEventBus;
-import cc.kune.core.client.ws.CorePresenter.ICoreView;
import cc.kune.core.shared.i18n.I18nTranslationService;
import com.google.inject.Inject;
-import com.mvp4g.client.annotation.Presenter;
-import com.mvp4g.client.presenter.BasePresenter;
+import com.gwtplatform.mvp.client.EventBus;
+import com.gwtplatform.mvp.client.Presenter;
+import com.gwtplatform.mvp.client.View;
+import com.gwtplatform.mvp.client.annotations.NameToken;
+import com.gwtplatform.mvp.client.annotations.ProxyCodeSplit;
+import com.gwtplatform.mvp.client.proxy.ProxyPlace;
+import com.gwtplatform.mvp.client.proxy.RevealRootLayoutContentEvent;
/**
* The Class CorePresenter.
*/
-@Presenter(view = CoreView.class)
-public class CorePresenter extends BasePresenter<ICoreView, CoreEventBus> {
+public class CorePresenter extends Presenter<CorePresenter.CoreView, CorePresenter.CoreProxy> {
+ @ProxyCodeSplit
+ @NameToken("home")
+ public interface CoreProxy extends ProxyPlace<CorePresenter> {
+ }
- /**
- * The Interface ICoreView.
- */
- public interface ICoreView {
+ public interface CoreView extends View {
}
@Inject
- public CorePresenter(final I18nTranslationService i18n) {
+ public CorePresenter(final EventBus eventBus, final CoreView view, final CoreProxy proxy,
+ final I18nTranslationService i18n) {
+ super(eventBus, view, proxy);
}
- /**
- * On start.
- */
- public void onStart() {
+ @Override
+ protected void revealInParent() {
+ RevealRootLayoutContentEvent.fire(eventBus, this);
}
+
}
Deleted: trunk/src/main/java/cc/kune/core/client/ws/CoreView.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/ws/CoreView.java 2010-12-09 16:03:51 UTC (rev 1163)
+++ trunk/src/main/java/cc/kune/core/client/ws/CoreView.java 2010-12-15 02:26:32 UTC (rev 1164)
@@ -1,31 +0,0 @@
-package cc.kune.core.client.ws;
-
-import org.ourproject.kune.ws.armor.client.Body;
-import org.ourproject.kune.ws.armor.client.resources.WsArmorResources;
-
-import cc.kune.core.client.ws.CorePresenter.ICoreView;
-
-import com.google.gwt.core.client.GWT;
-import com.google.gwt.user.client.ui.Composite;
-import com.google.gwt.user.client.ui.InlineLabel;
-import com.google.inject.Inject;
-
-/**
- * The Class CoreView is where the general armor of Kune it created/attached.
- */
-public class CoreView extends Composite implements ICoreView {
-
- /**
- * Instantiates a new core view.
- *
- * @param body
- * the body
- */
- @Inject
- public CoreView(final Body body) {
- GWT.<WsArmorResources> create(WsArmorResources.class).style().ensureInjected();
- initWidget(body);
- body.getEntityHeader().add(new InlineLabel("Test - a, e, i, o, u"));
- body.getDocHeader().add(new InlineLabel("doc title"));
- }
-}
Copied: trunk/src/main/java/cc/kune/core/client/ws/CoreViewImpl.java (from rev 1162, trunk/src/main/java/cc/kune/core/client/ws/CoreView.java)
===================================================================
--- trunk/src/main/java/cc/kune/core/client/ws/CoreViewImpl.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/ws/CoreViewImpl.java 2010-12-15 02:26:32 UTC (rev 1164)
@@ -0,0 +1,37 @@
+package cc.kune.core.client.ws;
+
+import cc.kune.core.ws.armor.client.Body;
+import cc.kune.core.ws.armor.client.resources.WsArmorResources;
+
+import com.google.gwt.core.client.GWT;
+import com.google.gwt.user.client.ui.InlineLabel;
+import com.google.gwt.user.client.ui.Widget;
+import com.google.inject.Inject;
+import com.gwtplatform.mvp.client.ViewImpl;
+
+/**
+ * The Class CoreView is where the general armor of Kune it created/attached.
+ */
+public class CoreViewImpl extends ViewImpl implements CorePresenter.CoreView {
+
+ private final Body body;
+
+ /**
+ * Instantiates a new core view.
+ *
+ * @param body
+ * the body
+ */
+ @Inject
+ public CoreViewImpl(final Body body) {
+ this.body = body;
+ GWT.<WsArmorResources> create(WsArmorResources.class).style().ensureInjected();
+ body.getEntityHeader().add(new InlineLabel("Test - a, e, i, o, u"));
+ body.getDocHeader().add(new InlineLabel("doc title"));
+ }
+
+ @Override
+ public Widget asWidget() {
+ return body;
+ }
+}
Property changes on: trunk/src/main/java/cc/kune/core/client/ws/CoreViewImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/src/main/java/cc/kune/core/public/ws.css
===================================================================
--- trunk/src/main/java/cc/kune/core/public/ws.css 2010-12-09 16:03:51 UTC (rev 1163)
+++ trunk/src/main/java/cc/kune/core/public/ws.css 2010-12-15 02:26:32 UTC (rev 1164)
@@ -8,6 +8,10 @@
margin: 5px;
}
+* {
+ font-family: 'Droid Sans', Arial;
+}
+
body.fontface {font: 'Droid Sans', Arial;}
a {
Modified: trunk/src/main/java/org/ourproject/kune/app/client/KuneEntryPoint.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/app/client/KuneEntryPoint.java 2010-12-09 16:03:51 UTC (rev 1163)
+++ trunk/src/main/java/org/ourproject/kune/app/client/KuneEntryPoint.java 2010-12-15 02:26:32 UTC (rev 1164)
@@ -21,9 +21,10 @@
import org.ourproject.kune.platf.client.services.Loader;
import org.ourproject.kune.platf.client.services.PlatformModule;
-import org.ourproject.kune.ws.armor.client.Body;
-import org.ourproject.kune.ws.armor.client.resources.WsArmorResources;
+import cc.kune.core.ws.armor.client.Body;
+import cc.kune.core.ws.armor.client.resources.WsArmorResources;
+
import com.allen_sauer.gwt.log.client.Log;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.Scheduler;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/domain/AdmissionType.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/domain/AdmissionType.java 2010-12-09 16:03:51 UTC (rev 1163)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/domain/AdmissionType.java 2010-12-15 02:26:32 UTC (rev 1164)
@@ -19,6 +19,8 @@
*/
package org.ourproject.kune.platf.server.domain;
-public enum AdmissionType {
+import com.google.gwt.user.client.rpc.IsSerializable;
+
+public enum AdmissionType implements IsSerializable {
Moderated, Open, Closed
}
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/domain/User.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/domain/User.java 2010-12-09 16:03:51 UTC (rev 1163)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/domain/User.java 2010-12-15 02:26:32 UTC (rev 1164)
@@ -78,7 +78,7 @@
@Length(min = 6, max = 40)
private String password;
- @OneToOne(cascade = CascadeType.ALL)
+ @OneToOne(cascade = CascadeType.REMOVE)
private Group userGroup;
@Field(index = Index.TOKENIZED, store = Store.NO)
@@ -104,7 +104,7 @@
@NotNull
private TimeZone timezone;
- @OneToOne(cascade = CascadeType.ALL)
+ @OneToOne(cascade = CascadeType.REMOVE)
private final CustomProperties customProperties;
private UserBuddiesVisibility buddiesVisibility;
Modified: trunk/src/test/java/cc/kune/core/client/state/StateManagerTest.java
===================================================================
--- trunk/src/test/java/cc/kune/core/client/state/StateManagerTest.java 2010-12-09 16:03:51 UTC (rev 1163)
+++ trunk/src/test/java/cc/kune/core/client/state/StateManagerTest.java 2010-12-15 02:26:32 UTC (rev 1164)
@@ -9,6 +9,7 @@
import org.ourproject.kune.workspace.client.site.SiteToken;
import cc.kune.core.client.actions.BeforeActionListener;
+import cc.kune.core.client.notify.SpinerPresenter;
import cc.kune.core.shared.dto.StateAbstractDTO;
import cc.kune.core.shared.dto.StateToken;
@@ -36,7 +37,8 @@
contentProvider = Mockito.mock(ContentProvider.class);
session = Mockito.mock(Session.class);
history = Mockito.mock(HistoryWrapper.class);
- stateManager = new StateManagerDefault(contentProvider, session, history);
+ final SpinerPresenter spiner = Mockito.mock(SpinerPresenter.class);
+ stateManager = new StateManagerDefault(contentProvider, session, history, spiner);
Mockito.when(session.getUserHash()).thenReturn(HASH);
state = Mockito.mock(StateAbstractDTO.class);
stateChangeListener = new MockedListener<StateAbstractDTO>();
1
0
Author: vjrj_
Date: 2010-12-09 17:03:51 +0100 (Thu, 09 Dec 2010)
New Revision: 1163
Added:
trunk/src/main/java/cc/kune/core/client/actions/
trunk/src/main/java/cc/kune/core/client/actions/BeforeActionCollection.java
trunk/src/main/java/cc/kune/core/client/actions/BeforeActionListener.java
trunk/src/main/java/cc/kune/core/client/cookies/
trunk/src/main/java/cc/kune/core/client/cookies/CookiesManager.java
trunk/src/main/java/cc/kune/core/client/cookies/CookiesView.java
trunk/src/main/java/cc/kune/core/client/errors/
trunk/src/main/java/cc/kune/core/client/errors/AccessViolationException.java
trunk/src/main/java/cc/kune/core/client/errors/AlreadyGroupMemberException.java
trunk/src/main/java/cc/kune/core/client/errors/AlreadyUserMemberException.java
trunk/src/main/java/cc/kune/core/client/errors/ContainerNotPermittedException.java
trunk/src/main/java/cc/kune/core/client/errors/ContentNotFoundException.java
trunk/src/main/java/cc/kune/core/client/errors/ContentNotPermittedException.java
trunk/src/main/java/cc/kune/core/client/errors/DefaultException.java
trunk/src/main/java/cc/kune/core/client/errors/EmailAddressInUseException.java
trunk/src/main/java/cc/kune/core/client/errors/ErrorHandler.java
trunk/src/main/java/cc/kune/core/client/errors/GroupNameInUseException.java
trunk/src/main/java/cc/kune/core/client/errors/GroupNotFoundException.java
trunk/src/main/java/cc/kune/core/client/errors/I18nNotFoundException.java
trunk/src/main/java/cc/kune/core/client/errors/LastAdminInGroupException.java
trunk/src/main/java/cc/kune/core/client/errors/NameInUseException.java
trunk/src/main/java/cc/kune/core/client/errors/NameNotPermittedException.java
trunk/src/main/java/cc/kune/core/client/errors/NoDefaultContentException.java
trunk/src/main/java/cc/kune/core/client/errors/SessionExpiredException.java
trunk/src/main/java/cc/kune/core/client/errors/ToolNotFoundException.java
trunk/src/main/java/cc/kune/core/client/errors/UIException.java
trunk/src/main/java/cc/kune/core/client/errors/UnknownPropertyException.java
trunk/src/main/java/cc/kune/core/client/errors/UserAuthException.java
trunk/src/main/java/cc/kune/core/client/errors/UserMustBeLoggedException.java
trunk/src/main/java/cc/kune/core/client/errors/UserNotFoundException.java
trunk/src/main/java/cc/kune/core/client/i18n/
trunk/src/main/java/cc/kune/core/client/i18n/I18nTranslationServiceMocked.java
trunk/src/main/java/cc/kune/core/client/i18n/I18nUITranslationService.java
trunk/src/main/java/cc/kune/core/client/notify/
trunk/src/main/java/cc/kune/core/client/notify/UserNotifierPresenter.java
trunk/src/main/java/cc/kune/core/client/notify/UserNotifierView.java
trunk/src/main/java/cc/kune/core/client/rpcservices/
trunk/src/main/java/cc/kune/core/client/rpcservices/AsyncCallbackSimple.java
trunk/src/main/java/cc/kune/core/client/rpcservices/ContentService.java
trunk/src/main/java/cc/kune/core/client/rpcservices/ContentServiceAsync.java
trunk/src/main/java/cc/kune/core/client/rpcservices/GroupService.java
trunk/src/main/java/cc/kune/core/client/rpcservices/GroupServiceAsync.java
trunk/src/main/java/cc/kune/core/client/rpcservices/I18nService.java
trunk/src/main/java/cc/kune/core/client/rpcservices/I18nServiceAsync.java
trunk/src/main/java/cc/kune/core/client/rpcservices/SiteService.java
trunk/src/main/java/cc/kune/core/client/rpcservices/SiteServiceAsync.java
trunk/src/main/java/cc/kune/core/client/rpcservices/SocialNetworkService.java
trunk/src/main/java/cc/kune/core/client/rpcservices/SocialNetworkServiceAsync.java
trunk/src/main/java/cc/kune/core/client/rpcservices/UserService.java
trunk/src/main/java/cc/kune/core/client/rpcservices/UserServiceAsync.java
trunk/src/main/java/cc/kune/core/client/state/
trunk/src/main/java/cc/kune/core/client/state/AccessRightsClientManager.java
trunk/src/main/java/cc/kune/core/client/state/ContentProvider.java
trunk/src/main/java/cc/kune/core/client/state/ContentProviderDefault.java
trunk/src/main/java/cc/kune/core/client/state/HistoryWrapper.java
trunk/src/main/java/cc/kune/core/client/state/HistoryWrapperDefault.java
trunk/src/main/java/cc/kune/core/client/state/Session.java
trunk/src/main/java/cc/kune/core/client/state/SessionDefault.java
trunk/src/main/java/cc/kune/core/client/state/StateManager.java
trunk/src/main/java/cc/kune/core/client/state/StateManagerDefault.java
trunk/src/main/java/cc/kune/core/client/utils/
trunk/src/main/java/cc/kune/core/client/utils/Location.java
trunk/src/main/java/cc/kune/core/client/utils/TextUtils.java
trunk/src/main/java/cc/kune/core/client/utils/WindowUtils.java
trunk/src/main/java/cc/kune/core/shared/
trunk/src/main/java/cc/kune/core/shared/dto/
trunk/src/main/java/cc/kune/core/shared/dto/SubscriptionMode.java
trunk/src/main/java/cc/kune/core/shared/i18n/
trunk/src/main/java/cc/kune/core/shared/i18n/I18nTranslationService.java
trunk/src/test/java/cc/
trunk/src/test/java/cc/kune/
trunk/src/test/java/cc/kune/core/
trunk/src/test/java/cc/kune/core/client/
trunk/src/test/java/cc/kune/core/client/state/
Removed:
trunk/src/main/java/org/ourproject/kune/platf/client/actions/BeforeActionCollection.java
trunk/src/main/java/org/ourproject/kune/platf/client/actions/BeforeActionListener.java
trunk/src/main/java/org/ourproject/kune/platf/client/app/HistoryWrapper.java
trunk/src/main/java/org/ourproject/kune/platf/client/app/HistoryWrapperDefault.java
trunk/src/main/java/org/ourproject/kune/platf/client/dto/
trunk/src/main/java/org/ourproject/kune/platf/client/errors/AccessViolationException.java
trunk/src/main/java/org/ourproject/kune/platf/client/errors/AlreadyGroupMemberException.java
trunk/src/main/java/org/ourproject/kune/platf/client/errors/AlreadyUserMemberException.java
trunk/src/main/java/org/ourproject/kune/platf/client/errors/ContainerNotPermittedException.java
trunk/src/main/java/org/ourproject/kune/platf/client/errors/ContentNotFoundException.java
trunk/src/main/java/org/ourproject/kune/platf/client/errors/ContentNotPermittedException.java
trunk/src/main/java/org/ourproject/kune/platf/client/errors/DefaultException.java
trunk/src/main/java/org/ourproject/kune/platf/client/errors/EmailAddressInUseException.java
trunk/src/main/java/org/ourproject/kune/platf/client/errors/GroupNameInUseException.java
trunk/src/main/java/org/ourproject/kune/platf/client/errors/GroupNotFoundException.java
trunk/src/main/java/org/ourproject/kune/platf/client/errors/I18nNotFoundException.java
trunk/src/main/java/org/ourproject/kune/platf/client/errors/LastAdminInGroupException.java
trunk/src/main/java/org/ourproject/kune/platf/client/errors/NameInUseException.java
trunk/src/main/java/org/ourproject/kune/platf/client/errors/NameNotPermittedException.java
trunk/src/main/java/org/ourproject/kune/platf/client/errors/NoDefaultContentException.java
trunk/src/main/java/org/ourproject/kune/platf/client/errors/SessionExpiredException.java
trunk/src/main/java/org/ourproject/kune/platf/client/errors/ToolNotFoundException.java
trunk/src/main/java/org/ourproject/kune/platf/client/errors/UIException.java
trunk/src/main/java/org/ourproject/kune/platf/client/errors/UnknownPropertyException.java
trunk/src/main/java/org/ourproject/kune/platf/client/errors/UserAuthException.java
trunk/src/main/java/org/ourproject/kune/platf/client/errors/UserMustBeLoggedException.java
trunk/src/main/java/org/ourproject/kune/platf/client/errors/UserNotFoundException.java
trunk/src/main/java/org/ourproject/kune/platf/client/i18n/I18nChangeListener.java
trunk/src/main/java/org/ourproject/kune/platf/client/i18n/I18nChangeListenerCollection.java
trunk/src/main/java/org/ourproject/kune/platf/client/i18n/I18nTranslationService.java
trunk/src/main/java/org/ourproject/kune/platf/client/i18n/I18nTranslationServiceMocked.java
trunk/src/main/java/org/ourproject/kune/platf/client/i18n/I18nUITranslationService.java
trunk/src/main/java/org/ourproject/kune/platf/client/rpc/AsyncCallbackSimple.java
trunk/src/main/java/org/ourproject/kune/platf/client/rpc/ContentService.java
trunk/src/main/java/org/ourproject/kune/platf/client/rpc/ContentServiceAsync.java
trunk/src/main/java/org/ourproject/kune/platf/client/rpc/GroupService.java
trunk/src/main/java/org/ourproject/kune/platf/client/rpc/GroupServiceAsync.java
trunk/src/main/java/org/ourproject/kune/platf/client/rpc/I18nService.java
trunk/src/main/java/org/ourproject/kune/platf/client/rpc/I18nServiceAsync.java
trunk/src/main/java/org/ourproject/kune/platf/client/rpc/SiteService.java
trunk/src/main/java/org/ourproject/kune/platf/client/rpc/SiteServiceAsync.java
trunk/src/main/java/org/ourproject/kune/platf/client/rpc/SocialNetworkService.java
trunk/src/main/java/org/ourproject/kune/platf/client/rpc/SocialNetworkServiceAsync.java
trunk/src/main/java/org/ourproject/kune/platf/client/rpc/UserService.java
trunk/src/main/java/org/ourproject/kune/platf/client/rpc/UserServiceAsync.java
trunk/src/main/java/org/ourproject/kune/platf/client/services/ErrorHandler.java
trunk/src/main/java/org/ourproject/kune/platf/client/state/AccessRightsClientManager.java
trunk/src/main/java/org/ourproject/kune/platf/client/state/ContentProvider.java
trunk/src/main/java/org/ourproject/kune/platf/client/state/ContentProviderDefault.java
trunk/src/main/java/org/ourproject/kune/platf/client/state/Session.java
trunk/src/main/java/org/ourproject/kune/platf/client/state/SessionDefault.java
trunk/src/main/java/org/ourproject/kune/platf/client/state/StateManager.java
trunk/src/main/java/org/ourproject/kune/platf/client/state/StateManagerDefault.java
trunk/src/main/java/org/ourproject/kune/platf/client/ui/Location.java
trunk/src/main/java/org/ourproject/kune/platf/client/ui/TextUtils.java
trunk/src/main/java/org/ourproject/kune/platf/client/ui/WindowUtils.java
trunk/src/test/java/org/ourproject/kune/platf/client/state/
Modified:
trunk/src/main/java/cc/kune/core/Core.gwt.xml
trunk/src/main/java/cc/kune/core/client/CoreEventBus.java
trunk/src/main/java/cc/kune/core/client/CoreGinModule.java
trunk/src/main/java/cc/kune/core/client/KuneEntryPoint.java
trunk/src/main/java/cc/kune/core/client/ws/CorePresenter.java
trunk/src/main/java/cc/kune/core/shared/dto/AccessListsDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/AccessRightsDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/AccessRolDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/AdmissionTypeDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/BasicMimeTypeDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/ChatUserParamsDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/CommentDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/ContainerDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/ContainerSimpleDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/ContentSimpleDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/ContentStatusDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/ExtMediaDescripDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/GroupDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/GroupListDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/GroupType.java
trunk/src/main/java/cc/kune/core/shared/dto/I18nCountryDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/I18nLanguageDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/I18nLanguageSimpleDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/I18nTranslationDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/InitDataDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/LicenseDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/LinkDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/ParticipationDataDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/RateResultDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/RoomDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/SearchResultDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/SocialNetworkDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/SocialNetworkDataDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/SocialNetworkRequestResult.java
trunk/src/main/java/cc/kune/core/shared/dto/SocialNetworkVisibilityDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/StateAbstractDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/StateContainerDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/StateContentDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/StateNoContentDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/StateToken.java
trunk/src/main/java/cc/kune/core/shared/dto/StateTokenUtils.java
trunk/src/main/java/cc/kune/core/shared/dto/TagCloudResultDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/TagCountDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/TagDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/TimeZoneDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/ToolSimpleDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/UserBuddiesDataDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/UserBuddiesVisibilityDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/UserDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/UserInfoDTO.java
trunk/src/main/java/cc/kune/core/shared/dto/UserSimpleDTO.java
trunk/src/main/java/org/ourproject/kune/app/server/KuneRackModule.java
trunk/src/main/java/org/ourproject/kune/blogs/client/BlogClientActions.java
trunk/src/main/java/org/ourproject/kune/blogs/client/BlogClientModule.java
trunk/src/main/java/org/ourproject/kune/blogs/client/BlogClientTool.java
trunk/src/main/java/org/ourproject/kune/blogs/client/cnt/BlogFolderContentPanel.java
trunk/src/main/java/org/ourproject/kune/blogs/client/cnt/BlogFolderContentPresenter.java
trunk/src/main/java/org/ourproject/kune/blogs/client/cnt/BlogViewerPanel.java
trunk/src/main/java/org/ourproject/kune/blogs/client/cnt/BlogViewerPresenter.java
trunk/src/main/java/org/ourproject/kune/blogs/client/ctx/BlogContextPresenter.java
trunk/src/main/java/org/ourproject/kune/blogs/server/BlogServerTool.java
trunk/src/main/java/org/ourproject/kune/chat/client/ChatClientActions.java
trunk/src/main/java/org/ourproject/kune/chat/client/ChatClientModule.java
trunk/src/main/java/org/ourproject/kune/chat/client/ChatClientTool.java
trunk/src/main/java/org/ourproject/kune/chat/client/ChatEngineDefault.java
trunk/src/main/java/org/ourproject/kune/chat/client/cnt/ChatRoomPanel.java
trunk/src/main/java/org/ourproject/kune/chat/client/cnt/ChatRoomPresenter.java
trunk/src/main/java/org/ourproject/kune/chat/client/ctx/ChatContextPresenter.java
trunk/src/main/java/org/ourproject/kune/chat/client/ctx/room/AddRoomPanel.java
trunk/src/main/java/org/ourproject/kune/chat/client/ctx/room/AddRoomPresenter.java
trunk/src/main/java/org/ourproject/kune/chat/server/ChatServerTool.java
trunk/src/main/java/org/ourproject/kune/docs/client/DocumentClientActions.java
trunk/src/main/java/org/ourproject/kune/docs/client/DocumentClientModule.java
trunk/src/main/java/org/ourproject/kune/docs/client/DocumentClientTool.java
trunk/src/main/java/org/ourproject/kune/docs/client/cnt/DocFolderContentPanel.java
trunk/src/main/java/org/ourproject/kune/docs/client/cnt/DocFolderContentPresenter.java
trunk/src/main/java/org/ourproject/kune/docs/client/cnt/DocumentViewerPanel.java
trunk/src/main/java/org/ourproject/kune/docs/client/cnt/DocumentViewerPresenter.java
trunk/src/main/java/org/ourproject/kune/docs/client/ctx/DocumentContextPresenter.java
trunk/src/main/java/org/ourproject/kune/docs/server/DocumentServerTool.java
trunk/src/main/java/org/ourproject/kune/gallery/client/GalleryClientActions.java
trunk/src/main/java/org/ourproject/kune/gallery/client/GalleryClientModule.java
trunk/src/main/java/org/ourproject/kune/gallery/client/GalleryClientTool.java
trunk/src/main/java/org/ourproject/kune/gallery/client/cnt/GalleryFolderContentPanel.java
trunk/src/main/java/org/ourproject/kune/gallery/client/cnt/GalleryFolderContentPresenter.java
trunk/src/main/java/org/ourproject/kune/gallery/client/cnt/GalleryFolderContentView.java
trunk/src/main/java/org/ourproject/kune/gallery/client/cnt/GalleryViewerPanel.java
trunk/src/main/java/org/ourproject/kune/gallery/client/cnt/GalleryViewerPresenter.java
trunk/src/main/java/org/ourproject/kune/gallery/client/ctx/GalleryContextPresenter.java
trunk/src/main/java/org/ourproject/kune/gallery/server/GalleryServerTool.java
trunk/src/main/java/org/ourproject/kune/platf/client/actions/ActionDescriptor.java
trunk/src/main/java/org/ourproject/kune/platf/client/actions/ActionItem.java
trunk/src/main/java/org/ourproject/kune/platf/client/actions/ActionMenuItemDescriptor.java
trunk/src/main/java/org/ourproject/kune/platf/client/actions/ActionRegistry.java
trunk/src/main/java/org/ourproject/kune/platf/client/actions/ActionToolbarButtonAndItemDescriptor.java
trunk/src/main/java/org/ourproject/kune/platf/client/actions/ActionToolbarButtonDescriptor.java
trunk/src/main/java/org/ourproject/kune/platf/client/actions/ActionToolbarDescriptor.java
trunk/src/main/java/org/ourproject/kune/platf/client/actions/ActionToolbarMenuAndItemDescriptor.java
trunk/src/main/java/org/ourproject/kune/platf/client/actions/ActionToolbarMenuCheckItemDescriptor.java
trunk/src/main/java/org/ourproject/kune/platf/client/actions/ActionToolbarMenuDescriptor.java
trunk/src/main/java/org/ourproject/kune/platf/client/actions/ActionToolbarMenuRadioDescriptor.java
trunk/src/main/java/org/ourproject/kune/platf/client/actions/ActionToolbarPushButtonDescriptor.java
trunk/src/main/java/org/ourproject/kune/platf/client/actions/common/GotoGroupAction.java
trunk/src/main/java/org/ourproject/kune/platf/client/actions/toolbar/ActionToolbarPresenter.java
trunk/src/main/java/org/ourproject/kune/platf/client/actions/ui/
trunk/src/main/java/org/ourproject/kune/platf/client/actions/ui/AbstractComposedGuiItem.java
trunk/src/main/java/org/ourproject/kune/platf/client/actions/ui/MenuBinding.java
trunk/src/main/java/org/ourproject/kune/platf/client/actions/ui/MenuItemBinding.java
trunk/src/main/java/org/ourproject/kune/platf/client/actions/ui/MenuSeparatorBinding.java
trunk/src/main/java/org/ourproject/kune/platf/client/app/ApplicationDefault.java
trunk/src/main/java/org/ourproject/kune/platf/client/i18n/Resources.java
trunk/src/main/java/org/ourproject/kune/platf/client/services/CoreModule.java
trunk/src/main/java/org/ourproject/kune/platf/client/services/PlatformModule.java
trunk/src/main/java/org/ourproject/kune/platf/client/shortcuts/ShortcutRegister.java
trunk/src/main/java/org/ourproject/kune/platf/client/ui/AbstractSearcherPanel.java
trunk/src/main/java/org/ourproject/kune/platf/client/ui/KuneStringUtils.java
trunk/src/main/java/org/ourproject/kune/platf/client/ui/dialogs/WizardDialog.java
trunk/src/main/java/org/ourproject/kune/platf/client/ui/download/FileDownloadUtils.java
trunk/src/main/java/org/ourproject/kune/platf/client/ui/noti/NotifyUser.java
trunk/src/main/java/org/ourproject/kune/platf/client/ui/palette/SimplePalettePanel.java
trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/basic/RTEditorPanel.java
trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/basic/RTEditorPresenter.java
trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/edithtml/EditHtmlDialogPanel.java
trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/edithtml/editor/EditHtmlEditorPanel.java
trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/edithtml/preview/EditHtmlPreviewPanel.java
trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertimg/InsertImageDialogPanel.java
trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertimg/ext/InsertImageExtPanel.java
trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertlink/InsertLinkDialogPanel.java
trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertlink/email/InsertLinkEmailPanel.java
trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertlink/ext/InsertLinkExtPanel.java
trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertlink/ext/InsertLinkExtPresenter.java
trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertmedia/ExternalMediaRegistry.java
trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertmedia/InsertMediaDialogPanel.java
trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertmedia/abstractmedia/MediaUtils.java
trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertmedia/ext/InsertMediaExtPanel.java
trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertmedia/ext/InsertMediaExtPresenter.java
trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertspecialchar/InsertSpecialCharDialogPanel.java
trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertspecialchar/asian/InsertSpecialAsianCharPanel.java
trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertspecialchar/occidental/InsertSpecialOccCharPanel.java
trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertspecialchar/utf8/InsertSpecialUTF8CharPanel.java
trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/inserttable/InsertTableDialogPanel.java
trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/saving/RTESavingEditor.java
trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/saving/RTESavingEditorPanel.java
trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/saving/RTESavingEditorPresenter.java
trunk/src/main/java/org/ourproject/kune/platf/server/PlatformServerModule.java
trunk/src/main/java/org/ourproject/kune/platf/server/access/AccessService.java
trunk/src/main/java/org/ourproject/kune/platf/server/access/AccessServiceDefault.java
trunk/src/main/java/org/ourproject/kune/platf/server/access/FinderService.java
trunk/src/main/java/org/ourproject/kune/platf/server/access/FinderServiceDefault.java
trunk/src/main/java/org/ourproject/kune/platf/server/auth/AuthenticatedMethodInterceptor.java
trunk/src/main/java/org/ourproject/kune/platf/server/auth/AuthorizatedMethodInterceptor.java
trunk/src/main/java/org/ourproject/kune/platf/server/auth/SessionServiceDefault.java
trunk/src/main/java/org/ourproject/kune/platf/server/content/CommentManager.java
trunk/src/main/java/org/ourproject/kune/platf/server/content/CommentManagerDefault.java
trunk/src/main/java/org/ourproject/kune/platf/server/content/ContainerManager.java
trunk/src/main/java/org/ourproject/kune/platf/server/content/ContainerManagerDefault.java
trunk/src/main/java/org/ourproject/kune/platf/server/content/ContentManager.java
trunk/src/main/java/org/ourproject/kune/platf/server/content/ContentManagerDefault.java
trunk/src/main/java/org/ourproject/kune/platf/server/content/ContentUtils.java
trunk/src/main/java/org/ourproject/kune/platf/server/domain/ChatUserParams.java
trunk/src/main/java/org/ourproject/kune/platf/server/domain/Container.java
trunk/src/main/java/org/ourproject/kune/platf/server/domain/Content.java
trunk/src/main/java/org/ourproject/kune/platf/server/domain/Group.java
trunk/src/main/java/org/ourproject/kune/platf/server/domain/HasStateToken.java
trunk/src/main/java/org/ourproject/kune/platf/server/domain/User.java
trunk/src/main/java/org/ourproject/kune/platf/server/i18n/I18nTranslationServiceDefault.java
trunk/src/main/java/org/ourproject/kune/platf/server/init/DatabaseInitializer.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/GroupManager.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/I18nTranslationManager.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/SocialNetworkManager.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/TagUserContentManagerDefault.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/UserManager.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/EntityLogoDownloadManager.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/EntityLogoUploadManager.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/FileDownloadManager.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/FileJsonUploadManagerAbstract.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/FileUploadManager.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/FileUploadManagerAbstract.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/FileUtils.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/GroupManagerDefault.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/I18nTranslationManagerDefault.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/PropertiesManagerDefault.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/SocialNetworkManagerDefault.java
trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/UserManagerDefault.java
trunk/src/main/java/org/ourproject/kune/platf/server/mapper/DozerMapper.java
trunk/src/main/java/org/ourproject/kune/platf/server/mapper/Mapper.java
trunk/src/main/java/org/ourproject/kune/platf/server/rest/ContentJSONService.java
trunk/src/main/java/org/ourproject/kune/platf/server/rest/GroupJSONService.java
trunk/src/main/java/org/ourproject/kune/platf/server/rest/I18nTranslationJSONService.java
trunk/src/main/java/org/ourproject/kune/platf/server/rest/UserJSONService.java
trunk/src/main/java/org/ourproject/kune/platf/server/rpc/ContentRPC.java
trunk/src/main/java/org/ourproject/kune/platf/server/rpc/GroupRPC.java
trunk/src/main/java/org/ourproject/kune/platf/server/rpc/I18nRPC.java
trunk/src/main/java/org/ourproject/kune/platf/server/rpc/SiteRPC.java
trunk/src/main/java/org/ourproject/kune/platf/server/rpc/SocialNetworkRPC.java
trunk/src/main/java/org/ourproject/kune/platf/server/rpc/UserRPC.java
trunk/src/main/java/org/ourproject/kune/platf/server/state/StateAbstract.java
trunk/src/main/java/org/ourproject/kune/platf/server/state/StateServiceDefault.java
trunk/src/main/java/org/ourproject/kune/platf/server/users/UserInfoService.java
trunk/src/main/java/org/ourproject/kune/platf/server/users/UserInfoServiceDefault.java
trunk/src/main/java/org/ourproject/kune/platf/server/utils/FilenameUtils.java
trunk/src/main/java/org/ourproject/kune/wiki/client/WikiClientActions.java
trunk/src/main/java/org/ourproject/kune/wiki/client/WikiClientModule.java
trunk/src/main/java/org/ourproject/kune/wiki/client/WikiClientTool.java
trunk/src/main/java/org/ourproject/kune/wiki/client/cnt/WikiFolderContentPanel.java
trunk/src/main/java/org/ourproject/kune/wiki/client/cnt/WikiFolderContentPresenter.java
trunk/src/main/java/org/ourproject/kune/wiki/client/cnt/WikiViewerPanel.java
trunk/src/main/java/org/ourproject/kune/wiki/client/cnt/WikiViewerPresenter.java
trunk/src/main/java/org/ourproject/kune/wiki/client/ctx/WikiContextPresenter.java
trunk/src/main/java/org/ourproject/kune/wiki/server/WikiServerTool.java
trunk/src/main/java/org/ourproject/kune/workspace/client/AbstractFoldableContentActions.java
trunk/src/main/java/org/ourproject/kune/workspace/client/ActionsModule.java
trunk/src/main/java/org/ourproject/kune/workspace/client/WorkspaceModule.java
trunk/src/main/java/org/ourproject/kune/workspace/client/cnt/ActionContentToolbar.java
trunk/src/main/java/org/ourproject/kune/workspace/client/cnt/ActionContentToolbarPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/cnt/ContentActionRegistry.java
trunk/src/main/java/org/ourproject/kune/workspace/client/cnt/ContentIconsRegistry.java
trunk/src/main/java/org/ourproject/kune/workspace/client/cnt/FoldableContentPanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/cnt/FoldableContentPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigator.java
trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigatorItem.java
trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigatorPanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigatorPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigatorView.java
trunk/src/main/java/org/ourproject/kune/workspace/client/cxt/AccessListsPanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/cxt/ActionContextBottomToolbar.java
trunk/src/main/java/org/ourproject/kune/workspace/client/cxt/ActionContextTopToolbar.java
trunk/src/main/java/org/ourproject/kune/workspace/client/cxt/ContextActionRegistry.java
trunk/src/main/java/org/ourproject/kune/workspace/client/cxt/ContextPropEditor.java
trunk/src/main/java/org/ourproject/kune/workspace/client/cxt/ContextPropEditorPanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/cxt/ContextPropEditorPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/cxt/ContextPropEditorView.java
trunk/src/main/java/org/ourproject/kune/workspace/client/cxt/FoldableContextPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/editor/ContentEditorPanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/editor/ContentEditorPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/editor/insertlocalimg/InsertImageLocalPanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/editor/insertlocalimg/InsertImageLocalPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/editor/insertlocallink/InsertLinkLocalPanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/editor/insertlocalmedia/InsertMediaLocalPanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/editor/insertlocalmedia/InsertMediaLocalPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/entityheader/EntityHeaderPanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/entityheader/EntityHeaderPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/entityheader/EntityHeaderView.java
trunk/src/main/java/org/ourproject/kune/workspace/client/entityheader/maxmin/MaxMinWorkspacePresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/hello/HelloWorldModule.java
trunk/src/main/java/org/ourproject/kune/workspace/client/i18n/I18nTranslatorPanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/i18n/I18nTranslatorPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/i18n/LanguageSelector.java
trunk/src/main/java/org/ourproject/kune/workspace/client/i18n/LanguageSelectorPanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/i18n/LanguageSelectorPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/i18n/SiteOptionsI18nTranslatorAction.java
trunk/src/main/java/org/ourproject/kune/workspace/client/licensefoot/EntityLicensePanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/licensefoot/EntityLicensePresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/licensefoot/EntityLicenseView.java
trunk/src/main/java/org/ourproject/kune/workspace/client/licensewizard/LicenseChangeAction.java
trunk/src/main/java/org/ourproject/kune/workspace/client/licensewizard/LicenseWizard.java
trunk/src/main/java/org/ourproject/kune/workspace/client/licensewizard/LicenseWizardPanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/licensewizard/LicenseWizardPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/licensewizard/pages/LicenseWizardFirstForm.java
trunk/src/main/java/org/ourproject/kune/workspace/client/licensewizard/pages/LicenseWizardFlags.java
trunk/src/main/java/org/ourproject/kune/workspace/client/licensewizard/pages/LicenseWizardFrdForm.java
trunk/src/main/java/org/ourproject/kune/workspace/client/licensewizard/pages/LicenseWizardSndForm.java
trunk/src/main/java/org/ourproject/kune/workspace/client/licensewizard/pages/LicenseWizardTrdForm.java
trunk/src/main/java/org/ourproject/kune/workspace/client/newgroup/NewGroupPanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/newgroup/NewGroupPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/newgroup/NewGroupView.java
trunk/src/main/java/org/ourproject/kune/workspace/client/nohomepage/NoHomePagePanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/nohomepage/NoHomePagePresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/options/GroupOptionsPanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/options/GroupOptionsPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/options/UserOptionsPanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/options/UserOptionsPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/options/license/EntityOptionsDefLicensePanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/options/license/EntityOptionsDefLicensePresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/options/license/EntityOptionsDefLicenseView.java
trunk/src/main/java/org/ourproject/kune/workspace/client/options/license/GroupOptionsDefLicensePresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/options/license/UserOptionsDefLicensePresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/options/logo/EntityOptionsLogoPanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/options/logo/EntityOptionsLogoPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/options/logo/GroupOptionsLogoPanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/options/logo/GroupOptionsLogoPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/options/logo/UserOptionsLogoPanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/options/logo/UserOptionsLogoPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/options/pscape/EntityOptionsPublicSpaceConfPanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/options/pscape/EntityOptionsPublicSpaceConfPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/options/pscape/EntityOptionsPublicSpaceConfView.java
trunk/src/main/java/org/ourproject/kune/workspace/client/options/pscape/GroupOptionsPublicSpaceConfPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/options/pscape/UserOptionsPublicSpaceConfPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/options/tools/EntityOptionsToolsConfPanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/options/tools/EntityOptionsToolsConfPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/options/tools/EntityOptionsToolsConfView.java
trunk/src/main/java/org/ourproject/kune/workspace/client/options/tools/GroupOptionsToolsConfPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/options/tools/UserOptionsToolsConfPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/rate/RateItPanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/rate/RateItPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/rate/RatePanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/rate/RatePresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/search/AbstractLiveSearcherField.java
trunk/src/main/java/org/ourproject/kune/workspace/client/search/AbstractLiveSearcherPanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/search/EntityLiveSearcher.java
trunk/src/main/java/org/ourproject/kune/workspace/client/search/EntityLiveSearcherPanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/search/EntityLiveSearcherPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/search/GroupLiveSearchPanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/search/SiteSearcherPanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/search/SiteSearcherPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/search/UserLiveSearcherPanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/signin/RegisterForm.java
trunk/src/main/java/org/ourproject/kune/workspace/client/signin/RegisterPanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/signin/RegisterPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/signin/SignInAbstractPanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/signin/SignInAbstractPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/signin/SignInForm.java
trunk/src/main/java/org/ourproject/kune/workspace/client/signin/SignInPanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/signin/SignInPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/site/WorkspaceNotifyUser.java
trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/sitelogo/SiteLogoPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/sitenewgroup/SiteNewGroupLinkPanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/siteoptions/SiteOptionsPanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/siteoptions/SiteOptionsPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/sitepublic/SitePublicSpaceLink.java
trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/sitepublic/SitePublicSpaceLinkPanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/sitepublic/SitePublicSpaceLinkPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/sitesearch/SiteSearchPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/sitesign/SiteSignInLinkPanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/sitesign/SiteSignInLinkPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/sitesign/SiteSignOutLink.java
trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/sitesign/SiteSignOutLinkPanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/sitesign/SiteSignOutLinkPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/siteusermenu/SiteUserOptionsPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/BuddiesSummaryPanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/BuddiesSummaryPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/BuddiesSummaryView.java
trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/GroupActionRegistry.java
trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/GroupMembersSummary.java
trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/GroupMembersSummaryPanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/GroupMembersSummaryPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/GroupMembersSummaryView.java
trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/ParticipateAction.java
trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/ParticipationSummaryPanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/ParticipationSummaryPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/ParticipationSummaryView.java
trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/RolAction.java
trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/RolComparator.java
trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/SocialNetworkPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/UnjoinAction.java
trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/UserActionRegistry.java
trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/other/AddAsBuddieHeaderButton.java
trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/toolbar/ActionBuddiesSummaryToolbar.java
trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/toolbar/ActionBuddiesSummaryToolbarPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/toolbar/ActionGroupSummaryToolbar.java
trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/toolbar/ActionGroupSummaryToolbarPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/toolbar/ActionParticipationSummaryToolbarPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/toolbar/ActionParticipationToolbar.java
trunk/src/main/java/org/ourproject/kune/workspace/client/tags/TagsSummary.java
trunk/src/main/java/org/ourproject/kune/workspace/client/tags/TagsSummaryPanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/tags/TagsSummaryPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/themes/WsBackManager.java
trunk/src/main/java/org/ourproject/kune/workspace/client/themes/WsBackManagerImpl.java
trunk/src/main/java/org/ourproject/kune/workspace/client/themes/WsThemeManager.java
trunk/src/main/java/org/ourproject/kune/workspace/client/themes/WsThemeSelectorPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/title/EntitySubTitlePresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/title/EntityTitlePresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/title/RenameAction.java
trunk/src/main/java/org/ourproject/kune/workspace/client/tool/FoldableAbstractClientTool.java
trunk/src/main/java/org/ourproject/kune/workspace/client/tool/ToolSelectorItemPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/tool/ToolSelectorPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/upload/FileUploader.java
trunk/src/main/java/org/ourproject/kune/workspace/client/upload/FileUploaderDialog.java
trunk/src/main/java/org/ourproject/kune/workspace/client/upload/FileUploaderPresenter.java
trunk/src/main/java/org/ourproject/kune/workspace/client/wave/WaveInsert.java
trunk/src/main/java/org/ourproject/kune/workspace/client/wave/WaveInsertPanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/wave/WaveInsertPresenter.java
trunk/src/main/resources/dozerBeanMapping.xml
trunk/src/test/java/cc/kune/core/client/state/StateManagerTest.java
trunk/src/test/java/cc/kune/core/client/state/StateTokenTest.java
trunk/src/test/java/org/ourproject/kune/blogs/server/BlogServerToolTest.java
trunk/src/test/java/org/ourproject/kune/gallery/server/GalleryServerToolTest.java
trunk/src/test/java/org/ourproject/kune/platf/client/actions/ActionRegistryTest.java
trunk/src/test/java/org/ourproject/kune/platf/client/actions/ContentIconsRegistryTest.java
trunk/src/test/java/org/ourproject/kune/platf/client/actions/KeyStrokeTest.java
trunk/src/test/java/org/ourproject/kune/platf/client/actions/ShortcutTest.java
trunk/src/test/java/org/ourproject/kune/platf/client/dto/BasicMimeTypeDTOTest.java
trunk/src/test/java/org/ourproject/kune/platf/client/ui/KuneStringUtilsTest.java
trunk/src/test/java/org/ourproject/kune/platf/client/ui/TextUtilsTest.java
trunk/src/test/java/org/ourproject/kune/platf/client/ui/dialogs/upload/FileUploaderPresenterTest.java
trunk/src/test/java/org/ourproject/kune/platf/client/ui/rte/insertmedia/ExternalMediaDescriptorTest.java
trunk/src/test/java/org/ourproject/kune/platf/client/ui/rte/saving/RTESavingEditorPresenterTest.java
trunk/src/test/java/org/ourproject/kune/platf/integration/IntegrationTest.java
trunk/src/test/java/org/ourproject/kune/platf/integration/content/ContentCommentServiceTest.java
trunk/src/test/java/org/ourproject/kune/platf/integration/content/ContentServiceAddTest.java
trunk/src/test/java/org/ourproject/kune/platf/integration/content/ContentServiceGetTest.java
trunk/src/test/java/org/ourproject/kune/platf/integration/content/ContentServiceIntegrationTest.java
trunk/src/test/java/org/ourproject/kune/platf/integration/content/ContentServiceSaveTest.java
trunk/src/test/java/org/ourproject/kune/platf/integration/content/ContentServiceVariousTest.java
trunk/src/test/java/org/ourproject/kune/platf/integration/kuneservice/GroupServiceTest.java
trunk/src/test/java/org/ourproject/kune/platf/integration/site/SiteServiceTest.java
trunk/src/test/java/org/ourproject/kune/platf/integration/site/UserServiceTest.java
trunk/src/test/java/org/ourproject/kune/platf/integration/socialnet/SocialNetworkServiceTest.java
trunk/src/test/java/org/ourproject/kune/platf/server/access/FinderTest.java
trunk/src/test/java/org/ourproject/kune/platf/server/auth/AuthenticatedMethodInterceptorTest.java
trunk/src/test/java/org/ourproject/kune/platf/server/auth/AuthorizatedMethodInterceptorTest.java
trunk/src/test/java/org/ourproject/kune/platf/server/manager/GroupManagerTest.java
trunk/src/test/java/org/ourproject/kune/platf/server/manager/I18nManagerTest.java
trunk/src/test/java/org/ourproject/kune/platf/server/manager/UserManagerTest.java
trunk/src/test/java/org/ourproject/kune/platf/server/manager/file/EntityLogoUploadManagerTest.java
trunk/src/test/java/org/ourproject/kune/platf/server/manager/file/FileDownloadManagerTest.java
trunk/src/test/java/org/ourproject/kune/platf/server/manager/file/FileUploadManagerTest.java
trunk/src/test/java/org/ourproject/kune/platf/server/manager/impl/SocialNetworkManagerTest.java
trunk/src/test/java/org/ourproject/kune/platf/server/mapper/MapperTest.java
trunk/src/test/java/org/ourproject/kune/testhelper/ctx/DomainContext.java
trunk/src/test/java/org/ourproject/kune/workspace/client/entityheader/EntityLogoPresenterTest.java
trunk/src/test/java/org/ourproject/kune/workspace/client/licensewizard/LicenseWizardPresenterTest.java
trunk/src/test/java/org/ourproject/kune/workspace/client/socialnet/RolActionTest.java
trunk/src/test/java/org/ourproject/kune/workspace/client/socialnet/RolComparatorTest.java
trunk/src/test/java/org/ourproject/kune/workspace/client/tags/TagsSummaryPresenterTest.java
trunk/src/test/java/org/ourproject/kune/workspace/client/tool/ToolSelectorPresenterTest.java
Log:
CLOSED - # 6: Common Actions integration
http://kune.ourproject.org/issues/ticket/6
Incomplete - task : Startup cleanup
Modified: trunk/src/main/java/cc/kune/core/Core.gwt.xml
===================================================================
--- trunk/src/main/java/cc/kune/core/Core.gwt.xml 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/cc/kune/core/Core.gwt.xml 2010-12-09 16:03:51 UTC (rev 1163)
@@ -6,13 +6,15 @@
see http://code.google.com/p/google-web-toolkit/issues/detail?id=4454 -->
<source path='client'
excludes="**/*Test.java,**/*Tests.java,**/*MockProvider.java" />
+ <source path="shared" />
<public path="public" />
<!-- Dependencies ============================================= -->
<inherits name="com.google.gwt.user.User" />
- <inherits name='com.mvp4g.Mvp4gModule' />
+ <inherits name='com.mvp4g.Mvp4gModule' />
<inherits name="org.ourproject.kune.ws.armor.WsArmor" />
<inherits name="org.ourproject.common.Common" />
<inherits name="com.extjs.gxt.ui.GXT" />
+ <inherits name="com.calclab.suco.Suco" />
<!-- Styles =================================================== -->
<stylesheet src="ws.css" />
<stylesheet src="fontface/stylesheet.css" />
Modified: trunk/src/main/java/cc/kune/core/client/CoreEventBus.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/CoreEventBus.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/cc/kune/core/client/CoreEventBus.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,11 +1,16 @@
package cc.kune.core.client;
import org.ourproject.common.client.CommonGinModule;
+import org.ourproject.common.client.notify.ConfirmationAsk;
+import org.ourproject.common.client.notify.NotifyLevel;
+import cc.kune.core.client.cookies.CookiesManager;
+import cc.kune.core.client.notify.UserNotifierPresenter;
import cc.kune.core.client.ws.CorePresenter;
import cc.kune.core.client.ws.CoreView;
import com.mvp4g.client.annotation.Debug;
+import com.mvp4g.client.annotation.Debug.LogLevel;
import com.mvp4g.client.annotation.Event;
import com.mvp4g.client.annotation.Events;
import com.mvp4g.client.annotation.Start;
@@ -15,14 +20,44 @@
* The Kune Core EventBus.
*/
@Events(startView = CoreView.class, ginModules = { CoreGinModule.class, CommonGinModule.class })
-@Debug
+@Debug(logLevel = LogLevel.DETAILED)
public interface CoreEventBus extends EventBus {
+ @Event(handlers = UserNotifierPresenter.class)
+ public void alert(String title, String message);
+
+ @Event(handlers = UserNotifierPresenter.class)
+ public void confirmationAsk(ConfirmationAsk<?> confirmation);
+
+ @Event(handlers = CookiesManager.class)
+ public void doNothing();
+
+ @Event
+ // FIXME (nobody do nothing with this)
+ public void gotoToken(String token);
+
+ @Event(handlers = UserNotifierPresenter.class)
+ public void hideSpin();
+
+ @Event
+ // FIXME (nobody do nothing with this)
+ public void i18nReady();
+
+ @Event(handlers = UserNotifierPresenter.class)
+ public void notify(NotifyLevel level, String message);
+
+ @Event(handlers = UserNotifierPresenter.class)
+ public void showSpin(String message);
+
+ @Event
+ // FIXME (nobody do nothing with this)
+ public void showSpinLoading();
+
/**
* Application start event
*/
@Start
- @Event(handlers = CorePresenter.class)
+ @Event(handlers = { CorePresenter.class })
void start();
}
Modified: trunk/src/main/java/cc/kune/core/client/CoreGinModule.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/CoreGinModule.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/cc/kune/core/client/CoreGinModule.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -3,6 +3,15 @@
import org.ourproject.kune.ws.armor.client.Body;
import org.ourproject.kune.ws.armor.client.IBody;
+import cc.kune.core.client.i18n.I18nUITranslationService;
+import cc.kune.core.client.state.ContentProvider;
+import cc.kune.core.client.state.ContentProviderDefault;
+import cc.kune.core.client.state.HistoryWrapper;
+import cc.kune.core.client.state.HistoryWrapperDefault;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.SessionDefault;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.google.gwt.inject.client.AbstractGinModule;
import com.google.inject.Singleton;
@@ -19,6 +28,12 @@
@Override
protected void configure() {
bind(IBody.class).to(Body.class).in(Singleton.class);
+ bind(Session.class).to(SessionDefault.class).in(Singleton.class);
+ bind(I18nTranslationService.class).to(I18nUITranslationService.class).in(Singleton.class);
+ // bind(ErrorHandler.class).in(Singleton.class);
+ bind(ContentProvider.class).to(ContentProviderDefault.class).in(Singleton.class);
+ bind(HistoryWrapper.class).to(HistoryWrapperDefault.class).in(Singleton.class);
+ // bind(StateManager.class).to(StateManagerDefault.class).in(Singleton.class);
}
}
Modified: trunk/src/main/java/cc/kune/core/client/KuneEntryPoint.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/KuneEntryPoint.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/cc/kune/core/client/KuneEntryPoint.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -2,10 +2,16 @@
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
+import com.google.gwt.core.client.GWT.UncaughtExceptionHandler;
+import com.google.gwt.core.client.Scheduler;
+import com.google.gwt.core.client.Scheduler.ScheduledCommand;
import com.google.gwt.user.client.ui.RootLayoutPanel;
import com.google.gwt.user.client.ui.Widget;
import com.mvp4g.client.Mvp4gModule;
+/**
+ * The Class KuneEntryPoint.
+ */
public class KuneEntryPoint implements EntryPoint {
/*
@@ -13,8 +19,26 @@
*
* @see com.google.gwt.core.client.EntryPoint#onModuleLoad()
*/
- @Override
public void onModuleLoad() {
+ GWT.setUncaughtExceptionHandler(new UncaughtExceptionHandler() {
+ @Override
+ public void onUncaughtException(final Throwable e) {
+ GWT.log("Error in 'onModuleLoad()' method", e);
+ e.printStackTrace();
+ }
+ });
+
+ Scheduler.get().scheduleDeferred(new ScheduledCommand() {
+ public void execute() {
+ onModuleLoadCont();
+ }
+ });
+ }
+
+ /**
+ * On module load cont.
+ */
+ public void onModuleLoadCont() {
final Mvp4gModule module = (Mvp4gModule) GWT.create(Mvp4gModule.class);
module.createAndStartModule();
RootLayoutPanel.get().add((Widget) module.getStartView());
Copied: trunk/src/main/java/cc/kune/core/client/actions/BeforeActionCollection.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/client/actions/BeforeActionCollection.java)
===================================================================
--- trunk/src/main/java/cc/kune/core/client/actions/BeforeActionCollection.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/actions/BeforeActionCollection.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,45 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.client.actions;
+
+import java.util.ArrayList;
+
+/**
+ * The Class BeforeActionCollection.
+ */
+public class BeforeActionCollection extends ArrayList<BeforeActionListener> {
+
+ private static final long serialVersionUID = -1508664709628420137L;
+
+ /**
+ * Check before action listeners.
+ *
+ * @return true, if all listener returns true
+ */
+ public boolean checkBeforeAction() {
+ for (BeforeActionListener listener : this) {
+ if (!listener.beforeAction()) {
+ return false;
+ }
+ }
+ return true;
+ }
+
+}
Property changes on: trunk/src/main/java/cc/kune/core/client/actions/BeforeActionCollection.java
___________________________________________________________________
Name: svn:mergeinfo
+
Copied: trunk/src/main/java/cc/kune/core/client/actions/BeforeActionListener.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/client/actions/BeforeActionListener.java)
===================================================================
--- trunk/src/main/java/cc/kune/core/client/actions/BeforeActionListener.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/actions/BeforeActionListener.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,31 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.client.actions;
+
+public interface BeforeActionListener {
+
+ /**
+ * Return false to cancel the action
+ *
+ * @return
+ */
+ boolean beforeAction();
+
+}
Property changes on: trunk/src/main/java/cc/kune/core/client/actions/BeforeActionListener.java
___________________________________________________________________
Name: svn:mergeinfo
+
Added: trunk/src/main/java/cc/kune/core/client/cookies/CookiesManager.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/cookies/CookiesManager.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/cookies/CookiesManager.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,30 @@
+package cc.kune.core.client.cookies;
+
+import cc.kune.core.client.CoreEventBus;
+import cc.kune.core.client.cookies.CookiesManager.ICookiesView;
+import cc.kune.core.client.state.Session;
+
+import com.google.gwt.user.client.Cookies;
+import com.google.inject.Inject;
+import com.mvp4g.client.annotation.Presenter;
+import com.mvp4g.client.presenter.BasePresenter;
+
+@Presenter(view = CookiesView.class)
+public class CookiesManager extends BasePresenter<ICookiesView, CoreEventBus> {
+ public interface ICookiesView {
+ String getCurrentCookie();
+ }
+
+ @Inject
+ public CookiesManager() {
+ }
+
+ public String getCurrentCookie() {
+ return Cookies.getCookie(Session.USERHASH);
+ // view.getCurrentCookie();
+ }
+
+ public void onDoNothing() {
+ }
+
+}
Property changes on: trunk/src/main/java/cc/kune/core/client/cookies/CookiesManager.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/src/main/java/cc/kune/core/client/cookies/CookiesView.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/cookies/CookiesView.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/cookies/CookiesView.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,19 @@
+package cc.kune.core.client.cookies;
+
+import cc.kune.core.client.cookies.CookiesManager.ICookiesView;
+import cc.kune.core.client.state.Session;
+
+import com.google.gwt.user.client.Cookies;
+import com.google.inject.Inject;
+
+public class CookiesView implements ICookiesView {
+
+ @Inject
+ public CookiesView() {
+ }
+
+ public String getCurrentCookie() {
+ return Cookies.getCookie(Session.USERHASH);
+ }
+
+}
Property changes on: trunk/src/main/java/cc/kune/core/client/cookies/CookiesView.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Copied: trunk/src/main/java/cc/kune/core/client/errors/AccessViolationException.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/client/errors/AccessViolationException.java)
===================================================================
--- trunk/src/main/java/cc/kune/core/client/errors/AccessViolationException.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/errors/AccessViolationException.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,24 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.client.errors;
+
+public class AccessViolationException extends DefaultException {
+ private static final long serialVersionUID = -3786772632052256999L;
+}
Copied: trunk/src/main/java/cc/kune/core/client/errors/AlreadyGroupMemberException.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/client/errors/AlreadyGroupMemberException.java)
===================================================================
--- trunk/src/main/java/cc/kune/core/client/errors/AlreadyGroupMemberException.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/errors/AlreadyGroupMemberException.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,24 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.client.errors;
+
+public class AlreadyGroupMemberException extends DefaultException {
+ private static final long serialVersionUID = 6663958867752546481L;
+}
Copied: trunk/src/main/java/cc/kune/core/client/errors/AlreadyUserMemberException.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/client/errors/AlreadyUserMemberException.java)
===================================================================
--- trunk/src/main/java/cc/kune/core/client/errors/AlreadyUserMemberException.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/errors/AlreadyUserMemberException.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,24 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.client.errors;
+
+public class AlreadyUserMemberException extends DefaultException {
+ private static final long serialVersionUID = -6365615768192330492L;
+}
Copied: trunk/src/main/java/cc/kune/core/client/errors/ContainerNotPermittedException.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/client/errors/ContainerNotPermittedException.java)
===================================================================
--- trunk/src/main/java/cc/kune/core/client/errors/ContainerNotPermittedException.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/errors/ContainerNotPermittedException.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,24 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.client.errors;
+
+public class ContainerNotPermittedException extends DefaultException {
+ private static final long serialVersionUID = 6866318170714609691L;
+}
Copied: trunk/src/main/java/cc/kune/core/client/errors/ContentNotFoundException.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/client/errors/ContentNotFoundException.java)
===================================================================
--- trunk/src/main/java/cc/kune/core/client/errors/ContentNotFoundException.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/errors/ContentNotFoundException.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,24 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.client.errors;
+
+public class ContentNotFoundException extends DefaultException {
+ private static final long serialVersionUID = -4641212341448422627L;
+}
Copied: trunk/src/main/java/cc/kune/core/client/errors/ContentNotPermittedException.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/client/errors/ContentNotPermittedException.java)
===================================================================
--- trunk/src/main/java/cc/kune/core/client/errors/ContentNotPermittedException.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/errors/ContentNotPermittedException.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,24 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.client.errors;
+
+public class ContentNotPermittedException extends DefaultException {
+ private static final long serialVersionUID = 4771568826852748873L;
+}
Copied: trunk/src/main/java/cc/kune/core/client/errors/DefaultException.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/client/errors/DefaultException.java)
===================================================================
--- trunk/src/main/java/cc/kune/core/client/errors/DefaultException.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/errors/DefaultException.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,40 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ \*/
+package cc.kune.core.client.errors;
+
+import com.google.gwt.user.client.rpc.IsSerializable;
+import com.google.gwt.user.client.rpc.StatusCodeException;
+
+public class DefaultException extends StatusCodeException implements IsSerializable {
+
+ private static final long serialVersionUID = -6111471089427505005L;
+
+ public DefaultException() {
+ this(0, "");
+ }
+
+ public DefaultException(final int statusCode, final String message) {
+ super(statusCode, message);
+ }
+
+ public DefaultException(final String message) {
+ this(0, message);
+ }
+}
Copied: trunk/src/main/java/cc/kune/core/client/errors/EmailAddressInUseException.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/client/errors/EmailAddressInUseException.java)
===================================================================
--- trunk/src/main/java/cc/kune/core/client/errors/EmailAddressInUseException.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/errors/EmailAddressInUseException.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,24 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.client.errors;
+
+public class EmailAddressInUseException extends DefaultException {
+ private static final long serialVersionUID = 3740509040361715407L;
+}
Copied: trunk/src/main/java/cc/kune/core/client/errors/ErrorHandler.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/client/services/ErrorHandler.java)
===================================================================
--- trunk/src/main/java/cc/kune/core/client/errors/ErrorHandler.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/errors/ErrorHandler.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,121 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.client.errors;
+
+import org.ourproject.common.client.notify.NotifyLevel;
+
+import cc.kune.core.client.CoreEventBus;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
+import com.allen_sauer.gwt.log.client.Log;
+import com.calclab.suco.client.events.Event0;
+import com.calclab.suco.client.events.Listener0;
+import com.google.gwt.core.client.GWT;
+import com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException;
+import com.google.inject.Inject;
+import com.mvp4g.client.event.BaseEventHandler;
+
+public class ErrorHandler extends BaseEventHandler<CoreEventBus> {
+ private final Session session;
+ private final I18nTranslationService i18n;
+ private final Event0 onSessionExpired;
+
+ @Inject
+ public ErrorHandler(final Session session, final I18nTranslationService i18n) {
+ this.session = session;
+ this.i18n = i18n;
+ this.onSessionExpired = new Event0("onSessionExpired");
+ }
+
+ public void doSessionExpired() {
+ onSessionExpired.fire();
+ eventBus.notify(NotifyLevel.info, "Your session has expired. Please log in again.");
+ }
+
+ public void onSessionExpired(final Listener0 listener) {
+ onSessionExpired.add(listener);
+ }
+
+ public void process(final Throwable caught) {
+ eventBus.hideSpin();
+ if (caught instanceof AccessViolationException) {
+ logException(caught);
+ eventBus.notify(NotifyLevel.error, i18n.t("You do not have rights to perform that action"));
+ } else if (caught instanceof SessionExpiredException) {
+ logException(caught);
+ doSessionExpired();
+ } else if (caught instanceof UserMustBeLoggedException) {
+ logException(caught);
+ if (session.isLogged()) {
+ doSessionExpired();
+ } else {
+ eventBus.notify(NotifyLevel.important, i18n.t("Please sign in or register to collaborate"));
+ }
+ } else if (caught instanceof GroupNotFoundException) {
+ logException(caught);
+
+ eventBus.notify(NotifyLevel.veryImportant, i18n.t("Group not found"));
+ eventBus.gotoToken("");
+ } else if (caught instanceof IncompatibleRemoteServiceException) {
+ eventBus.notify(NotifyLevel.error,
+ i18n.t("Your browser is outdated with the server software. Please reload this page."));
+ } else if (caught instanceof ContentNotFoundException) {
+ logException(caught);
+ eventBus.notify(NotifyLevel.veryImportant, i18n.t("Content not found"));
+ eventBus.gotoToken("");
+ } else if (caught instanceof ContentNotPermittedException) {
+ logException(caught);
+ eventBus.notify(NotifyLevel.error, i18n.t("Action not permitted in this location"));
+ eventBus.gotoToken("");
+ } else if (caught instanceof ContainerNotPermittedException) {
+ logException(caught);
+ eventBus.notify(NotifyLevel.error, i18n.t("Action not permitted in this location"));
+ eventBus.gotoToken("");
+ } else if (caught instanceof LastAdminInGroupException) {
+ logException(caught);
+ eventBus.alert(i18n.t("Warning"), i18n.t("Sorry, you are the last admin of this group."
+ + " Look for someone to substitute you appropriately as admin before leaving this group."));
+ } else if (caught instanceof AlreadyGroupMemberException) {
+ logException(caught);
+ eventBus.notify(NotifyLevel.error, i18n.t("This group is already a group member"));
+ } else if (caught instanceof AlreadyUserMemberException) {
+ logException(caught);
+ eventBus.notify(NotifyLevel.error, i18n.t("This user is already a group member"));
+ } else {
+ logException(caught, true);
+ eventBus.notify(NotifyLevel.error, i18n.t("Error performing operation"));
+ GWT.log("Other kind of exception in StateManagerDefault/processErrorException", caught);
+ }
+ }
+
+ private void logException(final Throwable caught) {
+ logException(caught, false);
+ }
+
+ private void logException(final Throwable caught, final boolean showException) {
+ if (showException) {
+ Log.debug("Exception in KuneErrorHandler", caught);
+ } else {
+ Log.debug("Exception in KuneErrorHandler: " + caught.getMessage());
+ }
+ }
+
+}
Copied: trunk/src/main/java/cc/kune/core/client/errors/GroupNameInUseException.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/client/errors/GroupNameInUseException.java)
===================================================================
--- trunk/src/main/java/cc/kune/core/client/errors/GroupNameInUseException.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/errors/GroupNameInUseException.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,24 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.client.errors;
+
+public class GroupNameInUseException extends DefaultException {
+ private static final long serialVersionUID = -4746775725822225687L;
+}
Copied: trunk/src/main/java/cc/kune/core/client/errors/GroupNotFoundException.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/client/errors/GroupNotFoundException.java)
===================================================================
--- trunk/src/main/java/cc/kune/core/client/errors/GroupNotFoundException.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/errors/GroupNotFoundException.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,24 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.client.errors;
+
+public class GroupNotFoundException extends DefaultException {
+ private static final long serialVersionUID = 2358855015943550817L;
+}
Copied: trunk/src/main/java/cc/kune/core/client/errors/I18nNotFoundException.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/client/errors/I18nNotFoundException.java)
===================================================================
--- trunk/src/main/java/cc/kune/core/client/errors/I18nNotFoundException.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/errors/I18nNotFoundException.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,24 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.client.errors;
+
+public class I18nNotFoundException extends DefaultException {
+ private static final long serialVersionUID = -2400899465805236215L;
+}
Copied: trunk/src/main/java/cc/kune/core/client/errors/LastAdminInGroupException.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/client/errors/LastAdminInGroupException.java)
===================================================================
--- trunk/src/main/java/cc/kune/core/client/errors/LastAdminInGroupException.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/errors/LastAdminInGroupException.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,24 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.client.errors;
+
+public class LastAdminInGroupException extends DefaultException {
+ private static final long serialVersionUID = -8727443733339361388L;
+}
Copied: trunk/src/main/java/cc/kune/core/client/errors/NameInUseException.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/client/errors/NameInUseException.java)
===================================================================
--- trunk/src/main/java/cc/kune/core/client/errors/NameInUseException.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/errors/NameInUseException.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,24 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.client.errors;
+
+public class NameInUseException extends DefaultException {
+ private static final long serialVersionUID = 4890594846432830537L;
+}
Copied: trunk/src/main/java/cc/kune/core/client/errors/NameNotPermittedException.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/client/errors/NameNotPermittedException.java)
===================================================================
--- trunk/src/main/java/cc/kune/core/client/errors/NameNotPermittedException.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/errors/NameNotPermittedException.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,24 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.client.errors;
+
+public class NameNotPermittedException extends DefaultException {
+ private static final long serialVersionUID = -8022844560909422614L;
+}
Copied: trunk/src/main/java/cc/kune/core/client/errors/NoDefaultContentException.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/client/errors/NoDefaultContentException.java)
===================================================================
--- trunk/src/main/java/cc/kune/core/client/errors/NoDefaultContentException.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/errors/NoDefaultContentException.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,24 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.client.errors;
+
+public class NoDefaultContentException extends DefaultException {
+ private static final long serialVersionUID = 7443824340580555859L;
+}
Copied: trunk/src/main/java/cc/kune/core/client/errors/SessionExpiredException.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/client/errors/SessionExpiredException.java)
===================================================================
--- trunk/src/main/java/cc/kune/core/client/errors/SessionExpiredException.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/errors/SessionExpiredException.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,24 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.client.errors;
+
+public class SessionExpiredException extends DefaultException {
+ private static final long serialVersionUID = -1603881986661302041L;
+}
Copied: trunk/src/main/java/cc/kune/core/client/errors/ToolNotFoundException.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/client/errors/ToolNotFoundException.java)
===================================================================
--- trunk/src/main/java/cc/kune/core/client/errors/ToolNotFoundException.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/errors/ToolNotFoundException.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,24 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.client.errors;
+
+public class ToolNotFoundException extends DefaultException {
+ private static final long serialVersionUID = 472511647264356558L;
+}
Copied: trunk/src/main/java/cc/kune/core/client/errors/UIException.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/client/errors/UIException.java)
===================================================================
--- trunk/src/main/java/cc/kune/core/client/errors/UIException.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/errors/UIException.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,43 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.client.errors;
+
+import com.allen_sauer.gwt.log.client.Log;
+
+public class UIException extends RuntimeException {
+
+ private static final long serialVersionUID = -1327164226202923181L;
+
+ public UIException(final String text) {
+ super(text);
+ Log.error(text);
+ }
+
+ public UIException(final String text, final Throwable cause) {
+ super(text, cause);
+ Log.error(text, cause);
+ }
+
+ public UIException(final Throwable cause) {
+ super(cause);
+ Log.error("UIException", cause);
+ }
+
+}
Copied: trunk/src/main/java/cc/kune/core/client/errors/UnknownPropertyException.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/client/errors/UnknownPropertyException.java)
===================================================================
--- trunk/src/main/java/cc/kune/core/client/errors/UnknownPropertyException.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/errors/UnknownPropertyException.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,28 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.client.errors;
+
+public class UnknownPropertyException extends DefaultException {
+ private static final long serialVersionUID = -5921396887476497824L;
+
+ public UnknownPropertyException(final String message) {
+ super(message);
+ }
+}
Copied: trunk/src/main/java/cc/kune/core/client/errors/UserAuthException.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/client/errors/UserAuthException.java)
===================================================================
--- trunk/src/main/java/cc/kune/core/client/errors/UserAuthException.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/errors/UserAuthException.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,24 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.client.errors;
+
+public class UserAuthException extends DefaultException {
+ private static final long serialVersionUID = -8383513776573054971L;
+}
Copied: trunk/src/main/java/cc/kune/core/client/errors/UserMustBeLoggedException.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/client/errors/UserMustBeLoggedException.java)
===================================================================
--- trunk/src/main/java/cc/kune/core/client/errors/UserMustBeLoggedException.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/errors/UserMustBeLoggedException.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,24 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.client.errors;
+
+public class UserMustBeLoggedException extends DefaultException {
+ private static final long serialVersionUID = -5091069990899662849L;
+}
Copied: trunk/src/main/java/cc/kune/core/client/errors/UserNotFoundException.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/client/errors/UserNotFoundException.java)
===================================================================
--- trunk/src/main/java/cc/kune/core/client/errors/UserNotFoundException.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/errors/UserNotFoundException.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,24 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.client.errors;
+
+public class UserNotFoundException extends DefaultException {
+ private static final long serialVersionUID = 6207713694613166661L;
+}
Copied: trunk/src/main/java/cc/kune/core/client/i18n/I18nTranslationServiceMocked.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/client/i18n/I18nTranslationServiceMocked.java)
===================================================================
--- trunk/src/main/java/cc/kune/core/client/i18n/I18nTranslationServiceMocked.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/i18n/I18nTranslationServiceMocked.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,31 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.client.i18n;
+
+import cc.kune.core.client.utils.TextUtils;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
+public class I18nTranslationServiceMocked extends I18nTranslationService {
+ public String t(final String text) {
+ String encodeText = TextUtils.escapeHtmlLight(text);
+ String translation = removeNT(encodeText);
+ return decodeHtml(translation);
+ }
+}
Copied: trunk/src/main/java/cc/kune/core/client/i18n/I18nUITranslationService.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/client/i18n/I18nUITranslationService.java)
===================================================================
--- trunk/src/main/java/cc/kune/core/client/i18n/I18nUITranslationService.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/i18n/I18nUITranslationService.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,215 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.client.i18n;
+
+import java.util.Date;
+import java.util.HashMap;
+
+import cc.kune.core.client.rpcservices.I18nServiceAsync;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.utils.Location;
+import cc.kune.core.client.utils.TextUtils;
+import cc.kune.core.client.utils.WindowUtils;
+import cc.kune.core.shared.dto.I18nLanguageDTO;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
+import com.allen_sauer.gwt.log.client.Log;
+import com.calclab.suco.client.events.Listener0;
+import com.google.gwt.i18n.client.DateTimeFormat;
+import com.google.gwt.user.client.rpc.AsyncCallback;
+import com.google.inject.Inject;
+
+public class I18nUITranslationService extends I18nTranslationService {
+ private HashMap<String, String> lexicon;
+ private String currentLanguageCode;
+ private I18nLanguageDTO currentLang;
+ private final I18nServiceAsync i18nService;
+ private final Session session;
+
+ @Inject
+ public I18nUITranslationService(final Session session, final I18nServiceAsync i18nService) {
+ this.session = session;
+ this.i18nService = i18nService;
+ final Location loc = WindowUtils.getLocation();
+ final String locale = loc.getParameter("locale");
+ i18nService.getInitialLanguage(locale, new AsyncCallback<I18nLanguageDTO>() {
+ public void onFailure(final Throwable caught) {
+ Log.error("Workspace adaptation to your language failed: " + caught.getMessage());
+ }
+
+ public void onSuccess(final I18nLanguageDTO result) {
+ currentLang = result;
+ currentLanguageCode = currentLang.getCode();
+ session.setCurrentLanguage(currentLang);
+ i18nService.getLexicon(currentLang.getCode(), new AsyncCallback<HashMap<String, String>>() {
+ public void onFailure(final Throwable caught) {
+ Log.error("Workspace adaptation to your language failed:" + caught.getMessage());
+ }
+
+ public void onSuccess(final HashMap<String, String> result) {
+ lexicon = result;
+ session.setCurrentLanguage(currentLang);
+ }
+ });
+ }
+ });
+ }
+
+ public void changeCurrentLanguage(final String newLanguage) {
+ if (!newLanguage.equals(this.currentLanguageCode)) {
+ setCurrentLanguage(newLanguage);
+ changeLocale(newLanguage);
+ }
+ }
+
+ public String formatDateWithLocale(final Date date) {
+ return formatDateWithLocale(date, false);
+ }
+
+ public String formatDateWithLocale(final Date date, final boolean shortFormat) {
+ String dateFormat = shortFormat ? currentLang.getDateFormatShort() : currentLang.getDateFormat();
+
+ final DateTimeFormat fmt;
+ if (dateFormat == null) {
+ fmt = DateTimeFormat.getFormat("M/d/yyyy h:mm a");
+ } else {
+ if (shortFormat) {
+ fmt = DateTimeFormat.getFormat(dateFormat + " h:mm a");
+ } else {
+ final String abrevMonthInEnglish = DateTimeFormat.getFormat("MMM").format(date);
+ final String monthToTranslate = abrevMonthInEnglish + " [%NT abbreviated month]";
+ dateFormat = dateFormat.replaceFirst("MMM", "'" + t(monthToTranslate) + "'");
+ fmt = DateTimeFormat.getFormat(dateFormat + " h:mm a");
+ }
+ }
+ final String dateFormated = fmt.format(date);
+ return dateFormated;
+ }
+
+ public String getCurrentLanguage() {
+ return currentLanguageCode;
+ }
+
+ public HashMap<String, String> getLexicon() {
+ return lexicon;
+ }
+
+ public void init(final I18nServiceAsync i18nService, final Session session, final Listener0 onReady) {
+
+ }
+
+ public void setCurrentLanguage(final String newLanguage) {
+ this.currentLanguageCode = newLanguage;
+ }
+
+ public void setLexicon(final HashMap<String, String> lexicon) {
+ this.lexicon = lexicon;
+ }
+
+ public void setTranslationAfterSave(final String text, final String translation) {
+ lexicon.put(text, translation);
+ }
+
+ /**
+ * In production, this method uses a hashmap. In development, if the text is
+ * not in the hashmap, it makes a server petition (that stores the text
+ * pending for translation in db).
+ *
+ * Warning: text is escaped as html before insert in the db. Don't use html
+ * here (o user this method with params).
+ *
+ * @param text
+ * @return text translated in the current language
+ */
+ @Override
+ public String t(final String text) {
+ final String encodeText = TextUtils.escapeHtmlLight(text);
+ String translation = lexicon.get(encodeText);
+ if (lexicon.containsKey(encodeText)) {
+ if (translation == UNTRANSLATED_VALUE) {
+ // Not translated but in db, return text
+ translation = removeNT(encodeText);
+ }
+ } else {
+ // Not translated and not in db, make a petition for translation
+ if (session.isLogged()) {
+ i18nService.getTranslation(session.getUserHash(), currentLanguageCode, text,
+ new AsyncCallback<String>() {
+ public void onFailure(final Throwable caught) {
+ }
+
+ public void onSuccess(final String result) {
+ }
+ });
+ Log.debug("Registering in db '" + text + "' as pending translation");
+ lexicon.put(encodeText, UNTRANSLATED_VALUE);
+ }
+ translation = removeNT(encodeText);
+ }
+ return decodeHtml(translation);
+ }
+
+ /**
+ *
+ * See in:
+ * http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread
+ * /5e4e25050d3be984/7035ec39354d06aa?lnk=gst&q=get+locale&rnum=23
+ *
+ * JSNI method to change the locale of the application - it effectively
+ * parses the existing URL and creates a new one for the chosen locale.
+ *
+ * It additionally launches any JavaScript debugger that might be attached
+ * to the system (Windows only). To disable this functionality just remove
+ * the "debugger" line.
+ *
+ * @param newLocale
+ * String value of the new locale to go to.
+ */
+ private native void changeLocale(String newLocale)
+ /*-{
+ // Uncomment the "debugger;" line to see how to set debug statements in JSNI code
+ // When in web mode, if your browser has a JavaScript debugger attached, it will
+ // launch at this point in the code (when the user changes locale through the menu system).
+ // debugger;
+
+ // Get the current location
+ var currLocation = $wnd.location.toString();
+ // Get rid of any GWT History tokens that might be present
+ var noHistoryCurrLocArray = currLocation.split("#");
+ var noHistoryCurrLoc = noHistoryCurrLocArray[0];
+ var currHistory = noHistoryCurrLocArray[1];
+ // Get rid of any locale string
+ var locArray = noHistoryCurrLoc.split("?");
+ // Build the new href location and then send the browser there.
+ // $wnd.location.href = locArray[0]+"?locale="+newLocale+"#"+currHistory;
+ $wnd.location.href = locArray[0]+"?locale="+newLocale
+
+ // extjs part:
+ // commented because the error: "Ext is not defined"
+ // we have to try other way
+ // var head = document.getElementsByTagName("head")[0];
+ // var script = document.createElement('script');
+ // script.id = 'localScript';
+ // script.type = 'text/javascript';
+ // script.src = "js/ext/locale/ext-lang-"+newLocale+".js";
+ // head.appendChild(script);
+ }-*/;
+
+}
Added: trunk/src/main/java/cc/kune/core/client/notify/UserNotifierPresenter.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/notify/UserNotifierPresenter.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/notify/UserNotifierPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,47 @@
+package cc.kune.core.client.notify;
+
+import org.ourproject.common.client.notify.ConfirmationAsk;
+import org.ourproject.common.client.notify.NotifyLevel;
+
+import cc.kune.core.client.CoreEventBus;
+import cc.kune.core.client.notify.UserNotifierPresenter.IUserNotifierView;
+
+import com.mvp4g.client.annotation.Presenter;
+import com.mvp4g.client.presenter.LazyPresenter;
+import com.mvp4g.client.view.LazyView;
+
+@Presenter(view = UserNotifierView.class)
+public class UserNotifierPresenter extends LazyPresenter<IUserNotifierView, CoreEventBus> {
+
+ public interface IUserNotifierView extends LazyView {
+ public void alert(String title, String message);
+
+ public void confirmationAsk(ConfirmationAsk<?> ask);
+
+ public void hideSpin();
+
+ public void notify(NotifyLevel level, String message);
+
+ public void showSpin(String message);
+ }
+
+ public void onAlert(final String title, final String message) {
+ view.alert(title, message);
+ }
+
+ public void onConfirmationAsk(final ConfirmationAsk<?> ask) {
+ view.confirmationAsk(ask);
+ };
+
+ public void onHideSpin() {
+ view.hideSpin();
+ }
+
+ public void onNotify(final NotifyLevel level, final String message) {
+ view.notify(level, message);
+ }
+
+ public void onShowSpin(final String message) {
+ view.showSpin(message);
+ }
+}
\ No newline at end of file
Property changes on: trunk/src/main/java/cc/kune/core/client/notify/UserNotifierPresenter.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/src/main/java/cc/kune/core/client/notify/UserNotifierView.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/notify/UserNotifierView.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/notify/UserNotifierView.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,49 @@
+package cc.kune.core.client.notify;
+
+import org.ourproject.common.client.notify.ConfirmationAsk;
+import org.ourproject.common.client.notify.NotifyLevel;
+
+import cc.kune.core.client.notify.UserNotifierPresenter.IUserNotifierView;
+
+import com.google.gwt.user.client.Window;
+
+public class UserNotifierView implements IUserNotifierView {
+
+ @Override
+ public void alert(final String title, final String message) {
+ message(title, message);
+ }
+
+ @Override
+ public void confirmationAsk(final ConfirmationAsk<?> ask) {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void createView() {
+ // TODO Auto-generated method stub
+ }
+
+ @Override
+ public void hideSpin() {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void notify(final NotifyLevel level, final String message) {
+ message("", message);
+ }
+
+ @Override
+ public void showSpin(final String message) {
+ // TODO Auto-generated method stub
+
+ }
+
+ private void message(final String title, final String message) {
+ Window.alert(title + " " + message);
+ }
+
+}
Property changes on: trunk/src/main/java/cc/kune/core/client/notify/UserNotifierView.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/src/main/java/cc/kune/core/client/rpcservices/AsyncCallbackSimple.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/rpcservices/AsyncCallbackSimple.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/rpcservices/AsyncCallbackSimple.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,36 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.client.rpcservices;
+
+import cc.kune.core.client.errors.ErrorHandler;
+
+import com.google.gwt.user.client.rpc.AsyncCallback;
+import com.google.inject.Inject;
+
+public abstract class AsyncCallbackSimple<T> implements AsyncCallback<T> {
+
+ @Inject
+ private ErrorHandler errorHandler;
+
+ public void onFailure(final Throwable caught) {
+ errorHandler.process(caught);
+ }
+
+}
Added: trunk/src/main/java/cc/kune/core/client/rpcservices/ContentService.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/rpcservices/ContentService.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/rpcservices/ContentService.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,90 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.client.rpcservices;
+
+import java.util.Date;
+
+import cc.kune.core.client.errors.DefaultException;
+import cc.kune.core.shared.dto.CommentDTO;
+import cc.kune.core.shared.dto.ContentSimpleDTO;
+import cc.kune.core.shared.dto.ContentStatusDTO;
+import cc.kune.core.shared.dto.I18nLanguageDTO;
+import cc.kune.core.shared.dto.RateResultDTO;
+import cc.kune.core.shared.dto.StateAbstractDTO;
+import cc.kune.core.shared.dto.StateContainerDTO;
+import cc.kune.core.shared.dto.StateContentDTO;
+import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.dto.TagCloudResultDTO;
+
+import com.google.gwt.user.client.rpc.RemoteService;
+import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
+
+@RemoteServiceRelativePath("ContentService")
+public interface ContentService extends RemoteService {
+
+ void addAuthor(String userHash, StateToken token, String authorShortName) throws DefaultException;
+
+ CommentDTO addComment(String userHash, StateToken token, Long parentCommentId, String commentText)
+ throws DefaultException;
+
+ CommentDTO addComment(String userHash, StateToken token, String commentText) throws DefaultException;
+
+ StateContentDTO addContent(String user, StateToken parentToken, String name, String typeId) throws DefaultException;
+
+ StateContainerDTO addFolder(String hash, StateToken parentToken, String typeId, String title)
+ throws DefaultException;
+
+ StateContainerDTO addRoom(String user, StateToken parentToken, String name) throws DefaultException;
+
+ StateContentDTO addWave(String userHash, StateToken parentToken, String waveFileType, String waveId);
+
+ StateContentDTO delContent(String userHash, StateToken token) throws DefaultException;
+
+ StateAbstractDTO getContent(String userHash, StateToken token) throws DefaultException;
+
+ TagCloudResultDTO getSummaryTags(String userHash, StateToken groupToken) throws DefaultException;
+
+ CommentDTO markCommentAsAbuse(String userHash, StateToken token, Long commentId) throws DefaultException;
+
+ RateResultDTO rateContent(String userHash, StateToken token, Double value) throws DefaultException;
+
+ void removeAuthor(String userHash, StateToken token, String authorShortName) throws DefaultException;
+
+ StateAbstractDTO renameContainer(String userHash, StateToken token, String newName) throws DefaultException;
+
+ StateAbstractDTO renameContent(String userHash, StateToken token, String newName) throws DefaultException;
+
+ void save(String user, StateToken token, String content) throws DefaultException;
+
+ ContentSimpleDTO setAsDefaultContent(String userHash, StateToken token);
+
+ I18nLanguageDTO setLanguage(String userHash, StateToken token, String languageCode) throws DefaultException;
+
+ void setPublishedOn(String userHash, StateToken token, Date date) throws DefaultException;
+
+ StateAbstractDTO setStatus(String userHash, StateToken stateToken, ContentStatusDTO status);
+
+ StateAbstractDTO setStatusAsAdmin(String userHash, StateToken stateToken, ContentStatusDTO status);
+
+ TagCloudResultDTO setTags(String userHash, StateToken token, String tags) throws DefaultException;
+
+ CommentDTO voteComment(String userHash, StateToken token, Long commentId, boolean votePositive)
+ throws DefaultException;
+}
Added: trunk/src/main/java/cc/kune/core/client/rpcservices/ContentServiceAsync.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/rpcservices/ContentServiceAsync.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/rpcservices/ContentServiceAsync.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,94 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.client.rpcservices;
+
+import java.util.Date;
+
+
+import cc.kune.core.shared.dto.CommentDTO;
+import cc.kune.core.shared.dto.ContentSimpleDTO;
+import cc.kune.core.shared.dto.ContentStatusDTO;
+import cc.kune.core.shared.dto.I18nLanguageDTO;
+import cc.kune.core.shared.dto.RateResultDTO;
+import cc.kune.core.shared.dto.StateAbstractDTO;
+import cc.kune.core.shared.dto.StateContainerDTO;
+import cc.kune.core.shared.dto.StateContentDTO;
+import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.dto.TagCloudResultDTO;
+
+import com.google.gwt.user.client.rpc.AsyncCallback;
+
+public interface ContentServiceAsync {
+
+ void addAuthor(String userHash, StateToken token, String authorShortName, AsyncCallback<Void> asyncCallback);
+
+ void addComment(String userHash, StateToken token, Long parentCommentId, String commentText,
+ AsyncCallback<CommentDTO> asyncCallback);
+
+ void addComment(String userHash, StateToken token, String commentText, AsyncCallback<CommentDTO> asyncCallback);
+
+ void addContent(String user, StateToken parentToken, String name, String typeId,
+ AsyncCallback<StateContentDTO> callback);
+
+ void addFolder(String hash, StateToken parentToken, String title, String typeId,
+ AsyncCallback<StateContainerDTO> callback);
+
+ void addRoom(String user, StateToken parentToken, String name, AsyncCallback<StateContainerDTO> callback);
+
+ void addWave(String userHash, StateToken parentToken, String waveFileType, String waveId,
+ AsyncCallback<StateContentDTO> asyncCallbackSimple);
+
+ void delContent(String userHash, StateToken token, AsyncCallback<StateContentDTO> asyncCallback);
+
+ void getContent(String user, StateToken newState, AsyncCallback<StateAbstractDTO> callback);
+
+ void getSummaryTags(String userHash, StateToken groupToken, AsyncCallback<TagCloudResultDTO> asyncCallback);
+
+ void markCommentAsAbuse(String userHash, StateToken token, Long commentId, AsyncCallback<CommentDTO> asyncCallback);
+
+ void rateContent(String userHash, StateToken token, Double value, AsyncCallback<RateResultDTO> asyncCallback);
+
+ void removeAuthor(String userHash, StateToken token, String authorShortName, AsyncCallback<Void> asyncCallback);
+
+ void renameContainer(String userHash, StateToken token, String newName,
+ AsyncCallback<StateAbstractDTO> asyncCallback);
+
+ void renameContent(String userHash, StateToken token, String newName, AsyncCallback<StateAbstractDTO> asyncCallback);
+
+ void save(String user, StateToken token, String content, AsyncCallback<Void> asyncCallback);
+
+ void setAsDefaultContent(String userHash, StateToken token, AsyncCallback<ContentSimpleDTO> asyncCallback);
+
+ void setLanguage(String userHash, StateToken token, String languageCode,
+ AsyncCallback<I18nLanguageDTO> asyncCallback);
+
+ void setPublishedOn(String userHash, StateToken token, Date publishedOn, AsyncCallback<Void> asyncCallback);
+
+ void setStatus(String userHash, StateToken stateToken, ContentStatusDTO status,
+ AsyncCallback<StateAbstractDTO> asyncCallback);
+
+ void setStatusAsAdmin(String userHash, StateToken stateToken, ContentStatusDTO status,
+ AsyncCallback<StateAbstractDTO> asyncCallback);
+
+ void setTags(String userHash, StateToken token, String tags, AsyncCallback<TagCloudResultDTO> asyncCallback);
+
+ void voteComment(String userHash, StateToken token, Long commentId, boolean votePositive,
+ AsyncCallback<CommentDTO> asyncCallback);
+}
Added: trunk/src/main/java/cc/kune/core/client/rpcservices/GroupService.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/rpcservices/GroupService.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/rpcservices/GroupService.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,54 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.client.rpcservices;
+
+import cc.kune.core.client.errors.DefaultException;
+import cc.kune.core.shared.dto.AdmissionTypeDTO;
+import cc.kune.core.shared.dto.GroupDTO;
+import cc.kune.core.shared.dto.LicenseDTO;
+import cc.kune.core.shared.dto.SocialNetworkVisibilityDTO;
+import cc.kune.core.shared.dto.StateToken;
+
+import com.google.gwt.user.client.rpc.RemoteService;
+import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
+
+@RemoteServiceRelativePath("GroupService")
+public interface GroupService extends RemoteService {
+
+ void changeDefLicense(final String userHash, final StateToken groupToken, final LicenseDTO license);
+
+ void changeGroupWsTheme(String userHash, StateToken groupToken, String theme) throws DefaultException;
+
+ GroupDTO clearGroupBackImage(String userHash, StateToken token);
+
+ StateToken createNewGroup(String userHash, GroupDTO group, String publicDesc, String tags, String[] enabledTools)
+ throws DefaultException;
+
+ GroupDTO getGroup(String userHash, StateToken token);
+
+ GroupDTO setGroupBackImage(String userHash, StateToken token);
+
+ void setGroupNewMembersJoiningPolicy(String userHash, StateToken groupToken, AdmissionTypeDTO admissionPolicy);
+
+ void setSocialNetworkVisibility(String userHash, StateToken groupToken, SocialNetworkVisibilityDTO visibility);
+
+ void setToolEnabled(String userHash, StateToken groupToken, String toolName, boolean enabled);
+
+}
Added: trunk/src/main/java/cc/kune/core/client/rpcservices/GroupServiceAsync.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/rpcservices/GroupServiceAsync.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/rpcservices/GroupServiceAsync.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,56 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.client.rpcservices;
+
+
+import cc.kune.core.shared.dto.AdmissionTypeDTO;
+import cc.kune.core.shared.dto.GroupDTO;
+import cc.kune.core.shared.dto.LicenseDTO;
+import cc.kune.core.shared.dto.SocialNetworkVisibilityDTO;
+import cc.kune.core.shared.dto.StateToken;
+
+import com.google.gwt.user.client.rpc.AsyncCallback;
+
+public interface GroupServiceAsync {
+
+ void changeDefLicense(final String userHash, final StateToken groupToken, final LicenseDTO license,
+ AsyncCallback<Void> asyncCallback);
+
+ void changeGroupWsTheme(String userHash, StateToken groupToken, String theme, AsyncCallback<Void> callback);
+
+ void clearGroupBackImage(String userHash, StateToken token, AsyncCallback<GroupDTO> asyncCallback);
+
+ void createNewGroup(String userHash, GroupDTO group, String publicDesc, String tags, String[] enabledTools,
+ AsyncCallback<StateToken> callback);
+
+ void getGroup(String userHash, StateToken token, AsyncCallback<GroupDTO> asyncCallback);
+
+ void setGroupBackImage(String userHash, StateToken token, AsyncCallback<GroupDTO> asyncCallback);
+
+ void setGroupNewMembersJoiningPolicy(String userHash, StateToken groupToken, AdmissionTypeDTO admissionPolicy,
+ AsyncCallback<Void> asyncCallback);
+
+ void setSocialNetworkVisibility(String userHash, StateToken token, SocialNetworkVisibilityDTO visibility,
+ AsyncCallback<Void> asyncCallback);
+
+ void setToolEnabled(String userHash, StateToken groupToken, String toolName, boolean enabled,
+ AsyncCallback<Void> asyncCallback);
+
+}
Added: trunk/src/main/java/cc/kune/core/client/rpcservices/I18nService.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/rpcservices/I18nService.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/rpcservices/I18nService.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,41 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.client.rpcservices;
+
+import java.util.HashMap;
+
+import cc.kune.core.client.errors.DefaultException;
+import cc.kune.core.shared.dto.I18nLanguageDTO;
+
+import com.google.gwt.user.client.rpc.RemoteService;
+import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
+
+@RemoteServiceRelativePath("I18nService")
+public interface I18nService extends RemoteService {
+
+ I18nLanguageDTO getInitialLanguage(String localeParam);
+
+ HashMap<String, String> getLexicon(String language);
+
+ String getTranslation(String userHash, String language, String text);
+
+ String setTranslation(String userHash, String id, String translation) throws DefaultException;
+
+}
Added: trunk/src/main/java/cc/kune/core/client/rpcservices/I18nServiceAsync.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/rpcservices/I18nServiceAsync.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/rpcservices/I18nServiceAsync.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,39 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.client.rpcservices;
+
+import java.util.HashMap;
+
+
+import cc.kune.core.shared.dto.I18nLanguageDTO;
+
+import com.google.gwt.user.client.rpc.AsyncCallback;
+
+public interface I18nServiceAsync {
+
+ void getLexicon(String language, AsyncCallback<HashMap<String, String>> callback);
+
+ void getTranslation(String userHash, String language, String text, AsyncCallback<String> callback);
+
+ void setTranslation(String userHash, String id, String translation, AsyncCallback<String> asyncCallback);
+
+ void getInitialLanguage(String localeParam, AsyncCallback<I18nLanguageDTO> callback);
+
+}
Added: trunk/src/main/java/cc/kune/core/client/rpcservices/SiteService.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/rpcservices/SiteService.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/rpcservices/SiteService.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,33 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.client.rpcservices;
+
+import cc.kune.core.client.errors.DefaultException;
+import cc.kune.core.shared.dto.InitDataDTO;
+
+import com.google.gwt.user.client.rpc.RemoteService;
+import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
+
+@RemoteServiceRelativePath("SiteService")
+public interface SiteService extends RemoteService {
+
+ InitDataDTO getInitData(String userHash) throws DefaultException;
+
+}
Added: trunk/src/main/java/cc/kune/core/client/rpcservices/SiteServiceAsync.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/rpcservices/SiteServiceAsync.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/rpcservices/SiteServiceAsync.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,31 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.client.rpcservices;
+
+
+import cc.kune.core.shared.dto.InitDataDTO;
+
+import com.google.gwt.user.client.rpc.AsyncCallback;
+
+public interface SiteServiceAsync {
+
+ void getInitData(String userHash, AsyncCallback<InitDataDTO> callback);
+
+}
Added: trunk/src/main/java/cc/kune/core/client/rpcservices/SocialNetworkService.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/rpcservices/SocialNetworkService.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/rpcservices/SocialNetworkService.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,62 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.client.rpcservices;
+
+import cc.kune.core.client.errors.DefaultException;
+import cc.kune.core.shared.dto.SocialNetworkDataDTO;
+import cc.kune.core.shared.dto.SocialNetworkRequestResult;
+import cc.kune.core.shared.dto.StateToken;
+
+import com.google.gwt.user.client.rpc.RemoteService;
+import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
+
+@RemoteServiceRelativePath("SocialNetworkService")
+public interface SocialNetworkService extends RemoteService {
+
+ SocialNetworkDataDTO acceptJoinGroup(String hash, StateToken groupToken, String groupToAcceptShortName)
+ throws DefaultException;
+
+ SocialNetworkDataDTO addAdminMember(String hash, StateToken groupToken, String groupToAddShortName)
+ throws DefaultException;
+
+ SocialNetworkDataDTO addCollabMember(String hash, StateToken groupToken, String groupToAddShortName)
+ throws DefaultException;
+
+ SocialNetworkDataDTO addViewerMember(String hash, StateToken groupToken, String groupToAddShortName)
+ throws DefaultException;
+
+ SocialNetworkDataDTO deleteMember(String hash, StateToken groupToken, String groupToDeleteShortName)
+ throws DefaultException;
+
+ SocialNetworkDataDTO denyJoinGroup(String hash, StateToken groupToken, String groupToDenyShortName)
+ throws DefaultException;
+
+ SocialNetworkDataDTO getSocialNetwork(String hash, StateToken groupToken) throws DefaultException;
+
+ SocialNetworkRequestResult requestJoinGroup(String hash, StateToken groupToken) throws DefaultException;
+
+ SocialNetworkDataDTO setAdminAsCollab(String hash, StateToken groupToken, String groupToSetCollabShortName)
+ throws DefaultException;
+
+ SocialNetworkDataDTO setCollabAsAdmin(String hash, StateToken groupToken, String groupToSetAdminShortName)
+ throws DefaultException;
+
+ SocialNetworkDataDTO unJoinGroup(String hash, StateToken groupToken) throws DefaultException;
+}
Added: trunk/src/main/java/cc/kune/core/client/rpcservices/SocialNetworkServiceAsync.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/rpcservices/SocialNetworkServiceAsync.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/rpcservices/SocialNetworkServiceAsync.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,60 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.client.rpcservices;
+
+
+import cc.kune.core.shared.dto.SocialNetworkDataDTO;
+import cc.kune.core.shared.dto.SocialNetworkRequestResult;
+import cc.kune.core.shared.dto.StateToken;
+
+import com.google.gwt.user.client.rpc.AsyncCallback;
+
+public interface SocialNetworkServiceAsync {
+
+ void acceptJoinGroup(String hash, StateToken groupToken, String groupToAcceptShortName,
+ AsyncCallback<SocialNetworkDataDTO> callback);
+
+ void addAdminMember(String hash, StateToken groupToken, String groupToAddShortName,
+ AsyncCallback<SocialNetworkDataDTO> callback);
+
+ void addCollabMember(String hash, StateToken groupToken, String groupToAddShortName,
+ AsyncCallback<SocialNetworkDataDTO> callback);
+
+ void addViewerMember(String hash, StateToken groupToken, String groupToAddShortName,
+ AsyncCallback<SocialNetworkDataDTO> callback);
+
+ void deleteMember(String hash, StateToken groupToken, String groupToDeleteShortName,
+ AsyncCallback<SocialNetworkDataDTO> callback);
+
+ void denyJoinGroup(String hash, StateToken groupToken, String groupToDenyShortName,
+ AsyncCallback<SocialNetworkDataDTO> callback);
+
+ void getSocialNetwork(String hash, StateToken groupToken, AsyncCallback<SocialNetworkDataDTO> callback);
+
+ void requestJoinGroup(String hash, StateToken groupToken, AsyncCallback<SocialNetworkRequestResult> callback);
+
+ void setAdminAsCollab(String hash, StateToken groupToken, String groupToSetCollabShortName,
+ AsyncCallback<SocialNetworkDataDTO> callback);
+
+ void setCollabAsAdmin(String hash, StateToken groupToken, String groupToSetAdminShortName,
+ AsyncCallback<SocialNetworkDataDTO> callback);
+
+ void unJoinGroup(String hash, StateToken groupToken, AsyncCallback<SocialNetworkDataDTO> callback);
+}
Added: trunk/src/main/java/cc/kune/core/client/rpcservices/UserService.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/rpcservices/UserService.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/rpcservices/UserService.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,49 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.client.rpcservices;
+
+
+import cc.kune.core.client.errors.DefaultException;
+import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.dto.UserBuddiesVisibilityDTO;
+import cc.kune.core.shared.dto.UserDTO;
+import cc.kune.core.shared.dto.UserInfoDTO;
+
+import com.google.gwt.user.client.rpc.RemoteService;
+import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
+
+@RemoteServiceRelativePath("UserService")
+public interface UserService extends RemoteService {
+
+ UserInfoDTO createUser(UserDTO user, boolean wantPersonalHomepage) throws DefaultException;
+
+ String getUserAvatarBaser64(String userHash, StateToken userToken) throws DefaultException;
+
+ UserInfoDTO login(String nickOrEmail, String passwd) throws DefaultException;
+
+ void logout(String userHash) throws DefaultException;
+
+ void onlyCheckSession(String userHash) throws DefaultException;
+
+ UserInfoDTO reloadUserInfo(String userHash) throws DefaultException;
+
+ void setBuddiesVisibility(String userHash, StateToken groupToken, UserBuddiesVisibilityDTO visibility);
+
+}
Added: trunk/src/main/java/cc/kune/core/client/rpcservices/UserServiceAsync.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/rpcservices/UserServiceAsync.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/rpcservices/UserServiceAsync.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,47 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.client.rpcservices;
+
+
+import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.dto.UserBuddiesVisibilityDTO;
+import cc.kune.core.shared.dto.UserDTO;
+import cc.kune.core.shared.dto.UserInfoDTO;
+
+import com.google.gwt.user.client.rpc.AsyncCallback;
+
+public interface UserServiceAsync {
+
+ void createUser(UserDTO user, boolean wantPersonalHomepage, AsyncCallback<UserInfoDTO> asyncCallback);
+
+ void getUserAvatarBaser64(String userHash, StateToken userToken, AsyncCallback<String> asyncCallback);
+
+ void login(String nickOrEmail, String passwd, AsyncCallback<UserInfoDTO> asyncCallback);
+
+ void logout(String userHash, AsyncCallback<Void> asyncCallback);
+
+ void onlyCheckSession(String userHash, AsyncCallback<Void> asyncCallback);
+
+ void reloadUserInfo(String userHash, AsyncCallback<UserInfoDTO> asyncCallback);
+
+ void setBuddiesVisibility(String userHash, StateToken groupToken, UserBuddiesVisibilityDTO visibility,
+ AsyncCallback<Void> asyncCallback);
+
+}
Copied: trunk/src/main/java/cc/kune/core/client/state/AccessRightsClientManager.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/client/state/AccessRightsClientManager.java)
===================================================================
--- trunk/src/main/java/cc/kune/core/client/state/AccessRightsClientManager.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/state/AccessRightsClientManager.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,32 @@
+package cc.kune.core.client.state;
+
+
+import cc.kune.core.shared.dto.AccessRightsDTO;
+import cc.kune.core.shared.dto.StateAbstractDTO;
+
+import com.calclab.suco.client.events.Event2;
+import com.calclab.suco.client.events.Listener;
+import com.calclab.suco.client.events.Listener2;
+
+public class AccessRightsClientManager {
+ private AccessRightsDTO previousRights;
+ private final Event2<AccessRightsDTO, AccessRightsDTO> onRightsChanged;
+
+ public AccessRightsClientManager(final StateManager stateManager) {
+ this.previousRights = null;
+ this.onRightsChanged = new Event2<AccessRightsDTO, AccessRightsDTO>("onRightsChanged");
+ stateManager.onStateChanged(new Listener<StateAbstractDTO>() {
+ public void onEvent(final StateAbstractDTO newState) {
+ final AccessRightsDTO rights = newState.getGroupRights();
+ if (!rights.equals(previousRights)) {
+ onRightsChanged.fire(previousRights, rights);
+ previousRights = rights;
+ }
+ }
+ });
+ }
+
+ public void onRightsChanged(final Listener2<AccessRightsDTO, AccessRightsDTO> listener) {
+ onRightsChanged.add(listener);
+ }
+}
Copied: trunk/src/main/java/cc/kune/core/client/state/ContentProvider.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/client/state/ContentProvider.java)
===================================================================
--- trunk/src/main/java/cc/kune/core/client/state/ContentProvider.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/state/ContentProvider.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,34 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.client.state;
+
+
+import cc.kune.core.shared.dto.StateAbstractDTO;
+import cc.kune.core.shared.dto.StateToken;
+
+import com.google.gwt.user.client.rpc.AsyncCallback;
+
+public interface ContentProvider {
+
+ void cache(StateToken encodeState, StateAbstractDTO content);
+
+ void getContent(String user, StateToken newState, AsyncCallback<StateAbstractDTO> callback);
+
+}
Copied: trunk/src/main/java/cc/kune/core/client/state/ContentProviderDefault.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/client/state/ContentProviderDefault.java)
===================================================================
--- trunk/src/main/java/cc/kune/core/client/state/ContentProviderDefault.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/state/ContentProviderDefault.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,62 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.client.state;
+
+import java.util.HashMap;
+
+import cc.kune.core.client.CoreEventBus;
+import cc.kune.core.client.rpcservices.ContentServiceAsync;
+import cc.kune.core.shared.dto.StateAbstractDTO;
+import cc.kune.core.shared.dto.StateToken;
+
+import com.google.gwt.user.client.rpc.AsyncCallback;
+import com.google.inject.Inject;
+import com.mvp4g.client.event.BaseEventHandler;
+
+public class ContentProviderDefault extends BaseEventHandler<CoreEventBus> implements ContentProvider {
+
+ private final ContentServiceAsync server;
+ private final HashMap<StateToken, StateAbstractDTO> cache;
+
+ @Inject
+ public ContentProviderDefault(final ContentServiceAsync server) {
+ this.server = server;
+ this.cache = new HashMap<StateToken, StateAbstractDTO>();
+ }
+
+ public void cache(final StateToken encodeState, final StateAbstractDTO content) {
+ cache.put(encodeState, content);
+ }
+
+ public void getContent(final String user, final StateToken newState, final AsyncCallback<StateAbstractDTO> callback) {
+ eventBus.showSpinLoading();
+ final StateAbstractDTO catched = getCached(newState);
+ if (catched != null) {
+ callback.onSuccess(catched);
+ } else {
+ server.getContent(user, newState, callback);
+ }
+ }
+
+ private StateAbstractDTO getCached(final StateToken newState) {
+ return cache.remove(newState);
+ }
+
+}
Copied: trunk/src/main/java/cc/kune/core/client/state/HistoryWrapper.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/client/app/HistoryWrapper.java)
===================================================================
--- trunk/src/main/java/cc/kune/core/client/state/HistoryWrapper.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/state/HistoryWrapper.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,28 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.client.state;
+
+public interface HistoryWrapper {
+
+ String getToken();
+
+ void newItem(final String historyToken);
+
+}
\ No newline at end of file
Copied: trunk/src/main/java/cc/kune/core/client/state/HistoryWrapperDefault.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/client/app/HistoryWrapperDefault.java)
===================================================================
--- trunk/src/main/java/cc/kune/core/client/state/HistoryWrapperDefault.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/state/HistoryWrapperDefault.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,34 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.client.state;
+
+import com.google.gwt.user.client.History;
+
+public class HistoryWrapperDefault implements HistoryWrapper {
+
+ public String getToken() {
+ return History.getToken();
+ }
+
+ public void newItem(final String historyToken) {
+ History.newItem(historyToken);
+ }
+
+}
Copied: trunk/src/main/java/cc/kune/core/client/state/Session.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/client/state/Session.java)
===================================================================
--- trunk/src/main/java/cc/kune/core/client/state/Session.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/state/Session.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,155 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+/*
+ *
+ * This file is part of kune.
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ \*/
+package cc.kune.core.client.state;
+
+import java.util.Collection;
+import java.util.List;
+
+
+import cc.kune.core.client.rpcservices.AsyncCallbackSimple;
+import cc.kune.core.shared.dto.I18nCountryDTO;
+import cc.kune.core.shared.dto.I18nLanguageDTO;
+import cc.kune.core.shared.dto.I18nLanguageSimpleDTO;
+import cc.kune.core.shared.dto.InitDataDTO;
+import cc.kune.core.shared.dto.LicenseDTO;
+import cc.kune.core.shared.dto.StateAbstractDTO;
+import cc.kune.core.shared.dto.StateContainerDTO;
+import cc.kune.core.shared.dto.StateContentDTO;
+import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.dto.ToolSimpleDTO;
+import cc.kune.core.shared.dto.UserInfoDTO;
+import cc.kune.core.shared.dto.UserSimpleDTO;
+
+import com.calclab.suco.client.events.Listener;
+import com.calclab.suco.client.events.Listener0;
+
+public interface Session {
+
+ /**
+ * Duration remembering login: 2 weeks
+ */
+ int SESSION_DURATION = 1000 * 60 * 60 * 24 * 14;
+
+ String USERHASH = "userHash";
+
+ void check(AsyncCallbackSimple<Void> callback);
+
+ StateContainerDTO getContainerState();
+
+ StateContentDTO getContentState();
+
+ List<I18nCountryDTO> getCountries();
+
+ Object[][] getCountriesArray();
+
+ String getCurrentCCversion();
+
+ String getCurrentGroupShortName();
+
+ I18nLanguageDTO getCurrentLanguage();
+
+ StateAbstractDTO getCurrentState();
+
+ StateToken getCurrentStateToken();
+
+ UserSimpleDTO getCurrentUser();
+
+ UserInfoDTO getCurrentUserInfo();
+
+ LicenseDTO getDefLicense();
+
+ String getGalleryPermittedExtensions();
+
+ Collection<ToolSimpleDTO> getGroupTools();
+
+ int getImgCropsize();
+
+ int getImgIconsize();
+
+ int getImgResizewidth();
+
+ int getImgThumbsize();
+
+ InitDataDTO getInitData();
+
+ List<I18nLanguageSimpleDTO> getLanguages();
+
+ Object[][] getLanguagesArray();
+
+ List<LicenseDTO> getLicenses();
+
+ boolean getShowDeletedContent();
+
+ String getSiteUrl();
+
+ Object[][] getTimezones();
+
+ String getUserHash();
+
+ Collection<ToolSimpleDTO> getUserTools();
+
+ boolean inSameToken(StateToken token);
+
+ boolean isCurrentStateAContent();
+
+ boolean isCurrentStateAGroup();
+
+ boolean isInCurrentUserSpace();
+
+ boolean isLogged();
+
+ boolean isNotLogged();
+
+ void onInitDataReceived(Listener<InitDataDTO> listener);
+
+ void onUserSignIn(Listener<UserInfoDTO> listener);
+
+ void onUserSignOut(Listener0 listener);
+
+ void setCurrentLanguage(final I18nLanguageDTO currentLanguage);
+
+ void setCurrentState(final StateAbstractDTO currentState);
+
+ void setCurrentUserInfo(UserInfoDTO currentUserInfo);
+
+ void setInitData(InitDataDTO initData);
+
+ void setUserHash(String userHash);
+
+}
\ No newline at end of file
Copied: trunk/src/main/java/cc/kune/core/client/state/SessionDefault.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/client/state/SessionDefault.java)
===================================================================
--- trunk/src/main/java/cc/kune/core/client/state/SessionDefault.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/state/SessionDefault.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,299 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.client.state;
+
+import java.util.Collection;
+import java.util.List;
+
+import cc.kune.core.client.CoreEventBus;
+import cc.kune.core.client.cookies.CookiesManager;
+import cc.kune.core.client.rpcservices.AsyncCallbackSimple;
+import cc.kune.core.client.rpcservices.UserServiceAsync;
+import cc.kune.core.shared.dto.I18nCountryDTO;
+import cc.kune.core.shared.dto.I18nLanguageDTO;
+import cc.kune.core.shared.dto.I18nLanguageSimpleDTO;
+import cc.kune.core.shared.dto.InitDataDTO;
+import cc.kune.core.shared.dto.LicenseDTO;
+import cc.kune.core.shared.dto.StateAbstractDTO;
+import cc.kune.core.shared.dto.StateContainerDTO;
+import cc.kune.core.shared.dto.StateContentDTO;
+import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.dto.ToolSimpleDTO;
+import cc.kune.core.shared.dto.UserInfoDTO;
+import cc.kune.core.shared.dto.UserSimpleDTO;
+
+import com.allen_sauer.gwt.log.client.Log;
+import com.calclab.suco.client.events.Event;
+import com.calclab.suco.client.events.Event0;
+import com.calclab.suco.client.events.Listener;
+import com.calclab.suco.client.events.Listener0;
+import com.google.gwt.core.client.GWT;
+import com.google.inject.Inject;
+import com.google.inject.Provider;
+import com.mvp4g.client.event.BaseEventHandler;
+
+public class SessionDefault extends BaseEventHandler<CoreEventBus> implements Session {
+ private String userHash;
+ private InitDataDTO initData;
+ private UserInfoDTO currentUserInfo;
+ private Object[][] languagesArray;
+ private Object[][] countriesArray;
+ private Object[][] timezonesArray;
+ private StateAbstractDTO currentState;
+ private I18nLanguageDTO currentLanguage;
+ private final Event<InitDataDTO> onInitDataReceived;
+ private final Event<UserInfoDTO> onUserSignIn;
+ private final Event0 onUserSignOut;
+ private final Provider<UserServiceAsync> userServiceProvider;
+
+ @Inject
+ public SessionDefault(final CookiesManager cookieManager, final Provider<UserServiceAsync> userServiceProvider) {
+ this.userHash = cookieManager.getCurrentCookie();
+ this.userHash = userHash == null || userHash.equals("null") ? null : userHash;
+ this.userServiceProvider = userServiceProvider;
+ languagesArray = null;
+ this.onInitDataReceived = new Event<InitDataDTO>("initDataReceived");
+ this.onUserSignIn = new Event<UserInfoDTO>("onUserSignIn");
+ this.onUserSignOut = new Event0("onUserSignOut");
+ }
+
+ public void check(final AsyncCallbackSimple<Void> callback) {
+ Log.debug("Checking session (userhash: " + getUserHash() + ")");
+ userServiceProvider.get().onlyCheckSession(getUserHash(), callback);
+ }
+
+ public StateContainerDTO getContainerState() {
+ return (StateContainerDTO) currentState;
+ }
+
+ public StateContentDTO getContentState() {
+ return (StateContentDTO) currentState;
+ }
+
+ public List<I18nCountryDTO> getCountries() {
+ return initData.getCountries();
+ }
+
+ public Object[][] getCountriesArray() {
+ if (countriesArray == null) {
+ countriesArray = mapCountries();
+ }
+ return countriesArray;
+ }
+
+ public String getCurrentCCversion() {
+ return initData.getCurrentCCversion();
+ }
+
+ public String getCurrentGroupShortName() {
+ return currentState == null ? null : currentState.getStateToken().getGroup();
+ }
+
+ public I18nLanguageDTO getCurrentLanguage() {
+ return currentLanguage;
+ }
+
+ public StateAbstractDTO getCurrentState() {
+ return currentState;
+ }
+
+ public StateToken getCurrentStateToken() {
+ return currentState == null ? null : currentState.getStateToken();
+ }
+
+ public UserSimpleDTO getCurrentUser() {
+ return currentUserInfo == null ? null : currentUserInfo.getUser();
+ }
+
+ public UserInfoDTO getCurrentUserInfo() {
+ return currentUserInfo;
+ }
+
+ public LicenseDTO getDefLicense() {
+ return initData.getDefaultLicense();
+ }
+
+ public String getGalleryPermittedExtensions() {
+ return initData.getGalleryPermittedExtensions();
+ }
+
+ public Collection<ToolSimpleDTO> getGroupTools() {
+ return initData.getGroupTools();
+ }
+
+ public int getImgCropsize() {
+ return initData.getImgCropsize();
+ }
+
+ public int getImgIconsize() {
+ return initData.getImgIconsize();
+ }
+
+ public int getImgResizewidth() {
+ return initData.getImgResizewidth();
+ }
+
+ public int getImgThumbsize() {
+ return initData.getImgThumbsize();
+ }
+
+ public InitDataDTO getInitData() {
+ return initData;
+ }
+
+ public List<I18nLanguageSimpleDTO> getLanguages() {
+ return initData.getLanguages();
+ }
+
+ public Object[][] getLanguagesArray() {
+ if (languagesArray == null) {
+ languagesArray = mapLangs();
+ }
+ return languagesArray;
+ }
+
+ public List<LicenseDTO> getLicenses() {
+ return initData.getLicenses();
+ }
+
+ public boolean getShowDeletedContent() {
+ return currentUserInfo == null ? false : currentUserInfo.getShowDeletedContent();
+ }
+
+ public String getSiteUrl() {
+ final String baseURL = GWT.getModuleBaseURL();
+ return baseURL.substring(0, baseURL.lastIndexOf("/" + GWT.getModuleName()));
+ }
+
+ public Object[][] getTimezones() {
+ if (timezonesArray == null) {
+ mapTimezones();
+ }
+ return timezonesArray;
+ }
+
+ public String getUserHash() {
+ return userHash;
+ }
+
+ public Collection<ToolSimpleDTO> getUserTools() {
+ return initData.getUserTools();
+ }
+
+ public boolean inSameToken(final StateToken token) {
+ return getCurrentStateToken().equals(token);
+ }
+
+ public boolean isCurrentStateAContent() {
+ return currentState instanceof StateContentDTO;
+ }
+
+ public boolean isCurrentStateAGroup() {
+ return currentState == null ? false : !currentState.getGroup().isPersonal();
+ }
+
+ public boolean isInCurrentUserSpace() {
+ if (!isLogged()) {
+ return false;
+ }
+ if (getCurrentStateToken().getGroup().equals(getCurrentUser().getShortName())) {
+ return true;
+ }
+ return false;
+ }
+
+ public boolean isLogged() {
+ return userHash != null;
+ }
+
+ public boolean isNotLogged() {
+ return !isLogged();
+ }
+
+ public void onInitDataReceived(final Listener<InitDataDTO> listener) {
+ onInitDataReceived.add(listener);
+ }
+
+ public void onUserSignIn(final Listener<UserInfoDTO> listener) {
+ onUserSignIn.add(listener);
+ }
+
+ public void onUserSignOut(final Listener0 listener) {
+ onUserSignOut.add(listener);
+ }
+
+ public void setCurrentLanguage(final I18nLanguageDTO currentLanguage) {
+ this.currentLanguage = currentLanguage;
+ eventBus.i18nReady();
+ }
+
+ public void setCurrentState(final StateAbstractDTO currentState) {
+ this.currentState = currentState;
+ }
+
+ public void setCurrentUserInfo(final UserInfoDTO currentUserInfo) {
+ this.currentUserInfo = currentUserInfo;
+ if (currentUserInfo != null) {
+ onUserSignIn.fire(currentUserInfo);
+ } else {
+ onUserSignOut.fire();
+ }
+ }
+
+ public void setInitData(final InitDataDTO initData) {
+ this.initData = initData;
+ onInitDataReceived.fire(initData);
+ }
+
+ public void setUserHash(final String userHash) {
+ this.userHash = userHash;
+ }
+
+ private Object[][] mapCountries() {
+ assert (initData != null);
+ final Object[][] objs = new Object[initData.getCountries().size()][1];
+ int i = 0;
+ for (final I18nCountryDTO country : initData.getCountries()) {
+ final Object[] obj = new Object[] { country.getCode(), country.getEnglishName() };
+ objs[i++] = obj;
+ }
+ return objs;
+ }
+
+ private Object[][] mapLangs() {
+ assert (initData != null);
+ final Object[][] objs = new Object[initData.getLanguages().size()][1];
+ int i = 0;
+ for (final I18nLanguageSimpleDTO language : initData.getLanguages()) {
+ final Object[] obj = new Object[] { language.getCode(), language.getEnglishName() };
+ objs[i++] = obj;
+ }
+ return objs;
+ }
+
+ private void mapTimezones() {
+ assert (initData != null);
+ timezonesArray = new Object[initData.getTimezones().length][1];
+ for (int i = 0; i < getTimezones().length; i++) {
+ final Object[] obj = new Object[] { initData.getTimezones()[i] };
+ timezonesArray[i] = obj;
+ }
+ }
+}
Copied: trunk/src/main/java/cc/kune/core/client/state/StateManager.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/client/state/StateManager.java)
===================================================================
--- trunk/src/main/java/cc/kune/core/client/state/StateManager.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/state/StateManager.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,64 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.client.state;
+
+
+import cc.kune.core.client.actions.BeforeActionListener;
+import cc.kune.core.shared.dto.SocialNetworkDataDTO;
+import cc.kune.core.shared.dto.StateAbstractDTO;
+import cc.kune.core.shared.dto.StateToken;
+
+import com.calclab.suco.client.events.Listener;
+import com.calclab.suco.client.events.Listener0;
+import com.calclab.suco.client.events.Listener2;
+
+public interface StateManager {
+
+ void addBeforeStateChangeListener(BeforeActionListener listener);
+
+ void addSiteToken(String token, Listener0 whenToken);
+
+ void gotoToken(StateToken newToken);
+
+ void gotoToken(String newToken);
+
+ void onGroupChanged(Listener2<String, String> listener);
+
+ void onSocialNetworkChanged(Listener<StateAbstractDTO> listener);
+
+ void onStateChanged(Listener<StateAbstractDTO> listener);
+
+ void onToolChanged(Listener2<String, String> listener);
+
+ void reload();
+
+ void removeBeforeStateChangeListener(BeforeActionListener listener);
+
+ void removeSiteToken(String token);
+
+ void restorePreviousToken();
+
+ void resumeTokenChange();
+
+ void setRetrievedState(StateAbstractDTO state);
+
+ void setSocialNetwork(SocialNetworkDataDTO socialNet);
+
+}
Copied: trunk/src/main/java/cc/kune/core/client/state/StateManagerDefault.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/client/state/StateManagerDefault.java)
===================================================================
--- trunk/src/main/java/cc/kune/core/client/state/StateManagerDefault.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/state/StateManagerDefault.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,237 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.client.state;
+
+import java.util.HashMap;
+
+import cc.kune.core.client.CoreEventBus;
+import cc.kune.core.client.actions.BeforeActionCollection;
+import cc.kune.core.client.actions.BeforeActionListener;
+import cc.kune.core.client.rpcservices.AsyncCallbackSimple;
+import cc.kune.core.shared.dto.SocialNetworkDataDTO;
+import cc.kune.core.shared.dto.StateAbstractDTO;
+import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.dto.UserInfoDTO;
+
+import com.allen_sauer.gwt.log.client.Log;
+import com.calclab.suco.client.events.Event;
+import com.calclab.suco.client.events.Event2;
+import com.calclab.suco.client.events.Listener;
+import com.calclab.suco.client.events.Listener0;
+import com.calclab.suco.client.events.Listener2;
+import com.google.gwt.event.logical.shared.ValueChangeEvent;
+import com.google.gwt.event.logical.shared.ValueChangeHandler;
+import com.google.gwt.user.client.History;
+import com.google.inject.Inject;
+import com.mvp4g.client.event.BaseEventHandler;
+
+public class StateManagerDefault extends BaseEventHandler<CoreEventBus> implements StateManager,
+ ValueChangeHandler<String> {
+ private final ContentProvider contentProvider;
+ private StateToken previousToken;
+ /**
+ * When a historyChanged is interrupted (for instance because you are
+ * editing something), the new token is stored here
+ */
+ private StateToken resumedToken;
+ private final Session session;
+ private final HistoryWrapper history;
+ private final HashMap<String, Listener0> siteTokens;
+ private final Event<StateAbstractDTO> onStateChanged;
+ private final Event<StateAbstractDTO> onSocialNetworkChanged;
+ private final Event2<String, String> onToolChanged;
+ private final Event2<String, String> onGroupChanged;
+ private final BeforeActionCollection beforeStateChangeCollection;
+
+ @Inject
+ public StateManagerDefault(final ContentProvider contentProvider, final Session session,
+ final HistoryWrapper history) {
+ // Put this outside here
+ History.addValueChangeHandler(this);
+ this.contentProvider = contentProvider;
+ this.session = session;
+ this.history = history;
+ this.previousToken = null;
+ this.resumedToken = null;
+ this.onStateChanged = new Event<StateAbstractDTO>("onStateChanged");
+ this.onGroupChanged = new Event2<String, String>("onGroupChanged");
+ this.onToolChanged = new Event2<String, String>("onToolChanged");
+ this.onSocialNetworkChanged = new Event<StateAbstractDTO>("onSocialNetworkChanged");
+ session.onUserSignIn(new Listener<UserInfoDTO>() {
+ public void onEvent(final UserInfoDTO parameter) {
+ if (previousToken == null) {
+ // starting up
+ reload();
+ } else {
+ // do nothing, SigInPresent calls goto;
+ }
+ }
+ });
+ session.onUserSignOut(new Listener0() {
+ public void onEvent() {
+ reload();
+ }
+ });
+ siteTokens = new HashMap<String, Listener0>();
+ beforeStateChangeCollection = new BeforeActionCollection();
+ }
+
+ public void addBeforeStateChangeListener(final BeforeActionListener listener) {
+ beforeStateChangeCollection.add(listener);
+ }
+
+ public void addSiteToken(final String token, final Listener0 listener) {
+ siteTokens.put(token, listener);
+ }
+
+ public void gotoToken(final StateToken newToken) {
+ Log.debug("StateManager: history goto-token newItem (" + newToken + ")");
+ history.newItem(newToken.getEncoded());
+ }
+
+ public void gotoToken(final String token) {
+ gotoToken(new StateToken(token));
+ }
+
+ public void onGroupChanged(final Listener2<String, String> listener) {
+ onGroupChanged.add(listener);
+ }
+
+ public void onSocialNetworkChanged(final Listener<StateAbstractDTO> listener) {
+ onSocialNetworkChanged.add(listener);
+ }
+
+ public void onStateChanged(final Listener<StateAbstractDTO> listener) {
+ onStateChanged.add(listener);
+ }
+
+ public void onToolChanged(final Listener2<String, String> listener) {
+ onToolChanged.add(listener);
+ }
+
+ public void onValueChange(final ValueChangeEvent<String> event) {
+ onHistoryChanged(event.getValue());
+ }
+
+ /**
+ * <p>
+ * Reload current state (using client cache if available)
+ * </p>
+ */
+ public void reload() {
+ onHistoryChanged(history.getToken());
+ }
+
+ public void removeBeforeStateChangeListener(final BeforeActionListener listener) {
+ beforeStateChangeCollection.remove(listener);
+ }
+
+ public void removeSiteToken(final String token) {
+ siteTokens.remove(token);
+ }
+
+ public void restorePreviousToken() {
+ gotoToken(previousToken);
+ }
+
+ public void resumeTokenChange() {
+ if (resumedToken != null) {
+ reload();
+ gotoToken(resumedToken);
+ clearResumedToken();
+ }
+ }
+
+ public void setRetrievedState(final StateAbstractDTO newState) {
+ contentProvider.cache(newState.getStateToken(), newState);
+ // setState(newState);
+ history.newItem(newState.getStateToken().toString());
+ }
+
+ public void setSocialNetwork(final SocialNetworkDataDTO socialNet) {
+ StateAbstractDTO state;
+ if (session != null && (state = session.getCurrentState()) != null) {
+ // After a SN operation, usually returns a SocialNetworkResultDTO
+ // with new SN data and we refresh the state
+ // to avoid to reload() again the state
+ state.setSocialNetworkData(socialNet);
+ onSocialNetworkChanged.fire(state);
+ }
+ }
+
+ void onHistoryChanged(final String historyToken) {
+ // http://code.google.com/p/google-web-toolkit-doc-1-5/wiki/DevGuideHistory
+ if (beforeStateChangeCollection.checkBeforeAction()) {
+ final Listener0 tokenListener = siteTokens.get(historyToken);
+ Log.debug("StateManager: history token changed (" + historyToken + ")");
+ if (tokenListener == null) {
+ // Ok, normal token change
+ onHistoryChanged(new StateToken(historyToken));
+ } else {
+ // token is one of #newgroup #signin #translate ...
+ if (previousToken == null) {
+ // Starting with some token like "signin": load defContent
+ // also
+ onHistoryChanged("");
+ }
+ tokenListener.onEvent();
+ }
+ } else {
+ resumedToken = new StateToken(historyToken);
+ }
+ }
+
+ void setState(final StateAbstractDTO newState) {
+ session.setCurrentState(newState);
+ onStateChanged.fire(newState);
+ eventBus.hideSpin();
+ checkGroupAndToolChange(newState);
+ previousToken = newState.getStateToken();
+
+ }
+
+ private void checkGroupAndToolChange(final StateAbstractDTO newState) {
+ final String previousGroup = previousToken == null ? "" : previousToken.getGroup();
+ final String newGroup = newState.getStateToken().getGroup();
+ final String previousTokenTool = previousToken == null ? "" : previousToken.getTool();
+ final String newTokenTool = newState.getStateToken().getTool();
+ final String previousToolName = previousTokenTool == null ? "" : previousTokenTool;
+ final String newToolName = newTokenTool == null ? "" : newTokenTool;
+
+ if (previousToken == null || previousToolName == null || !previousToolName.equals(newToolName)) {
+ onToolChanged.fire(previousToolName, newToolName);
+ }
+ if (previousToken == null || !previousGroup.equals(newGroup)) {
+ onGroupChanged.fire(previousGroup, newGroup);
+ }
+ }
+
+ private void clearResumedToken() {
+ resumedToken = null;
+ }
+
+ private void onHistoryChanged(final StateToken newState) {
+ contentProvider.getContent(session.getUserHash(), newState, new AsyncCallbackSimple<StateAbstractDTO>() {
+ public void onSuccess(final StateAbstractDTO newState) {
+ setState(newState);
+ }
+ });
+ }
+}
Copied: trunk/src/main/java/cc/kune/core/client/utils/Location.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/client/ui/Location.java)
===================================================================
--- trunk/src/main/java/cc/kune/core/client/utils/Location.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/utils/Location.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,148 @@
+/*
+ * Copyright 2006 Robert Hanson <iamroberthanson AT gmail.com>
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ \*/
+package cc.kune.core.client.utils;
+
+import java.util.HashMap;
+import java.util.Map;
+
+public class Location {
+ private String hash;
+ private String host;
+ private String hostName;
+ private String href;
+ private String path;
+ private String port;
+ private String protocol;
+ private String queryString;
+ private HashMap<String, String> paramMap;
+
+ /**
+ * sample: #site.docs.3.1
+ **/
+ public String getHash() {
+ return hash;
+ }
+
+ /**
+ * sample: locahost:8080
+ *
+ * @return
+ */
+ public String getHost() {
+ return host;
+ }
+
+ /**
+ * sample: locahost
+ *
+ * @return
+ */
+ public String getHostName() {
+ return hostName;
+ }
+
+ /**
+ * sample: http://localhost:8080/ws/#site.docs.3.1?locale=en&log_level=INFO
+ **/
+ public String getHref() {
+ return href;
+ }
+
+ public String getParameter(final String name) {
+ return paramMap.get(name);
+ }
+
+ public Map<String, String> getParameterMap() {
+ return paramMap;
+ }
+
+ /**
+ * sample: /ws/
+ *
+ * @return
+ */
+ public String getPath() {
+ return path;
+ }
+
+ public String getPort() {
+ return port;
+ }
+
+ public String getProtocol() {
+ return protocol;
+ }
+
+ /**
+ * sample: ?locale=en&log_level=INFO
+ *
+ * @return
+ */
+ public String getQueryString() {
+ return queryString;
+ }
+
+ protected void setHash(final String hash) {
+ this.hash = hash;
+ }
+
+ protected void setHost(final String host) {
+ this.host = host;
+ }
+
+ protected void setHostName(final String hostName) {
+ this.hostName = hostName;
+ }
+
+ protected void setHref(final String href) {
+ this.href = href;
+ }
+
+ protected void setPath(final String path) {
+ this.path = path;
+ }
+
+ protected void setPort(final String port) {
+ this.port = port;
+ }
+
+ protected void setProtocol(final String protocol) {
+ this.protocol = protocol;
+ }
+
+ protected void setQueryString(final String queryString) {
+ this.queryString = queryString;
+ paramMap = new HashMap<String, String>();
+
+ if (queryString != null && queryString.length() > 1) {
+ String qs = queryString.substring(1);
+ String[] kvPairs = qs.split("&");
+ for (String kvPair : kvPairs) {
+ String[] kv = kvPair.split("=");
+ if (kv.length > 1) {
+ paramMap.put(kv[0], unescape(kv[1]));
+ } else {
+ paramMap.put(kv[0], "");
+ }
+ }
+ }
+ }
+
+ private native String unescape(String val) /*-{
+ return unescape(val);
+ }-*/;
+
+}
\ No newline at end of file
Copied: trunk/src/main/java/cc/kune/core/client/utils/TextUtils.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/client/ui/TextUtils.java)
===================================================================
--- trunk/src/main/java/cc/kune/core/client/utils/TextUtils.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/utils/TextUtils.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,99 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.client.utils;
+
+import java.util.ArrayList;
+
+public class TextUtils {
+
+ public static final String IN_DEVELOPMENT_P = " (in development)";
+ public static final String IN_DEVELOPMENT = "In development";
+
+ // Original regexp from http://snippets.dzone.com/posts/show/452
+ public static final String URL_REGEXP = "((ftp|http|https|mailto):\\/\\/(\\w+:{0,1}\\w*@)?(\\S+)(:[0-9]+)?(\\/|\\/([\\w#!:.?+=&%@!\\-\\/]))?)";
+
+ // Original regexp from http://www.regular-expressions.info/email.html
+ public static final String EMAIL_REGEXP = "[-!#$%&\'*+/=?_`{|}~a-z0-9^]+(\\.[-!#$%&\'*+/=?_`{|}~a-z0-9^]+)*@(localhost|([a-z0-9]([-a-z0-9]*[a-z0-9])?\\.)+[a-z0-9]([-a-z0-9]*[a-z0-9]))?";
+
+ public static final String UNIX_NAME = "^[a-z0-9_\\-]+$";
+
+ public static final String NUM_REGEXP = "^[0-9]+$";
+
+ /*
+ * This method escape only some dangerous html chars
+ */
+ public static String escapeHtmlLight(final String source) {
+ if (source == null) {
+ return null;
+ }
+ String result = source;
+ result = result.replaceAll("&", "&");
+ result = result.replaceAll("\"", """);
+ // text = text.replaceAll("\'", "'");
+ result = result.replaceAll("<", "<");
+ result = result.replaceAll(">", ">");
+ return result;
+ }
+
+ public static String generateHtmlLink(final String href, final String text) {
+ return "<a href=\"" + href + "\" target=\"_blank\">" + text + "</a>";
+ }
+
+ public static ArrayList<String> splitTags(final String tagsString) {
+ final ArrayList<String> tagsList = new ArrayList<String>();
+ String tagsCopy = tagsString;
+ // remove commas and quotes
+ if (tagsString == null) {
+ return tagsList;
+ }
+ tagsCopy = tagsCopy.replaceAll(",", " ");
+ tagsCopy = tagsCopy.replaceAll("\"", "");
+ tagsCopy = tagsCopy.replaceAll("\'", "");
+ final String[] splitted = tagsCopy.split("\\s+");
+ for (String tag : splitted) {
+ tag = tag.replaceAll("\\s$", "");
+ if (tag.length() > 0) {
+ tagsList.add(tag);
+ }
+ }
+ return tagsList;
+ }
+
+ /*
+ * This method unescape only some dangerous html chars for use in GWT Html
+ * widget for instance
+ */
+ public static String unescape(final String source) {
+ if (source == null) {
+ return null;
+ }
+ String result = source;
+ result = result.replaceAll("&", "&");
+ result = result.replaceAll(""", "\"");
+ result = result.replaceAll("'", "\'");
+ result = result.replaceAll("<", "<");
+ result = result.replaceAll(">", ">");
+ return result;
+ }
+
+ public TextUtils() {
+ }
+
+}
Property changes on: trunk/src/main/java/cc/kune/core/client/utils/TextUtils.java
___________________________________________________________________
Name: svn:mergeinfo
+
Copied: trunk/src/main/java/cc/kune/core/client/utils/WindowUtils.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/client/ui/WindowUtils.java)
===================================================================
--- trunk/src/main/java/cc/kune/core/client/utils/WindowUtils.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/utils/WindowUtils.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,65 @@
+/*
+ * Copyright 2006 Robert Hanson <iamroberthanson AT gmail.com>
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cc.kune.core.client.utils;
+
+public class WindowUtils {
+
+ public static Location getLocation() {
+ Location result = new Location();
+ result.setHash(getHash());
+ result.setHost(getHost());
+ result.setHostName(getHostName());
+ result.setHref(getHref());
+ result.setPath(getPath());
+ result.setPort(getPort());
+ result.setProtocol(getProtocol());
+ result.setQueryString(getQueryString());
+ return result;
+ }
+
+ private static native String getHash() /*-{
+ return $wnd.location.hash;
+ }-*/;
+
+ private static native String getHost() /*-{
+ return $wnd.location.host;
+ }-*/;
+
+ private static native String getHostName() /*-{
+ return $wnd.location.hostname;
+ }-*/;
+
+ private static native String getHref() /*-{
+ return $wnd.location.href;
+ }-*/;
+
+ private static native String getPath() /*-{
+ return $wnd.location.pathname;
+ }-*/;
+
+ private static native String getPort() /*-{
+ return $wnd.location.port;
+ }-*/;
+
+ private static native String getProtocol() /*-{
+ return $wnd.location.protocol;
+ }-*/;
+
+ private static native String getQueryString() /*-{
+ return $wnd.location.search;
+ }-*/;
+
+}
\ No newline at end of file
Modified: trunk/src/main/java/cc/kune/core/client/ws/CorePresenter.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/ws/CorePresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/cc/kune/core/client/ws/CorePresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -2,7 +2,9 @@
import cc.kune.core.client.CoreEventBus;
import cc.kune.core.client.ws.CorePresenter.ICoreView;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+import com.google.inject.Inject;
import com.mvp4g.client.annotation.Presenter;
import com.mvp4g.client.presenter.BasePresenter;
@@ -18,6 +20,10 @@
public interface ICoreView {
}
+ @Inject
+ public CorePresenter(final I18nTranslationService i18n) {
+ }
+
/**
* On start.
*/
Copied: trunk/src/main/java/cc/kune/core/shared/dto (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/client/dto)
Modified: trunk/src/main/java/cc/kune/core/shared/dto/AccessListsDTO.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/dto/AccessListsDTO.java 2010-12-07 22:38:26 UTC (rev 1158)
+++ trunk/src/main/java/cc/kune/core/shared/dto/AccessListsDTO.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-package org.ourproject.kune.platf.client.dto;
+package cc.kune.core.shared.dto;
import com.google.gwt.user.client.rpc.IsSerializable;
Modified: trunk/src/main/java/cc/kune/core/shared/dto/AccessRightsDTO.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/dto/AccessRightsDTO.java 2010-12-07 22:38:26 UTC (rev 1158)
+++ trunk/src/main/java/cc/kune/core/shared/dto/AccessRightsDTO.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-package org.ourproject.kune.platf.client.dto;
+package cc.kune.core.shared.dto;
import com.google.gwt.user.client.rpc.IsSerializable;
Modified: trunk/src/main/java/cc/kune/core/shared/dto/AccessRolDTO.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/dto/AccessRolDTO.java 2010-12-07 22:38:26 UTC (rev 1158)
+++ trunk/src/main/java/cc/kune/core/shared/dto/AccessRolDTO.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
\*/
-package org.ourproject.kune.platf.client.dto;
+package cc.kune.core.shared.dto;
public enum AccessRolDTO {
Administrator, Editor, Viewer
Modified: trunk/src/main/java/cc/kune/core/shared/dto/AdmissionTypeDTO.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/dto/AdmissionTypeDTO.java 2010-12-07 22:38:26 UTC (rev 1158)
+++ trunk/src/main/java/cc/kune/core/shared/dto/AdmissionTypeDTO.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-package org.ourproject.kune.platf.client.dto;
+package cc.kune.core.shared.dto;
import com.google.gwt.user.client.rpc.IsSerializable;
Modified: trunk/src/main/java/cc/kune/core/shared/dto/BasicMimeTypeDTO.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/dto/BasicMimeTypeDTO.java 2010-12-07 22:38:26 UTC (rev 1158)
+++ trunk/src/main/java/cc/kune/core/shared/dto/BasicMimeTypeDTO.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
\*/
-package org.ourproject.kune.platf.client.dto;
+package cc.kune.core.shared.dto;
import com.google.gwt.user.client.rpc.IsSerializable;
Modified: trunk/src/main/java/cc/kune/core/shared/dto/ChatUserParamsDTO.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/dto/ChatUserParamsDTO.java 2010-12-07 22:38:26 UTC (rev 1158)
+++ trunk/src/main/java/cc/kune/core/shared/dto/ChatUserParamsDTO.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -17,11 +17,11 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
\*/
-package org.ourproject.kune.platf.client.dto;
+package cc.kune.core.shared.dto;
-import com.calclab.emiteuimodule.client.SubscriptionMode;
import com.google.gwt.user.client.rpc.IsSerializable;
+@Deprecated
public class ChatUserParamsDTO implements IsSerializable {
private String avatar;
Modified: trunk/src/main/java/cc/kune/core/shared/dto/CommentDTO.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/dto/CommentDTO.java 2010-12-07 22:38:26 UTC (rev 1158)
+++ trunk/src/main/java/cc/kune/core/shared/dto/CommentDTO.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
\*/
-package org.ourproject.kune.platf.client.dto;
+package cc.kune.core.shared.dto;
import java.util.List;
Modified: trunk/src/main/java/cc/kune/core/shared/dto/ContainerDTO.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/dto/ContainerDTO.java 2010-12-07 22:38:26 UTC (rev 1158)
+++ trunk/src/main/java/cc/kune/core/shared/dto/ContainerDTO.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-package org.ourproject.kune.platf.client.dto;
+package cc.kune.core.shared.dto;
import java.util.List;
Modified: trunk/src/main/java/cc/kune/core/shared/dto/ContainerSimpleDTO.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/dto/ContainerSimpleDTO.java 2010-12-07 22:38:26 UTC (rev 1158)
+++ trunk/src/main/java/cc/kune/core/shared/dto/ContainerSimpleDTO.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-package org.ourproject.kune.platf.client.dto;
+package cc.kune.core.shared.dto;
import com.google.gwt.user.client.rpc.IsSerializable;
Modified: trunk/src/main/java/cc/kune/core/shared/dto/ContentSimpleDTO.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/dto/ContentSimpleDTO.java 2010-12-07 22:38:26 UTC (rev 1158)
+++ trunk/src/main/java/cc/kune/core/shared/dto/ContentSimpleDTO.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-package org.ourproject.kune.platf.client.dto;
+package cc.kune.core.shared.dto;
import com.google.gwt.user.client.rpc.IsSerializable;
Modified: trunk/src/main/java/cc/kune/core/shared/dto/ContentStatusDTO.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/dto/ContentStatusDTO.java 2010-12-07 22:38:26 UTC (rev 1158)
+++ trunk/src/main/java/cc/kune/core/shared/dto/ContentStatusDTO.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
\*/
-package org.ourproject.kune.platf.client.dto;
+package cc.kune.core.shared.dto;
import com.google.gwt.user.client.rpc.IsSerializable;
Modified: trunk/src/main/java/cc/kune/core/shared/dto/ExtMediaDescripDTO.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/dto/ExtMediaDescripDTO.java 2010-12-07 22:38:26 UTC (rev 1158)
+++ trunk/src/main/java/cc/kune/core/shared/dto/ExtMediaDescripDTO.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,4 +1,4 @@
-package org.ourproject.kune.platf.client.dto;
+package cc.kune.core.shared.dto;
import com.google.gwt.user.client.rpc.IsSerializable;
Modified: trunk/src/main/java/cc/kune/core/shared/dto/GroupDTO.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/dto/GroupDTO.java 2010-12-07 22:38:26 UTC (rev 1158)
+++ trunk/src/main/java/cc/kune/core/shared/dto/GroupDTO.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-package org.ourproject.kune.platf.client.dto;
+package cc.kune.core.shared.dto;
import com.google.gwt.user.client.rpc.IsSerializable;
Modified: trunk/src/main/java/cc/kune/core/shared/dto/GroupListDTO.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/dto/GroupListDTO.java 2010-12-07 22:38:26 UTC (rev 1158)
+++ trunk/src/main/java/cc/kune/core/shared/dto/GroupListDTO.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-package org.ourproject.kune.platf.client.dto;
+package cc.kune.core.shared.dto;
import java.util.List;
Modified: trunk/src/main/java/cc/kune/core/shared/dto/GroupType.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/dto/GroupType.java 2010-12-07 22:38:26 UTC (rev 1158)
+++ trunk/src/main/java/cc/kune/core/shared/dto/GroupType.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-package org.ourproject.kune.platf.client.dto;
+package cc.kune.core.shared.dto;
import com.google.gwt.user.client.rpc.IsSerializable;
Modified: trunk/src/main/java/cc/kune/core/shared/dto/I18nCountryDTO.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/dto/I18nCountryDTO.java 2010-12-07 22:38:26 UTC (rev 1158)
+++ trunk/src/main/java/cc/kune/core/shared/dto/I18nCountryDTO.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-package org.ourproject.kune.platf.client.dto;
+package cc.kune.core.shared.dto;
import com.google.gwt.user.client.rpc.IsSerializable;
Modified: trunk/src/main/java/cc/kune/core/shared/dto/I18nLanguageDTO.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/dto/I18nLanguageDTO.java 2010-12-07 22:38:26 UTC (rev 1158)
+++ trunk/src/main/java/cc/kune/core/shared/dto/I18nLanguageDTO.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-package org.ourproject.kune.platf.client.dto;
+package cc.kune.core.shared.dto;
import com.google.gwt.user.client.rpc.IsSerializable;
Modified: trunk/src/main/java/cc/kune/core/shared/dto/I18nLanguageSimpleDTO.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/dto/I18nLanguageSimpleDTO.java 2010-12-07 22:38:26 UTC (rev 1158)
+++ trunk/src/main/java/cc/kune/core/shared/dto/I18nLanguageSimpleDTO.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-package org.ourproject.kune.platf.client.dto;
+package cc.kune.core.shared.dto;
import com.google.gwt.user.client.rpc.IsSerializable;
Modified: trunk/src/main/java/cc/kune/core/shared/dto/I18nTranslationDTO.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/dto/I18nTranslationDTO.java 2010-12-07 22:38:26 UTC (rev 1158)
+++ trunk/src/main/java/cc/kune/core/shared/dto/I18nTranslationDTO.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-package org.ourproject.kune.platf.client.dto;
+package cc.kune.core.shared.dto;
import com.google.gwt.user.client.rpc.IsSerializable;
Modified: trunk/src/main/java/cc/kune/core/shared/dto/InitDataDTO.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/dto/InitDataDTO.java 2010-12-07 22:38:26 UTC (rev 1158)
+++ trunk/src/main/java/cc/kune/core/shared/dto/InitDataDTO.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-package org.ourproject.kune.platf.client.dto;
+package cc.kune.core.shared.dto;
import java.util.ArrayList;
import java.util.List;
Modified: trunk/src/main/java/cc/kune/core/shared/dto/LicenseDTO.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/dto/LicenseDTO.java 2010-12-07 22:38:26 UTC (rev 1158)
+++ trunk/src/main/java/cc/kune/core/shared/dto/LicenseDTO.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-package org.ourproject.kune.platf.client.dto;
+package cc.kune.core.shared.dto;
import com.google.gwt.user.client.rpc.IsSerializable;
Modified: trunk/src/main/java/cc/kune/core/shared/dto/LinkDTO.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/dto/LinkDTO.java 2010-12-07 22:38:26 UTC (rev 1158)
+++ trunk/src/main/java/cc/kune/core/shared/dto/LinkDTO.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-package org.ourproject.kune.platf.client.dto;
+package cc.kune.core.shared.dto;
import java.util.List;
Modified: trunk/src/main/java/cc/kune/core/shared/dto/ParticipationDataDTO.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/dto/ParticipationDataDTO.java 2010-12-07 22:38:26 UTC (rev 1158)
+++ trunk/src/main/java/cc/kune/core/shared/dto/ParticipationDataDTO.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-package org.ourproject.kune.platf.client.dto;
+package cc.kune.core.shared.dto;
import java.util.List;
Modified: trunk/src/main/java/cc/kune/core/shared/dto/RateResultDTO.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/dto/RateResultDTO.java 2010-12-07 22:38:26 UTC (rev 1158)
+++ trunk/src/main/java/cc/kune/core/shared/dto/RateResultDTO.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-package org.ourproject.kune.platf.client.dto;
+package cc.kune.core.shared.dto;
import com.google.gwt.user.client.rpc.IsSerializable;
Modified: trunk/src/main/java/cc/kune/core/shared/dto/RoomDTO.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/dto/RoomDTO.java 2010-12-07 22:38:26 UTC (rev 1158)
+++ trunk/src/main/java/cc/kune/core/shared/dto/RoomDTO.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-package org.ourproject.kune.platf.client.dto;
+package cc.kune.core.shared.dto;
public class RoomDTO {
Modified: trunk/src/main/java/cc/kune/core/shared/dto/SearchResultDTO.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/dto/SearchResultDTO.java 2010-12-07 22:38:26 UTC (rev 1158)
+++ trunk/src/main/java/cc/kune/core/shared/dto/SearchResultDTO.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-package org.ourproject.kune.platf.client.dto;
+package cc.kune.core.shared.dto;
import java.util.List;
Modified: trunk/src/main/java/cc/kune/core/shared/dto/SocialNetworkDTO.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/dto/SocialNetworkDTO.java 2010-12-07 22:38:26 UTC (rev 1158)
+++ trunk/src/main/java/cc/kune/core/shared/dto/SocialNetworkDTO.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-package org.ourproject.kune.platf.client.dto;
+package cc.kune.core.shared.dto;
import com.google.gwt.user.client.rpc.IsSerializable;
Modified: trunk/src/main/java/cc/kune/core/shared/dto/SocialNetworkDataDTO.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/dto/SocialNetworkDataDTO.java 2010-12-07 22:38:26 UTC (rev 1158)
+++ trunk/src/main/java/cc/kune/core/shared/dto/SocialNetworkDataDTO.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-package org.ourproject.kune.platf.client.dto;
+package cc.kune.core.shared.dto;
import com.google.gwt.user.client.rpc.IsSerializable;
Modified: trunk/src/main/java/cc/kune/core/shared/dto/SocialNetworkRequestResult.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/dto/SocialNetworkRequestResult.java 2010-12-07 22:38:26 UTC (rev 1158)
+++ trunk/src/main/java/cc/kune/core/shared/dto/SocialNetworkRequestResult.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
\*/
-package org.ourproject.kune.platf.client.dto;
+package cc.kune.core.shared.dto;
import com.google.gwt.user.client.rpc.IsSerializable;
Modified: trunk/src/main/java/cc/kune/core/shared/dto/SocialNetworkVisibilityDTO.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/dto/SocialNetworkVisibilityDTO.java 2010-12-07 22:38:26 UTC (rev 1158)
+++ trunk/src/main/java/cc/kune/core/shared/dto/SocialNetworkVisibilityDTO.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-package org.ourproject.kune.platf.client.dto;
+package cc.kune.core.shared.dto;
import com.google.gwt.user.client.rpc.IsSerializable;
Modified: trunk/src/main/java/cc/kune/core/shared/dto/StateAbstractDTO.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/dto/StateAbstractDTO.java 2010-12-07 22:38:26 UTC (rev 1158)
+++ trunk/src/main/java/cc/kune/core/shared/dto/StateAbstractDTO.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-package org.ourproject.kune.platf.client.dto;
+package cc.kune.core.shared.dto;
import java.util.List;
Modified: trunk/src/main/java/cc/kune/core/shared/dto/StateContainerDTO.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/dto/StateContainerDTO.java 2010-12-07 22:38:26 UTC (rev 1158)
+++ trunk/src/main/java/cc/kune/core/shared/dto/StateContainerDTO.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-package org.ourproject.kune.platf.client.dto;
+package cc.kune.core.shared.dto;
import com.google.gwt.user.client.rpc.IsSerializable;
Modified: trunk/src/main/java/cc/kune/core/shared/dto/StateContentDTO.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/dto/StateContentDTO.java 2010-12-07 22:38:26 UTC (rev 1158)
+++ trunk/src/main/java/cc/kune/core/shared/dto/StateContentDTO.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-package org.ourproject.kune.platf.client.dto;
+package cc.kune.core.shared.dto;
import java.util.Date;
import java.util.List;
Modified: trunk/src/main/java/cc/kune/core/shared/dto/StateNoContentDTO.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/dto/StateNoContentDTO.java 2010-12-07 22:38:26 UTC (rev 1158)
+++ trunk/src/main/java/cc/kune/core/shared/dto/StateNoContentDTO.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-package org.ourproject.kune.platf.client.dto;
+package cc.kune.core.shared.dto;
import com.google.gwt.user.client.rpc.IsSerializable;
Modified: trunk/src/main/java/cc/kune/core/shared/dto/StateToken.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/dto/StateToken.java 2010-12-07 22:38:26 UTC (rev 1158)
+++ trunk/src/main/java/cc/kune/core/shared/dto/StateToken.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-package org.ourproject.kune.platf.client.dto;
+package cc.kune.core.shared.dto;
import com.google.gwt.user.client.rpc.IsSerializable;
Modified: trunk/src/main/java/cc/kune/core/shared/dto/StateTokenUtils.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/dto/StateTokenUtils.java 2010-12-07 22:38:26 UTC (rev 1158)
+++ trunk/src/main/java/cc/kune/core/shared/dto/StateTokenUtils.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,6 +1,6 @@
-package org.ourproject.kune.platf.client.dto;
+package cc.kune.core.shared.dto;
-import org.ourproject.kune.platf.client.state.Session;
+import cc.kune.core.client.state.Session;
public class StateTokenUtils {
Added: trunk/src/main/java/cc/kune/core/shared/dto/SubscriptionMode.java
===================================================================
--- trunk/src/main/java/cc/kune/core/shared/dto/SubscriptionMode.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/shared/dto/SubscriptionMode.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,7 @@
+package cc.kune.core.shared.dto;
+
+import com.google.gwt.user.client.rpc.IsSerializable;
+
+public enum SubscriptionMode implements IsSerializable {
+ manual, autoAcceptAll, autoRejectAll
+}
\ No newline at end of file
Property changes on: trunk/src/main/java/cc/kune/core/shared/dto/SubscriptionMode.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/src/main/java/cc/kune/core/shared/dto/TagCloudResultDTO.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/dto/TagCloudResultDTO.java 2010-12-07 22:38:26 UTC (rev 1158)
+++ trunk/src/main/java/cc/kune/core/shared/dto/TagCloudResultDTO.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-package org.ourproject.kune.platf.client.dto;
+package cc.kune.core.shared.dto;
import java.util.List;
Modified: trunk/src/main/java/cc/kune/core/shared/dto/TagCountDTO.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/dto/TagCountDTO.java 2010-12-07 22:38:26 UTC (rev 1158)
+++ trunk/src/main/java/cc/kune/core/shared/dto/TagCountDTO.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-package org.ourproject.kune.platf.client.dto;
+package cc.kune.core.shared.dto;
import com.google.gwt.user.client.rpc.IsSerializable;
Modified: trunk/src/main/java/cc/kune/core/shared/dto/TagDTO.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/dto/TagDTO.java 2010-12-07 22:38:26 UTC (rev 1158)
+++ trunk/src/main/java/cc/kune/core/shared/dto/TagDTO.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-package org.ourproject.kune.platf.client.dto;
+package cc.kune.core.shared.dto;
import com.google.gwt.user.client.rpc.IsSerializable;
Modified: trunk/src/main/java/cc/kune/core/shared/dto/TimeZoneDTO.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/dto/TimeZoneDTO.java 2010-12-07 22:38:26 UTC (rev 1158)
+++ trunk/src/main/java/cc/kune/core/shared/dto/TimeZoneDTO.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-package org.ourproject.kune.platf.client.dto;
+package cc.kune.core.shared.dto;
import com.google.gwt.user.client.rpc.IsSerializable;
Modified: trunk/src/main/java/cc/kune/core/shared/dto/ToolSimpleDTO.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/dto/ToolSimpleDTO.java 2010-12-07 22:38:26 UTC (rev 1158)
+++ trunk/src/main/java/cc/kune/core/shared/dto/ToolSimpleDTO.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
\*/
-package org.ourproject.kune.platf.client.dto;
+package cc.kune.core.shared.dto;
import com.google.gwt.user.client.rpc.IsSerializable;
Modified: trunk/src/main/java/cc/kune/core/shared/dto/UserBuddiesDataDTO.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/dto/UserBuddiesDataDTO.java 2010-12-07 22:38:26 UTC (rev 1158)
+++ trunk/src/main/java/cc/kune/core/shared/dto/UserBuddiesDataDTO.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
\*/
-package org.ourproject.kune.platf.client.dto;
+package cc.kune.core.shared.dto;
import java.util.ArrayList;
import java.util.List;
Modified: trunk/src/main/java/cc/kune/core/shared/dto/UserBuddiesVisibilityDTO.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/dto/UserBuddiesVisibilityDTO.java 2010-12-07 22:38:26 UTC (rev 1158)
+++ trunk/src/main/java/cc/kune/core/shared/dto/UserBuddiesVisibilityDTO.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-package org.ourproject.kune.platf.client.dto;
+package cc.kune.core.shared.dto;
import com.google.gwt.user.client.rpc.IsSerializable;
Modified: trunk/src/main/java/cc/kune/core/shared/dto/UserDTO.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/dto/UserDTO.java 2010-12-07 22:38:26 UTC (rev 1158)
+++ trunk/src/main/java/cc/kune/core/shared/dto/UserDTO.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -17,9 +17,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-package org.ourproject.kune.platf.client.dto;
+package cc.kune.core.shared.dto;
-import com.calclab.emiteuimodule.client.SubscriptionMode;
import com.google.gwt.user.client.rpc.IsSerializable;
public class UserDTO implements IsSerializable {
@@ -153,6 +152,7 @@
this.timezone = timezone;
}
+ @Override
public String toString() {
return "UserDTO[" + shortName + "]";
}
Modified: trunk/src/main/java/cc/kune/core/shared/dto/UserInfoDTO.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/dto/UserInfoDTO.java 2010-12-07 22:38:26 UTC (rev 1158)
+++ trunk/src/main/java/cc/kune/core/shared/dto/UserInfoDTO.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-package org.ourproject.kune.platf.client.dto;
+package cc.kune.core.shared.dto;
import java.util.List;
Modified: trunk/src/main/java/cc/kune/core/shared/dto/UserSimpleDTO.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/dto/UserSimpleDTO.java 2010-12-07 22:38:26 UTC (rev 1158)
+++ trunk/src/main/java/cc/kune/core/shared/dto/UserSimpleDTO.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-package org.ourproject.kune.platf.client.dto;
+package cc.kune.core.shared.dto;
import com.google.gwt.user.client.rpc.IsSerializable;
Copied: trunk/src/main/java/cc/kune/core/shared/i18n/I18nTranslationService.java (from rev 1158, trunk/src/main/java/org/ourproject/kune/platf/client/i18n/I18nTranslationService.java)
===================================================================
--- trunk/src/main/java/cc/kune/core/shared/i18n/I18nTranslationService.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/shared/i18n/I18nTranslationService.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -0,0 +1,137 @@
+/*
+ *
+ * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
+ * This file is part of kune.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+package cc.kune.core.shared.i18n;
+
+public abstract class I18nTranslationService {
+ protected static final String TRANSLATION_NOTE_REGEXP = " (\\[)%NT (.*)(\\])$";
+ protected static final String NOTE_FOR_TRANSLATOR_TAG_BEGIN = " [%NT ";
+ protected static final String NOTE_FOR_TRANSLATOR_TAG_END = "]";
+ // Also in I18nTranslation
+ protected static final String UNTRANSLATED_VALUE = null;
+
+ public String decodeHtml(final String textToDecode) {
+ String text = textToDecode;
+ // text = text.replaceAll("©", "©");
+ return text;
+ }
+
+ public String removeNT(final String string) {
+ return string.replaceAll(TRANSLATION_NOTE_REGEXP, "");
+ }
+
+ /**
+ * In production, this method uses a hashmap. In development, if the text is
+ * not in the hashmap, it makes a server petition (that stores the text
+ * pending for translation in db).
+ *
+ * Warning: text is escaped as html before insert in the db. Don't use html
+ * here (o user this method with params).
+ *
+ * @param text
+ * @return text translated in the current language
+ */
+ // @PMD:REVIEWED:ShortMethodName: by vjrj on 21/05/09 13:49
+ public abstract String t(final String text);
+
+ /**
+ * Use [%d] to reference the Integer parameters
+ *
+ */
+ // @PMD:REVIEWED:ShortMethodName: by vjrj on 21/05/09 13:50
+ public String t(final String text, final Integer... args) {
+ String translation = t(text);
+ for (Integer arg : args) {
+ translation = translation.replaceFirst("\\[%d\\]", arg.toString());
+ }
+ return decodeHtml(translation);
+ }
+
+ /**
+ * Use [%d] to reference the Long parameter
+ *
+ */
+ // @PMD:REVIEWED:ShortMethodName: by vjrj on 21/05/09 13:50
+ public String t(final String text, final Long... args) {
+ String translation = t(text);
+ for (Long arg : args) {
+ translation = translation.replaceFirst("\\[%d\\]", arg.toString());
+ }
+ return decodeHtml(translation);
+ }
+
+ /**
+ * Use [%s] to reference the string parameter
+ *
+ */
+ // @PMD:REVIEWED:ShortMethodName: by vjrj on 21/05/09 13:50
+ public String t(final String text, final String... args) {
+ String translation = t(text);
+ for (String arg : args) {
+ translation = translation.replaceFirst("\\[%s\\]", arg);
+ }
+ return decodeHtml(translation);
+ }
+
+ /**
+ * Adds [%NT noteForTranslators] at the end of text. This tag is later
+ * renderer in the translator panel to inform translator how to do this
+ * translation
+ *
+ */
+ public String tWithNT(final String text, final String noteForTranslators) {
+ return t(text + NOTE_FOR_TRANSLATOR_TAG_BEGIN + noteForTranslators + NOTE_FOR_TRANSLATOR_TAG_END);
+ }
+
+ /**
+ * Use [%d] to reference the Integer parameter.
+ *
+ * Also adds [%NT noteForTranslators] at the end of text. This tag is later
+ * renderer in the translator panel to inform translator how to do this
+ * translation
+ *
+ */
+ public String tWithNT(final String text, final String noteForTranslators, final Integer... args) {
+ return t(text + NOTE_FOR_TRANSLATOR_TAG_BEGIN + noteForTranslators + NOTE_FOR_TRANSLATOR_TAG_END, args);
+ }
+
+ /**
+ * Use [%d] to reference the Long parameter.
+ *
+ * Also adds [%NT noteForTranslators] at the end of text. This tag is later
+ * renderer in the translator panel to inform translator how to do this
+ * translation
+ *
+ */
+ public String tWithNT(final String text, final String noteForTranslators, final Long... args) {
+ return t(text + NOTE_FOR_TRANSLATOR_TAG_BEGIN + noteForTranslators + NOTE_FOR_TRANSLATOR_TAG_END, args);
+ }
+
+ /**
+ * Use [%s] to reference the String parameter.
+ *
+ * Also adds [%NT noteForTranslators] at the end of text. This tag is later
+ * renderer in the translator panel to inform translator how to do this
+ * translation
+ *
+ */
+ public String tWithNT(final String text, final String noteForTranslators, final String... args) {
+ return t(text + NOTE_FOR_TRANSLATOR_TAG_BEGIN + noteForTranslators + NOTE_FOR_TRANSLATOR_TAG_END, args);
+ }
+}
Modified: trunk/src/main/java/org/ourproject/kune/app/server/KuneRackModule.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/app/server/KuneRackModule.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/app/server/KuneRackModule.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -23,12 +23,6 @@
import org.ourproject.kune.chat.server.ChatServerModule;
import org.ourproject.kune.docs.server.DocumentServerModule;
import org.ourproject.kune.gallery.server.GalleryServerModule;
-import org.ourproject.kune.platf.client.rpc.ContentService;
-import org.ourproject.kune.platf.client.rpc.GroupService;
-import org.ourproject.kune.platf.client.rpc.I18nService;
-import org.ourproject.kune.platf.client.rpc.SiteService;
-import org.ourproject.kune.platf.client.rpc.SocialNetworkService;
-import org.ourproject.kune.platf.client.rpc.UserService;
import org.ourproject.kune.platf.server.LoggerMethodInterceptor;
import org.ourproject.kune.platf.server.PlatformServerModule;
import org.ourproject.kune.platf.server.manager.file.EntityLogoDownloadManager;
@@ -50,6 +44,13 @@
import org.ourproject.kune.rack.filters.rest.RESTServicesModule;
import org.ourproject.kune.wiki.server.WikiServerModule;
+import cc.kune.core.client.rpcservices.ContentService;
+import cc.kune.core.client.rpcservices.GroupService;
+import cc.kune.core.client.rpcservices.I18nService;
+import cc.kune.core.client.rpcservices.SiteService;
+import cc.kune.core.client.rpcservices.SocialNetworkService;
+import cc.kune.core.client.rpcservices.UserService;
+
import com.google.inject.AbstractModule;
import com.google.inject.Module;
import com.google.inject.Scope;
Modified: trunk/src/main/java/org/ourproject/kune/blogs/client/BlogClientActions.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/blogs/client/BlogClientActions.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/blogs/client/BlogClientActions.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -25,12 +25,6 @@
import static org.ourproject.kune.blogs.client.BlogClientTool.TYPE_UPLOADEDFILE;
import org.ourproject.kune.blogs.client.cnt.BlogViewer;
-import org.ourproject.kune.platf.client.i18n.I18nUITranslationService;
-import org.ourproject.kune.platf.client.rpc.ContentServiceAsync;
-import org.ourproject.kune.platf.client.rpc.GroupServiceAsync;
-import org.ourproject.kune.platf.client.services.ErrorHandler;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.platf.client.ui.download.FileDownloadUtils;
import org.ourproject.kune.platf.client.utils.DeferredCommandWrapper;
import org.ourproject.kune.workspace.client.AbstractFoldableContentActions;
@@ -45,6 +39,13 @@
import org.ourproject.kune.workspace.client.upload.FileUploader;
import org.ourproject.kune.workspace.client.wave.WaveInsert;
+import cc.kune.core.client.errors.ErrorHandler;
+import cc.kune.core.client.i18n.I18nUITranslationService;
+import cc.kune.core.client.rpcservices.ContentServiceAsync;
+import cc.kune.core.client.rpcservices.GroupServiceAsync;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+
import com.calclab.suco.client.ioc.Provider;
public class BlogClientActions extends AbstractFoldableContentActions {
Modified: trunk/src/main/java/org/ourproject/kune/blogs/client/BlogClientModule.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/blogs/client/BlogClientModule.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/blogs/client/BlogClientModule.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -30,15 +30,8 @@
import org.ourproject.kune.blogs.client.ctx.BlogContext;
import org.ourproject.kune.blogs.client.ctx.BlogContextPresenter;
import org.ourproject.kune.platf.client.app.ToolGroup;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
-import org.ourproject.kune.platf.client.i18n.I18nUITranslationService;
import org.ourproject.kune.platf.client.registry.ContentCapabilitiesRegistry;
-import org.ourproject.kune.platf.client.rpc.ContentServiceAsync;
-import org.ourproject.kune.platf.client.rpc.GroupServiceAsync;
import org.ourproject.kune.platf.client.services.AbstractExtendedModule;
-import org.ourproject.kune.platf.client.services.ErrorHandler;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.platf.client.ui.download.FileDownloadUtils;
import org.ourproject.kune.platf.client.ui.rte.insertmedia.abstractmedia.MediaUtils;
import org.ourproject.kune.platf.client.utils.DeferredCommandWrapper;
@@ -57,6 +50,14 @@
import org.ourproject.kune.workspace.client.upload.FileUploader;
import org.ourproject.kune.workspace.client.wave.WaveInsert;
+import cc.kune.core.client.errors.ErrorHandler;
+import cc.kune.core.client.i18n.I18nUITranslationService;
+import cc.kune.core.client.rpcservices.ContentServiceAsync;
+import cc.kune.core.client.rpcservices.GroupServiceAsync;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.ioc.decorator.Singleton;
import com.calclab.suco.client.ioc.module.Factory;
Modified: trunk/src/main/java/org/ourproject/kune/blogs/client/BlogClientTool.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/blogs/client/BlogClientTool.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/blogs/client/BlogClientTool.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,13 +19,14 @@
*/
package org.ourproject.kune.blogs.client;
-import org.ourproject.kune.platf.client.i18n.I18nUITranslationService;
import org.ourproject.kune.platf.client.registry.ContentCapabilitiesRegistry;
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
import org.ourproject.kune.workspace.client.themes.WsThemeManager;
import org.ourproject.kune.workspace.client.tool.FoldableAbstractClientTool;
import org.ourproject.kune.workspace.client.tool.ToolSelector;
+import cc.kune.core.client.i18n.I18nUITranslationService;
+
public class BlogClientTool extends FoldableAbstractClientTool {
public static final String NAME = "blogs";
public static final String TYPE_ROOT = NAME + "." + "root";
Modified: trunk/src/main/java/org/ourproject/kune/blogs/client/cnt/BlogFolderContentPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/blogs/client/cnt/BlogFolderContentPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/blogs/client/cnt/BlogFolderContentPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,10 +19,11 @@
*/
package org.ourproject.kune.blogs.client.cnt;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.workspace.client.cnt.FoldableContentPanel;
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
public class BlogFolderContentPanel extends FoldableContentPanel implements BlogFolderContentView {
public BlogFolderContentPanel(WorkspaceSkeleton ws, I18nTranslationService i18n) {
Modified: trunk/src/main/java/org/ourproject/kune/blogs/client/cnt/BlogFolderContentPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/blogs/client/cnt/BlogFolderContentPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/blogs/client/cnt/BlogFolderContentPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -21,16 +21,17 @@
import org.ourproject.kune.blogs.client.BlogClientTool;
import org.ourproject.kune.platf.client.actions.ActionRegistry;
-import org.ourproject.kune.platf.client.dto.StateContainerDTO;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.platf.client.ui.download.FileDownloadUtils;
import org.ourproject.kune.platf.client.ui.rte.insertmedia.abstractmedia.MediaUtils;
import org.ourproject.kune.workspace.client.cnt.ActionContentToolbar;
import org.ourproject.kune.workspace.client.cnt.FoldableContentPresenter;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.dto.StateContainerDTO;
+import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.ioc.Provider;
public class BlogFolderContentPresenter extends FoldableContentPresenter implements BlogFolderContent {
Modified: trunk/src/main/java/org/ourproject/kune/blogs/client/cnt/BlogViewerPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/blogs/client/cnt/BlogViewerPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/blogs/client/cnt/BlogViewerPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,10 +19,11 @@
*/
package org.ourproject.kune.blogs.client.cnt;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.workspace.client.cnt.FoldableContentPanel;
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
public class BlogViewerPanel extends FoldableContentPanel implements BlogViewerView {
public BlogViewerPanel(final WorkspaceSkeleton ws, I18nTranslationService i18n) {
super(ws, i18n);
Modified: trunk/src/main/java/org/ourproject/kune/blogs/client/cnt/BlogViewerPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/blogs/client/cnt/BlogViewerPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/blogs/client/cnt/BlogViewerPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -20,16 +20,17 @@
package org.ourproject.kune.blogs.client.cnt;
import org.ourproject.kune.blogs.client.BlogClientTool;
-import org.ourproject.kune.platf.client.dto.StateContentDTO;
-import org.ourproject.kune.platf.client.i18n.I18nUITranslationService;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.platf.client.ui.download.FileDownloadUtils;
import org.ourproject.kune.platf.client.ui.rte.insertmedia.abstractmedia.MediaUtils;
import org.ourproject.kune.workspace.client.cnt.ActionContentToolbar;
import org.ourproject.kune.workspace.client.cnt.ContentActionRegistry;
import org.ourproject.kune.workspace.client.cnt.FoldableContentPresenter;
+import cc.kune.core.client.i18n.I18nUITranslationService;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.dto.StateContentDTO;
+
import com.calclab.suco.client.ioc.Provider;
public class BlogViewerPresenter extends FoldableContentPresenter implements BlogViewer {
Modified: trunk/src/main/java/org/ourproject/kune/blogs/client/ctx/BlogContextPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/blogs/client/ctx/BlogContextPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/blogs/client/ctx/BlogContextPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -20,11 +20,12 @@
package org.ourproject.kune.blogs.client.ctx;
import org.ourproject.kune.blogs.client.BlogClientTool;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.workspace.client.ctxnav.ContextNavigator;
import org.ourproject.kune.workspace.client.cxt.ContextPropEditor;
import org.ourproject.kune.workspace.client.cxt.FoldableContextPresenter;
+import cc.kune.core.client.state.StateManager;
+
import com.calclab.suco.client.ioc.Provider;
public class BlogContextPresenter extends FoldableContextPresenter implements BlogContext {
Modified: trunk/src/main/java/org/ourproject/kune/blogs/server/BlogServerTool.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/blogs/server/BlogServerTool.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/blogs/server/BlogServerTool.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,9 +19,6 @@
*/
package org.ourproject.kune.blogs.server;
-import org.ourproject.kune.platf.client.errors.ContainerNotPermittedException;
-import org.ourproject.kune.platf.client.errors.ContentNotPermittedException;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.server.content.ContainerManager;
import org.ourproject.kune.platf.server.content.ContentManager;
import org.ourproject.kune.platf.server.domain.Container;
@@ -36,6 +33,10 @@
import org.ourproject.kune.platf.server.tool.ServerToolRegistry;
import org.ourproject.kune.platf.server.tool.ServerToolTarget;
+import cc.kune.core.client.errors.ContainerNotPermittedException;
+import cc.kune.core.client.errors.ContentNotPermittedException;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.google.inject.Inject;
public class BlogServerTool implements ServerTool {
Modified: trunk/src/main/java/org/ourproject/kune/chat/client/ChatClientActions.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/chat/client/ChatClientActions.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/chat/client/ChatClientActions.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -26,17 +26,18 @@
import org.ourproject.kune.platf.client.actions.ActionEnableCondition;
import org.ourproject.kune.platf.client.actions.ActionToolbarButtonDescriptor;
import org.ourproject.kune.platf.client.actions.ActionToolbarButtonSeparator;
-import org.ourproject.kune.platf.client.dto.AccessRolDTO;
-import org.ourproject.kune.platf.client.dto.ContentStatusDTO;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.i18n.I18nUITranslationService;
-import org.ourproject.kune.platf.client.state.Session;
import org.ourproject.kune.platf.client.utils.DeferredCommandWrapper;
import org.ourproject.kune.wiki.client.WikiClientTool;
import org.ourproject.kune.workspace.client.AbstractFoldableContentActions;
import org.ourproject.kune.workspace.client.cnt.ContentActionRegistry;
import org.ourproject.kune.workspace.client.cxt.ContextActionRegistry;
+import cc.kune.core.client.i18n.I18nUITranslationService;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.shared.dto.AccessRolDTO;
+import cc.kune.core.shared.dto.ContentStatusDTO;
+import cc.kune.core.shared.dto.StateToken;
+
import com.calclab.suco.client.events.Listener;
import com.calclab.suco.client.events.Listener0;
import com.calclab.suco.client.ioc.Provider;
Modified: trunk/src/main/java/org/ourproject/kune/chat/client/ChatClientModule.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/chat/client/ChatClientModule.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/chat/client/ChatClientModule.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -29,14 +29,9 @@
import org.ourproject.kune.chat.client.ctx.room.AddRoomPresenter;
import org.ourproject.kune.platf.client.app.Application;
import org.ourproject.kune.platf.client.app.ToolGroup;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
-import org.ourproject.kune.platf.client.i18n.I18nUITranslationService;
import org.ourproject.kune.platf.client.registry.ContentCapabilitiesRegistry;
-import org.ourproject.kune.platf.client.rpc.ContentServiceAsync;
import org.ourproject.kune.platf.client.services.AbstractExtendedModule;
import org.ourproject.kune.platf.client.shortcuts.GlobalShortcutRegister;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.platf.client.ui.download.FileDownloadUtils;
import org.ourproject.kune.platf.client.ui.rte.insertmedia.abstractmedia.MediaUtils;
import org.ourproject.kune.platf.client.utils.DeferredCommandWrapper;
@@ -48,6 +43,12 @@
import org.ourproject.kune.workspace.client.themes.WsThemeManager;
import org.ourproject.kune.workspace.client.tool.ToolSelector;
+import cc.kune.core.client.i18n.I18nUITranslationService;
+import cc.kune.core.client.rpcservices.ContentServiceAsync;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.emiteuimodule.client.EmiteUIDialog;
import com.calclab.suco.client.ioc.decorator.Singleton;
import com.calclab.suco.client.ioc.module.Factory;
Modified: trunk/src/main/java/org/ourproject/kune/chat/client/ChatClientTool.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/chat/client/ChatClientTool.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/chat/client/ChatClientTool.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,13 +19,14 @@
*/
package org.ourproject.kune.chat.client;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.registry.ContentCapabilitiesRegistry;
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
import org.ourproject.kune.workspace.client.themes.WsThemeManager;
import org.ourproject.kune.workspace.client.tool.FoldableAbstractClientTool;
import org.ourproject.kune.workspace.client.tool.ToolSelector;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
public class ChatClientTool extends FoldableAbstractClientTool {
public static final String NAME = "chats";
public static final String TYPE_ROOT = "chat.root";
Modified: trunk/src/main/java/org/ourproject/kune/chat/client/ChatEngineDefault.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/chat/client/ChatEngineDefault.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/chat/client/ChatEngineDefault.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -27,16 +27,17 @@
import org.ourproject.kune.platf.client.actions.KeyStroke;
import org.ourproject.kune.platf.client.actions.Shortcut;
import org.ourproject.kune.platf.client.app.Application;
-import org.ourproject.kune.platf.client.dto.InitDataDTO;
-import org.ourproject.kune.platf.client.dto.UserInfoDTO;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.shortcuts.GlobalShortcutRegister;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.ui.WindowUtils;
import org.ourproject.kune.platf.client.ui.download.FileDownloadUtils;
import org.ourproject.kune.platf.client.ui.noti.NotifyUser;
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.utils.WindowUtils;
+import cc.kune.core.shared.dto.InitDataDTO;
+import cc.kune.core.shared.dto.UserInfoDTO;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.allen_sauer.gwt.log.client.Log;
import com.calclab.emite.core.client.xmpp.stanzas.XmppURI;
import com.calclab.emite.im.client.roster.RosterItem;
Modified: trunk/src/main/java/org/ourproject/kune/chat/client/cnt/ChatRoomPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/chat/client/cnt/ChatRoomPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/chat/client/cnt/ChatRoomPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,10 +19,11 @@
*/
package org.ourproject.kune.chat.client.cnt;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.workspace.client.cnt.FoldableContentPanel;
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
public class ChatRoomPanel extends FoldableContentPanel implements ChatRoomView {
public ChatRoomPanel(final WorkspaceSkeleton ws, I18nTranslationService i18n) {
Modified: trunk/src/main/java/org/ourproject/kune/chat/client/cnt/ChatRoomPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/chat/client/cnt/ChatRoomPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/chat/client/cnt/ChatRoomPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -21,17 +21,18 @@
import org.ourproject.kune.chat.client.ChatClientTool;
import org.ourproject.kune.platf.client.actions.ActionRegistry;
-import org.ourproject.kune.platf.client.dto.StateContainerDTO;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.i18n.I18nUITranslationService;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
-import org.ourproject.kune.platf.client.ui.TextUtils;
import org.ourproject.kune.platf.client.ui.download.FileDownloadUtils;
import org.ourproject.kune.platf.client.ui.rte.insertmedia.abstractmedia.MediaUtils;
import org.ourproject.kune.workspace.client.cnt.ActionContentToolbar;
import org.ourproject.kune.workspace.client.cnt.FoldableContentPresenter;
+import cc.kune.core.client.i18n.I18nUITranslationService;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.client.utils.TextUtils;
+import cc.kune.core.shared.dto.StateContainerDTO;
+import cc.kune.core.shared.dto.StateToken;
+
import com.calclab.suco.client.ioc.Provider;
public class ChatRoomPresenter extends FoldableContentPresenter implements ChatRoom {
Modified: trunk/src/main/java/org/ourproject/kune/chat/client/ctx/ChatContextPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/chat/client/ctx/ChatContextPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/chat/client/ctx/ChatContextPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -20,10 +20,11 @@
package org.ourproject.kune.chat.client.ctx;
import org.ourproject.kune.chat.client.ChatClientTool;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.workspace.client.ctxnav.ContextNavigator;
import org.ourproject.kune.workspace.client.cxt.FoldableContextPresenter;
+import cc.kune.core.client.state.StateManager;
+
import com.calclab.suco.client.ioc.Provider;
public class ChatContextPresenter extends FoldableContextPresenter implements ChatContext {
Modified: trunk/src/main/java/org/ourproject/kune/chat/client/ctx/room/AddRoomPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/chat/client/ctx/room/AddRoomPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/chat/client/ctx/room/AddRoomPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,9 +19,10 @@
*/
package org.ourproject.kune.chat.client.ctx.room;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
-import org.ourproject.kune.platf.client.ui.TextUtils;
+import cc.kune.core.client.utils.TextUtils;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.emiteuimodule.client.dialog.BasicDialogExtended;
import com.calclab.emiteuimodule.client.dialog.BasicDialogListener;
import com.google.gwt.core.client.Scheduler;
Modified: trunk/src/main/java/org/ourproject/kune/chat/client/ctx/room/AddRoomPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/chat/client/ctx/room/AddRoomPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/chat/client/ctx/room/AddRoomPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -20,13 +20,14 @@
package org.ourproject.kune.chat.client.ctx.room;
import org.ourproject.kune.platf.client.View;
-import org.ourproject.kune.platf.client.dto.StateContainerDTO;
-import org.ourproject.kune.platf.client.rpc.AsyncCallbackSimple;
-import org.ourproject.kune.platf.client.rpc.ContentServiceAsync;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.platf.client.ui.noti.NotifyUser;
+import cc.kune.core.client.rpcservices.AsyncCallbackSimple;
+import cc.kune.core.client.rpcservices.ContentServiceAsync;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.dto.StateContainerDTO;
+
import com.calclab.suco.client.ioc.Provider;
public class AddRoomPresenter implements AddRoom {
Modified: trunk/src/main/java/org/ourproject/kune/chat/server/ChatServerTool.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/chat/server/ChatServerTool.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/chat/server/ChatServerTool.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -20,7 +20,6 @@
package org.ourproject.kune.chat.server;
import org.ourproject.kune.chat.client.ChatClientTool;
-import org.ourproject.kune.platf.client.errors.ContainerNotPermittedException;
import org.ourproject.kune.platf.server.content.ContainerManager;
import org.ourproject.kune.platf.server.domain.Container;
import org.ourproject.kune.platf.server.domain.Content;
@@ -32,6 +31,8 @@
import org.ourproject.kune.platf.server.tool.ServerToolRegistry;
import org.ourproject.kune.platf.server.tool.ServerToolTarget;
+import cc.kune.core.client.errors.ContainerNotPermittedException;
+
import com.google.inject.Inject;
public class ChatServerTool implements ServerTool {
Modified: trunk/src/main/java/org/ourproject/kune/docs/client/DocumentClientActions.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/docs/client/DocumentClientActions.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/docs/client/DocumentClientActions.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -26,12 +26,6 @@
import static org.ourproject.kune.docs.client.DocumentClientTool.TYPE_WAVE;
import org.ourproject.kune.docs.client.cnt.DocumentViewer;
-import org.ourproject.kune.platf.client.i18n.I18nUITranslationService;
-import org.ourproject.kune.platf.client.rpc.ContentServiceAsync;
-import org.ourproject.kune.platf.client.rpc.GroupServiceAsync;
-import org.ourproject.kune.platf.client.services.ErrorHandler;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.platf.client.ui.download.FileDownloadUtils;
import org.ourproject.kune.platf.client.utils.DeferredCommandWrapper;
import org.ourproject.kune.workspace.client.AbstractFoldableContentActions;
@@ -46,6 +40,13 @@
import org.ourproject.kune.workspace.client.upload.FileUploader;
import org.ourproject.kune.workspace.client.wave.WaveInsert;
+import cc.kune.core.client.errors.ErrorHandler;
+import cc.kune.core.client.i18n.I18nUITranslationService;
+import cc.kune.core.client.rpcservices.ContentServiceAsync;
+import cc.kune.core.client.rpcservices.GroupServiceAsync;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+
import com.calclab.suco.client.ioc.Provider;
public class DocumentClientActions extends AbstractFoldableContentActions {
Modified: trunk/src/main/java/org/ourproject/kune/docs/client/DocumentClientModule.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/docs/client/DocumentClientModule.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/docs/client/DocumentClientModule.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -30,15 +30,8 @@
import org.ourproject.kune.docs.client.ctx.DocumentContext;
import org.ourproject.kune.docs.client.ctx.DocumentContextPresenter;
import org.ourproject.kune.platf.client.app.ToolGroup;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
-import org.ourproject.kune.platf.client.i18n.I18nUITranslationService;
import org.ourproject.kune.platf.client.registry.ContentCapabilitiesRegistry;
-import org.ourproject.kune.platf.client.rpc.ContentServiceAsync;
-import org.ourproject.kune.platf.client.rpc.GroupServiceAsync;
import org.ourproject.kune.platf.client.services.AbstractExtendedModule;
-import org.ourproject.kune.platf.client.services.ErrorHandler;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.platf.client.ui.download.FileDownloadUtils;
import org.ourproject.kune.platf.client.ui.rte.insertmedia.abstractmedia.MediaUtils;
import org.ourproject.kune.platf.client.utils.DeferredCommandWrapper;
@@ -57,6 +50,14 @@
import org.ourproject.kune.workspace.client.upload.FileUploader;
import org.ourproject.kune.workspace.client.wave.WaveInsert;
+import cc.kune.core.client.errors.ErrorHandler;
+import cc.kune.core.client.i18n.I18nUITranslationService;
+import cc.kune.core.client.rpcservices.ContentServiceAsync;
+import cc.kune.core.client.rpcservices.GroupServiceAsync;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.ioc.decorator.Singleton;
import com.calclab.suco.client.ioc.module.Factory;
Modified: trunk/src/main/java/org/ourproject/kune/docs/client/DocumentClientTool.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/docs/client/DocumentClientTool.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/docs/client/DocumentClientTool.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,13 +19,14 @@
*/
package org.ourproject.kune.docs.client;
-import org.ourproject.kune.platf.client.i18n.I18nUITranslationService;
import org.ourproject.kune.platf.client.registry.ContentCapabilitiesRegistry;
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
import org.ourproject.kune.workspace.client.themes.WsThemeManager;
import org.ourproject.kune.workspace.client.tool.FoldableAbstractClientTool;
import org.ourproject.kune.workspace.client.tool.ToolSelector;
+import cc.kune.core.client.i18n.I18nUITranslationService;
+
public class DocumentClientTool extends FoldableAbstractClientTool {
public static final String NAME = "docs";
public static final String TYPE_ROOT = NAME + "." + "root";
Modified: trunk/src/main/java/org/ourproject/kune/docs/client/cnt/DocFolderContentPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/docs/client/cnt/DocFolderContentPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/docs/client/cnt/DocFolderContentPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,10 +19,11 @@
*/
package org.ourproject.kune.docs.client.cnt;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.workspace.client.cnt.FoldableContentPanel;
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
public class DocFolderContentPanel extends FoldableContentPanel implements DocFolderContentView {
public DocFolderContentPanel(WorkspaceSkeleton ws, I18nTranslationService i18n) {
Modified: trunk/src/main/java/org/ourproject/kune/docs/client/cnt/DocFolderContentPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/docs/client/cnt/DocFolderContentPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/docs/client/cnt/DocFolderContentPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -21,15 +21,16 @@
import org.ourproject.kune.docs.client.DocumentClientTool;
import org.ourproject.kune.platf.client.actions.ActionRegistry;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.platf.client.ui.download.FileDownloadUtils;
import org.ourproject.kune.platf.client.ui.rte.insertmedia.abstractmedia.MediaUtils;
import org.ourproject.kune.workspace.client.cnt.ActionContentToolbar;
import org.ourproject.kune.workspace.client.cnt.FoldableContentPresenter;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.ioc.Provider;
public class DocFolderContentPresenter extends FoldableContentPresenter implements DocFolderContent {
Modified: trunk/src/main/java/org/ourproject/kune/docs/client/cnt/DocumentViewerPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/docs/client/cnt/DocumentViewerPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/docs/client/cnt/DocumentViewerPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,10 +19,11 @@
*/
package org.ourproject.kune.docs.client.cnt;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.workspace.client.cnt.FoldableContentPanel;
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
public class DocumentViewerPanel extends FoldableContentPanel implements DocumentViewerView {
public DocumentViewerPanel(final WorkspaceSkeleton ws, I18nTranslationService i18n) {
super(ws, i18n);
Modified: trunk/src/main/java/org/ourproject/kune/docs/client/cnt/DocumentViewerPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/docs/client/cnt/DocumentViewerPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/docs/client/cnt/DocumentViewerPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -20,16 +20,17 @@
package org.ourproject.kune.docs.client.cnt;
import org.ourproject.kune.docs.client.DocumentClientTool;
-import org.ourproject.kune.platf.client.dto.StateContentDTO;
-import org.ourproject.kune.platf.client.i18n.I18nUITranslationService;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.platf.client.ui.download.FileDownloadUtils;
import org.ourproject.kune.platf.client.ui.rte.insertmedia.abstractmedia.MediaUtils;
import org.ourproject.kune.workspace.client.cnt.ActionContentToolbar;
import org.ourproject.kune.workspace.client.cnt.ContentActionRegistry;
import org.ourproject.kune.workspace.client.cnt.FoldableContentPresenter;
+import cc.kune.core.client.i18n.I18nUITranslationService;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.dto.StateContentDTO;
+
import com.calclab.suco.client.ioc.Provider;
public class DocumentViewerPresenter extends FoldableContentPresenter implements DocumentViewer {
Modified: trunk/src/main/java/org/ourproject/kune/docs/client/ctx/DocumentContextPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/docs/client/ctx/DocumentContextPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/docs/client/ctx/DocumentContextPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -20,11 +20,12 @@
package org.ourproject.kune.docs.client.ctx;
import org.ourproject.kune.docs.client.DocumentClientTool;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.workspace.client.ctxnav.ContextNavigator;
import org.ourproject.kune.workspace.client.cxt.ContextPropEditor;
import org.ourproject.kune.workspace.client.cxt.FoldableContextPresenter;
+import cc.kune.core.client.state.StateManager;
+
import com.calclab.suco.client.ioc.Provider;
public class DocumentContextPresenter extends FoldableContextPresenter implements DocumentContext {
Modified: trunk/src/main/java/org/ourproject/kune/docs/server/DocumentServerTool.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/docs/server/DocumentServerTool.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/docs/server/DocumentServerTool.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -21,9 +21,6 @@
import java.util.Date;
-import org.ourproject.kune.platf.client.errors.ContainerNotPermittedException;
-import org.ourproject.kune.platf.client.errors.ContentNotPermittedException;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.server.content.ContainerManager;
import org.ourproject.kune.platf.server.content.ContentManager;
import org.ourproject.kune.platf.server.domain.Container;
@@ -37,6 +34,10 @@
import org.ourproject.kune.platf.server.tool.ServerToolRegistry;
import org.ourproject.kune.platf.server.tool.ServerToolTarget;
+import cc.kune.core.client.errors.ContainerNotPermittedException;
+import cc.kune.core.client.errors.ContentNotPermittedException;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.google.inject.Inject;
public class DocumentServerTool implements ServerTool {
Modified: trunk/src/main/java/org/ourproject/kune/gallery/client/GalleryClientActions.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/gallery/client/GalleryClientActions.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/gallery/client/GalleryClientActions.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -24,12 +24,6 @@
import static org.ourproject.kune.gallery.client.GalleryClientTool.TYPE_UPLOADEDFILE;
import org.ourproject.kune.gallery.client.cnt.GalleryViewer;
-import org.ourproject.kune.platf.client.i18n.I18nUITranslationService;
-import org.ourproject.kune.platf.client.rpc.ContentServiceAsync;
-import org.ourproject.kune.platf.client.rpc.GroupServiceAsync;
-import org.ourproject.kune.platf.client.services.ErrorHandler;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.platf.client.ui.download.FileDownloadUtils;
import org.ourproject.kune.platf.client.utils.DeferredCommandWrapper;
import org.ourproject.kune.workspace.client.AbstractFoldableContentActions;
@@ -44,6 +38,13 @@
import org.ourproject.kune.workspace.client.upload.FileUploader;
import org.ourproject.kune.workspace.client.wave.WaveInsert;
+import cc.kune.core.client.errors.ErrorHandler;
+import cc.kune.core.client.i18n.I18nUITranslationService;
+import cc.kune.core.client.rpcservices.ContentServiceAsync;
+import cc.kune.core.client.rpcservices.GroupServiceAsync;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+
import com.calclab.suco.client.ioc.Provider;
public class GalleryClientActions extends AbstractFoldableContentActions {
Modified: trunk/src/main/java/org/ourproject/kune/gallery/client/GalleryClientModule.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/gallery/client/GalleryClientModule.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/gallery/client/GalleryClientModule.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -30,15 +30,8 @@
import org.ourproject.kune.gallery.client.ctx.GalleryContext;
import org.ourproject.kune.gallery.client.ctx.GalleryContextPresenter;
import org.ourproject.kune.platf.client.app.ToolGroup;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
-import org.ourproject.kune.platf.client.i18n.I18nUITranslationService;
import org.ourproject.kune.platf.client.registry.ContentCapabilitiesRegistry;
-import org.ourproject.kune.platf.client.rpc.ContentServiceAsync;
-import org.ourproject.kune.platf.client.rpc.GroupServiceAsync;
import org.ourproject.kune.platf.client.services.AbstractExtendedModule;
-import org.ourproject.kune.platf.client.services.ErrorHandler;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.platf.client.ui.download.FileDownloadUtils;
import org.ourproject.kune.platf.client.ui.rte.insertmedia.abstractmedia.MediaUtils;
import org.ourproject.kune.platf.client.utils.DeferredCommandWrapper;
@@ -57,6 +50,14 @@
import org.ourproject.kune.workspace.client.upload.FileUploader;
import org.ourproject.kune.workspace.client.wave.WaveInsert;
+import cc.kune.core.client.errors.ErrorHandler;
+import cc.kune.core.client.i18n.I18nUITranslationService;
+import cc.kune.core.client.rpcservices.ContentServiceAsync;
+import cc.kune.core.client.rpcservices.GroupServiceAsync;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.ioc.decorator.Singleton;
import com.calclab.suco.client.ioc.module.Factory;
Modified: trunk/src/main/java/org/ourproject/kune/gallery/client/GalleryClientTool.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/gallery/client/GalleryClientTool.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/gallery/client/GalleryClientTool.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,13 +19,14 @@
*/
package org.ourproject.kune.gallery.client;
-import org.ourproject.kune.platf.client.i18n.I18nUITranslationService;
import org.ourproject.kune.platf.client.registry.ContentCapabilitiesRegistry;
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
import org.ourproject.kune.workspace.client.themes.WsThemeManager;
import org.ourproject.kune.workspace.client.tool.FoldableAbstractClientTool;
import org.ourproject.kune.workspace.client.tool.ToolSelector;
+import cc.kune.core.client.i18n.I18nUITranslationService;
+
public class GalleryClientTool extends FoldableAbstractClientTool {
public static final String NAME = "gallery";
public static final String TYPE_ROOT = NAME + "." + "root";
Modified: trunk/src/main/java/org/ourproject/kune/gallery/client/cnt/GalleryFolderContentPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/gallery/client/cnt/GalleryFolderContentPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/gallery/client/cnt/GalleryFolderContentPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,14 +19,15 @@
*/
package org.ourproject.kune.gallery.client.cnt;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.platf.client.ui.BasicThumb;
import org.ourproject.kune.workspace.client.cnt.FoldableContentPanel;
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.google.gwt.core.client.Scheduler;
import com.google.gwt.core.client.Scheduler.ScheduledCommand;
import com.google.gwt.event.dom.client.ClickEvent;
Modified: trunk/src/main/java/org/ourproject/kune/gallery/client/cnt/GalleryFolderContentPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/gallery/client/cnt/GalleryFolderContentPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/gallery/client/cnt/GalleryFolderContentPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -21,19 +21,20 @@
import org.ourproject.kune.gallery.client.GalleryClientTool;
import org.ourproject.kune.platf.client.actions.ActionRegistry;
-import org.ourproject.kune.platf.client.dto.ContainerDTO;
-import org.ourproject.kune.platf.client.dto.ContentSimpleDTO;
-import org.ourproject.kune.platf.client.dto.StateContainerDTO;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.platf.client.ui.download.FileDownloadUtils;
import org.ourproject.kune.platf.client.ui.download.ImageSize;
import org.ourproject.kune.platf.client.ui.rte.insertmedia.abstractmedia.MediaUtils;
import org.ourproject.kune.workspace.client.cnt.ActionContentToolbar;
import org.ourproject.kune.workspace.client.cnt.FoldableContentPresenter;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.dto.ContainerDTO;
+import cc.kune.core.shared.dto.ContentSimpleDTO;
+import cc.kune.core.shared.dto.StateContainerDTO;
+import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.ioc.Provider;
public class GalleryFolderContentPresenter extends FoldableContentPresenter implements GalleryFolderContent {
Modified: trunk/src/main/java/org/ourproject/kune/gallery/client/cnt/GalleryFolderContentView.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/gallery/client/cnt/GalleryFolderContentView.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/gallery/client/cnt/GalleryFolderContentView.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,9 +19,10 @@
*/
package org.ourproject.kune.gallery.client.cnt;
-import org.ourproject.kune.platf.client.dto.StateToken;
import org.ourproject.kune.workspace.client.cnt.AbstractContentView;
+import cc.kune.core.shared.dto.StateToken;
+
public interface GalleryFolderContentView extends AbstractContentView {
void addThumb(StateToken token, String title, String imgUrl);
Modified: trunk/src/main/java/org/ourproject/kune/gallery/client/cnt/GalleryViewerPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/gallery/client/cnt/GalleryViewerPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/gallery/client/cnt/GalleryViewerPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,10 +19,11 @@
*/
package org.ourproject.kune.gallery.client.cnt;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.workspace.client.cnt.FoldableContentPanel;
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
public class GalleryViewerPanel extends FoldableContentPanel implements GalleryViewerView {
public GalleryViewerPanel(final WorkspaceSkeleton ws, I18nTranslationService i18n) {
Modified: trunk/src/main/java/org/ourproject/kune/gallery/client/cnt/GalleryViewerPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/gallery/client/cnt/GalleryViewerPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/gallery/client/cnt/GalleryViewerPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -20,16 +20,17 @@
package org.ourproject.kune.gallery.client.cnt;
import org.ourproject.kune.gallery.client.GalleryClientTool;
-import org.ourproject.kune.platf.client.dto.StateContentDTO;
-import org.ourproject.kune.platf.client.i18n.I18nUITranslationService;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.platf.client.ui.download.FileDownloadUtils;
import org.ourproject.kune.platf.client.ui.rte.insertmedia.abstractmedia.MediaUtils;
import org.ourproject.kune.workspace.client.cnt.ActionContentToolbar;
import org.ourproject.kune.workspace.client.cnt.ContentActionRegistry;
import org.ourproject.kune.workspace.client.cnt.FoldableContentPresenter;
+import cc.kune.core.client.i18n.I18nUITranslationService;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.dto.StateContentDTO;
+
import com.calclab.suco.client.ioc.Provider;
public class GalleryViewerPresenter extends FoldableContentPresenter implements GalleryViewer {
Modified: trunk/src/main/java/org/ourproject/kune/gallery/client/ctx/GalleryContextPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/gallery/client/ctx/GalleryContextPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/gallery/client/ctx/GalleryContextPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -20,11 +20,12 @@
package org.ourproject.kune.gallery.client.ctx;
import org.ourproject.kune.gallery.client.GalleryClientTool;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.workspace.client.ctxnav.ContextNavigator;
import org.ourproject.kune.workspace.client.cxt.ContextPropEditor;
import org.ourproject.kune.workspace.client.cxt.FoldableContextPresenter;
+import cc.kune.core.client.state.StateManager;
+
import com.calclab.suco.client.ioc.Provider;
public class GalleryContextPresenter extends FoldableContextPresenter implements GalleryContext {
Modified: trunk/src/main/java/org/ourproject/kune/gallery/server/GalleryServerTool.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/gallery/server/GalleryServerTool.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/gallery/server/GalleryServerTool.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,9 +19,6 @@
*/
package org.ourproject.kune.gallery.server;
-import org.ourproject.kune.platf.client.errors.ContainerNotPermittedException;
-import org.ourproject.kune.platf.client.errors.ContentNotPermittedException;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.server.content.ContainerManager;
import org.ourproject.kune.platf.server.domain.Container;
import org.ourproject.kune.platf.server.domain.Content;
@@ -33,6 +30,10 @@
import org.ourproject.kune.platf.server.tool.ServerToolRegistry;
import org.ourproject.kune.platf.server.tool.ServerToolTarget;
+import cc.kune.core.client.errors.ContainerNotPermittedException;
+import cc.kune.core.client.errors.ContentNotPermittedException;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.google.inject.Inject;
public class GalleryServerTool implements ServerTool {
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/actions/ActionDescriptor.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/actions/ActionDescriptor.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/actions/ActionDescriptor.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,10 +19,11 @@
\*/
package org.ourproject.kune.platf.client.actions;
-import org.ourproject.kune.platf.client.dto.AccessRolDTO;
import org.ourproject.kune.platf.client.services.ImageDescriptor;
import org.ourproject.kune.platf.client.shortcuts.ShortcutDescriptor;
+import cc.kune.core.shared.dto.AccessRolDTO;
+
import com.calclab.suco.client.events.Listener;
import com.calclab.suco.client.events.Listener0;
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/actions/ActionItem.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/actions/ActionItem.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/actions/ActionItem.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,6 +19,7 @@
\*/
package org.ourproject.kune.platf.client.actions;
+
import com.allen_sauer.gwt.log.client.Log;
/**
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/actions/ActionMenuItemDescriptor.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/actions/ActionMenuItemDescriptor.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/actions/ActionMenuItemDescriptor.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,8 +19,9 @@
\*/
package org.ourproject.kune.platf.client.actions;
-import org.ourproject.kune.platf.client.dto.AccessRolDTO;
+import cc.kune.core.shared.dto.AccessRolDTO;
+
import com.calclab.suco.client.events.Listener;
public class ActionMenuItemDescriptor<T> extends ActionDescriptor<T> {
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/actions/ActionRegistry.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/actions/ActionRegistry.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/actions/ActionRegistry.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -21,8 +21,9 @@
import java.util.HashMap;
-import org.ourproject.kune.platf.client.dto.AccessRightsDTO;
+import cc.kune.core.shared.dto.AccessRightsDTO;
+
import com.allen_sauer.gwt.log.client.Log;
public class ActionRegistry<T> {
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/actions/ActionToolbarButtonAndItemDescriptor.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/actions/ActionToolbarButtonAndItemDescriptor.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/actions/ActionToolbarButtonAndItemDescriptor.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,8 +19,9 @@
\*/
package org.ourproject.kune.platf.client.actions;
-import org.ourproject.kune.platf.client.dto.AccessRolDTO;
+import cc.kune.core.shared.dto.AccessRolDTO;
+
import com.calclab.suco.client.events.Listener;
import com.calclab.suco.client.events.Listener0;
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/actions/ActionToolbarButtonDescriptor.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/actions/ActionToolbarButtonDescriptor.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/actions/ActionToolbarButtonDescriptor.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,8 +19,9 @@
\*/
package org.ourproject.kune.platf.client.actions;
-import org.ourproject.kune.platf.client.dto.AccessRolDTO;
+import cc.kune.core.shared.dto.AccessRolDTO;
+
import com.calclab.suco.client.events.Listener;
import com.calclab.suco.client.events.Listener0;
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/actions/ActionToolbarDescriptor.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/actions/ActionToolbarDescriptor.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/actions/ActionToolbarDescriptor.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,8 +19,9 @@
\*/
package org.ourproject.kune.platf.client.actions;
-import org.ourproject.kune.platf.client.dto.AccessRolDTO;
+import cc.kune.core.shared.dto.AccessRolDTO;
+
import com.calclab.suco.client.events.Listener;
import com.calclab.suco.client.events.Listener0;
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/actions/ActionToolbarMenuAndItemDescriptor.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/actions/ActionToolbarMenuAndItemDescriptor.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/actions/ActionToolbarMenuAndItemDescriptor.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,8 +19,9 @@
\*/
package org.ourproject.kune.platf.client.actions;
-import org.ourproject.kune.platf.client.dto.AccessRolDTO;
+import cc.kune.core.shared.dto.AccessRolDTO;
+
import com.calclab.suco.client.events.Listener;
import com.calclab.suco.client.events.Listener0;
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/actions/ActionToolbarMenuCheckItemDescriptor.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/actions/ActionToolbarMenuCheckItemDescriptor.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/actions/ActionToolbarMenuCheckItemDescriptor.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,8 +19,9 @@
*/
package org.ourproject.kune.platf.client.actions;
-import org.ourproject.kune.platf.client.dto.AccessRolDTO;
+import cc.kune.core.shared.dto.AccessRolDTO;
+
import com.calclab.suco.client.events.Listener0;
public class ActionToolbarMenuCheckItemDescriptor<T> extends ActionToolbarMenuDescriptor<T> {
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/actions/ActionToolbarMenuDescriptor.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/actions/ActionToolbarMenuDescriptor.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/actions/ActionToolbarMenuDescriptor.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,8 +19,9 @@
\*/
package org.ourproject.kune.platf.client.actions;
-import org.ourproject.kune.platf.client.dto.AccessRolDTO;
+import cc.kune.core.shared.dto.AccessRolDTO;
+
import com.allen_sauer.gwt.log.client.Log;
import com.calclab.suco.client.events.Listener;
import com.calclab.suco.client.events.Listener0;
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/actions/ActionToolbarMenuRadioDescriptor.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/actions/ActionToolbarMenuRadioDescriptor.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/actions/ActionToolbarMenuRadioDescriptor.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,8 +19,9 @@
*/
package org.ourproject.kune.platf.client.actions;
-import org.ourproject.kune.platf.client.dto.AccessRolDTO;
+import cc.kune.core.shared.dto.AccessRolDTO;
+
import com.calclab.suco.client.events.Listener;
public class ActionToolbarMenuRadioDescriptor<T> extends ActionToolbarMenuDescriptor<T> {
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/actions/ActionToolbarPushButtonDescriptor.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/actions/ActionToolbarPushButtonDescriptor.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/actions/ActionToolbarPushButtonDescriptor.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,7 +1,9 @@
package org.ourproject.kune.platf.client.actions;
-import org.ourproject.kune.platf.client.dto.AccessRolDTO;
+
+import cc.kune.core.shared.dto.AccessRolDTO;
+
import com.calclab.suco.client.events.Listener0;
public class ActionToolbarPushButtonDescriptor<T> extends ActionToolbarButtonDescriptor<T> {
Deleted: trunk/src/main/java/org/ourproject/kune/platf/client/actions/BeforeActionCollection.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/actions/BeforeActionCollection.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/actions/BeforeActionCollection.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,45 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package org.ourproject.kune.platf.client.actions;
-
-import java.util.ArrayList;
-
-/**
- * The Class BeforeActionCollection.
- */
-public class BeforeActionCollection extends ArrayList<BeforeActionListener> {
-
- private static final long serialVersionUID = -1508664709628420137L;
-
- /**
- * Check before action listeners.
- *
- * @return true, if all listener returns true
- */
- public boolean checkBeforeAction() {
- for (BeforeActionListener listener : this) {
- if (!listener.beforeAction()) {
- return false;
- }
- }
- return true;
- }
-
-}
Deleted: trunk/src/main/java/org/ourproject/kune/platf/client/actions/BeforeActionListener.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/actions/BeforeActionListener.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/actions/BeforeActionListener.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,31 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package org.ourproject.kune.platf.client.actions;
-
-public interface BeforeActionListener {
-
- /**
- * Return false to cancel the action
- *
- * @return
- */
- boolean beforeAction();
-
-}
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/actions/common/GotoGroupAction.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/actions/common/GotoGroupAction.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/actions/common/GotoGroupAction.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -3,8 +3,9 @@
import org.ourproject.kune.platf.client.actions.AbstractExtendedAction;
import org.ourproject.kune.platf.client.actions.Action;
import org.ourproject.kune.platf.client.actions.ActionEvent;
-import org.ourproject.kune.platf.client.state.StateManager;
+import cc.kune.core.client.state.StateManager;
+
public class GotoGroupAction extends AbstractExtendedAction {
private final String name;
private final StateManager stateManager;
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/actions/toolbar/ActionToolbarPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/actions/toolbar/ActionToolbarPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/actions/toolbar/ActionToolbarPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -30,6 +30,7 @@
import org.ourproject.kune.platf.client.actions.ActionToolbarPosition;
import org.ourproject.kune.platf.client.actions.ActionToolbarPushButtonDescriptor;
+
import com.allen_sauer.gwt.log.client.Log;
public class ActionToolbarPresenter<T> implements ActionToolbar<T> {
Property changes on: trunk/src/main/java/org/ourproject/kune/platf/client/actions/ui
___________________________________________________________________
Name: svn:ignore
+ *.swp
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/actions/ui/AbstractComposedGuiItem.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/actions/ui/AbstractComposedGuiItem.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/actions/ui/AbstractComposedGuiItem.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -2,8 +2,9 @@
import java.util.List;
-import org.ourproject.kune.platf.client.errors.UIException;
+import cc.kune.core.client.errors.UIException;
+
import com.google.gwt.user.client.ui.Composite;
public abstract class AbstractComposedGuiItem extends Composite {
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/actions/ui/MenuBinding.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/actions/ui/MenuBinding.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/actions/ui/MenuBinding.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,6 +1,6 @@
package org.ourproject.kune.platf.client.actions.ui;
-import org.ourproject.kune.platf.client.errors.UIException;
+import cc.kune.core.client.errors.UIException;
public class MenuBinding extends GuiBindingAdapter {
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/actions/ui/MenuItemBinding.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/actions/ui/MenuItemBinding.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/actions/ui/MenuItemBinding.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,7 +1,8 @@
package org.ourproject.kune.platf.client.actions.ui;
-import org.ourproject.kune.platf.client.errors.UIException;
+import cc.kune.core.client.errors.UIException;
+
import com.gwtext.client.widgets.menu.Item;
public class MenuItemBinding extends GuiBindingAdapter {
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/actions/ui/MenuSeparatorBinding.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/actions/ui/MenuSeparatorBinding.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/actions/ui/MenuSeparatorBinding.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,6 +1,6 @@
package org.ourproject.kune.platf.client.actions.ui;
-import org.ourproject.kune.platf.client.errors.UIException;
+import cc.kune.core.client.errors.UIException;
public class MenuSeparatorBinding extends GuiBindingAdapter {
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/app/ApplicationDefault.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/app/ApplicationDefault.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/app/ApplicationDefault.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,12 +19,13 @@
*/
package org.ourproject.kune.platf.client.app;
-import org.ourproject.kune.platf.client.dto.InitDataDTO;
-import org.ourproject.kune.platf.client.rpc.SiteServiceAsync;
-import org.ourproject.kune.platf.client.state.Session;
import org.ourproject.kune.platf.client.ui.noti.NotifyUser;
import org.ourproject.kune.platf.client.utils.PrefetchUtilities;
+import cc.kune.core.client.rpcservices.SiteServiceAsync;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.shared.dto.InitDataDTO;
+
import com.allen_sauer.gwt.log.client.Log;
import com.calclab.suco.client.events.Event;
import com.calclab.suco.client.events.Event0;
Deleted: trunk/src/main/java/org/ourproject/kune/platf/client/app/HistoryWrapper.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/app/HistoryWrapper.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/app/HistoryWrapper.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,28 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package org.ourproject.kune.platf.client.app;
-
-public interface HistoryWrapper {
-
- String getToken();
-
- void newItem(final String historyToken);
-
-}
\ No newline at end of file
Deleted: trunk/src/main/java/org/ourproject/kune/platf/client/app/HistoryWrapperDefault.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/app/HistoryWrapperDefault.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/app/HistoryWrapperDefault.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,34 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package org.ourproject.kune.platf.client.app;
-
-import com.google.gwt.user.client.History;
-
-public class HistoryWrapperDefault implements HistoryWrapper {
-
- public String getToken() {
- return History.getToken();
- }
-
- public void newItem(final String historyToken) {
- History.newItem(historyToken);
- }
-
-}
Deleted: trunk/src/main/java/org/ourproject/kune/platf/client/errors/AccessViolationException.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/errors/AccessViolationException.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/errors/AccessViolationException.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,24 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package org.ourproject.kune.platf.client.errors;
-
-public class AccessViolationException extends DefaultException {
- private static final long serialVersionUID = -3786772632052256999L;
-}
Deleted: trunk/src/main/java/org/ourproject/kune/platf/client/errors/AlreadyGroupMemberException.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/errors/AlreadyGroupMemberException.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/errors/AlreadyGroupMemberException.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,24 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package org.ourproject.kune.platf.client.errors;
-
-public class AlreadyGroupMemberException extends DefaultException {
- private static final long serialVersionUID = 6663958867752546481L;
-}
Deleted: trunk/src/main/java/org/ourproject/kune/platf/client/errors/AlreadyUserMemberException.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/errors/AlreadyUserMemberException.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/errors/AlreadyUserMemberException.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,24 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package org.ourproject.kune.platf.client.errors;
-
-public class AlreadyUserMemberException extends DefaultException {
- private static final long serialVersionUID = -6365615768192330492L;
-}
Deleted: trunk/src/main/java/org/ourproject/kune/platf/client/errors/ContainerNotPermittedException.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/errors/ContainerNotPermittedException.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/errors/ContainerNotPermittedException.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,24 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package org.ourproject.kune.platf.client.errors;
-
-public class ContainerNotPermittedException extends DefaultException {
- private static final long serialVersionUID = 6866318170714609691L;
-}
Deleted: trunk/src/main/java/org/ourproject/kune/platf/client/errors/ContentNotFoundException.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/errors/ContentNotFoundException.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/errors/ContentNotFoundException.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,24 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package org.ourproject.kune.platf.client.errors;
-
-public class ContentNotFoundException extends DefaultException {
- private static final long serialVersionUID = -4641212341448422627L;
-}
Deleted: trunk/src/main/java/org/ourproject/kune/platf/client/errors/ContentNotPermittedException.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/errors/ContentNotPermittedException.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/errors/ContentNotPermittedException.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,24 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package org.ourproject.kune.platf.client.errors;
-
-public class ContentNotPermittedException extends DefaultException {
- private static final long serialVersionUID = 4771568826852748873L;
-}
Deleted: trunk/src/main/java/org/ourproject/kune/platf/client/errors/DefaultException.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/errors/DefaultException.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/errors/DefaultException.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,40 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- \*/
-package org.ourproject.kune.platf.client.errors;
-
-import com.google.gwt.user.client.rpc.IsSerializable;
-import com.google.gwt.user.client.rpc.StatusCodeException;
-
-public class DefaultException extends StatusCodeException implements IsSerializable {
-
- private static final long serialVersionUID = -6111471089427505005L;
-
- public DefaultException() {
- this(0, "");
- }
-
- public DefaultException(final int statusCode, final String message) {
- super(statusCode, message);
- }
-
- public DefaultException(final String message) {
- this(0, message);
- }
-}
Deleted: trunk/src/main/java/org/ourproject/kune/platf/client/errors/EmailAddressInUseException.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/errors/EmailAddressInUseException.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/errors/EmailAddressInUseException.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,24 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package org.ourproject.kune.platf.client.errors;
-
-public class EmailAddressInUseException extends DefaultException {
- private static final long serialVersionUID = 3740509040361715407L;
-}
Deleted: trunk/src/main/java/org/ourproject/kune/platf/client/errors/GroupNameInUseException.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/errors/GroupNameInUseException.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/errors/GroupNameInUseException.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,24 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package org.ourproject.kune.platf.client.errors;
-
-public class GroupNameInUseException extends DefaultException {
- private static final long serialVersionUID = -4746775725822225687L;
-}
Deleted: trunk/src/main/java/org/ourproject/kune/platf/client/errors/GroupNotFoundException.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/errors/GroupNotFoundException.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/errors/GroupNotFoundException.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,24 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package org.ourproject.kune.platf.client.errors;
-
-public class GroupNotFoundException extends DefaultException {
- private static final long serialVersionUID = 2358855015943550817L;
-}
Deleted: trunk/src/main/java/org/ourproject/kune/platf/client/errors/I18nNotFoundException.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/errors/I18nNotFoundException.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/errors/I18nNotFoundException.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,24 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package org.ourproject.kune.platf.client.errors;
-
-public class I18nNotFoundException extends DefaultException {
- private static final long serialVersionUID = -2400899465805236215L;
-}
Deleted: trunk/src/main/java/org/ourproject/kune/platf/client/errors/LastAdminInGroupException.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/errors/LastAdminInGroupException.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/errors/LastAdminInGroupException.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,24 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package org.ourproject.kune.platf.client.errors;
-
-public class LastAdminInGroupException extends DefaultException {
- private static final long serialVersionUID = -8727443733339361388L;
-}
Deleted: trunk/src/main/java/org/ourproject/kune/platf/client/errors/NameInUseException.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/errors/NameInUseException.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/errors/NameInUseException.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,24 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package org.ourproject.kune.platf.client.errors;
-
-public class NameInUseException extends DefaultException {
- private static final long serialVersionUID = 4890594846432830537L;
-}
Deleted: trunk/src/main/java/org/ourproject/kune/platf/client/errors/NameNotPermittedException.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/errors/NameNotPermittedException.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/errors/NameNotPermittedException.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,24 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package org.ourproject.kune.platf.client.errors;
-
-public class NameNotPermittedException extends DefaultException {
- private static final long serialVersionUID = -8022844560909422614L;
-}
Deleted: trunk/src/main/java/org/ourproject/kune/platf/client/errors/NoDefaultContentException.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/errors/NoDefaultContentException.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/errors/NoDefaultContentException.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,24 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package org.ourproject.kune.platf.client.errors;
-
-public class NoDefaultContentException extends DefaultException {
- private static final long serialVersionUID = 7443824340580555859L;
-}
Deleted: trunk/src/main/java/org/ourproject/kune/platf/client/errors/SessionExpiredException.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/errors/SessionExpiredException.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/errors/SessionExpiredException.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,24 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package org.ourproject.kune.platf.client.errors;
-
-public class SessionExpiredException extends DefaultException {
- private static final long serialVersionUID = -1603881986661302041L;
-}
Deleted: trunk/src/main/java/org/ourproject/kune/platf/client/errors/ToolNotFoundException.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/errors/ToolNotFoundException.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/errors/ToolNotFoundException.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,24 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package org.ourproject.kune.platf.client.errors;
-
-public class ToolNotFoundException extends DefaultException {
- private static final long serialVersionUID = 472511647264356558L;
-}
Deleted: trunk/src/main/java/org/ourproject/kune/platf/client/errors/UIException.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/errors/UIException.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/errors/UIException.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,43 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package org.ourproject.kune.platf.client.errors;
-
-import com.allen_sauer.gwt.log.client.Log;
-
-public class UIException extends RuntimeException {
-
- private static final long serialVersionUID = -1327164226202923181L;
-
- public UIException(final String text) {
- super(text);
- Log.error(text);
- }
-
- public UIException(final String text, final Throwable cause) {
- super(text, cause);
- Log.error(text, cause);
- }
-
- public UIException(final Throwable cause) {
- super(cause);
- Log.error("UIException", cause);
- }
-
-}
Deleted: trunk/src/main/java/org/ourproject/kune/platf/client/errors/UnknownPropertyException.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/errors/UnknownPropertyException.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/errors/UnknownPropertyException.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,28 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package org.ourproject.kune.platf.client.errors;
-
-public class UnknownPropertyException extends DefaultException {
- private static final long serialVersionUID = -5921396887476497824L;
-
- public UnknownPropertyException(final String message) {
- super(message);
- }
-}
Deleted: trunk/src/main/java/org/ourproject/kune/platf/client/errors/UserAuthException.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/errors/UserAuthException.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/errors/UserAuthException.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,24 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package org.ourproject.kune.platf.client.errors;
-
-public class UserAuthException extends DefaultException {
- private static final long serialVersionUID = -8383513776573054971L;
-}
Deleted: trunk/src/main/java/org/ourproject/kune/platf/client/errors/UserMustBeLoggedException.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/errors/UserMustBeLoggedException.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/errors/UserMustBeLoggedException.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,24 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package org.ourproject.kune.platf.client.errors;
-
-public class UserMustBeLoggedException extends DefaultException {
- private static final long serialVersionUID = -5091069990899662849L;
-}
Deleted: trunk/src/main/java/org/ourproject/kune/platf/client/errors/UserNotFoundException.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/errors/UserNotFoundException.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/errors/UserNotFoundException.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,24 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package org.ourproject.kune.platf.client.errors;
-
-public class UserNotFoundException extends DefaultException {
- private static final long serialVersionUID = 6207713694613166661L;
-}
Deleted: trunk/src/main/java/org/ourproject/kune/platf/client/i18n/I18nChangeListener.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/i18n/I18nChangeListener.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/i18n/I18nChangeListener.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,27 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package org.ourproject.kune.platf.client.i18n;
-
-import com.google.gwt.user.client.EventListener;
-
-public interface I18nChangeListener extends EventListener {
-
- void onI18nLanguageChange();
-}
Deleted: trunk/src/main/java/org/ourproject/kune/platf/client/i18n/I18nChangeListenerCollection.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/i18n/I18nChangeListenerCollection.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/i18n/I18nChangeListenerCollection.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,42 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package org.ourproject.kune.platf.client.i18n;
-
-import java.util.ArrayList;
-
-/**
- * A helper class for implementers of the SourcesI18nChangeEvents interface.
- * This subclass of {@link ArrayList} assumes that all objects added to it will
- * be of type {@link org.ourproject.kune.platf.client.i18n.I18nChangeListener}.
- */
-public class I18nChangeListenerCollection extends ArrayList<I18nChangeListener> {
-
- private static final long serialVersionUID = -2435290836445582410L;
-
- /**
- * Fires a locale change event to all listeners.
- *
- */
- public void fireI18nLanguageChange() {
- for (I18nChangeListener listener : this) {
- listener.onI18nLanguageChange();
- }
- }
-}
Deleted: trunk/src/main/java/org/ourproject/kune/platf/client/i18n/I18nTranslationService.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/i18n/I18nTranslationService.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/i18n/I18nTranslationService.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,137 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package org.ourproject.kune.platf.client.i18n;
-
-public abstract class I18nTranslationService {
- protected static final String TRANSLATION_NOTE_REGEXP = " (\\[)%NT (.*)(\\])$";
- protected static final String NOTE_FOR_TRANSLATOR_TAG_BEGIN = " [%NT ";
- protected static final String NOTE_FOR_TRANSLATOR_TAG_END = "]";
- // Also in I18nTranslation
- protected static final String UNTRANSLATED_VALUE = null;
-
- public String decodeHtml(final String textToDecode) {
- String text = textToDecode;
- // text = text.replaceAll("©", "©");
- return text;
- }
-
- public String removeNT(final String string) {
- return string.replaceAll(TRANSLATION_NOTE_REGEXP, "");
- }
-
- /**
- * In production, this method uses a hashmap. In development, if the text is
- * not in the hashmap, it makes a server petition (that stores the text
- * pending for translation in db).
- *
- * Warning: text is escaped as html before insert in the db. Don't use html
- * here (o user this method with params).
- *
- * @param text
- * @return text translated in the current language
- */
- // @PMD:REVIEWED:ShortMethodName: by vjrj on 21/05/09 13:49
- public abstract String t(final String text);
-
- /**
- * Use [%d] to reference the Integer parameters
- *
- */
- // @PMD:REVIEWED:ShortMethodName: by vjrj on 21/05/09 13:50
- public String t(final String text, final Integer... args) {
- String translation = t(text);
- for (Integer arg : args) {
- translation = translation.replaceFirst("\\[%d\\]", arg.toString());
- }
- return decodeHtml(translation);
- }
-
- /**
- * Use [%d] to reference the Long parameter
- *
- */
- // @PMD:REVIEWED:ShortMethodName: by vjrj on 21/05/09 13:50
- public String t(final String text, final Long... args) {
- String translation = t(text);
- for (Long arg : args) {
- translation = translation.replaceFirst("\\[%d\\]", arg.toString());
- }
- return decodeHtml(translation);
- }
-
- /**
- * Use [%s] to reference the string parameter
- *
- */
- // @PMD:REVIEWED:ShortMethodName: by vjrj on 21/05/09 13:50
- public String t(final String text, final String... args) {
- String translation = t(text);
- for (String arg : args) {
- translation = translation.replaceFirst("\\[%s\\]", arg);
- }
- return decodeHtml(translation);
- }
-
- /**
- * Adds [%NT noteForTranslators] at the end of text. This tag is later
- * renderer in the translator panel to inform translator how to do this
- * translation
- *
- */
- public String tWithNT(final String text, final String noteForTranslators) {
- return t(text + NOTE_FOR_TRANSLATOR_TAG_BEGIN + noteForTranslators + NOTE_FOR_TRANSLATOR_TAG_END);
- }
-
- /**
- * Use [%d] to reference the Integer parameter.
- *
- * Also adds [%NT noteForTranslators] at the end of text. This tag is later
- * renderer in the translator panel to inform translator how to do this
- * translation
- *
- */
- public String tWithNT(final String text, final String noteForTranslators, final Integer... args) {
- return t(text + NOTE_FOR_TRANSLATOR_TAG_BEGIN + noteForTranslators + NOTE_FOR_TRANSLATOR_TAG_END, args);
- }
-
- /**
- * Use [%d] to reference the Long parameter.
- *
- * Also adds [%NT noteForTranslators] at the end of text. This tag is later
- * renderer in the translator panel to inform translator how to do this
- * translation
- *
- */
- public String tWithNT(final String text, final String noteForTranslators, final Long... args) {
- return t(text + NOTE_FOR_TRANSLATOR_TAG_BEGIN + noteForTranslators + NOTE_FOR_TRANSLATOR_TAG_END, args);
- }
-
- /**
- * Use [%s] to reference the String parameter.
- *
- * Also adds [%NT noteForTranslators] at the end of text. This tag is later
- * renderer in the translator panel to inform translator how to do this
- * translation
- *
- */
- public String tWithNT(final String text, final String noteForTranslators, final String... args) {
- return t(text + NOTE_FOR_TRANSLATOR_TAG_BEGIN + noteForTranslators + NOTE_FOR_TRANSLATOR_TAG_END, args);
- }
-}
Deleted: trunk/src/main/java/org/ourproject/kune/platf/client/i18n/I18nTranslationServiceMocked.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/i18n/I18nTranslationServiceMocked.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/i18n/I18nTranslationServiceMocked.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,30 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package org.ourproject.kune.platf.client.i18n;
-
-import org.ourproject.kune.platf.client.ui.TextUtils;
-
-public class I18nTranslationServiceMocked extends I18nTranslationService {
- public String t(final String text) {
- String encodeText = TextUtils.escapeHtmlLight(text);
- String translation = removeNT(encodeText);
- return decodeHtml(translation);
- }
-}
Deleted: trunk/src/main/java/org/ourproject/kune/platf/client/i18n/I18nUITranslationService.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/i18n/I18nUITranslationService.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/i18n/I18nUITranslationService.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,235 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package org.ourproject.kune.platf.client.i18n;
-
-import java.util.Date;
-import java.util.HashMap;
-
-import org.ourproject.kune.platf.client.dto.I18nLanguageDTO;
-import org.ourproject.kune.platf.client.rpc.I18nServiceAsync;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.ui.Location;
-import org.ourproject.kune.platf.client.ui.TextUtils;
-import org.ourproject.kune.platf.client.ui.WindowUtils;
-
-import com.allen_sauer.gwt.log.client.Log;
-import com.calclab.suco.client.events.Listener0;
-import com.google.gwt.i18n.client.DateTimeFormat;
-import com.google.gwt.user.client.rpc.AsyncCallback;
-
-public class I18nUITranslationService extends I18nTranslationService {
- private HashMap<String, String> lexicon;
- private String currentLanguageCode;
- private I18nChangeListenerCollection i18nChangeListeners;
- private I18nLanguageDTO currentLang;
- private I18nServiceAsync i18nService;
- private Session session;
-
- /*
- * If a UI element need to be fired when (for instance) the language changes
- * use this. Useful if you widget have to take in account text language
- * direction, for instance.
- */
- public void addI18nChangeListener(final I18nChangeListener listener) {
- if (i18nChangeListeners == null) {
- i18nChangeListeners = new I18nChangeListenerCollection();
- }
- i18nChangeListeners.add(listener);
- }
-
- public void changeCurrentLanguage(final String newLanguage) {
- if (!newLanguage.equals(this.currentLanguageCode)) {
- setCurrentLanguage(newLanguage);
- changeLocale(newLanguage);
- }
- }
-
- public String formatDateWithLocale(final Date date) {
- return formatDateWithLocale(date, false);
- }
-
- public String formatDateWithLocale(final Date date, final boolean shortFormat) {
- String dateFormat = shortFormat ? currentLang.getDateFormatShort() : currentLang.getDateFormat();
-
- final DateTimeFormat fmt;
- if (dateFormat == null) {
- fmt = DateTimeFormat.getFormat("M/d/yyyy h:mm a");
- } else {
- if (shortFormat) {
- fmt = DateTimeFormat.getFormat(dateFormat + " h:mm a");
- } else {
- final String abrevMonthInEnglish = DateTimeFormat.getFormat("MMM").format(date);
- final String monthToTranslate = abrevMonthInEnglish + " [%NT abbreviated month]";
- dateFormat = dateFormat.replaceFirst("MMM", "'" + t(monthToTranslate) + "'");
- fmt = DateTimeFormat.getFormat(dateFormat + " h:mm a");
- }
- }
- final String dateFormated = fmt.format(date);
- return dateFormated;
- }
-
- public String getCurrentLanguage() {
- return currentLanguageCode;
- }
-
- public HashMap<String, String> getLexicon() {
- return lexicon;
- }
-
- public void init(final I18nServiceAsync i18nService, final Session session, final Listener0 onReady) {
- this.i18nService = i18nService;
- this.session = session;
- final Location loc = WindowUtils.getLocation();
- final String locale = loc.getParameter("locale");
- i18nService.getInitialLanguage(locale, new AsyncCallback<I18nLanguageDTO>() {
- public void onFailure(final Throwable caught) {
- Log.error("Workspace adaptation to your language failed: " + caught.getMessage());
- }
-
- public void onSuccess(final I18nLanguageDTO result) {
- currentLang = result;
- currentLanguageCode = currentLang.getCode();
- session.setCurrentLanguage(currentLang);
- i18nService.getLexicon(currentLang.getCode(), new AsyncCallback<HashMap<String, String>>() {
- public void onFailure(final Throwable caught) {
- Log.error("Workspace adaptation to your language failed:" + caught.getMessage());
- }
-
- public void onSuccess(final HashMap<String, String> result) {
- lexicon = result;
- onReady.onEvent();
- }
- });
- }
- });
- }
-
- public void removeI18nChangeListener(final I18nChangeListener listener) {
- if (i18nChangeListeners != null) {
- i18nChangeListeners.remove(listener);
- }
- }
-
- public void setCurrentLanguage(final String newLanguage) {
- this.currentLanguageCode = newLanguage;
- }
-
- public void setLexicon(final HashMap<String, String> lexicon) {
- this.lexicon = lexicon;
- fireI18nLanguageChange();
- }
-
- public void setTranslationAfterSave(final String text, final String translation) {
- lexicon.put(text, translation);
- fireI18nLanguageChange();
- }
-
- /**
- * In production, this method uses a hashmap. In development, if the text is
- * not in the hashmap, it makes a server petition (that stores the text
- * pending for translation in db).
- *
- * Warning: text is escaped as html before insert in the db. Don't use html
- * here (o user this method with params).
- *
- * @param text
- * @return text translated in the current language
- */
- @Override
- public String t(final String text) {
- final String encodeText = TextUtils.escapeHtmlLight(text);
- String translation = lexicon.get(encodeText);
- if (lexicon.containsKey(encodeText)) {
- if (translation == UNTRANSLATED_VALUE) {
- // Not translated but in db, return text
- translation = removeNT(encodeText);
- }
- } else {
- // Not translated and not in db, make a petition for translation
- if (session.isLogged()) {
- i18nService.getTranslation(session.getUserHash(), currentLanguageCode, text,
- new AsyncCallback<String>() {
- public void onFailure(final Throwable caught) {
- }
-
- public void onSuccess(final String result) {
- }
- });
- Log.debug("Registering in db '" + text + "' as pending translation");
- lexicon.put(encodeText, UNTRANSLATED_VALUE);
- }
- translation = removeNT(encodeText);
- }
- return decodeHtml(translation);
- }
-
- /**
- *
- * See in:
- * http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread
- * /5e4e25050d3be984/7035ec39354d06aa?lnk=gst&q=get+locale&rnum=23
- *
- * JSNI method to change the locale of the application - it effectively
- * parses the existing URL and creates a new one for the chosen locale.
- *
- * It additionally launches any JavaScript debugger that might be attached
- * to the system (Windows only). To disable this functionality just remove
- * the "debugger" line.
- *
- * @param newLocale
- * String value of the new locale to go to.
- */
- private native void changeLocale(String newLocale)
- /*-{
- // Uncomment the "debugger;" line to see how to set debug statements in JSNI code
- // When in web mode, if your browser has a JavaScript debugger attached, it will
- // launch at this point in the code (when the user changes locale through the menu system).
- // debugger;
-
- // Get the current location
- var currLocation = $wnd.location.toString();
- // Get rid of any GWT History tokens that might be present
- var noHistoryCurrLocArray = currLocation.split("#");
- var noHistoryCurrLoc = noHistoryCurrLocArray[0];
- var currHistory = noHistoryCurrLocArray[1];
- // Get rid of any locale string
- var locArray = noHistoryCurrLoc.split("?");
- // Build the new href location and then send the browser there.
- // $wnd.location.href = locArray[0]+"?locale="+newLocale+"#"+currHistory;
- $wnd.location.href = locArray[0]+"?locale="+newLocale
-
- // extjs part:
- // commented because the error: "Ext is not defined"
- // we have to try other way
- // var head = document.getElementsByTagName("head")[0];
- // var script = document.createElement('script');
- // script.id = 'localScript';
- // script.type = 'text/javascript';
- // script.src = "js/ext/locale/ext-lang-"+newLocale+".js";
- // head.appendChild(script);
- }-*/;
-
- private void fireI18nLanguageChange() {
- if (i18nChangeListeners != null) {
- i18nChangeListeners.fireI18nLanguageChange();
- }
- }
-
-}
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/i18n/Resources.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/i18n/Resources.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/i18n/Resources.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,5 +1,7 @@
package org.ourproject.kune.platf.client.i18n;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
public class Resources {
public static I18nTranslationService i18n;
Deleted: trunk/src/main/java/org/ourproject/kune/platf/client/rpc/AsyncCallbackSimple.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/rpc/AsyncCallbackSimple.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/rpc/AsyncCallbackSimple.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,38 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package org.ourproject.kune.platf.client.rpc;
-
-import org.ourproject.kune.platf.client.services.ErrorHandler;
-
-import com.google.gwt.user.client.rpc.AsyncCallback;
-
-public abstract class AsyncCallbackSimple<T> implements AsyncCallback<T> {
-
- private static ErrorHandler errorHandler;
-
- public static void init(ErrorHandler kuneErrorHandler) {
- errorHandler = kuneErrorHandler;
- }
-
- public void onFailure(final Throwable caught) {
- errorHandler.process(caught);
- }
-
-}
Deleted: trunk/src/main/java/org/ourproject/kune/platf/client/rpc/ContentService.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/rpc/ContentService.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/rpc/ContentService.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,88 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package org.ourproject.kune.platf.client.rpc;
-
-import java.util.Date;
-
-import org.ourproject.kune.platf.client.dto.CommentDTO;
-import org.ourproject.kune.platf.client.dto.ContentSimpleDTO;
-import org.ourproject.kune.platf.client.dto.ContentStatusDTO;
-import org.ourproject.kune.platf.client.dto.I18nLanguageDTO;
-import org.ourproject.kune.platf.client.dto.RateResultDTO;
-import org.ourproject.kune.platf.client.dto.StateAbstractDTO;
-import org.ourproject.kune.platf.client.dto.StateContainerDTO;
-import org.ourproject.kune.platf.client.dto.StateContentDTO;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.dto.TagCloudResultDTO;
-import org.ourproject.kune.platf.client.errors.DefaultException;
-
-import com.google.gwt.user.client.rpc.RemoteService;
-
-public interface ContentService extends RemoteService {
-
- void addAuthor(String userHash, StateToken token, String authorShortName) throws DefaultException;
-
- CommentDTO addComment(String userHash, StateToken token, Long parentCommentId, String commentText)
- throws DefaultException;
-
- CommentDTO addComment(String userHash, StateToken token, String commentText) throws DefaultException;
-
- StateContentDTO addContent(String user, StateToken parentToken, String name, String typeId) throws DefaultException;
-
- StateContainerDTO addFolder(String hash, StateToken parentToken, String typeId, String title)
- throws DefaultException;
-
- StateContainerDTO addRoom(String user, StateToken parentToken, String name) throws DefaultException;
-
- StateContentDTO addWave(String userHash, StateToken parentToken, String waveFileType, String waveId);
-
- StateContentDTO delContent(String userHash, StateToken token) throws DefaultException;
-
- StateAbstractDTO getContent(String userHash, StateToken token) throws DefaultException;
-
- TagCloudResultDTO getSummaryTags(String userHash, StateToken groupToken) throws DefaultException;
-
- CommentDTO markCommentAsAbuse(String userHash, StateToken token, Long commentId) throws DefaultException;
-
- RateResultDTO rateContent(String userHash, StateToken token, Double value) throws DefaultException;
-
- void removeAuthor(String userHash, StateToken token, String authorShortName) throws DefaultException;
-
- StateAbstractDTO renameContainer(String userHash, StateToken token, String newName) throws DefaultException;
-
- StateAbstractDTO renameContent(String userHash, StateToken token, String newName) throws DefaultException;
-
- void save(String user, StateToken token, String content) throws DefaultException;
-
- ContentSimpleDTO setAsDefaultContent(String userHash, StateToken token);
-
- I18nLanguageDTO setLanguage(String userHash, StateToken token, String languageCode) throws DefaultException;
-
- void setPublishedOn(String userHash, StateToken token, Date date) throws DefaultException;
-
- StateAbstractDTO setStatus(String userHash, StateToken stateToken, ContentStatusDTO status);
-
- StateAbstractDTO setStatusAsAdmin(String userHash, StateToken stateToken, ContentStatusDTO status);
-
- TagCloudResultDTO setTags(String userHash, StateToken token, String tags) throws DefaultException;
-
- CommentDTO voteComment(String userHash, StateToken token, Long commentId, boolean votePositive)
- throws DefaultException;
-}
Deleted: trunk/src/main/java/org/ourproject/kune/platf/client/rpc/ContentServiceAsync.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/rpc/ContentServiceAsync.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/rpc/ContentServiceAsync.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,93 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package org.ourproject.kune.platf.client.rpc;
-
-import java.util.Date;
-
-import org.ourproject.kune.platf.client.dto.CommentDTO;
-import org.ourproject.kune.platf.client.dto.ContentSimpleDTO;
-import org.ourproject.kune.platf.client.dto.ContentStatusDTO;
-import org.ourproject.kune.platf.client.dto.I18nLanguageDTO;
-import org.ourproject.kune.platf.client.dto.RateResultDTO;
-import org.ourproject.kune.platf.client.dto.StateAbstractDTO;
-import org.ourproject.kune.platf.client.dto.StateContainerDTO;
-import org.ourproject.kune.platf.client.dto.StateContentDTO;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.dto.TagCloudResultDTO;
-
-import com.google.gwt.user.client.rpc.AsyncCallback;
-
-public interface ContentServiceAsync {
-
- void addAuthor(String userHash, StateToken token, String authorShortName, AsyncCallback<Void> asyncCallback);
-
- void addComment(String userHash, StateToken token, Long parentCommentId, String commentText,
- AsyncCallback<CommentDTO> asyncCallback);
-
- void addComment(String userHash, StateToken token, String commentText, AsyncCallback<CommentDTO> asyncCallback);
-
- void addContent(String user, StateToken parentToken, String name, String typeId,
- AsyncCallback<StateContentDTO> callback);
-
- void addFolder(String hash, StateToken parentToken, String title, String typeId,
- AsyncCallback<StateContainerDTO> callback);
-
- void addRoom(String user, StateToken parentToken, String name, AsyncCallback<StateContainerDTO> callback);
-
- void addWave(String userHash, StateToken parentToken, String waveFileType, String waveId,
- AsyncCallback<StateContentDTO> asyncCallbackSimple);
-
- void delContent(String userHash, StateToken token, AsyncCallback<StateContentDTO> asyncCallback);
-
- void getContent(String user, StateToken newState, AsyncCallback<StateAbstractDTO> callback);
-
- void getSummaryTags(String userHash, StateToken groupToken, AsyncCallback<TagCloudResultDTO> asyncCallback);
-
- void markCommentAsAbuse(String userHash, StateToken token, Long commentId, AsyncCallback<CommentDTO> asyncCallback);
-
- void rateContent(String userHash, StateToken token, Double value, AsyncCallback<RateResultDTO> asyncCallback);
-
- void removeAuthor(String userHash, StateToken token, String authorShortName, AsyncCallback<Void> asyncCallback);
-
- void renameContainer(String userHash, StateToken token, String newName,
- AsyncCallback<StateAbstractDTO> asyncCallback);
-
- void renameContent(String userHash, StateToken token, String newName, AsyncCallback<StateAbstractDTO> asyncCallback);
-
- void save(String user, StateToken token, String content, AsyncCallback<Void> asyncCallback);
-
- void setAsDefaultContent(String userHash, StateToken token, AsyncCallback<ContentSimpleDTO> asyncCallback);
-
- void setLanguage(String userHash, StateToken token, String languageCode,
- AsyncCallback<I18nLanguageDTO> asyncCallback);
-
- void setPublishedOn(String userHash, StateToken token, Date publishedOn, AsyncCallback<Void> asyncCallback);
-
- void setStatus(String userHash, StateToken stateToken, ContentStatusDTO status,
- AsyncCallback<StateAbstractDTO> asyncCallback);
-
- void setStatusAsAdmin(String userHash, StateToken stateToken, ContentStatusDTO status,
- AsyncCallback<StateAbstractDTO> asyncCallback);
-
- void setTags(String userHash, StateToken token, String tags, AsyncCallback<TagCloudResultDTO> asyncCallback);
-
- void voteComment(String userHash, StateToken token, Long commentId, boolean votePositive,
- AsyncCallback<CommentDTO> asyncCallback);
-}
Deleted: trunk/src/main/java/org/ourproject/kune/platf/client/rpc/GroupService.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/rpc/GroupService.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/rpc/GroupService.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,52 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package org.ourproject.kune.platf.client.rpc;
-
-import org.ourproject.kune.platf.client.dto.AdmissionTypeDTO;
-import org.ourproject.kune.platf.client.dto.GroupDTO;
-import org.ourproject.kune.platf.client.dto.LicenseDTO;
-import org.ourproject.kune.platf.client.dto.SocialNetworkVisibilityDTO;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.errors.DefaultException;
-
-import com.google.gwt.user.client.rpc.RemoteService;
-
-public interface GroupService extends RemoteService {
-
- void changeDefLicense(final String userHash, final StateToken groupToken, final LicenseDTO license);
-
- void changeGroupWsTheme(String userHash, StateToken groupToken, String theme) throws DefaultException;
-
- GroupDTO clearGroupBackImage(String userHash, StateToken token);
-
- StateToken createNewGroup(String userHash, GroupDTO group, String publicDesc, String tags, String[] enabledTools)
- throws DefaultException;
-
- GroupDTO getGroup(String userHash, StateToken token);
-
- GroupDTO setGroupBackImage(String userHash, StateToken token);
-
- void setGroupNewMembersJoiningPolicy(String userHash, StateToken groupToken, AdmissionTypeDTO admissionPolicy);
-
- void setSocialNetworkVisibility(String userHash, StateToken groupToken, SocialNetworkVisibilityDTO visibility);
-
- void setToolEnabled(String userHash, StateToken groupToken, String toolName, boolean enabled);
-
-}
Deleted: trunk/src/main/java/org/ourproject/kune/platf/client/rpc/GroupServiceAsync.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/rpc/GroupServiceAsync.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/rpc/GroupServiceAsync.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,55 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package org.ourproject.kune.platf.client.rpc;
-
-import org.ourproject.kune.platf.client.dto.AdmissionTypeDTO;
-import org.ourproject.kune.platf.client.dto.GroupDTO;
-import org.ourproject.kune.platf.client.dto.LicenseDTO;
-import org.ourproject.kune.platf.client.dto.SocialNetworkVisibilityDTO;
-import org.ourproject.kune.platf.client.dto.StateToken;
-
-import com.google.gwt.user.client.rpc.AsyncCallback;
-
-public interface GroupServiceAsync {
-
- void changeDefLicense(final String userHash, final StateToken groupToken, final LicenseDTO license,
- AsyncCallback<Void> asyncCallback);
-
- void changeGroupWsTheme(String userHash, StateToken groupToken, String theme, AsyncCallback<Void> callback);
-
- void clearGroupBackImage(String userHash, StateToken token, AsyncCallback<GroupDTO> asyncCallback);
-
- void createNewGroup(String userHash, GroupDTO group, String publicDesc, String tags, String[] enabledTools,
- AsyncCallback<StateToken> callback);
-
- void getGroup(String userHash, StateToken token, AsyncCallback<GroupDTO> asyncCallback);
-
- void setGroupBackImage(String userHash, StateToken token, AsyncCallback<GroupDTO> asyncCallback);
-
- void setGroupNewMembersJoiningPolicy(String userHash, StateToken groupToken, AdmissionTypeDTO admissionPolicy,
- AsyncCallback<Void> asyncCallback);
-
- void setSocialNetworkVisibility(String userHash, StateToken token, SocialNetworkVisibilityDTO visibility,
- AsyncCallback<Void> asyncCallback);
-
- void setToolEnabled(String userHash, StateToken groupToken, String toolName, boolean enabled,
- AsyncCallback<Void> asyncCallback);
-
-}
Deleted: trunk/src/main/java/org/ourproject/kune/platf/client/rpc/I18nService.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/rpc/I18nService.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/rpc/I18nService.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,39 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package org.ourproject.kune.platf.client.rpc;
-
-import java.util.HashMap;
-
-import org.ourproject.kune.platf.client.dto.I18nLanguageDTO;
-import org.ourproject.kune.platf.client.errors.DefaultException;
-
-import com.google.gwt.user.client.rpc.RemoteService;
-
-public interface I18nService extends RemoteService {
-
- I18nLanguageDTO getInitialLanguage(String localeParam);
-
- HashMap<String, String> getLexicon(String language);
-
- String getTranslation(String userHash, String language, String text);
-
- String setTranslation(String userHash, String id, String translation) throws DefaultException;
-
-}
Deleted: trunk/src/main/java/org/ourproject/kune/platf/client/rpc/I18nServiceAsync.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/rpc/I18nServiceAsync.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/rpc/I18nServiceAsync.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,38 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package org.ourproject.kune.platf.client.rpc;
-
-import java.util.HashMap;
-
-import org.ourproject.kune.platf.client.dto.I18nLanguageDTO;
-
-import com.google.gwt.user.client.rpc.AsyncCallback;
-
-public interface I18nServiceAsync {
-
- void getLexicon(String language, AsyncCallback<HashMap<String, String>> callback);
-
- void getTranslation(String userHash, String language, String text, AsyncCallback<String> callback);
-
- void setTranslation(String userHash, String id, String translation, AsyncCallback<String> asyncCallback);
-
- void getInitialLanguage(String localeParam, AsyncCallback<I18nLanguageDTO> callback);
-
-}
Deleted: trunk/src/main/java/org/ourproject/kune/platf/client/rpc/SiteService.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/rpc/SiteService.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/rpc/SiteService.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,31 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package org.ourproject.kune.platf.client.rpc;
-
-import org.ourproject.kune.platf.client.dto.InitDataDTO;
-import org.ourproject.kune.platf.client.errors.DefaultException;
-
-import com.google.gwt.user.client.rpc.RemoteService;
-
-public interface SiteService extends RemoteService {
-
- InitDataDTO getInitData(String userHash) throws DefaultException;
-
-}
Deleted: trunk/src/main/java/org/ourproject/kune/platf/client/rpc/SiteServiceAsync.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/rpc/SiteServiceAsync.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/rpc/SiteServiceAsync.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,30 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package org.ourproject.kune.platf.client.rpc;
-
-import org.ourproject.kune.platf.client.dto.InitDataDTO;
-
-import com.google.gwt.user.client.rpc.AsyncCallback;
-
-public interface SiteServiceAsync {
-
- void getInitData(String userHash, AsyncCallback<InitDataDTO> callback);
-
-}
Deleted: trunk/src/main/java/org/ourproject/kune/platf/client/rpc/SocialNetworkService.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/rpc/SocialNetworkService.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/rpc/SocialNetworkService.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,60 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package org.ourproject.kune.platf.client.rpc;
-
-import org.ourproject.kune.platf.client.dto.SocialNetworkDataDTO;
-import org.ourproject.kune.platf.client.dto.SocialNetworkRequestResult;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.errors.DefaultException;
-
-import com.google.gwt.user.client.rpc.RemoteService;
-
-public interface SocialNetworkService extends RemoteService {
-
- SocialNetworkDataDTO acceptJoinGroup(String hash, StateToken groupToken, String groupToAcceptShortName)
- throws DefaultException;
-
- SocialNetworkDataDTO addAdminMember(String hash, StateToken groupToken, String groupToAddShortName)
- throws DefaultException;
-
- SocialNetworkDataDTO addCollabMember(String hash, StateToken groupToken, String groupToAddShortName)
- throws DefaultException;
-
- SocialNetworkDataDTO addViewerMember(String hash, StateToken groupToken, String groupToAddShortName)
- throws DefaultException;
-
- SocialNetworkDataDTO deleteMember(String hash, StateToken groupToken, String groupToDeleteShortName)
- throws DefaultException;
-
- SocialNetworkDataDTO denyJoinGroup(String hash, StateToken groupToken, String groupToDenyShortName)
- throws DefaultException;
-
- SocialNetworkDataDTO getSocialNetwork(String hash, StateToken groupToken) throws DefaultException;
-
- SocialNetworkRequestResult requestJoinGroup(String hash, StateToken groupToken) throws DefaultException;
-
- SocialNetworkDataDTO setAdminAsCollab(String hash, StateToken groupToken, String groupToSetCollabShortName)
- throws DefaultException;
-
- SocialNetworkDataDTO setCollabAsAdmin(String hash, StateToken groupToken, String groupToSetAdminShortName)
- throws DefaultException;
-
- SocialNetworkDataDTO unJoinGroup(String hash, StateToken groupToken) throws DefaultException;
-}
Deleted: trunk/src/main/java/org/ourproject/kune/platf/client/rpc/SocialNetworkServiceAsync.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/rpc/SocialNetworkServiceAsync.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/rpc/SocialNetworkServiceAsync.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,59 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package org.ourproject.kune.platf.client.rpc;
-
-import org.ourproject.kune.platf.client.dto.SocialNetworkDataDTO;
-import org.ourproject.kune.platf.client.dto.SocialNetworkRequestResult;
-import org.ourproject.kune.platf.client.dto.StateToken;
-
-import com.google.gwt.user.client.rpc.AsyncCallback;
-
-public interface SocialNetworkServiceAsync {
-
- void acceptJoinGroup(String hash, StateToken groupToken, String groupToAcceptShortName,
- AsyncCallback<SocialNetworkDataDTO> callback);
-
- void addAdminMember(String hash, StateToken groupToken, String groupToAddShortName,
- AsyncCallback<SocialNetworkDataDTO> callback);
-
- void addCollabMember(String hash, StateToken groupToken, String groupToAddShortName,
- AsyncCallback<SocialNetworkDataDTO> callback);
-
- void addViewerMember(String hash, StateToken groupToken, String groupToAddShortName,
- AsyncCallback<SocialNetworkDataDTO> callback);
-
- void deleteMember(String hash, StateToken groupToken, String groupToDeleteShortName,
- AsyncCallback<SocialNetworkDataDTO> callback);
-
- void denyJoinGroup(String hash, StateToken groupToken, String groupToDenyShortName,
- AsyncCallback<SocialNetworkDataDTO> callback);
-
- void getSocialNetwork(String hash, StateToken groupToken, AsyncCallback<SocialNetworkDataDTO> callback);
-
- void requestJoinGroup(String hash, StateToken groupToken, AsyncCallback<SocialNetworkRequestResult> callback);
-
- void setAdminAsCollab(String hash, StateToken groupToken, String groupToSetCollabShortName,
- AsyncCallback<SocialNetworkDataDTO> callback);
-
- void setCollabAsAdmin(String hash, StateToken groupToken, String groupToSetAdminShortName,
- AsyncCallback<SocialNetworkDataDTO> callback);
-
- void unJoinGroup(String hash, StateToken groupToken, AsyncCallback<SocialNetworkDataDTO> callback);
-}
Deleted: trunk/src/main/java/org/ourproject/kune/platf/client/rpc/UserService.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/rpc/UserService.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/rpc/UserService.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,46 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package org.ourproject.kune.platf.client.rpc;
-
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.dto.UserBuddiesVisibilityDTO;
-import org.ourproject.kune.platf.client.dto.UserDTO;
-import org.ourproject.kune.platf.client.dto.UserInfoDTO;
-import org.ourproject.kune.platf.client.errors.DefaultException;
-
-import com.google.gwt.user.client.rpc.RemoteService;
-
-public interface UserService extends RemoteService {
-
- UserInfoDTO createUser(UserDTO user, boolean wantPersonalHomepage) throws DefaultException;
-
- String getUserAvatarBaser64(String userHash, StateToken userToken) throws DefaultException;
-
- UserInfoDTO login(String nickOrEmail, String passwd) throws DefaultException;
-
- void logout(String userHash) throws DefaultException;
-
- void onlyCheckSession(String userHash) throws DefaultException;
-
- UserInfoDTO reloadUserInfo(String userHash) throws DefaultException;
-
- void setBuddiesVisibility(String userHash, StateToken groupToken, UserBuddiesVisibilityDTO visibility);
-
-}
Deleted: trunk/src/main/java/org/ourproject/kune/platf/client/rpc/UserServiceAsync.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/rpc/UserServiceAsync.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/rpc/UserServiceAsync.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,46 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package org.ourproject.kune.platf.client.rpc;
-
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.dto.UserBuddiesVisibilityDTO;
-import org.ourproject.kune.platf.client.dto.UserDTO;
-import org.ourproject.kune.platf.client.dto.UserInfoDTO;
-
-import com.google.gwt.user.client.rpc.AsyncCallback;
-
-public interface UserServiceAsync {
-
- void createUser(UserDTO user, boolean wantPersonalHomepage, AsyncCallback<UserInfoDTO> asyncCallback);
-
- void getUserAvatarBaser64(String userHash, StateToken userToken, AsyncCallback<String> asyncCallback);
-
- void login(String nickOrEmail, String passwd, AsyncCallback<UserInfoDTO> asyncCallback);
-
- void logout(String userHash, AsyncCallback<Void> asyncCallback);
-
- void onlyCheckSession(String userHash, AsyncCallback<Void> asyncCallback);
-
- void reloadUserInfo(String userHash, AsyncCallback<UserInfoDTO> asyncCallback);
-
- void setBuddiesVisibility(String userHash, StateToken groupToken, UserBuddiesVisibilityDTO visibility,
- AsyncCallback<Void> asyncCallback);
-
-}
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/services/CoreModule.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/services/CoreModule.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/services/CoreModule.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -21,35 +21,30 @@
import org.ourproject.kune.platf.client.app.ApplicationComponentGroup;
import org.ourproject.kune.platf.client.app.GroupOptionsCollection;
-import org.ourproject.kune.platf.client.app.HistoryWrapper;
-import org.ourproject.kune.platf.client.app.HistoryWrapperDefault;
import org.ourproject.kune.platf.client.app.ToolGroup;
import org.ourproject.kune.platf.client.app.UserOptionsCollection;
-import org.ourproject.kune.platf.client.i18n.I18nUITranslationService;
-import org.ourproject.kune.platf.client.rpc.ContentServiceAsync;
-import org.ourproject.kune.platf.client.rpc.I18nService;
-import org.ourproject.kune.platf.client.rpc.I18nServiceAsync;
-import org.ourproject.kune.platf.client.rpc.SiteService;
-import org.ourproject.kune.platf.client.rpc.SiteServiceAsync;
-import org.ourproject.kune.platf.client.rpc.UserService;
-import org.ourproject.kune.platf.client.rpc.UserServiceAsync;
-import org.ourproject.kune.platf.client.state.ContentProvider;
-import org.ourproject.kune.platf.client.state.ContentProviderDefault;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.SessionDefault;
-import org.ourproject.kune.platf.client.state.StateManager;
-import org.ourproject.kune.platf.client.state.StateManagerDefault;
import org.ourproject.kune.platf.client.ui.rte.insertimg.InsertImageGroup;
import org.ourproject.kune.platf.client.ui.rte.insertlink.InsertLinkGroup;
import org.ourproject.kune.platf.client.ui.rte.insertmedia.InsertMediaGroup;
import org.ourproject.kune.platf.client.ui.rte.insertspecialchar.InsertSpecialCharGroup;
+import cc.kune.core.client.i18n.I18nUITranslationService;
+import cc.kune.core.client.rpcservices.I18nService;
+import cc.kune.core.client.rpcservices.I18nServiceAsync;
+import cc.kune.core.client.rpcservices.SiteService;
+import cc.kune.core.client.rpcservices.SiteServiceAsync;
+import cc.kune.core.client.rpcservices.UserService;
+import cc.kune.core.client.rpcservices.UserServiceAsync;
+import cc.kune.core.client.state.ContentProvider;
+import cc.kune.core.client.state.HistoryWrapper;
+import cc.kune.core.client.state.HistoryWrapperDefault;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+
import com.calclab.suco.client.events.Listener0;
import com.calclab.suco.client.ioc.decorator.Singleton;
import com.calclab.suco.client.ioc.module.Factory;
import com.google.gwt.core.client.GWT;
-import com.google.gwt.user.client.Cookies;
-import com.google.gwt.user.client.History;
import com.google.gwt.user.client.rpc.ServiceDefTarget;
public class CoreModule extends AbstractExtendedModule {
@@ -66,7 +61,10 @@
register(Singleton.class, new Factory<Session>(Session.class) {
@Override
public Session create() {
- return new SessionDefault(Cookies.getCookie(Session.USERHASH), p(UserServiceAsync.class));
+ return null;
+ // return new
+ // SessionDefault(Cookies.getCookie(Session.USERHASH),
+ // p(UserServiceAsync.class));
}
}, new Factory<I18nServiceAsync>(I18nServiceAsync.class) {
@Override
@@ -94,9 +92,11 @@
register(Singleton.class, new Factory<I18nUITranslationService>(I18nUITranslationService.class) {
@Override
public I18nUITranslationService create() {
- final I18nUITranslationService i18n = new I18nUITranslationService();
- i18n.init(i(I18nServiceAsync.class), i(Session.class), onI18nReady);
- return i18n;
+ // final I18nUITranslationService i18n = new
+ // I18nUITranslationService();
+ // i18n.init(i(I18nServiceAsync.class), i(Session.class),
+ // onI18nReady);
+ return null; // i18n;
}
});
@@ -110,15 +110,17 @@
}, new Factory<ContentProvider>(ContentProvider.class) {
@Override
public ContentProvider create() {
- return new ContentProviderDefault(i(ContentServiceAsync.class));
+ return null; // new
+ // ContentProviderDefault(i(ContentServiceAsync.class));
}
}, new Factory<StateManager>(StateManager.class) {
@Override
public StateManager create() {
- final StateManagerDefault stateManager = new StateManagerDefault(i(ContentProvider.class),
- i(Session.class), i(HistoryWrapper.class));
- History.addValueChangeHandler(stateManager);
- return stateManager;
+ // final StateManagerDefault stateManager = new
+ // StateManagerDefault(i(ContentProvider.class),
+ // i(Session.class), i(HistoryWrapper.class));
+ // History.addValueChangeHandler(stateManager);
+ return null;
}
});
Deleted: trunk/src/main/java/org/ourproject/kune/platf/client/services/ErrorHandler.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/services/ErrorHandler.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/services/ErrorHandler.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,129 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package org.ourproject.kune.platf.client.services;
-
-import org.ourproject.kune.platf.client.errors.AccessViolationException;
-import org.ourproject.kune.platf.client.errors.AlreadyGroupMemberException;
-import org.ourproject.kune.platf.client.errors.AlreadyUserMemberException;
-import org.ourproject.kune.platf.client.errors.ContainerNotPermittedException;
-import org.ourproject.kune.platf.client.errors.ContentNotFoundException;
-import org.ourproject.kune.platf.client.errors.ContentNotPermittedException;
-import org.ourproject.kune.platf.client.errors.GroupNotFoundException;
-import org.ourproject.kune.platf.client.errors.LastAdminInGroupException;
-import org.ourproject.kune.platf.client.errors.SessionExpiredException;
-import org.ourproject.kune.platf.client.errors.UserMustBeLoggedException;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
-import org.ourproject.kune.platf.client.ui.noti.NotifyUser;
-
-import com.allen_sauer.gwt.log.client.Log;
-import com.calclab.suco.client.events.Event0;
-import com.calclab.suco.client.events.Listener0;
-import com.calclab.suco.client.ioc.Provider;
-import com.google.gwt.core.client.GWT;
-import com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException;
-
-public class ErrorHandler {
- private final Session session;
- private final I18nTranslationService i18n;
- private final Event0 onSessionExpired;
- private final Provider<StateManager> stateManagerProvider;
-
- public ErrorHandler(final Session session, final I18nTranslationService i18n,
- final Provider<StateManager> stateManagerProvider) {
- this.session = session;
- this.i18n = i18n;
- this.stateManagerProvider = stateManagerProvider;
- this.onSessionExpired = new Event0("onSessionExpired");
- }
-
- public void doSessionExpired() {
- onSessionExpired.fire();
- NotifyUser.info("Your session has expired. Please log in again.");
- }
-
- public void onSessionExpired(final Listener0 listener) {
- onSessionExpired.add(listener);
- }
-
- public void process(final Throwable caught) {
- NotifyUser.hideProgress();
- if (caught instanceof AccessViolationException) {
- logException(caught);
- NotifyUser.error(i18n.t("You do not have rights to perform that action"));
- } else if (caught instanceof SessionExpiredException) {
- logException(caught);
- doSessionExpired();
- } else if (caught instanceof UserMustBeLoggedException) {
- logException(caught);
- if (session.isLogged()) {
- doSessionExpired();
- } else {
- NotifyUser.important(i18n.t("Please sign in or register to collaborate"));
- }
- } else if (caught instanceof GroupNotFoundException) {
- logException(caught);
- NotifyUser.veryImportant(i18n.t("Group not found"));
- stateManagerProvider.get().gotoToken("");
- } else if (caught instanceof IncompatibleRemoteServiceException) {
- NotifyUser.error(i18n.t("Your browser is outdated with the server software. Please reload this page."));
- } else if (caught instanceof ContentNotFoundException) {
- logException(caught);
- NotifyUser.veryImportant(i18n.t("Content not found"));
- stateManagerProvider.get().gotoToken("");
- } else if (caught instanceof ContentNotPermittedException) {
- logException(caught);
- NotifyUser.error(i18n.t("Action not permitted in this location"));
- stateManagerProvider.get().gotoToken("");
- } else if (caught instanceof ContainerNotPermittedException) {
- logException(caught);
- NotifyUser.error(i18n.t("Action not permitted in this location"));
- stateManagerProvider.get().gotoToken("");
- } else if (caught instanceof LastAdminInGroupException) {
- logException(caught);
- NotifyUser.showAlertMessage(i18n.t("Warning"), i18n.t("Sorry, you are the last admin of this group."
- + " Look for someone to substitute you appropriately as admin before leaving this group."));
- } else if (caught instanceof AlreadyGroupMemberException) {
- logException(caught);
- NotifyUser.error(i18n.t("This group is already a group member"));
- } else if (caught instanceof AlreadyUserMemberException) {
- logException(caught);
- NotifyUser.error(i18n.t("This user is already a group member"));
- } else {
- logException(caught, true);
- NotifyUser.error(i18n.t("Error performing operation"));
- GWT.log("Other kind of exception in StateManagerDefault/processErrorException", caught);
- }
- }
-
- private void logException(final Throwable caught) {
- logException(caught, false);
- }
-
- private void logException(final Throwable caught, final boolean showException) {
- if (showException) {
- Log.debug("Exception in KuneErrorHandler", caught);
- } else {
- Log.debug("Exception in KuneErrorHandler: " + caught.getMessage());
- }
- }
-
-}
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/services/PlatformModule.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/services/PlatformModule.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/services/PlatformModule.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -25,15 +25,8 @@
import org.ourproject.kune.platf.client.app.ApplicationComponentGroup;
import org.ourproject.kune.platf.client.app.ApplicationDefault;
import org.ourproject.kune.platf.client.app.ToolGroup;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
-import org.ourproject.kune.platf.client.i18n.I18nUITranslationService;
import org.ourproject.kune.platf.client.i18n.Resources;
-import org.ourproject.kune.platf.client.rpc.AsyncCallbackSimple;
-import org.ourproject.kune.platf.client.rpc.SiteServiceAsync;
import org.ourproject.kune.platf.client.shortcuts.GlobalShortcutRegister;
-import org.ourproject.kune.platf.client.state.AccessRightsClientManager;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.platf.client.ui.QuickTipsHelper;
import org.ourproject.kune.platf.client.ui.download.FileDownloadUtils;
import org.ourproject.kune.platf.client.ui.img.ImgResources;
@@ -106,6 +99,14 @@
import org.ourproject.kune.platf.client.utils.DeferredCommandWrapper;
import org.ourproject.kune.platf.client.utils.TimerWrapper;
+import cc.kune.core.client.errors.ErrorHandler;
+import cc.kune.core.client.i18n.I18nUITranslationService;
+import cc.kune.core.client.rpcservices.SiteServiceAsync;
+import cc.kune.core.client.state.AccessRightsClientManager;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.ioc.decorator.NoDecoration;
import com.calclab.suco.client.ioc.decorator.Singleton;
import com.calclab.suco.client.ioc.module.Factory;
@@ -159,7 +160,7 @@
register(Singleton.class, new Factory<ErrorHandler>(ErrorHandler.class) {
@Override
public ErrorHandler create() {
- return new ErrorHandler(i(Session.class), i18n, p(StateManager.class));
+ return null; // new ErrorHandler(i(Session.class), i18n, p(StateManager.class));
}
});
@@ -175,7 +176,7 @@
}
});
- AsyncCallbackSimple.init(i(ErrorHandler.class));
+ //AsyncCallbackSimple.init(i(ErrorHandler.class));
register(Singleton.class, new Factory<Application>(Application.class) {
@Override
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/shortcuts/ShortcutRegister.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/shortcuts/ShortcutRegister.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/shortcuts/ShortcutRegister.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -5,8 +5,9 @@
import org.ourproject.kune.platf.client.actions.ActionDescriptor;
import org.ourproject.kune.platf.client.actions.ActionItem;
import org.ourproject.kune.platf.client.actions.KeyStroke;
-import org.ourproject.kune.platf.client.dto.AccessRolDTO;
+import cc.kune.core.shared.dto.AccessRolDTO;
+
import com.allen_sauer.gwt.log.client.Log;
import com.calclab.suco.client.events.Listener0;
import com.google.gwt.dom.client.NativeEvent;
Deleted: trunk/src/main/java/org/ourproject/kune/platf/client/state/AccessRightsClientManager.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/state/AccessRightsClientManager.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/state/AccessRightsClientManager.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,31 +0,0 @@
-package org.ourproject.kune.platf.client.state;
-
-import org.ourproject.kune.platf.client.dto.AccessRightsDTO;
-import org.ourproject.kune.platf.client.dto.StateAbstractDTO;
-
-import com.calclab.suco.client.events.Event2;
-import com.calclab.suco.client.events.Listener;
-import com.calclab.suco.client.events.Listener2;
-
-public class AccessRightsClientManager {
- private AccessRightsDTO previousRights;
- private final Event2<AccessRightsDTO, AccessRightsDTO> onRightsChanged;
-
- public AccessRightsClientManager(final StateManager stateManager) {
- this.previousRights = null;
- this.onRightsChanged = new Event2<AccessRightsDTO, AccessRightsDTO>("onRightsChanged");
- stateManager.onStateChanged(new Listener<StateAbstractDTO>() {
- public void onEvent(final StateAbstractDTO newState) {
- final AccessRightsDTO rights = newState.getGroupRights();
- if (!rights.equals(previousRights)) {
- onRightsChanged.fire(previousRights, rights);
- previousRights = rights;
- }
- }
- });
- }
-
- public void onRightsChanged(final Listener2<AccessRightsDTO, AccessRightsDTO> listener) {
- onRightsChanged.add(listener);
- }
-}
Deleted: trunk/src/main/java/org/ourproject/kune/platf/client/state/ContentProvider.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/state/ContentProvider.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/state/ContentProvider.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,33 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package org.ourproject.kune.platf.client.state;
-
-import org.ourproject.kune.platf.client.dto.StateAbstractDTO;
-import org.ourproject.kune.platf.client.dto.StateToken;
-
-import com.google.gwt.user.client.rpc.AsyncCallback;
-
-public interface ContentProvider {
-
- void cache(StateToken encodeState, StateAbstractDTO content);
-
- void getContent(String user, StateToken newState, AsyncCallback<StateAbstractDTO> callback);
-
-}
Deleted: trunk/src/main/java/org/ourproject/kune/platf/client/state/ContentProviderDefault.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/state/ContentProviderDefault.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/state/ContentProviderDefault.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,59 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package org.ourproject.kune.platf.client.state;
-
-import java.util.HashMap;
-
-import org.ourproject.kune.platf.client.dto.StateAbstractDTO;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.rpc.ContentServiceAsync;
-import org.ourproject.kune.platf.client.ui.noti.NotifyUser;
-
-import com.google.gwt.user.client.rpc.AsyncCallback;
-
-public class ContentProviderDefault implements ContentProvider {
-
- private final ContentServiceAsync server;
- private final HashMap<StateToken, StateAbstractDTO> cache;
-
- public ContentProviderDefault(final ContentServiceAsync server) {
- this.server = server;
- this.cache = new HashMap<StateToken, StateAbstractDTO>();
- }
-
- public void cache(final StateToken encodeState, final StateAbstractDTO content) {
- cache.put(encodeState, content);
- }
-
- public void getContent(final String user, final StateToken newState, final AsyncCallback<StateAbstractDTO> callback) {
- NotifyUser.showProgressLoading();
- final StateAbstractDTO catched = getCached(newState);
- if (catched != null) {
- callback.onSuccess(catched);
- } else {
- server.getContent(user, newState, callback);
- }
- }
-
- private StateAbstractDTO getCached(final StateToken newState) {
- return cache.remove(newState);
- }
-
-}
Deleted: trunk/src/main/java/org/ourproject/kune/platf/client/state/Session.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/state/Session.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/state/Session.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,154 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-/*
- *
- * This file is part of kune.
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- \*/
-package org.ourproject.kune.platf.client.state;
-
-import java.util.Collection;
-import java.util.List;
-
-import org.ourproject.kune.platf.client.dto.I18nCountryDTO;
-import org.ourproject.kune.platf.client.dto.I18nLanguageDTO;
-import org.ourproject.kune.platf.client.dto.I18nLanguageSimpleDTO;
-import org.ourproject.kune.platf.client.dto.InitDataDTO;
-import org.ourproject.kune.platf.client.dto.LicenseDTO;
-import org.ourproject.kune.platf.client.dto.StateAbstractDTO;
-import org.ourproject.kune.platf.client.dto.StateContainerDTO;
-import org.ourproject.kune.platf.client.dto.StateContentDTO;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.dto.ToolSimpleDTO;
-import org.ourproject.kune.platf.client.dto.UserInfoDTO;
-import org.ourproject.kune.platf.client.dto.UserSimpleDTO;
-import org.ourproject.kune.platf.client.rpc.AsyncCallbackSimple;
-
-import com.calclab.suco.client.events.Listener;
-import com.calclab.suco.client.events.Listener0;
-
-public interface Session {
-
- /**
- * Duration remembering login: 2 weeks
- */
- int SESSION_DURATION = 1000 * 60 * 60 * 24 * 14;
-
- String USERHASH = "userHash";
-
- void check(AsyncCallbackSimple<Void> callback);
-
- StateContainerDTO getContainerState();
-
- StateContentDTO getContentState();
-
- List<I18nCountryDTO> getCountries();
-
- Object[][] getCountriesArray();
-
- String getCurrentCCversion();
-
- String getCurrentGroupShortName();
-
- I18nLanguageDTO getCurrentLanguage();
-
- StateAbstractDTO getCurrentState();
-
- StateToken getCurrentStateToken();
-
- UserSimpleDTO getCurrentUser();
-
- UserInfoDTO getCurrentUserInfo();
-
- LicenseDTO getDefLicense();
-
- String getGalleryPermittedExtensions();
-
- Collection<ToolSimpleDTO> getGroupTools();
-
- int getImgCropsize();
-
- int getImgIconsize();
-
- int getImgResizewidth();
-
- int getImgThumbsize();
-
- InitDataDTO getInitData();
-
- List<I18nLanguageSimpleDTO> getLanguages();
-
- Object[][] getLanguagesArray();
-
- List<LicenseDTO> getLicenses();
-
- boolean getShowDeletedContent();
-
- String getSiteUrl();
-
- Object[][] getTimezones();
-
- String getUserHash();
-
- Collection<ToolSimpleDTO> getUserTools();
-
- boolean inSameToken(StateToken token);
-
- boolean isCurrentStateAContent();
-
- boolean isCurrentStateAGroup();
-
- boolean isInCurrentUserSpace();
-
- boolean isLogged();
-
- boolean isNotLogged();
-
- void onInitDataReceived(Listener<InitDataDTO> listener);
-
- void onUserSignIn(Listener<UserInfoDTO> listener);
-
- void onUserSignOut(Listener0 listener);
-
- void setCurrentLanguage(final I18nLanguageDTO currentLanguage);
-
- void setCurrentState(final StateAbstractDTO currentState);
-
- void setCurrentUserInfo(UserInfoDTO currentUserInfo);
-
- void setInitData(InitDataDTO initData);
-
- void setUserHash(String userHash);
-
-}
\ No newline at end of file
Deleted: trunk/src/main/java/org/ourproject/kune/platf/client/state/SessionDefault.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/state/SessionDefault.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/state/SessionDefault.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,292 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package org.ourproject.kune.platf.client.state;
-
-import java.util.Collection;
-import java.util.List;
-
-import org.ourproject.kune.platf.client.dto.I18nCountryDTO;
-import org.ourproject.kune.platf.client.dto.I18nLanguageDTO;
-import org.ourproject.kune.platf.client.dto.I18nLanguageSimpleDTO;
-import org.ourproject.kune.platf.client.dto.InitDataDTO;
-import org.ourproject.kune.platf.client.dto.LicenseDTO;
-import org.ourproject.kune.platf.client.dto.StateAbstractDTO;
-import org.ourproject.kune.platf.client.dto.StateContainerDTO;
-import org.ourproject.kune.platf.client.dto.StateContentDTO;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.dto.ToolSimpleDTO;
-import org.ourproject.kune.platf.client.dto.UserInfoDTO;
-import org.ourproject.kune.platf.client.dto.UserSimpleDTO;
-import org.ourproject.kune.platf.client.rpc.AsyncCallbackSimple;
-import org.ourproject.kune.platf.client.rpc.UserServiceAsync;
-
-import com.allen_sauer.gwt.log.client.Log;
-import com.calclab.suco.client.events.Event;
-import com.calclab.suco.client.events.Event0;
-import com.calclab.suco.client.events.Listener;
-import com.calclab.suco.client.events.Listener0;
-import com.calclab.suco.client.ioc.Provider;
-import com.google.gwt.core.client.GWT;
-
-public class SessionDefault implements Session {
- private String userHash;
- private InitDataDTO initData;
- private UserInfoDTO currentUserInfo;
- private Object[][] languagesArray;
- private Object[][] countriesArray;
- private Object[][] timezonesArray;
- private StateAbstractDTO currentState;
- private I18nLanguageDTO currentLanguage;
- private final Event<InitDataDTO> onInitDataReceived;
- private final Event<UserInfoDTO> onUserSignIn;
- private final Event0 onUserSignOut;
- private final Provider<UserServiceAsync> userServiceProvider;
-
- public SessionDefault(final String userHash, final Provider<UserServiceAsync> userServiceProvider) {
- this.userHash = userHash == null || userHash.equals("null") ? null : userHash;
- this.userServiceProvider = userServiceProvider;
- languagesArray = null;
- this.onInitDataReceived = new Event<InitDataDTO>("initDataReceived");
- this.onUserSignIn = new Event<UserInfoDTO>("onUserSignIn");
- this.onUserSignOut = new Event0("onUserSignOut");
- }
-
- public void check(final AsyncCallbackSimple<Void> callback) {
- Log.debug("Checking session (userhash: " + getUserHash() + ")");
- userServiceProvider.get().onlyCheckSession(getUserHash(), callback);
- }
-
- public StateContainerDTO getContainerState() {
- return (StateContainerDTO) currentState;
- }
-
- public StateContentDTO getContentState() {
- return (StateContentDTO) currentState;
- }
-
- public List<I18nCountryDTO> getCountries() {
- return initData.getCountries();
- }
-
- public Object[][] getCountriesArray() {
- if (countriesArray == null) {
- countriesArray = mapCountries();
- }
- return countriesArray;
- }
-
- public String getCurrentCCversion() {
- return initData.getCurrentCCversion();
- }
-
- public String getCurrentGroupShortName() {
- return currentState == null ? null : currentState.getStateToken().getGroup();
- }
-
- public I18nLanguageDTO getCurrentLanguage() {
- return currentLanguage;
- }
-
- public StateAbstractDTO getCurrentState() {
- return currentState;
- }
-
- public StateToken getCurrentStateToken() {
- return currentState == null ? null : currentState.getStateToken();
- }
-
- public UserSimpleDTO getCurrentUser() {
- return currentUserInfo == null ? null : currentUserInfo.getUser();
- }
-
- public UserInfoDTO getCurrentUserInfo() {
- return currentUserInfo;
- }
-
- public LicenseDTO getDefLicense() {
- return initData.getDefaultLicense();
- }
-
- public String getGalleryPermittedExtensions() {
- return initData.getGalleryPermittedExtensions();
- }
-
- public Collection<ToolSimpleDTO> getGroupTools() {
- return initData.getGroupTools();
- }
-
- public int getImgCropsize() {
- return initData.getImgCropsize();
- }
-
- public int getImgIconsize() {
- return initData.getImgIconsize();
- }
-
- public int getImgResizewidth() {
- return initData.getImgResizewidth();
- }
-
- public int getImgThumbsize() {
- return initData.getImgThumbsize();
- }
-
- public InitDataDTO getInitData() {
- return initData;
- }
-
- public List<I18nLanguageSimpleDTO> getLanguages() {
- return initData.getLanguages();
- }
-
- public Object[][] getLanguagesArray() {
- if (languagesArray == null) {
- languagesArray = mapLangs();
- }
- return languagesArray;
- }
-
- public List<LicenseDTO> getLicenses() {
- return initData.getLicenses();
- }
-
- public boolean getShowDeletedContent() {
- return currentUserInfo == null ? false : currentUserInfo.getShowDeletedContent();
- }
-
- public String getSiteUrl() {
- final String baseURL = GWT.getModuleBaseURL();
- return baseURL.substring(0, baseURL.lastIndexOf("/" + GWT.getModuleName()));
- }
-
- public Object[][] getTimezones() {
- if (timezonesArray == null) {
- mapTimezones();
- }
- return timezonesArray;
- }
-
- public String getUserHash() {
- return userHash;
- }
-
- public Collection<ToolSimpleDTO> getUserTools() {
- return initData.getUserTools();
- }
-
- public boolean inSameToken(final StateToken token) {
- return getCurrentStateToken().equals(token);
- }
-
- public boolean isCurrentStateAContent() {
- return currentState instanceof StateContentDTO;
- }
-
- public boolean isCurrentStateAGroup() {
- return currentState == null ? false : !currentState.getGroup().isPersonal();
- }
-
- public boolean isInCurrentUserSpace() {
- if (!isLogged()) {
- return false;
- }
- if (getCurrentStateToken().getGroup().equals(getCurrentUser().getShortName())) {
- return true;
- }
- return false;
- }
-
- public boolean isLogged() {
- return userHash != null;
- }
-
- public boolean isNotLogged() {
- return !isLogged();
- }
-
- public void onInitDataReceived(final Listener<InitDataDTO> listener) {
- onInitDataReceived.add(listener);
- }
-
- public void onUserSignIn(final Listener<UserInfoDTO> listener) {
- onUserSignIn.add(listener);
- }
-
- public void onUserSignOut(final Listener0 listener) {
- onUserSignOut.add(listener);
- }
-
- public void setCurrentLanguage(final I18nLanguageDTO currentLanguage) {
- this.currentLanguage = currentLanguage;
- }
-
- public void setCurrentState(final StateAbstractDTO currentState) {
- this.currentState = currentState;
- }
-
- public void setCurrentUserInfo(final UserInfoDTO currentUserInfo) {
- this.currentUserInfo = currentUserInfo;
- if (currentUserInfo != null) {
- onUserSignIn.fire(currentUserInfo);
- } else {
- onUserSignOut.fire();
- }
- }
-
- public void setInitData(final InitDataDTO initData) {
- this.initData = initData;
- onInitDataReceived.fire(initData);
- }
-
- public void setUserHash(final String userHash) {
- this.userHash = userHash;
- }
-
- private Object[][] mapCountries() {
- assert (initData != null);
- final Object[][] objs = new Object[initData.getCountries().size()][1];
- int i = 0;
- for (final I18nCountryDTO country : initData.getCountries()) {
- final Object[] obj = new Object[] { country.getCode(), country.getEnglishName() };
- objs[i++] = obj;
- }
- return objs;
- }
-
- private Object[][] mapLangs() {
- assert (initData != null);
- final Object[][] objs = new Object[initData.getLanguages().size()][1];
- int i = 0;
- for (final I18nLanguageSimpleDTO language : initData.getLanguages()) {
- final Object[] obj = new Object[] { language.getCode(), language.getEnglishName() };
- objs[i++] = obj;
- }
- return objs;
- }
-
- private void mapTimezones() {
- assert (initData != null);
- timezonesArray = new Object[initData.getTimezones().length][1];
- for (int i = 0; i < getTimezones().length; i++) {
- final Object[] obj = new Object[] { initData.getTimezones()[i] };
- timezonesArray[i] = obj;
- }
- }
-}
Deleted: trunk/src/main/java/org/ourproject/kune/platf/client/state/StateManager.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/state/StateManager.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/state/StateManager.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,63 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package org.ourproject.kune.platf.client.state;
-
-import org.ourproject.kune.platf.client.actions.BeforeActionListener;
-import org.ourproject.kune.platf.client.dto.SocialNetworkDataDTO;
-import org.ourproject.kune.platf.client.dto.StateAbstractDTO;
-import org.ourproject.kune.platf.client.dto.StateToken;
-
-import com.calclab.suco.client.events.Listener;
-import com.calclab.suco.client.events.Listener0;
-import com.calclab.suco.client.events.Listener2;
-
-public interface StateManager {
-
- void addBeforeStateChangeListener(BeforeActionListener listener);
-
- void addSiteToken(String token, Listener0 whenToken);
-
- void gotoToken(StateToken newToken);
-
- void gotoToken(String newToken);
-
- void onGroupChanged(Listener2<String, String> listener);
-
- void onSocialNetworkChanged(Listener<StateAbstractDTO> listener);
-
- void onStateChanged(Listener<StateAbstractDTO> listener);
-
- void onToolChanged(Listener2<String, String> listener);
-
- void reload();
-
- void removeBeforeStateChangeListener(BeforeActionListener listener);
-
- void removeSiteToken(String token);
-
- void restorePreviousToken();
-
- void resumeTokenChange();
-
- void setRetrievedState(StateAbstractDTO state);
-
- void setSocialNetwork(SocialNetworkDataDTO socialNet);
-
-}
Deleted: trunk/src/main/java/org/ourproject/kune/platf/client/state/StateManagerDefault.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/state/StateManagerDefault.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/state/StateManagerDefault.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,231 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package org.ourproject.kune.platf.client.state;
-
-import java.util.HashMap;
-
-import org.ourproject.kune.platf.client.actions.BeforeActionCollection;
-import org.ourproject.kune.platf.client.actions.BeforeActionListener;
-import org.ourproject.kune.platf.client.app.HistoryWrapper;
-import org.ourproject.kune.platf.client.dto.SocialNetworkDataDTO;
-import org.ourproject.kune.platf.client.dto.StateAbstractDTO;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.dto.UserInfoDTO;
-import org.ourproject.kune.platf.client.rpc.AsyncCallbackSimple;
-import org.ourproject.kune.platf.client.ui.noti.NotifyUser;
-
-import com.allen_sauer.gwt.log.client.Log;
-import com.calclab.suco.client.events.Event;
-import com.calclab.suco.client.events.Event2;
-import com.calclab.suco.client.events.Listener;
-import com.calclab.suco.client.events.Listener0;
-import com.calclab.suco.client.events.Listener2;
-import com.google.gwt.event.logical.shared.ValueChangeEvent;
-import com.google.gwt.event.logical.shared.ValueChangeHandler;
-
-public class StateManagerDefault implements StateManager, ValueChangeHandler<String> {
- private final ContentProvider contentProvider;
- private StateToken previousToken;
- /**
- * When a historyChanged is interrupted (for instance because you are
- * editing something), the new token is stored here
- */
- private StateToken resumedToken;
- private final Session session;
- private final HistoryWrapper history;
- private final HashMap<String, Listener0> siteTokens;
- private final Event<StateAbstractDTO> onStateChanged;
- private final Event<StateAbstractDTO> onSocialNetworkChanged;
- private final Event2<String, String> onToolChanged;
- private final Event2<String, String> onGroupChanged;
- private final BeforeActionCollection beforeStateChangeCollection;
-
- public StateManagerDefault(final ContentProvider contentProvider, final Session session,
- final HistoryWrapper history) {
- this.contentProvider = contentProvider;
- this.session = session;
- this.history = history;
- this.previousToken = null;
- this.resumedToken = null;
- this.onStateChanged = new Event<StateAbstractDTO>("onStateChanged");
- this.onGroupChanged = new Event2<String, String>("onGroupChanged");
- this.onToolChanged = new Event2<String, String>("onToolChanged");
- this.onSocialNetworkChanged = new Event<StateAbstractDTO>("onSocialNetworkChanged");
- session.onUserSignIn(new Listener<UserInfoDTO>() {
- public void onEvent(final UserInfoDTO parameter) {
- if (previousToken == null) {
- // starting up
- reload();
- } else {
- // do nothing, SigInPresent calls goto;
- }
- }
- });
- session.onUserSignOut(new Listener0() {
- public void onEvent() {
- reload();
- }
- });
- siteTokens = new HashMap<String, Listener0>();
- beforeStateChangeCollection = new BeforeActionCollection();
- }
-
- public void addBeforeStateChangeListener(final BeforeActionListener listener) {
- beforeStateChangeCollection.add(listener);
- }
-
- public void addSiteToken(final String token, final Listener0 listener) {
- siteTokens.put(token, listener);
- }
-
- public void gotoToken(final StateToken newToken) {
- Log.debug("StateManager: history goto-token newItem (" + newToken + ")");
- history.newItem(newToken.getEncoded());
- }
-
- public void gotoToken(final String token) {
- gotoToken(new StateToken(token));
- }
-
- public void onGroupChanged(final Listener2<String, String> listener) {
- onGroupChanged.add(listener);
- }
-
- public void onSocialNetworkChanged(final Listener<StateAbstractDTO> listener) {
- onSocialNetworkChanged.add(listener);
- }
-
- public void onStateChanged(final Listener<StateAbstractDTO> listener) {
- onStateChanged.add(listener);
- }
-
- public void onToolChanged(final Listener2<String, String> listener) {
- onToolChanged.add(listener);
- }
-
- public void onValueChange(final ValueChangeEvent<String> event) {
- onHistoryChanged(event.getValue());
- }
-
- /**
- * <p>
- * Reload current state (using client cache if available)
- * </p>
- */
- public void reload() {
- onHistoryChanged(history.getToken());
- }
-
- public void removeBeforeStateChangeListener(final BeforeActionListener listener) {
- beforeStateChangeCollection.remove(listener);
- }
-
- public void removeSiteToken(final String token) {
- siteTokens.remove(token);
- }
-
- public void restorePreviousToken() {
- gotoToken(previousToken);
- }
-
- public void resumeTokenChange() {
- if (resumedToken != null) {
- reload();
- gotoToken(resumedToken);
- clearResumedToken();
- }
- }
-
- public void setRetrievedState(final StateAbstractDTO newState) {
- contentProvider.cache(newState.getStateToken(), newState);
- // setState(newState);
- history.newItem(newState.getStateToken().toString());
- }
-
- public void setSocialNetwork(final SocialNetworkDataDTO socialNet) {
- StateAbstractDTO state;
- if (session != null && (state = session.getCurrentState()) != null) {
- // After a SN operation, usually returns a SocialNetworkResultDTO
- // with new SN data and we refresh the state
- // to avoid to reload() again the state
- state.setSocialNetworkData(socialNet);
- onSocialNetworkChanged.fire(state);
- }
- }
-
- void onHistoryChanged(final String historyToken) {
- // http://code.google.com/p/google-web-toolkit-doc-1-5/wiki/DevGuideHistory
- if (beforeStateChangeCollection.checkBeforeAction()) {
- final Listener0 tokenListener = siteTokens.get(historyToken);
- Log.debug("StateManager: history token changed (" + historyToken + ")");
- if (tokenListener == null) {
- // Ok, normal token change
- onHistoryChanged(new StateToken(historyToken));
- } else {
- // token is one of #newgroup #signin #translate ...
- if (previousToken == null) {
- // Starting with some token like "signin": load defContent
- // also
- onHistoryChanged("");
- }
- tokenListener.onEvent();
- }
- } else {
- resumedToken = new StateToken(historyToken);
- }
- }
-
- void setState(final StateAbstractDTO newState) {
- session.setCurrentState(newState);
- onStateChanged.fire(newState);
- NotifyUser.hideProgress();
- checkGroupAndToolChange(newState);
- previousToken = newState.getStateToken();
-
- }
-
- private void checkGroupAndToolChange(final StateAbstractDTO newState) {
- final String previousGroup = previousToken == null ? "" : previousToken.getGroup();
- final String newGroup = newState.getStateToken().getGroup();
- final String previousTokenTool = previousToken == null ? "" : previousToken.getTool();
- final String newTokenTool = newState.getStateToken().getTool();
- final String previousToolName = previousTokenTool == null ? "" : previousTokenTool;
- final String newToolName = newTokenTool == null ? "" : newTokenTool;
-
- if (previousToken == null || previousToolName == null || !previousToolName.equals(newToolName)) {
- onToolChanged.fire(previousToolName, newToolName);
- }
- if (previousToken == null || !previousGroup.equals(newGroup)) {
- onGroupChanged.fire(previousGroup, newGroup);
- }
- }
-
- private void clearResumedToken() {
- resumedToken = null;
- }
-
- private void onHistoryChanged(final StateToken newState) {
- contentProvider.getContent(session.getUserHash(), newState, new AsyncCallbackSimple<StateAbstractDTO>() {
- public void onSuccess(final StateAbstractDTO newState) {
- setState(newState);
- }
- });
- }
-}
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/ui/AbstractSearcherPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/ui/AbstractSearcherPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/ui/AbstractSearcherPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,8 +19,9 @@
*/
package org.ourproject.kune.platf.client.ui;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.gwtext.client.core.Connection;
import com.gwtext.client.core.UrlParam;
import com.gwtext.client.data.FieldDef;
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/ui/KuneStringUtils.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/ui/KuneStringUtils.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/ui/KuneStringUtils.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,6 +19,8 @@
*/
package org.ourproject.kune.platf.client.ui;
+import cc.kune.core.client.utils.TextUtils;
+
/**
* Use TextUtils
*
Deleted: trunk/src/main/java/org/ourproject/kune/platf/client/ui/Location.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/ui/Location.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/ui/Location.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,148 +0,0 @@
-/*
- * Copyright 2006 Robert Hanson <iamroberthanson AT gmail.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- \*/
-package org.ourproject.kune.platf.client.ui;
-
-import java.util.HashMap;
-import java.util.Map;
-
-public class Location {
- private String hash;
- private String host;
- private String hostName;
- private String href;
- private String path;
- private String port;
- private String protocol;
- private String queryString;
- private HashMap<String, String> paramMap;
-
- /**
- * sample: #site.docs.3.1
- **/
- public String getHash() {
- return hash;
- }
-
- /**
- * sample: locahost:8080
- *
- * @return
- */
- public String getHost() {
- return host;
- }
-
- /**
- * sample: locahost
- *
- * @return
- */
- public String getHostName() {
- return hostName;
- }
-
- /**
- * sample: http://localhost:8080/ws/#site.docs.3.1?locale=en&log_level=INFO
- **/
- public String getHref() {
- return href;
- }
-
- public String getParameter(final String name) {
- return paramMap.get(name);
- }
-
- public Map<String, String> getParameterMap() {
- return paramMap;
- }
-
- /**
- * sample: /ws/
- *
- * @return
- */
- public String getPath() {
- return path;
- }
-
- public String getPort() {
- return port;
- }
-
- public String getProtocol() {
- return protocol;
- }
-
- /**
- * sample: ?locale=en&log_level=INFO
- *
- * @return
- */
- public String getQueryString() {
- return queryString;
- }
-
- protected void setHash(final String hash) {
- this.hash = hash;
- }
-
- protected void setHost(final String host) {
- this.host = host;
- }
-
- protected void setHostName(final String hostName) {
- this.hostName = hostName;
- }
-
- protected void setHref(final String href) {
- this.href = href;
- }
-
- protected void setPath(final String path) {
- this.path = path;
- }
-
- protected void setPort(final String port) {
- this.port = port;
- }
-
- protected void setProtocol(final String protocol) {
- this.protocol = protocol;
- }
-
- protected void setQueryString(final String queryString) {
- this.queryString = queryString;
- paramMap = new HashMap<String, String>();
-
- if (queryString != null && queryString.length() > 1) {
- String qs = queryString.substring(1);
- String[] kvPairs = qs.split("&");
- for (String kvPair : kvPairs) {
- String[] kv = kvPair.split("=");
- if (kv.length > 1) {
- paramMap.put(kv[0], unescape(kv[1]));
- } else {
- paramMap.put(kv[0], "");
- }
- }
- }
- }
-
- private native String unescape(String val) /*-{
- return unescape(val);
- }-*/;
-
-}
\ No newline at end of file
Deleted: trunk/src/main/java/org/ourproject/kune/platf/client/ui/TextUtils.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/ui/TextUtils.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/ui/TextUtils.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,99 +0,0 @@
-/*
- *
- * Copyright (C) 2007-2009 The kune development team (see CREDITS for details)
- * This file is part of kune.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-package org.ourproject.kune.platf.client.ui;
-
-import java.util.ArrayList;
-
-public class TextUtils {
-
- public static final String IN_DEVELOPMENT_P = " (in development)";
- public static final String IN_DEVELOPMENT = "In development";
-
- // Original regexp from http://snippets.dzone.com/posts/show/452
- public static final String URL_REGEXP = "((ftp|http|https|mailto):\\/\\/(\\w+:{0,1}\\w*@)?(\\S+)(:[0-9]+)?(\\/|\\/([\\w#!:.?+=&%@!\\-\\/]))?)";
-
- // Original regexp from http://www.regular-expressions.info/email.html
- public static final String EMAIL_REGEXP = "[-!#$%&\'*+/=?_`{|}~a-z0-9^]+(\\.[-!#$%&\'*+/=?_`{|}~a-z0-9^]+)*@(localhost|([a-z0-9]([-a-z0-9]*[a-z0-9])?\\.)+[a-z0-9]([-a-z0-9]*[a-z0-9]))?";
-
- public static final String UNIX_NAME = "^[a-z0-9_\\-]+$";
-
- public static final String NUM_REGEXP = "^[0-9]+$";
-
- /*
- * This method escape only some dangerous html chars
- */
- public static String escapeHtmlLight(final String source) {
- if (source == null) {
- return null;
- }
- String result = source;
- result = result.replaceAll("&", "&");
- result = result.replaceAll("\"", """);
- // text = text.replaceAll("\'", "'");
- result = result.replaceAll("<", "<");
- result = result.replaceAll(">", ">");
- return result;
- }
-
- public static String generateHtmlLink(final String href, final String text) {
- return "<a href=\"" + href + "\" target=\"_blank\">" + text + "</a>";
- }
-
- public static ArrayList<String> splitTags(final String tagsString) {
- final ArrayList<String> tagsList = new ArrayList<String>();
- String tagsCopy = tagsString;
- // remove commas and quotes
- if (tagsString == null) {
- return tagsList;
- }
- tagsCopy = tagsCopy.replaceAll(",", " ");
- tagsCopy = tagsCopy.replaceAll("\"", "");
- tagsCopy = tagsCopy.replaceAll("\'", "");
- final String[] splitted = tagsCopy.split("\\s+");
- for (String tag : splitted) {
- tag = tag.replaceAll("\\s$", "");
- if (tag.length() > 0) {
- tagsList.add(tag);
- }
- }
- return tagsList;
- }
-
- /*
- * This method unescape only some dangerous html chars for use in GWT Html
- * widget for instance
- */
- public static String unescape(final String source) {
- if (source == null) {
- return null;
- }
- String result = source;
- result = result.replaceAll("&", "&");
- result = result.replaceAll(""", "\"");
- result = result.replaceAll("'", "\'");
- result = result.replaceAll("<", "<");
- result = result.replaceAll(">", ">");
- return result;
- }
-
- public TextUtils() {
- }
-
-}
Deleted: trunk/src/main/java/org/ourproject/kune/platf/client/ui/WindowUtils.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/ui/WindowUtils.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/ui/WindowUtils.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,65 +0,0 @@
-/*
- * Copyright 2006 Robert Hanson <iamroberthanson AT gmail.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.ourproject.kune.platf.client.ui;
-
-public class WindowUtils {
-
- public static Location getLocation() {
- Location result = new Location();
- result.setHash(getHash());
- result.setHost(getHost());
- result.setHostName(getHostName());
- result.setHref(getHref());
- result.setPath(getPath());
- result.setPort(getPort());
- result.setProtocol(getProtocol());
- result.setQueryString(getQueryString());
- return result;
- }
-
- private static native String getHash() /*-{
- return $wnd.location.hash;
- }-*/;
-
- private static native String getHost() /*-{
- return $wnd.location.host;
- }-*/;
-
- private static native String getHostName() /*-{
- return $wnd.location.hostname;
- }-*/;
-
- private static native String getHref() /*-{
- return $wnd.location.href;
- }-*/;
-
- private static native String getPath() /*-{
- return $wnd.location.pathname;
- }-*/;
-
- private static native String getPort() /*-{
- return $wnd.location.port;
- }-*/;
-
- private static native String getProtocol() /*-{
- return $wnd.location.protocol;
- }-*/;
-
- private static native String getQueryString() /*-{
- return $wnd.location.search;
- }-*/;
-
-}
\ No newline at end of file
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/ui/dialogs/WizardDialog.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/ui/dialogs/WizardDialog.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/ui/dialogs/WizardDialog.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -20,9 +20,10 @@
package org.ourproject.kune.platf.client.ui.dialogs;
import org.ourproject.kune.platf.client.View;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.ui.noti.NotifyUser;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.google.gwt.user.client.ui.DeckPanel;
import com.google.gwt.user.client.ui.Widget;
import com.gwtext.client.core.EventObject;
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/ui/download/FileDownloadUtils.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/ui/download/FileDownloadUtils.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/ui/download/FileDownloadUtils.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,13 +19,14 @@
\*/
package org.ourproject.kune.platf.client.ui.download;
-import org.ourproject.kune.platf.client.dto.StateToken;
import org.ourproject.kune.platf.client.services.ImageDescriptor;
import org.ourproject.kune.platf.client.services.ImageUtils;
-import org.ourproject.kune.platf.client.state.Session;
import org.ourproject.kune.platf.client.utils.Url;
import org.ourproject.kune.platf.client.utils.UrlParam;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.shared.dto.StateToken;
+
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.ui.RootPanel;
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/ui/noti/NotifyUser.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/ui/noti/NotifyUser.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/ui/noti/NotifyUser.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,9 +19,10 @@
*/
package org.ourproject.kune.platf.client.ui.noti;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.services.Images;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.events.Event;
import com.calclab.suco.client.events.Event0;
import com.calclab.suco.client.events.Event2;
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/ui/palette/SimplePalettePanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/ui/palette/SimplePalettePanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/ui/palette/SimplePalettePanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,7 +1,8 @@
package org.ourproject.kune.platf.client.ui.palette;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.gwtext.client.widgets.ColorPalette;
import com.gwtext.client.widgets.event.ColorPaletteListenerAdapter;
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/basic/RTEditorPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/basic/RTEditorPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/basic/RTEditorPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -11,8 +11,6 @@
import org.ourproject.kune.platf.client.actions.ui.ComplexToolbar;
import org.ourproject.kune.platf.client.actions.ui.GuiActionDescrip;
import org.ourproject.kune.platf.client.actions.ui.GuiBindingsRegister;
-import org.ourproject.kune.platf.client.errors.UIException;
-import org.ourproject.kune.platf.client.i18n.I18nUITranslationService;
import org.ourproject.kune.platf.client.shortcuts.GlobalShortcutRegister;
import org.ourproject.kune.platf.client.ui.noti.NotifyUser;
import org.ourproject.kune.platf.client.ui.rte.RichTextArea;
@@ -25,6 +23,9 @@
import org.xwiki.gwt.dom.client.Range;
import org.xwiki.gwt.dom.client.Selection;
+import cc.kune.core.client.errors.UIException;
+import cc.kune.core.client.i18n.I18nUITranslationService;
+
import com.allen_sauer.gwt.log.client.Log;
import com.google.gwt.core.client.Scheduler;
import com.google.gwt.core.client.Scheduler.ScheduledCommand;
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/basic/RTEditorPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/basic/RTEditorPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/basic/RTEditorPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -28,8 +28,6 @@
import org.ourproject.kune.platf.client.actions.ui.PushButtonDescriptor;
import org.ourproject.kune.platf.client.actions.ui.ToolbarSeparatorDescriptor;
import org.ourproject.kune.platf.client.actions.ui.ToolbarSeparatorDescriptor.Type;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
-import org.ourproject.kune.platf.client.state.Session;
import org.ourproject.kune.platf.client.ui.img.ImgConstants;
import org.ourproject.kune.platf.client.ui.noti.NotifyUser;
import org.ourproject.kune.platf.client.ui.palette.ColorWebSafePalette;
@@ -45,6 +43,9 @@
import org.ourproject.kune.platf.client.ui.rte.inserttable.InsertTableDialog;
import org.ourproject.kune.platf.client.utils.DeferredCommandWrapper;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.allen_sauer.gwt.log.client.Log;
import com.calclab.suco.client.events.Event0;
import com.calclab.suco.client.events.Listener;
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/edithtml/EditHtmlDialogPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/edithtml/EditHtmlDialogPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/edithtml/EditHtmlDialogPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,11 +1,12 @@
package org.ourproject.kune.platf.client.ui.rte.edithtml;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.services.Images;
import org.ourproject.kune.platf.client.ui.dialogs.tabbed.AbstractTabbedDialogPanel;
import org.ourproject.kune.platf.client.ui.noti.NotifyUser.Level;
import org.ourproject.kune.platf.client.ui.rte.img.RTEImgResources;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.google.gwt.user.client.Window;
import com.gwtext.client.core.EventObject;
import com.gwtext.client.widgets.Button;
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/edithtml/editor/EditHtmlEditorPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/edithtml/editor/EditHtmlEditorPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/edithtml/editor/EditHtmlEditorPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,9 +1,10 @@
package org.ourproject.kune.platf.client.ui.rte.edithtml.editor;
-import org.ourproject.kune.platf.client.i18n.I18nUITranslationService;
import org.ourproject.kune.platf.client.ui.dialogs.DefaultForm;
import org.ourproject.kune.platf.client.ui.rte.edithtml.EditHtmlDialogView;
+import cc.kune.core.client.i18n.I18nUITranslationService;
+
import com.gwtext.client.widgets.form.TextArea;
public class EditHtmlEditorPanel extends DefaultForm implements EditHtmlEditorView {
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/edithtml/preview/EditHtmlPreviewPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/edithtml/preview/EditHtmlPreviewPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/edithtml/preview/EditHtmlPreviewPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,8 +1,9 @@
package org.ourproject.kune.platf.client.ui.rte.edithtml.preview;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.ui.rte.edithtml.EditHtmlDialogView;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.google.gwt.user.client.ui.HTML;
import com.gwtext.client.widgets.Panel;
import com.gwtext.client.widgets.event.PanelListenerAdapter;
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertimg/InsertImageDialogPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertimg/InsertImageDialogPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertimg/InsertImageDialogPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,9 +1,10 @@
package org.ourproject.kune.platf.client.ui.rte.insertimg;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.services.Images;
import org.ourproject.kune.platf.client.ui.dialogs.tabbed.AbstractTabbedDialogPanel;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.events.Listener0;
import com.gwtext.client.core.EventObject;
import com.gwtext.client.widgets.Button;
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertimg/ext/InsertImageExtPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertimg/ext/InsertImageExtPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertimg/ext/InsertImageExtPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,9 +1,10 @@
package org.ourproject.kune.platf.client.ui.rte.insertimg.ext;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
-import org.ourproject.kune.platf.client.ui.TextUtils;
import org.ourproject.kune.platf.client.ui.rte.insertimg.abstractimg.InsertImageAbstractPanel;
+import cc.kune.core.client.utils.TextUtils;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.google.gwt.core.client.Scheduler;
import com.google.gwt.core.client.Scheduler.ScheduledCommand;
import com.google.gwt.user.client.ui.Frame;
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertlink/InsertLinkDialogPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertlink/InsertLinkDialogPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertlink/InsertLinkDialogPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,10 +19,11 @@
*/
package org.ourproject.kune.platf.client.ui.rte.insertlink;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.services.Images;
import org.ourproject.kune.platf.client.ui.dialogs.tabbed.AbstractTabbedDialogPanel;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.events.Listener0;
import com.gwtext.client.core.EventObject;
import com.gwtext.client.widgets.Button;
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertlink/email/InsertLinkEmailPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertlink/email/InsertLinkEmailPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertlink/email/InsertLinkEmailPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,10 +19,11 @@
*/
package org.ourproject.kune.platf.client.ui.rte.insertlink.email;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.ui.rte.insertlink.LinkInfo;
import org.ourproject.kune.platf.client.ui.rte.insertlink.abstractlink.InsertLinkAbstractPanel;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.gwtext.client.widgets.form.VType;
public class InsertLinkEmailPanel extends InsertLinkAbstractPanel implements InsertLinkEmailView {
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertlink/ext/InsertLinkExtPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertlink/ext/InsertLinkExtPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertlink/ext/InsertLinkExtPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,12 +19,13 @@
*/
package org.ourproject.kune.platf.client.ui.rte.insertlink.ext;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.i18n.Resources;
-import org.ourproject.kune.platf.client.ui.TextUtils;
import org.ourproject.kune.platf.client.ui.rte.insertlink.LinkInfo;
import org.ourproject.kune.platf.client.ui.rte.insertlink.abstractlink.InsertLinkAbstractPanel;
+import cc.kune.core.client.utils.TextUtils;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.google.gwt.user.client.ui.Frame;
import com.gwtext.client.core.EventObject;
import com.gwtext.client.widgets.Button;
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertlink/ext/InsertLinkExtPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertlink/ext/InsertLinkExtPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertlink/ext/InsertLinkExtPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,10 +19,11 @@
*/
package org.ourproject.kune.platf.client.ui.rte.insertlink.ext;
-import org.ourproject.kune.platf.client.ui.TextUtils;
import org.ourproject.kune.platf.client.ui.rte.insertlink.InsertLinkDialog;
import org.ourproject.kune.platf.client.ui.rte.insertlink.abstractlink.InsertLinkAbstractPresenter;
+import cc.kune.core.client.utils.TextUtils;
+
public class InsertLinkExtPresenter extends InsertLinkAbstractPresenter implements InsertLinkExt {
private InsertLinkExtView view;
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertmedia/ExternalMediaRegistry.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertmedia/ExternalMediaRegistry.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertmedia/ExternalMediaRegistry.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -4,9 +4,10 @@
import java.util.Iterator;
import java.util.List;
-import org.ourproject.kune.platf.client.dto.ExtMediaDescripDTO;
-import org.ourproject.kune.platf.client.ui.TextUtils;
+import cc.kune.core.client.utils.TextUtils;
+import cc.kune.core.shared.dto.ExtMediaDescripDTO;
+
public class ExternalMediaRegistry extends ArrayList<ExtMediaDescripDTO> {
private static final long serialVersionUID = -9109609520119776917L;
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertmedia/InsertMediaDialogPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertmedia/InsertMediaDialogPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertmedia/InsertMediaDialogPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,9 +1,10 @@
package org.ourproject.kune.platf.client.ui.rte.insertmedia;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.services.Images;
import org.ourproject.kune.platf.client.ui.dialogs.tabbed.AbstractTabbedDialogPanel;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.events.Listener0;
import com.gwtext.client.core.EventObject;
import com.gwtext.client.widgets.Button;
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertmedia/abstractmedia/MediaUtils.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertmedia/abstractmedia/MediaUtils.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertmedia/abstractmedia/MediaUtils.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,10 +1,11 @@
package org.ourproject.kune.platf.client.ui.rte.insertmedia.abstractmedia;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.state.Session;
import org.ourproject.kune.platf.client.ui.download.FileDownloadUtils;
import org.ourproject.kune.platf.client.ui.rte.insertimg.ContentPosition;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.shared.dto.StateToken;
+
public class MediaUtils {
public static final String DOC_URL_TAG = "###DOC_URL###";
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertmedia/ext/InsertMediaExtPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertmedia/ext/InsertMediaExtPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertmedia/ext/InsertMediaExtPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,9 +1,10 @@
package org.ourproject.kune.platf.client.ui.rte.insertmedia.ext;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.ui.rte.insertmedia.ExternalMediaRegistry;
import org.ourproject.kune.platf.client.ui.rte.insertmedia.abstractmedia.InsertMediaAbstractPanel;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
public class InsertMediaExtPanel extends InsertMediaAbstractPanel implements InsertMediaExtView {
public InsertMediaExtPanel(final InsertMediaExtPresenter presenter, final I18nTranslationService i18n,
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertmedia/ext/InsertMediaExtPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertmedia/ext/InsertMediaExtPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertmedia/ext/InsertMediaExtPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,11 +1,12 @@
package org.ourproject.kune.platf.client.ui.rte.insertmedia.ext;
-import org.ourproject.kune.platf.client.dto.ExtMediaDescripDTO;
import org.ourproject.kune.platf.client.ui.noti.NotifyUser.Level;
import org.ourproject.kune.platf.client.ui.rte.insertmedia.ExternalMediaRegistry;
import org.ourproject.kune.platf.client.ui.rte.insertmedia.InsertMediaDialog;
import org.ourproject.kune.platf.client.ui.rte.insertmedia.abstractmedia.InsertMediaAbstractPresenter;
+import cc.kune.core.shared.dto.ExtMediaDescripDTO;
+
public class InsertMediaExtPresenter extends InsertMediaAbstractPresenter implements InsertMediaExt {
private InsertMediaExtView view;
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertspecialchar/InsertSpecialCharDialogPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertspecialchar/InsertSpecialCharDialogPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertspecialchar/InsertSpecialCharDialogPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,10 +1,11 @@
package org.ourproject.kune.platf.client.ui.rte.insertspecialchar;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.services.Images;
import org.ourproject.kune.platf.client.ui.dialogs.tabbed.AbstractTabbedDialogPanel;
import org.ourproject.kune.platf.client.ui.rte.img.RTEImgResources;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.gwtext.client.core.EventObject;
import com.gwtext.client.widgets.Button;
import com.gwtext.client.widgets.event.ButtonListenerAdapter;
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertspecialchar/asian/InsertSpecialAsianCharPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertspecialchar/asian/InsertSpecialAsianCharPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertspecialchar/asian/InsertSpecialAsianCharPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,9 +1,10 @@
package org.ourproject.kune.platf.client.ui.rte.insertspecialchar.asian;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.ui.rte.insertspecialchar.InsertSpecialCharDialog;
import org.ourproject.kune.platf.client.ui.rte.insertspecialchar.occidental.AbstractInsertCharPanel;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
public class InsertSpecialAsianCharPanel extends AbstractInsertCharPanel implements InsertSpecialAsianCharView {
private static char[] SPECIAL_CHARS = { '・', '×', '【', '】', '『', '』', '《', '》', '“', '”', '「', '」', '〈', '〉', '≪',
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertspecialchar/occidental/InsertSpecialOccCharPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertspecialchar/occidental/InsertSpecialOccCharPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertspecialchar/occidental/InsertSpecialOccCharPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,8 +1,9 @@
package org.ourproject.kune.platf.client.ui.rte.insertspecialchar.occidental;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.ui.rte.insertspecialchar.InsertSpecialCharDialog;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
public class InsertSpecialOccCharPanel extends AbstractInsertCharPanel implements InsertSpecialOccCharView {
private static char[] SPECIAL_CHARS = { '¡', '¢', '£', '¤', '¥', '¦', '§', '¨', '©', 'ª', '«', '¬', '', '®', '¯',
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertspecialchar/utf8/InsertSpecialUTF8CharPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertspecialchar/utf8/InsertSpecialUTF8CharPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertspecialchar/utf8/InsertSpecialUTF8CharPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,11 +1,12 @@
package org.ourproject.kune.platf.client.ui.rte.insertspecialchar.utf8;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
-import org.ourproject.kune.platf.client.ui.TextUtils;
import org.ourproject.kune.platf.client.ui.dialogs.DefaultForm;
import org.ourproject.kune.platf.client.ui.rte.insertspecialchar.InsertSpecialCharDialog;
import org.ourproject.kune.platf.client.ui.rte.insertspecialchar.InsertSpecialCharDialogView;
+import cc.kune.core.client.utils.TextUtils;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.allen_sauer.gwt.log.client.Log;
import com.google.gwt.core.client.Scheduler;
import com.google.gwt.core.client.Scheduler.ScheduledCommand;
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/inserttable/InsertTableDialogPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/inserttable/InsertTableDialogPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/inserttable/InsertTableDialogPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,12 +1,13 @@
package org.ourproject.kune.platf.client.ui.rte.inserttable;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
-import org.ourproject.kune.platf.client.ui.TextUtils;
import org.ourproject.kune.platf.client.ui.dialogs.BasicDialog;
import org.ourproject.kune.platf.client.ui.dialogs.DefaultForm;
import org.ourproject.kune.platf.client.ui.palette.SimplePalette;
import org.ourproject.kune.platf.client.ui.rte.img.RTEImgResources;
+import cc.kune.core.client.utils.TextUtils;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.events.Listener;
import com.calclab.suco.client.ioc.Provider;
import com.google.gwt.user.client.DOM;
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/saving/RTESavingEditor.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/saving/RTESavingEditor.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/saving/RTESavingEditor.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,8 +1,9 @@
package org.ourproject.kune.platf.client.ui.rte.saving;
-import org.ourproject.kune.platf.client.actions.BeforeActionListener;
import org.ourproject.kune.platf.client.ui.rte.basic.RTEditor;
+import cc.kune.core.client.actions.BeforeActionListener;
+
import com.calclab.suco.client.events.Listener;
import com.calclab.suco.client.events.Listener0;
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/saving/RTESavingEditorPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/saving/RTESavingEditorPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/saving/RTESavingEditorPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,12 +1,13 @@
package org.ourproject.kune.platf.client.ui.rte.saving;
import org.ourproject.kune.platf.client.actions.ui.GuiBindingsRegister;
-import org.ourproject.kune.platf.client.i18n.I18nUITranslationService;
import org.ourproject.kune.platf.client.shortcuts.GlobalShortcutRegister;
import org.ourproject.kune.platf.client.ui.noti.NotifyUser;
import org.ourproject.kune.platf.client.ui.rte.basic.RTEditorPanel;
import org.ourproject.kune.platf.client.ui.rte.basic.RTEditorPresenter;
+import cc.kune.core.client.i18n.I18nUITranslationService;
+
import com.calclab.suco.client.events.Listener0;
public class RTESavingEditorPanel extends RTEditorPanel implements RTESavingEditorView {
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/saving/RTESavingEditorPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/saving/RTESavingEditorPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/saving/RTESavingEditorPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -5,15 +5,11 @@
import org.ourproject.kune.platf.client.actions.AbstractExtendedAction;
import org.ourproject.kune.platf.client.actions.ActionEvent;
-import org.ourproject.kune.platf.client.actions.BeforeActionListener;
import org.ourproject.kune.platf.client.actions.KeyStroke;
import org.ourproject.kune.platf.client.actions.ui.ButtonDescriptor;
import org.ourproject.kune.platf.client.actions.ui.MenuCheckItemDescriptor;
import org.ourproject.kune.platf.client.actions.ui.MenuItemDescriptor;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.shortcuts.Keyboard;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.platf.client.ui.palette.ColorWebSafePalette;
import org.ourproject.kune.platf.client.ui.rte.basic.RTEditor;
import org.ourproject.kune.platf.client.ui.rte.basic.RTEditorPresenter;
@@ -27,6 +23,11 @@
import org.ourproject.kune.platf.client.utils.DeferredCommandWrapper;
import org.ourproject.kune.platf.client.utils.TimerWrapper;
+import cc.kune.core.client.actions.BeforeActionListener;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.events.Listener;
import com.calclab.suco.client.events.Listener0;
import com.calclab.suco.client.ioc.Provider;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/PlatformServerModule.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/PlatformServerModule.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/PlatformServerModule.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -24,13 +24,6 @@
import org.ourproject.kune.app.server.AbstractExtendedModule;
import org.ourproject.kune.chat.server.managers.XmppManager;
import org.ourproject.kune.chat.server.managers.XmppManagerDefault;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
-import org.ourproject.kune.platf.client.rpc.ContentService;
-import org.ourproject.kune.platf.client.rpc.GroupService;
-import org.ourproject.kune.platf.client.rpc.I18nService;
-import org.ourproject.kune.platf.client.rpc.SiteService;
-import org.ourproject.kune.platf.client.rpc.SocialNetworkService;
-import org.ourproject.kune.platf.client.rpc.UserService;
import org.ourproject.kune.platf.server.access.AccessRightsService;
import org.ourproject.kune.platf.server.access.AccessRightsServiceDefault;
import org.ourproject.kune.platf.server.access.AccessService;
@@ -108,6 +101,14 @@
import org.ourproject.kune.platf.server.users.UserInfoService;
import org.ourproject.kune.platf.server.users.UserInfoServiceDefault;
+import cc.kune.core.client.rpcservices.ContentService;
+import cc.kune.core.client.rpcservices.GroupService;
+import cc.kune.core.client.rpcservices.I18nService;
+import cc.kune.core.client.rpcservices.SiteService;
+import cc.kune.core.client.rpcservices.SocialNetworkService;
+import cc.kune.core.client.rpcservices.UserService;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.google.inject.matcher.Matchers;
import com.wideplay.warp.persist.PersistenceService;
import com.wideplay.warp.persist.UnitOfWork;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/access/AccessService.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/access/AccessService.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/access/AccessService.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,11 +19,12 @@
*/
package org.ourproject.kune.platf.server.access;
-import org.ourproject.kune.platf.client.errors.DefaultException;
import org.ourproject.kune.platf.server.domain.Container;
import org.ourproject.kune.platf.server.domain.Content;
import org.ourproject.kune.platf.server.domain.User;
+import cc.kune.core.client.errors.DefaultException;
+
public interface AccessService {
Container accessToContainer(Long folderId, User user, AccessRol accessRol) throws DefaultException;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/access/AccessServiceDefault.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/access/AccessServiceDefault.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/access/AccessServiceDefault.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,13 +19,14 @@
*/
package org.ourproject.kune.platf.server.access;
-import org.ourproject.kune.platf.client.errors.AccessViolationException;
-import org.ourproject.kune.platf.client.errors.DefaultException;
import org.ourproject.kune.platf.server.domain.AccessLists;
import org.ourproject.kune.platf.server.domain.Container;
import org.ourproject.kune.platf.server.domain.Content;
import org.ourproject.kune.platf.server.domain.User;
+import cc.kune.core.client.errors.AccessViolationException;
+import cc.kune.core.client.errors.DefaultException;
+
import com.google.inject.Inject;
import com.google.inject.Singleton;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/access/FinderService.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/access/FinderService.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/access/FinderService.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,8 +19,6 @@
*/
package org.ourproject.kune.platf.server.access;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.errors.DefaultException;
import org.ourproject.kune.platf.server.domain.Comment;
import org.ourproject.kune.platf.server.domain.Container;
import org.ourproject.kune.platf.server.domain.Content;
@@ -28,6 +26,9 @@
import org.ourproject.kune.platf.server.domain.Rate;
import org.ourproject.kune.platf.server.domain.User;
+import cc.kune.core.client.errors.DefaultException;
+import cc.kune.core.shared.dto.StateToken;
+
public interface FinderService {
Comment getComment(Long commentId) throws DefaultException;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/access/FinderServiceDefault.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/access/FinderServiceDefault.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/access/FinderServiceDefault.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -22,12 +22,6 @@
import javax.persistence.NoResultException;
import javax.persistence.PersistenceException;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.errors.ContentNotFoundException;
-import org.ourproject.kune.platf.client.errors.DefaultException;
-import org.ourproject.kune.platf.client.errors.GroupNotFoundException;
-import org.ourproject.kune.platf.client.errors.NoDefaultContentException;
-import org.ourproject.kune.platf.client.errors.ToolNotFoundException;
import org.ourproject.kune.platf.server.content.CommentManager;
import org.ourproject.kune.platf.server.content.ContainerManager;
import org.ourproject.kune.platf.server.content.ContentManager;
@@ -40,6 +34,13 @@
import org.ourproject.kune.platf.server.manager.GroupManager;
import org.ourproject.kune.platf.server.manager.RateManager;
+import cc.kune.core.client.errors.ContentNotFoundException;
+import cc.kune.core.client.errors.DefaultException;
+import cc.kune.core.client.errors.GroupNotFoundException;
+import cc.kune.core.client.errors.NoDefaultContentException;
+import cc.kune.core.client.errors.ToolNotFoundException;
+import cc.kune.core.shared.dto.StateToken;
+
import com.google.inject.Inject;
import com.google.inject.Singleton;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/auth/AuthenticatedMethodInterceptor.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/auth/AuthenticatedMethodInterceptor.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/auth/AuthenticatedMethodInterceptor.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -25,10 +25,11 @@
import org.aopalliance.intercept.MethodInvocation;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.ourproject.kune.platf.client.errors.SessionExpiredException;
-import org.ourproject.kune.platf.client.errors.UserMustBeLoggedException;
import org.ourproject.kune.platf.server.UserSession;
+import cc.kune.core.client.errors.SessionExpiredException;
+import cc.kune.core.client.errors.UserMustBeLoggedException;
+
import com.google.inject.Inject;
import com.google.inject.Provider;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/auth/AuthorizatedMethodInterceptor.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/auth/AuthorizatedMethodInterceptor.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/auth/AuthorizatedMethodInterceptor.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -23,8 +23,6 @@
import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.errors.AccessViolationException;
import org.ourproject.kune.platf.server.UserSession;
import org.ourproject.kune.platf.server.access.AccessRights;
import org.ourproject.kune.platf.server.access.AccessRightsService;
@@ -37,6 +35,9 @@
import org.ourproject.kune.platf.server.domain.User;
import org.ourproject.kune.platf.server.manager.GroupManager;
+import cc.kune.core.client.errors.AccessViolationException;
+import cc.kune.core.shared.dto.StateToken;
+
import com.google.inject.Inject;
import com.google.inject.Provider;
import com.google.inject.Singleton;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/auth/SessionServiceDefault.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/auth/SessionServiceDefault.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/auth/SessionServiceDefault.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -22,8 +22,9 @@
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
-import org.ourproject.kune.platf.client.state.Session;
+import cc.kune.core.client.state.Session;
+
import com.google.inject.Inject;
import com.google.inject.Provider;
import com.google.inject.Singleton;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/content/CommentManager.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/content/CommentManager.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/content/CommentManager.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,11 +19,12 @@
\*/
package org.ourproject.kune.platf.server.content;
-import org.ourproject.kune.platf.client.errors.DefaultException;
import org.ourproject.kune.platf.server.domain.Comment;
import org.ourproject.kune.platf.server.domain.User;
import org.ourproject.kune.platf.server.manager.Manager;
+import cc.kune.core.client.errors.DefaultException;
+
public interface CommentManager extends Manager<Comment, Long> {
Comment addComment(User author, Long contentId, String commentText) throws DefaultException;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/content/CommentManagerDefault.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/content/CommentManagerDefault.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/content/CommentManagerDefault.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -21,14 +21,15 @@
import javax.persistence.EntityManager;
-import org.ourproject.kune.platf.client.errors.ContentNotFoundException;
-import org.ourproject.kune.platf.client.errors.DefaultException;
import org.ourproject.kune.platf.server.access.FinderService;
import org.ourproject.kune.platf.server.domain.Comment;
import org.ourproject.kune.platf.server.domain.Content;
import org.ourproject.kune.platf.server.domain.User;
import org.ourproject.kune.platf.server.manager.impl.DefaultManager;
+import cc.kune.core.client.errors.ContentNotFoundException;
+import cc.kune.core.client.errors.DefaultException;
+
import com.google.inject.Inject;
import com.google.inject.Provider;
import com.google.inject.Singleton;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/content/ContainerManager.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/content/ContainerManager.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/content/ContainerManager.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,7 +19,6 @@
*/
package org.ourproject.kune.platf.server.content;
-import org.ourproject.kune.platf.client.errors.DefaultException;
import org.ourproject.kune.platf.server.domain.AccessLists;
import org.ourproject.kune.platf.server.domain.Container;
import org.ourproject.kune.platf.server.domain.Group;
@@ -27,6 +26,8 @@
import org.ourproject.kune.platf.server.manager.Manager;
import org.ourproject.kune.platf.server.manager.impl.SearchResult;
+import cc.kune.core.client.errors.DefaultException;
+
public interface ContainerManager extends Manager<Container, Long> {
Container createFolder(Group group, Container parent, String name, I18nLanguage language, String typeId);
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/content/ContainerManagerDefault.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/content/ContainerManagerDefault.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/content/ContainerManagerDefault.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -28,8 +28,6 @@
import org.apache.lucene.queryParser.MultiFieldQueryParser;
import org.apache.lucene.queryParser.ParseException;
import org.apache.lucene.search.Query;
-import org.ourproject.kune.platf.client.errors.DefaultException;
-import org.ourproject.kune.platf.client.errors.NameInUseException;
import org.ourproject.kune.platf.server.domain.AccessLists;
import org.ourproject.kune.platf.server.domain.Container;
import org.ourproject.kune.platf.server.domain.Content;
@@ -41,6 +39,9 @@
import org.ourproject.kune.platf.server.manager.impl.ServerManagerException;
import org.ourproject.kune.platf.server.utils.FilenameUtils;
+import cc.kune.core.client.errors.DefaultException;
+import cc.kune.core.client.errors.NameInUseException;
+
import com.google.inject.Inject;
import com.google.inject.Provider;
import com.google.inject.Singleton;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/content/ContentManager.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/content/ContentManager.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/content/ContentManager.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -21,7 +21,6 @@
import java.util.Date;
-import org.ourproject.kune.platf.client.errors.DefaultException;
import org.ourproject.kune.platf.server.domain.Container;
import org.ourproject.kune.platf.server.domain.Content;
import org.ourproject.kune.platf.server.domain.ContentStatus;
@@ -31,6 +30,8 @@
import org.ourproject.kune.platf.server.manager.Manager;
import org.ourproject.kune.platf.server.manager.impl.SearchResult;
+import cc.kune.core.client.errors.DefaultException;
+
public interface ContentManager extends Manager<Content, Long> {
String[] DEF_GLOBAL_SEARCH_FIELDS = new String[] { "authors.name", "authors.shortName", "container.name",
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/content/ContentManagerDefault.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/content/ContentManagerDefault.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/content/ContentManagerDefault.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -28,10 +28,6 @@
import org.apache.lucene.queryParser.MultiFieldQueryParser;
import org.apache.lucene.queryParser.ParseException;
import org.apache.lucene.search.Query;
-import org.ourproject.kune.platf.client.errors.DefaultException;
-import org.ourproject.kune.platf.client.errors.I18nNotFoundException;
-import org.ourproject.kune.platf.client.errors.NameInUseException;
-import org.ourproject.kune.platf.client.errors.UserNotFoundException;
import org.ourproject.kune.platf.server.access.FinderService;
import org.ourproject.kune.platf.server.domain.Container;
import org.ourproject.kune.platf.server.domain.Content;
@@ -48,6 +44,11 @@
import org.ourproject.kune.platf.server.manager.impl.ServerManagerException;
import org.ourproject.kune.platf.server.utils.FilenameUtils;
+import cc.kune.core.client.errors.DefaultException;
+import cc.kune.core.client.errors.I18nNotFoundException;
+import cc.kune.core.client.errors.NameInUseException;
+import cc.kune.core.client.errors.UserNotFoundException;
+
import com.google.inject.Inject;
import com.google.inject.Provider;
import com.google.inject.Singleton;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/content/ContentUtils.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/content/ContentUtils.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/content/ContentUtils.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,7 +19,7 @@
\*/
package org.ourproject.kune.platf.server.content;
-import org.ourproject.kune.platf.client.errors.ContentNotFoundException;
+import cc.kune.core.client.errors.ContentNotFoundException;
public final class ContentUtils {
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/domain/ChatUserParams.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/domain/ChatUserParams.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/domain/ChatUserParams.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -21,8 +21,9 @@
import java.io.Serializable;
-import com.calclab.emiteuimodule.client.SubscriptionMode;
+import cc.kune.core.shared.dto.SubscriptionMode;
+@Deprecated
public class ChatUserParams implements Serializable {
private static final long serialVersionUID = -1343712336914940957L;
@@ -31,10 +32,10 @@
private boolean publishRoster;
+ private String chatColor;
+
private SubscriptionMode subscriptionMode;
- private String chatColor;
-
public ChatUserParams() {
this(null, false, SubscriptionMode.autoAcceptAll, null);
};
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/domain/Container.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/domain/Container.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/domain/Container.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -48,8 +48,9 @@
import org.hibernate.search.annotations.Indexed;
import org.hibernate.search.annotations.IndexedEmbedded;
import org.hibernate.search.annotations.Store;
-import org.ourproject.kune.platf.client.dto.StateToken;
+import cc.kune.core.shared.dto.StateToken;
+
import com.google.inject.name.Named;
import com.wideplay.warp.persist.dao.Finder;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/domain/Content.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/domain/Content.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/domain/Content.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -51,8 +51,9 @@
import org.hibernate.search.annotations.Indexed;
import org.hibernate.search.annotations.IndexedEmbedded;
import org.hibernate.validator.NotNull;
-import org.ourproject.kune.platf.client.dto.StateToken;
+import cc.kune.core.shared.dto.StateToken;
+
import com.google.inject.name.Named;
import com.wideplay.warp.persist.dao.Finder;
import com.wideplay.warp.persist.dao.FirstResult;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/domain/Group.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/domain/Group.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/domain/Group.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -45,9 +45,10 @@
import org.hibernate.search.annotations.Store;
import org.hibernate.validator.Length;
import org.hibernate.validator.Pattern;
-import org.ourproject.kune.platf.client.dto.GroupType;
-import org.ourproject.kune.platf.client.dto.StateToken;
+import cc.kune.core.shared.dto.GroupType;
+import cc.kune.core.shared.dto.StateToken;
+
import com.google.inject.name.Named;
import com.wideplay.warp.persist.dao.Finder;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/domain/HasStateToken.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/domain/HasStateToken.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/domain/HasStateToken.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,7 +19,7 @@
*/
package org.ourproject.kune.platf.server.domain;
-import org.ourproject.kune.platf.client.dto.StateToken;
+import cc.kune.core.shared.dto.StateToken;
public interface HasStateToken {
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/domain/User.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/domain/User.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/domain/User.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -44,8 +44,9 @@
import org.hibernate.validator.Length;
import org.hibernate.validator.NotNull;
import org.hibernate.validator.Pattern;
-import org.ourproject.kune.platf.client.dto.StateToken;
+import cc.kune.core.shared.dto.StateToken;
+
import com.google.inject.name.Named;
import com.wideplay.warp.persist.dao.Finder;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/i18n/I18nTranslationServiceDefault.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/i18n/I18nTranslationServiceDefault.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/i18n/I18nTranslationServiceDefault.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,12 +19,13 @@
*/
package org.ourproject.kune.platf.server.i18n;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
-import org.ourproject.kune.platf.client.ui.TextUtils;
import org.ourproject.kune.platf.server.UserSession;
import org.ourproject.kune.platf.server.domain.I18nTranslation;
import org.ourproject.kune.platf.server.manager.I18nTranslationManager;
+import cc.kune.core.client.utils.TextUtils;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.google.inject.Inject;
import com.google.inject.Provider;
import com.google.inject.Singleton;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/init/DatabaseInitializer.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/init/DatabaseInitializer.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/init/DatabaseInitializer.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -5,8 +5,6 @@
import javax.persistence.NoResultException;
-import org.ourproject.kune.platf.client.dto.GroupType;
-import org.ourproject.kune.platf.client.errors.UserMustBeLoggedException;
import org.ourproject.kune.platf.server.content.ContentManager;
import org.ourproject.kune.platf.server.domain.Content;
import org.ourproject.kune.platf.server.domain.ContentStatus;
@@ -30,6 +28,9 @@
import org.ourproject.kune.platf.server.manager.UserManager;
import org.ourproject.kune.platf.server.properties.DatabaseProperties;
+import cc.kune.core.client.errors.UserMustBeLoggedException;
+import cc.kune.core.shared.dto.GroupType;
+
import com.calclab.emiteuimodule.client.SubscriptionMode;
import com.google.inject.Inject;
import com.wideplay.warp.persist.TransactionType;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/GroupManager.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/GroupManager.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/GroupManager.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -21,15 +21,16 @@
import java.util.List;
-import org.ourproject.kune.platf.client.errors.AccessViolationException;
-import org.ourproject.kune.platf.client.errors.EmailAddressInUseException;
-import org.ourproject.kune.platf.client.errors.GroupNameInUseException;
-import org.ourproject.kune.platf.client.errors.UserMustBeLoggedException;
import org.ourproject.kune.platf.server.domain.Content;
import org.ourproject.kune.platf.server.domain.Group;
import org.ourproject.kune.platf.server.domain.User;
import org.ourproject.kune.platf.server.manager.impl.SearchResult;
+import cc.kune.core.client.errors.AccessViolationException;
+import cc.kune.core.client.errors.EmailAddressInUseException;
+import cc.kune.core.client.errors.GroupNameInUseException;
+import cc.kune.core.client.errors.UserMustBeLoggedException;
+
public interface GroupManager extends Manager<Group, Long> {
void changeDefLicense(User user, Group group, String licenseShortName);
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/I18nTranslationManager.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/I18nTranslationManager.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/I18nTranslationManager.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -22,10 +22,11 @@
import java.util.HashMap;
import java.util.List;
-import org.ourproject.kune.platf.client.errors.DefaultException;
import org.ourproject.kune.platf.server.domain.I18nTranslation;
import org.ourproject.kune.platf.server.manager.impl.SearchResult;
+import cc.kune.core.client.errors.DefaultException;
+
public interface I18nTranslationManager extends Manager<I18nTranslation, Long> {
HashMap<String, String> getLexicon(String language);
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/SocialNetworkManager.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/SocialNetworkManager.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/SocialNetworkManager.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,15 +19,16 @@
*/
package org.ourproject.kune.platf.server.manager;
-import org.ourproject.kune.platf.client.dto.SocialNetworkRequestResult;
-import org.ourproject.kune.platf.client.errors.AccessViolationException;
-import org.ourproject.kune.platf.client.errors.DefaultException;
import org.ourproject.kune.platf.server.domain.Group;
import org.ourproject.kune.platf.server.domain.SocialNetwork;
import org.ourproject.kune.platf.server.domain.SocialNetworkData;
import org.ourproject.kune.platf.server.domain.User;
import org.ourproject.kune.platf.server.sn.ParticipationData;
+import cc.kune.core.client.errors.AccessViolationException;
+import cc.kune.core.client.errors.DefaultException;
+import cc.kune.core.shared.dto.SocialNetworkRequestResult;
+
public interface SocialNetworkManager extends Manager<SocialNetwork, Long> {
void acceptJoinGroup(User userLogged, Group group, Group inGroup) throws DefaultException;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/TagUserContentManagerDefault.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/TagUserContentManagerDefault.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/TagUserContentManagerDefault.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -7,7 +7,6 @@
import javax.persistence.NoResultException;
import javax.persistence.Query;
-import org.ourproject.kune.platf.client.ui.TextUtils;
import org.ourproject.kune.platf.server.domain.Content;
import org.ourproject.kune.platf.server.domain.Group;
import org.ourproject.kune.platf.server.domain.Tag;
@@ -17,6 +16,8 @@
import org.ourproject.kune.platf.server.domain.User;
import org.ourproject.kune.platf.server.manager.impl.DefaultManager;
+import cc.kune.core.client.utils.TextUtils;
+
import com.google.inject.Inject;
import com.google.inject.Provider;
import com.google.inject.Singleton;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/UserManager.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/UserManager.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/UserManager.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,11 +19,12 @@
*/
package org.ourproject.kune.platf.server.manager;
-import org.ourproject.kune.platf.client.errors.I18nNotFoundException;
import org.ourproject.kune.platf.server.domain.User;
import org.ourproject.kune.platf.server.manager.impl.SearchResult;
import org.ourproject.kune.platf.server.sn.UserBuddiesData;
+import cc.kune.core.client.errors.I18nNotFoundException;
+
public interface UserManager {
/**
* CreateUser new method with language country and timezone params
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/EntityLogoDownloadManager.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/EntityLogoDownloadManager.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/EntityLogoDownloadManager.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -27,11 +27,12 @@
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
-import org.ourproject.kune.platf.client.dto.StateToken;
import org.ourproject.kune.platf.client.ui.download.FileConstants;
import org.ourproject.kune.platf.server.domain.Group;
import org.ourproject.kune.platf.server.manager.GroupManager;
+import cc.kune.core.shared.dto.StateToken;
+
import com.google.inject.Inject;
public class EntityLogoDownloadManager extends HttpServlet {
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/EntityLogoUploadManager.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/EntityLogoUploadManager.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/EntityLogoUploadManager.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -29,8 +29,6 @@
import magick.MagickException;
import org.apache.commons.fileupload.FileItem;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.ui.download.FileConstants;
import org.ourproject.kune.platf.server.access.AccessRol;
import org.ourproject.kune.platf.server.auth.ActionLevel;
@@ -40,6 +38,9 @@
import org.ourproject.kune.platf.server.domain.Group;
import org.ourproject.kune.platf.server.manager.GroupManager;
+import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.google.inject.Inject;
import com.wideplay.warp.persist.TransactionType;
import com.wideplay.warp.persist.Transactional;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/FileDownloadManager.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/FileDownloadManager.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/FileDownloadManager.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -31,8 +31,6 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.errors.ContentNotFoundException;
import org.ourproject.kune.platf.client.ui.download.FileConstants;
import org.ourproject.kune.platf.client.ui.download.ImageSize;
import org.ourproject.kune.platf.server.access.AccessRol;
@@ -45,6 +43,9 @@
import org.ourproject.kune.platf.server.domain.Content;
import org.ourproject.kune.platf.server.properties.KuneProperties;
+import cc.kune.core.client.errors.ContentNotFoundException;
+import cc.kune.core.shared.dto.StateToken;
+
import com.google.inject.Inject;
/**
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/FileJsonUploadManagerAbstract.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/FileJsonUploadManagerAbstract.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/FileJsonUploadManagerAbstract.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -26,8 +26,9 @@
import net.sf.json.JSONObject;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.google.inject.Inject;
public abstract class FileJsonUploadManagerAbstract extends FileUploadManagerAbstract {
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/FileUploadManager.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/FileUploadManager.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/FileUploadManager.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -26,8 +26,6 @@
import net.sf.json.JSONObject;
import org.apache.commons.fileupload.FileItem;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.ui.download.ImageSize;
import org.ourproject.kune.platf.server.UserSession;
import org.ourproject.kune.platf.server.access.AccessRol;
@@ -45,6 +43,9 @@
import org.ourproject.kune.platf.server.properties.KuneProperties;
import org.ourproject.kune.platf.server.utils.StringW;
+import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.google.inject.Inject;
import com.google.inject.servlet.RequestScoped;
import com.wideplay.warp.persist.TransactionType;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/FileUploadManagerAbstract.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/FileUploadManagerAbstract.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/FileUploadManagerAbstract.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -37,10 +37,11 @@
import org.apache.commons.fileupload.servlet.ServletFileUpload;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.ourproject.kune.platf.client.dto.StateToken;
import org.ourproject.kune.platf.client.ui.download.FileConstants;
import org.ourproject.kune.platf.server.properties.KuneProperties;
+import cc.kune.core.shared.dto.StateToken;
+
import com.google.inject.Inject;
public abstract class FileUploadManagerAbstract extends HttpServlet {
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/FileUtils.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/FileUtils.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/file/FileUtils.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -24,7 +24,7 @@
import java.io.IOException;
import java.io.InputStream;
-import org.ourproject.kune.platf.client.dto.StateToken;
+import cc.kune.core.shared.dto.StateToken;
public class FileUtils {
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/GroupManagerDefault.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/GroupManagerDefault.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/GroupManagerDefault.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -31,12 +31,6 @@
import org.apache.lucene.queryParser.ParseException;
import org.apache.lucene.search.Query;
import org.hibernate.exception.ConstraintViolationException;
-import org.ourproject.kune.platf.client.dto.GroupType;
-import org.ourproject.kune.platf.client.errors.AccessViolationException;
-import org.ourproject.kune.platf.client.errors.DefaultException;
-import org.ourproject.kune.platf.client.errors.EmailAddressInUseException;
-import org.ourproject.kune.platf.client.errors.GroupNameInUseException;
-import org.ourproject.kune.platf.client.errors.UserMustBeLoggedException;
import org.ourproject.kune.platf.server.domain.AccessLists;
import org.ourproject.kune.platf.server.domain.AdmissionType;
import org.ourproject.kune.platf.server.domain.Content;
@@ -53,6 +47,13 @@
import org.ourproject.kune.platf.server.tool.ServerTool;
import org.ourproject.kune.platf.server.tool.ServerToolRegistry;
+import cc.kune.core.client.errors.AccessViolationException;
+import cc.kune.core.client.errors.DefaultException;
+import cc.kune.core.client.errors.EmailAddressInUseException;
+import cc.kune.core.client.errors.GroupNameInUseException;
+import cc.kune.core.client.errors.UserMustBeLoggedException;
+import cc.kune.core.shared.dto.GroupType;
+
import com.google.inject.Inject;
import com.google.inject.Provider;
import com.google.inject.Singleton;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/I18nTranslationManagerDefault.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/I18nTranslationManagerDefault.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/I18nTranslationManagerDefault.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -25,13 +25,14 @@
import javax.persistence.EntityManager;
-import org.ourproject.kune.platf.client.errors.DefaultException;
-import org.ourproject.kune.platf.client.ui.TextUtils;
import org.ourproject.kune.platf.server.domain.I18nLanguage;
import org.ourproject.kune.platf.server.domain.I18nTranslation;
import org.ourproject.kune.platf.server.manager.I18nLanguageManager;
import org.ourproject.kune.platf.server.manager.I18nTranslationManager;
+import cc.kune.core.client.errors.DefaultException;
+import cc.kune.core.client.utils.TextUtils;
+
import com.google.inject.Inject;
import com.google.inject.Provider;
import com.google.inject.Singleton;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/PropertiesManagerDefault.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/PropertiesManagerDefault.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/PropertiesManagerDefault.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -6,12 +6,13 @@
import javax.persistence.EntityManager;
-import org.ourproject.kune.platf.client.errors.UnknownPropertyException;
import org.ourproject.kune.platf.server.domain.Properties;
import org.ourproject.kune.platf.server.domain.Property;
import org.ourproject.kune.platf.server.domain.PropertySetted;
import org.ourproject.kune.platf.server.manager.PropertiesManager;
+import cc.kune.core.client.errors.UnknownPropertyException;
+
import com.google.inject.Inject;
import com.google.inject.Provider;
import com.google.inject.Singleton;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/SocialNetworkManagerDefault.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/SocialNetworkManagerDefault.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/SocialNetworkManagerDefault.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -23,14 +23,6 @@
import javax.persistence.EntityManager;
-import org.ourproject.kune.platf.client.dto.GroupType;
-import org.ourproject.kune.platf.client.dto.SocialNetworkRequestResult;
-import org.ourproject.kune.platf.client.errors.AccessViolationException;
-import org.ourproject.kune.platf.client.errors.AlreadyGroupMemberException;
-import org.ourproject.kune.platf.client.errors.AlreadyUserMemberException;
-import org.ourproject.kune.platf.client.errors.DefaultException;
-import org.ourproject.kune.platf.client.errors.LastAdminInGroupException;
-import org.ourproject.kune.platf.client.errors.UserMustBeLoggedException;
import org.ourproject.kune.platf.server.ServerException;
import org.ourproject.kune.platf.server.access.AccessRights;
import org.ourproject.kune.platf.server.access.AccessRightsService;
@@ -47,6 +39,15 @@
import org.ourproject.kune.platf.server.sn.ParticipationData;
import org.ourproject.kune.platf.server.sn.UserBuddiesData;
+import cc.kune.core.client.errors.AccessViolationException;
+import cc.kune.core.client.errors.AlreadyGroupMemberException;
+import cc.kune.core.client.errors.AlreadyUserMemberException;
+import cc.kune.core.client.errors.DefaultException;
+import cc.kune.core.client.errors.LastAdminInGroupException;
+import cc.kune.core.client.errors.UserMustBeLoggedException;
+import cc.kune.core.shared.dto.GroupType;
+import cc.kune.core.shared.dto.SocialNetworkRequestResult;
+
import com.google.inject.Inject;
import com.google.inject.Provider;
import com.google.inject.Singleton;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/UserManagerDefault.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/UserManagerDefault.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/manager/impl/UserManagerDefault.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -34,8 +34,6 @@
import org.jivesoftware.smack.packet.RosterPacket.ItemType;
import org.ourproject.kune.chat.server.managers.ChatConnection;
import org.ourproject.kune.chat.server.managers.XmppManager;
-import org.ourproject.kune.platf.client.errors.I18nNotFoundException;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.server.domain.I18nCountry;
import org.ourproject.kune.platf.server.domain.I18nLanguage;
import org.ourproject.kune.platf.server.domain.Properties;
@@ -49,6 +47,9 @@
import org.ourproject.kune.platf.server.properties.ChatProperties;
import org.ourproject.kune.platf.server.sn.UserBuddiesData;
+import cc.kune.core.client.errors.I18nNotFoundException;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.google.inject.Inject;
import com.google.inject.Provider;
import com.google.inject.Singleton;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/mapper/DozerMapper.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/mapper/DozerMapper.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/mapper/DozerMapper.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -25,9 +25,10 @@
import net.sf.dozer.util.mapping.DozerBeanMapperSingletonWrapper;
import net.sf.dozer.util.mapping.MapperIF;
-import org.ourproject.kune.platf.client.dto.SearchResultDTO;
import org.ourproject.kune.platf.server.manager.impl.SearchResult;
+import cc.kune.core.shared.dto.SearchResultDTO;
+
import com.google.inject.Singleton;
@Singleton
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/mapper/Mapper.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/mapper/Mapper.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/mapper/Mapper.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -21,9 +21,10 @@
import java.util.List;
-import org.ourproject.kune.platf.client.dto.SearchResultDTO;
import org.ourproject.kune.platf.server.manager.impl.SearchResult;
+import cc.kune.core.shared.dto.SearchResultDTO;
+
public interface Mapper {
<T> T map(Object source, Class<T> type);
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/rest/ContentJSONService.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/rest/ContentJSONService.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/rest/ContentJSONService.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,8 +19,6 @@
*/
package org.ourproject.kune.platf.server.rest;
-import org.ourproject.kune.platf.client.dto.LinkDTO;
-import org.ourproject.kune.platf.client.dto.SearchResultDTO;
import org.ourproject.kune.platf.client.services.SearcherConstants;
import org.ourproject.kune.platf.server.content.ContainerManager;
import org.ourproject.kune.platf.server.content.ContentManager;
@@ -30,6 +28,9 @@
import org.ourproject.kune.platf.server.mapper.Mapper;
import org.ourproject.kune.rack.filters.rest.REST;
+import cc.kune.core.shared.dto.LinkDTO;
+import cc.kune.core.shared.dto.SearchResultDTO;
+
import com.google.inject.Inject;
public class ContentJSONService {
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/rest/GroupJSONService.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/rest/GroupJSONService.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/rest/GroupJSONService.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,8 +19,6 @@
*/
package org.ourproject.kune.platf.server.rest;
-import org.ourproject.kune.platf.client.dto.LinkDTO;
-import org.ourproject.kune.platf.client.dto.SearchResultDTO;
import org.ourproject.kune.platf.client.services.SearcherConstants;
import org.ourproject.kune.platf.server.domain.Group;
import org.ourproject.kune.platf.server.manager.GroupManager;
@@ -28,6 +26,9 @@
import org.ourproject.kune.platf.server.mapper.Mapper;
import org.ourproject.kune.rack.filters.rest.REST;
+import cc.kune.core.shared.dto.LinkDTO;
+import cc.kune.core.shared.dto.SearchResultDTO;
+
import com.google.inject.Inject;
public class GroupJSONService {
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/rest/I18nTranslationJSONService.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/rest/I18nTranslationJSONService.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/rest/I18nTranslationJSONService.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -21,8 +21,6 @@
import java.util.List;
-import org.ourproject.kune.platf.client.dto.I18nTranslationDTO;
-import org.ourproject.kune.platf.client.dto.SearchResultDTO;
import org.ourproject.kune.platf.client.services.SearcherConstants;
import org.ourproject.kune.platf.server.domain.I18nTranslation;
import org.ourproject.kune.platf.server.manager.I18nTranslationManager;
@@ -30,6 +28,9 @@
import org.ourproject.kune.platf.server.mapper.Mapper;
import org.ourproject.kune.rack.filters.rest.REST;
+import cc.kune.core.shared.dto.I18nTranslationDTO;
+import cc.kune.core.shared.dto.SearchResultDTO;
+
import com.google.inject.Inject;
public class I18nTranslationJSONService {
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/rest/UserJSONService.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/rest/UserJSONService.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/rest/UserJSONService.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,8 +19,6 @@
*/
package org.ourproject.kune.platf.server.rest;
-import org.ourproject.kune.platf.client.dto.LinkDTO;
-import org.ourproject.kune.platf.client.dto.SearchResultDTO;
import org.ourproject.kune.platf.client.services.SearcherConstants;
import org.ourproject.kune.platf.server.domain.User;
import org.ourproject.kune.platf.server.manager.UserManager;
@@ -28,6 +26,9 @@
import org.ourproject.kune.platf.server.mapper.Mapper;
import org.ourproject.kune.rack.filters.rest.REST;
+import cc.kune.core.shared.dto.LinkDTO;
+import cc.kune.core.shared.dto.SearchResultDTO;
+
import com.google.inject.Inject;
public class UserJSONService {
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/rpc/ContentRPC.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/rpc/ContentRPC.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/rpc/ContentRPC.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -26,26 +26,6 @@
import org.ourproject.kune.chat.server.ChatServerTool;
import org.ourproject.kune.chat.server.managers.ChatConnection;
import org.ourproject.kune.chat.server.managers.XmppManager;
-import org.ourproject.kune.platf.client.dto.AccessRightsDTO;
-import org.ourproject.kune.platf.client.dto.CommentDTO;
-import org.ourproject.kune.platf.client.dto.ContentSimpleDTO;
-import org.ourproject.kune.platf.client.dto.ContentStatusDTO;
-import org.ourproject.kune.platf.client.dto.I18nLanguageDTO;
-import org.ourproject.kune.platf.client.dto.RateResultDTO;
-import org.ourproject.kune.platf.client.dto.StateAbstractDTO;
-import org.ourproject.kune.platf.client.dto.StateContainerDTO;
-import org.ourproject.kune.platf.client.dto.StateContentDTO;
-import org.ourproject.kune.platf.client.dto.StateNoContentDTO;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.dto.TagCloudResultDTO;
-import org.ourproject.kune.platf.client.dto.TagCountDTO;
-import org.ourproject.kune.platf.client.errors.AccessViolationException;
-import org.ourproject.kune.platf.client.errors.ContentNotFoundException;
-import org.ourproject.kune.platf.client.errors.DefaultException;
-import org.ourproject.kune.platf.client.errors.GroupNotFoundException;
-import org.ourproject.kune.platf.client.errors.NoDefaultContentException;
-import org.ourproject.kune.platf.client.errors.ToolNotFoundException;
-import org.ourproject.kune.platf.client.rpc.ContentService;
import org.ourproject.kune.platf.server.UserSession;
import org.ourproject.kune.platf.server.access.AccessRightsService;
import org.ourproject.kune.platf.server.access.AccessRol;
@@ -75,6 +55,27 @@
import org.ourproject.kune.platf.server.state.StateContent;
import org.ourproject.kune.platf.server.state.StateService;
+import cc.kune.core.client.errors.AccessViolationException;
+import cc.kune.core.client.errors.ContentNotFoundException;
+import cc.kune.core.client.errors.DefaultException;
+import cc.kune.core.client.errors.GroupNotFoundException;
+import cc.kune.core.client.errors.NoDefaultContentException;
+import cc.kune.core.client.errors.ToolNotFoundException;
+import cc.kune.core.client.rpcservices.ContentService;
+import cc.kune.core.shared.dto.AccessRightsDTO;
+import cc.kune.core.shared.dto.CommentDTO;
+import cc.kune.core.shared.dto.ContentSimpleDTO;
+import cc.kune.core.shared.dto.ContentStatusDTO;
+import cc.kune.core.shared.dto.I18nLanguageDTO;
+import cc.kune.core.shared.dto.RateResultDTO;
+import cc.kune.core.shared.dto.StateAbstractDTO;
+import cc.kune.core.shared.dto.StateContainerDTO;
+import cc.kune.core.shared.dto.StateContentDTO;
+import cc.kune.core.shared.dto.StateNoContentDTO;
+import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.dto.TagCloudResultDTO;
+import cc.kune.core.shared.dto.TagCountDTO;
+
import com.google.inject.Inject;
import com.google.inject.Provider;
import com.google.inject.Singleton;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/rpc/GroupRPC.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/rpc/GroupRPC.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/rpc/GroupRPC.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,13 +19,6 @@
*/
package org.ourproject.kune.platf.server.rpc;
-import org.ourproject.kune.platf.client.dto.AdmissionTypeDTO;
-import org.ourproject.kune.platf.client.dto.GroupDTO;
-import org.ourproject.kune.platf.client.dto.LicenseDTO;
-import org.ourproject.kune.platf.client.dto.SocialNetworkVisibilityDTO;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.errors.DefaultException;
-import org.ourproject.kune.platf.client.rpc.GroupService;
import org.ourproject.kune.platf.server.UserSession;
import org.ourproject.kune.platf.server.access.AccessRol;
import org.ourproject.kune.platf.server.auth.ActionLevel;
@@ -41,6 +34,14 @@
import org.ourproject.kune.platf.server.manager.GroupManager;
import org.ourproject.kune.platf.server.mapper.Mapper;
+import cc.kune.core.client.errors.DefaultException;
+import cc.kune.core.client.rpcservices.GroupService;
+import cc.kune.core.shared.dto.AdmissionTypeDTO;
+import cc.kune.core.shared.dto.GroupDTO;
+import cc.kune.core.shared.dto.LicenseDTO;
+import cc.kune.core.shared.dto.SocialNetworkVisibilityDTO;
+import cc.kune.core.shared.dto.StateToken;
+
import com.google.inject.Inject;
import com.google.inject.Provider;
import com.google.inject.Singleton;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/rpc/I18nRPC.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/rpc/I18nRPC.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/rpc/I18nRPC.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -24,10 +24,6 @@
import javax.persistence.NoResultException;
import javax.servlet.http.HttpServletRequest;
-import org.ourproject.kune.platf.client.dto.I18nLanguageDTO;
-import org.ourproject.kune.platf.client.errors.DefaultException;
-import org.ourproject.kune.platf.client.errors.SessionExpiredException;
-import org.ourproject.kune.platf.client.rpc.I18nService;
import org.ourproject.kune.platf.server.UserSession;
import org.ourproject.kune.platf.server.auth.Authenticated;
import org.ourproject.kune.platf.server.domain.I18nLanguage;
@@ -36,6 +32,11 @@
import org.ourproject.kune.platf.server.manager.I18nTranslationManager;
import org.ourproject.kune.platf.server.mapper.Mapper;
+import cc.kune.core.client.errors.DefaultException;
+import cc.kune.core.client.errors.SessionExpiredException;
+import cc.kune.core.client.rpcservices.I18nService;
+import cc.kune.core.shared.dto.I18nLanguageDTO;
+
import com.google.inject.Inject;
import com.google.inject.Provider;
import com.google.inject.Singleton;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/rpc/SiteRPC.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/rpc/SiteRPC.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/rpc/SiteRPC.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -21,9 +21,6 @@
import java.util.TimeZone;
-import org.ourproject.kune.platf.client.dto.InitDataDTO;
-import org.ourproject.kune.platf.client.errors.DefaultException;
-import org.ourproject.kune.platf.client.rpc.SiteService;
import org.ourproject.kune.platf.server.InitData;
import org.ourproject.kune.platf.server.UserSession;
import org.ourproject.kune.platf.server.manager.ExtMediaDescripManager;
@@ -37,6 +34,10 @@
import org.ourproject.kune.platf.server.tool.ServerToolRegistry;
import org.ourproject.kune.platf.server.users.UserInfoService;
+import cc.kune.core.client.errors.DefaultException;
+import cc.kune.core.client.rpcservices.SiteService;
+import cc.kune.core.shared.dto.InitDataDTO;
+
import com.google.inject.Inject;
import com.google.inject.Provider;
import com.google.inject.Singleton;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/rpc/SocialNetworkRPC.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/rpc/SocialNetworkRPC.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/rpc/SocialNetworkRPC.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,11 +19,6 @@
*/
package org.ourproject.kune.platf.server.rpc;
-import org.ourproject.kune.platf.client.dto.SocialNetworkDataDTO;
-import org.ourproject.kune.platf.client.dto.SocialNetworkRequestResult;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.errors.DefaultException;
-import org.ourproject.kune.platf.client.rpc.SocialNetworkService;
import org.ourproject.kune.platf.server.UserSession;
import org.ourproject.kune.platf.server.access.AccessRol;
import org.ourproject.kune.platf.server.auth.ActionLevel;
@@ -35,6 +30,12 @@
import org.ourproject.kune.platf.server.manager.SocialNetworkManager;
import org.ourproject.kune.platf.server.mapper.Mapper;
+import cc.kune.core.client.errors.DefaultException;
+import cc.kune.core.client.rpcservices.SocialNetworkService;
+import cc.kune.core.shared.dto.SocialNetworkDataDTO;
+import cc.kune.core.shared.dto.SocialNetworkRequestResult;
+import cc.kune.core.shared.dto.StateToken;
+
import com.google.inject.Inject;
import com.google.inject.Provider;
import com.google.inject.Singleton;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/rpc/UserRPC.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/rpc/UserRPC.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/rpc/UserRPC.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -22,14 +22,6 @@
import java.util.UUID;
import org.jivesoftware.smack.util.Base64;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.dto.UserBuddiesVisibilityDTO;
-import org.ourproject.kune.platf.client.dto.UserDTO;
-import org.ourproject.kune.platf.client.dto.UserInfoDTO;
-import org.ourproject.kune.platf.client.errors.AccessViolationException;
-import org.ourproject.kune.platf.client.errors.DefaultException;
-import org.ourproject.kune.platf.client.errors.UserAuthException;
-import org.ourproject.kune.platf.client.rpc.UserService;
import org.ourproject.kune.platf.server.UserSession;
import org.ourproject.kune.platf.server.access.AccessRol;
import org.ourproject.kune.platf.server.auth.ActionLevel;
@@ -45,6 +37,15 @@
import org.ourproject.kune.platf.server.users.UserInfo;
import org.ourproject.kune.platf.server.users.UserInfoService;
+import cc.kune.core.client.errors.AccessViolationException;
+import cc.kune.core.client.errors.DefaultException;
+import cc.kune.core.client.errors.UserAuthException;
+import cc.kune.core.client.rpcservices.UserService;
+import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.dto.UserBuddiesVisibilityDTO;
+import cc.kune.core.shared.dto.UserDTO;
+import cc.kune.core.shared.dto.UserInfoDTO;
+
import com.google.inject.Inject;
import com.google.inject.Provider;
import com.google.inject.Singleton;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/state/StateAbstract.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/state/StateAbstract.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/state/StateAbstract.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -21,7 +21,6 @@
import java.util.List;
-import org.ourproject.kune.platf.client.dto.StateToken;
import org.ourproject.kune.platf.server.access.AccessRights;
import org.ourproject.kune.platf.server.domain.Group;
import org.ourproject.kune.platf.server.domain.SocialNetwork;
@@ -29,6 +28,8 @@
import org.ourproject.kune.platf.server.sn.ParticipationData;
import org.ourproject.kune.platf.server.sn.UserBuddiesData;
+import cc.kune.core.shared.dto.StateToken;
+
public abstract class StateAbstract {
private List<String> enabledTools;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/state/StateServiceDefault.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/state/StateServiceDefault.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/state/StateServiceDefault.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,7 +19,6 @@
*/
package org.ourproject.kune.platf.server.state;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.server.access.AccessRightsService;
import org.ourproject.kune.platf.server.content.ContentManager;
import org.ourproject.kune.platf.server.domain.Container;
@@ -32,6 +31,8 @@
import org.ourproject.kune.platf.server.manager.SocialNetworkManager;
import org.ourproject.kune.platf.server.manager.TagUserContentManager;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.google.inject.Inject;
import com.google.inject.Singleton;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/users/UserInfoService.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/users/UserInfoService.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/users/UserInfoService.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,9 +19,10 @@
*/
package org.ourproject.kune.platf.server.users;
-import org.ourproject.kune.platf.client.errors.DefaultException;
import org.ourproject.kune.platf.server.domain.User;
+import cc.kune.core.client.errors.DefaultException;
+
public interface UserInfoService {
UserInfo buildInfo(User user, String userHash) throws DefaultException;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/users/UserInfoServiceDefault.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/users/UserInfoServiceDefault.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/users/UserInfoServiceDefault.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,7 +19,6 @@
*/
package org.ourproject.kune.platf.server.users;
-import org.ourproject.kune.platf.client.errors.DefaultException;
import org.ourproject.kune.platf.server.domain.Content;
import org.ourproject.kune.platf.server.domain.Group;
import org.ourproject.kune.platf.server.domain.User;
@@ -27,6 +26,8 @@
import org.ourproject.kune.platf.server.manager.SocialNetworkManager;
import org.ourproject.kune.platf.server.sn.ParticipationData;
+import cc.kune.core.client.errors.DefaultException;
+
import com.google.inject.Inject;
import com.google.inject.Singleton;
Modified: trunk/src/main/java/org/ourproject/kune/platf/server/utils/FilenameUtils.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/server/utils/FilenameUtils.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/platf/server/utils/FilenameUtils.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -20,8 +20,9 @@
package org.ourproject.kune.platf.server.utils;
import org.apache.commons.lang.StringUtils;
-import org.ourproject.kune.platf.client.errors.NameNotPermittedException;
+import cc.kune.core.client.errors.NameNotPermittedException;
+
public class FilenameUtils {
/**
Modified: trunk/src/main/java/org/ourproject/kune/wiki/client/WikiClientActions.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/wiki/client/WikiClientActions.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/wiki/client/WikiClientActions.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -24,12 +24,6 @@
import static org.ourproject.kune.wiki.client.WikiClientTool.TYPE_UPLOADEDFILE;
import static org.ourproject.kune.wiki.client.WikiClientTool.TYPE_WIKIPAGE;
-import org.ourproject.kune.platf.client.i18n.I18nUITranslationService;
-import org.ourproject.kune.platf.client.rpc.ContentServiceAsync;
-import org.ourproject.kune.platf.client.rpc.GroupServiceAsync;
-import org.ourproject.kune.platf.client.services.ErrorHandler;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.platf.client.ui.download.FileDownloadUtils;
import org.ourproject.kune.platf.client.utils.DeferredCommandWrapper;
import org.ourproject.kune.wiki.client.cnt.WikiViewer;
@@ -45,6 +39,13 @@
import org.ourproject.kune.workspace.client.upload.FileUploader;
import org.ourproject.kune.workspace.client.wave.WaveInsert;
+import cc.kune.core.client.errors.ErrorHandler;
+import cc.kune.core.client.i18n.I18nUITranslationService;
+import cc.kune.core.client.rpcservices.ContentServiceAsync;
+import cc.kune.core.client.rpcservices.GroupServiceAsync;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+
import com.calclab.suco.client.ioc.Provider;
public class WikiClientActions extends AbstractFoldableContentActions {
Modified: trunk/src/main/java/org/ourproject/kune/wiki/client/WikiClientModule.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/wiki/client/WikiClientModule.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/wiki/client/WikiClientModule.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -20,15 +20,8 @@
package org.ourproject.kune.wiki.client;
import org.ourproject.kune.platf.client.app.ToolGroup;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
-import org.ourproject.kune.platf.client.i18n.I18nUITranslationService;
import org.ourproject.kune.platf.client.registry.ContentCapabilitiesRegistry;
-import org.ourproject.kune.platf.client.rpc.ContentServiceAsync;
-import org.ourproject.kune.platf.client.rpc.GroupServiceAsync;
import org.ourproject.kune.platf.client.services.AbstractExtendedModule;
-import org.ourproject.kune.platf.client.services.ErrorHandler;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.platf.client.ui.download.FileDownloadUtils;
import org.ourproject.kune.platf.client.ui.rte.insertmedia.abstractmedia.MediaUtils;
import org.ourproject.kune.platf.client.utils.DeferredCommandWrapper;
@@ -57,6 +50,14 @@
import org.ourproject.kune.workspace.client.upload.FileUploader;
import org.ourproject.kune.workspace.client.wave.WaveInsert;
+import cc.kune.core.client.errors.ErrorHandler;
+import cc.kune.core.client.i18n.I18nUITranslationService;
+import cc.kune.core.client.rpcservices.ContentServiceAsync;
+import cc.kune.core.client.rpcservices.GroupServiceAsync;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.ioc.decorator.Singleton;
import com.calclab.suco.client.ioc.module.Factory;
Modified: trunk/src/main/java/org/ourproject/kune/wiki/client/WikiClientTool.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/wiki/client/WikiClientTool.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/wiki/client/WikiClientTool.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,13 +19,14 @@
*/
package org.ourproject.kune.wiki.client;
-import org.ourproject.kune.platf.client.i18n.I18nUITranslationService;
import org.ourproject.kune.platf.client.registry.ContentCapabilitiesRegistry;
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
import org.ourproject.kune.workspace.client.themes.WsThemeManager;
import org.ourproject.kune.workspace.client.tool.FoldableAbstractClientTool;
import org.ourproject.kune.workspace.client.tool.ToolSelector;
+import cc.kune.core.client.i18n.I18nUITranslationService;
+
public class WikiClientTool extends FoldableAbstractClientTool {
public static final String NAME = "wiki";
public static final String TYPE_ROOT = NAME + "." + "root";
Modified: trunk/src/main/java/org/ourproject/kune/wiki/client/cnt/WikiFolderContentPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/wiki/client/cnt/WikiFolderContentPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/wiki/client/cnt/WikiFolderContentPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,10 +19,11 @@
*/
package org.ourproject.kune.wiki.client.cnt;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.workspace.client.cnt.FoldableContentPanel;
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
public class WikiFolderContentPanel extends FoldableContentPanel implements WikiFolderContentView {
public WikiFolderContentPanel(WorkspaceSkeleton ws, I18nTranslationService i18n) {
Modified: trunk/src/main/java/org/ourproject/kune/wiki/client/cnt/WikiFolderContentPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/wiki/client/cnt/WikiFolderContentPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/wiki/client/cnt/WikiFolderContentPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -20,18 +20,19 @@
package org.ourproject.kune.wiki.client.cnt;
import org.ourproject.kune.platf.client.actions.ActionRegistry;
-import org.ourproject.kune.platf.client.dto.ContainerDTO;
-import org.ourproject.kune.platf.client.dto.StateContainerDTO;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.platf.client.ui.download.FileDownloadUtils;
import org.ourproject.kune.platf.client.ui.rte.insertmedia.abstractmedia.MediaUtils;
import org.ourproject.kune.wiki.client.WikiClientTool;
import org.ourproject.kune.workspace.client.cnt.ActionContentToolbar;
import org.ourproject.kune.workspace.client.cnt.FoldableContentPresenter;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.dto.ContainerDTO;
+import cc.kune.core.shared.dto.StateContainerDTO;
+import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.ioc.Provider;
public class WikiFolderContentPresenter extends FoldableContentPresenter implements WikiFolderContent {
Modified: trunk/src/main/java/org/ourproject/kune/wiki/client/cnt/WikiViewerPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/wiki/client/cnt/WikiViewerPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/wiki/client/cnt/WikiViewerPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,10 +19,11 @@
*/
package org.ourproject.kune.wiki.client.cnt;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.workspace.client.cnt.FoldableContentPanel;
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
public class WikiViewerPanel extends FoldableContentPanel implements WikiViewerView {
public WikiViewerPanel(final WorkspaceSkeleton ws, I18nTranslationService i18n) {
super(ws, i18n);
Modified: trunk/src/main/java/org/ourproject/kune/wiki/client/cnt/WikiViewerPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/wiki/client/cnt/WikiViewerPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/wiki/client/cnt/WikiViewerPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,10 +19,6 @@
*/
package org.ourproject.kune.wiki.client.cnt;
-import org.ourproject.kune.platf.client.dto.StateContentDTO;
-import org.ourproject.kune.platf.client.i18n.I18nUITranslationService;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.platf.client.ui.download.FileDownloadUtils;
import org.ourproject.kune.platf.client.ui.rte.insertmedia.abstractmedia.MediaUtils;
import org.ourproject.kune.wiki.client.WikiClientTool;
@@ -30,6 +26,11 @@
import org.ourproject.kune.workspace.client.cnt.ContentActionRegistry;
import org.ourproject.kune.workspace.client.cnt.FoldableContentPresenter;
+import cc.kune.core.client.i18n.I18nUITranslationService;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.dto.StateContentDTO;
+
import com.calclab.suco.client.ioc.Provider;
public class WikiViewerPresenter extends FoldableContentPresenter implements WikiViewer {
Modified: trunk/src/main/java/org/ourproject/kune/wiki/client/ctx/WikiContextPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/wiki/client/ctx/WikiContextPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/wiki/client/ctx/WikiContextPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,12 +19,13 @@
*/
package org.ourproject.kune.wiki.client.ctx;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.wiki.client.WikiClientTool;
import org.ourproject.kune.workspace.client.ctxnav.ContextNavigator;
import org.ourproject.kune.workspace.client.cxt.ContextPropEditor;
import org.ourproject.kune.workspace.client.cxt.FoldableContextPresenter;
+import cc.kune.core.client.state.StateManager;
+
import com.calclab.suco.client.ioc.Provider;
public class WikiContextPresenter extends FoldableContextPresenter implements WikiContext {
Modified: trunk/src/main/java/org/ourproject/kune/wiki/server/WikiServerTool.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/wiki/server/WikiServerTool.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/wiki/server/WikiServerTool.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -21,9 +21,6 @@
import java.util.Date;
-import org.ourproject.kune.platf.client.errors.ContainerNotPermittedException;
-import org.ourproject.kune.platf.client.errors.ContentNotPermittedException;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.server.content.ContainerManager;
import org.ourproject.kune.platf.server.content.ContentManager;
import org.ourproject.kune.platf.server.domain.AccessLists;
@@ -39,6 +36,10 @@
import org.ourproject.kune.platf.server.tool.ServerToolRegistry;
import org.ourproject.kune.platf.server.tool.ServerToolTarget;
+import cc.kune.core.client.errors.ContainerNotPermittedException;
+import cc.kune.core.client.errors.ContentNotPermittedException;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.google.inject.Inject;
public class WikiServerTool implements ServerTool {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/AbstractFoldableContentActions.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/AbstractFoldableContentActions.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/AbstractFoldableContentActions.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -31,23 +31,6 @@
import org.ourproject.kune.platf.client.actions.ActionToolbarMenuRadioDescriptor;
import org.ourproject.kune.platf.client.actions.ActionToolbarPosition;
import org.ourproject.kune.platf.client.actions.RadioMustBeChecked;
-import org.ourproject.kune.platf.client.dto.AccessRolDTO;
-import org.ourproject.kune.platf.client.dto.ContentSimpleDTO;
-import org.ourproject.kune.platf.client.dto.ContentStatusDTO;
-import org.ourproject.kune.platf.client.dto.GroupDTO;
-import org.ourproject.kune.platf.client.dto.InitDataDTO;
-import org.ourproject.kune.platf.client.dto.StateAbstractDTO;
-import org.ourproject.kune.platf.client.dto.StateContainerDTO;
-import org.ourproject.kune.platf.client.dto.StateContentDTO;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.errors.SessionExpiredException;
-import org.ourproject.kune.platf.client.i18n.I18nUITranslationService;
-import org.ourproject.kune.platf.client.rpc.AsyncCallbackSimple;
-import org.ourproject.kune.platf.client.rpc.ContentServiceAsync;
-import org.ourproject.kune.platf.client.rpc.GroupServiceAsync;
-import org.ourproject.kune.platf.client.services.ErrorHandler;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.platf.client.ui.download.FileDownloadUtils;
import org.ourproject.kune.platf.client.ui.noti.NotifyUser;
import org.ourproject.kune.platf.client.utils.DeferredCommandWrapper;
@@ -63,6 +46,24 @@
import org.ourproject.kune.workspace.client.upload.FileUploader;
import org.ourproject.kune.workspace.client.wave.WaveInsert;
+import cc.kune.core.client.errors.ErrorHandler;
+import cc.kune.core.client.errors.SessionExpiredException;
+import cc.kune.core.client.i18n.I18nUITranslationService;
+import cc.kune.core.client.rpcservices.AsyncCallbackSimple;
+import cc.kune.core.client.rpcservices.ContentServiceAsync;
+import cc.kune.core.client.rpcservices.GroupServiceAsync;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.dto.AccessRolDTO;
+import cc.kune.core.shared.dto.ContentSimpleDTO;
+import cc.kune.core.shared.dto.ContentStatusDTO;
+import cc.kune.core.shared.dto.GroupDTO;
+import cc.kune.core.shared.dto.InitDataDTO;
+import cc.kune.core.shared.dto.StateAbstractDTO;
+import cc.kune.core.shared.dto.StateContainerDTO;
+import cc.kune.core.shared.dto.StateContentDTO;
+import cc.kune.core.shared.dto.StateToken;
+
import com.calclab.suco.client.events.Listener;
import com.calclab.suco.client.events.Listener0;
import com.calclab.suco.client.ioc.Provider;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/ActionsModule.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/ActionsModule.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/ActionsModule.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,15 +1,16 @@
package org.ourproject.kune.workspace.client;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
-import org.ourproject.kune.platf.client.rpc.SocialNetworkServiceAsync;
import org.ourproject.kune.platf.client.services.AbstractExtendedModule;
-import org.ourproject.kune.platf.client.state.AccessRightsClientManager;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.platf.client.ui.img.ImgResources;
import org.ourproject.kune.workspace.client.socialnet.ParticipateAction;
import org.ourproject.kune.workspace.client.socialnet.UnjoinAction;
+import cc.kune.core.client.rpcservices.SocialNetworkServiceAsync;
+import cc.kune.core.client.state.AccessRightsClientManager;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.ioc.decorator.NoDecoration;
import com.calclab.suco.client.ioc.module.Factory;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/WorkspaceModule.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/WorkspaceModule.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/WorkspaceModule.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -27,30 +27,13 @@
import org.ourproject.kune.platf.client.app.ApplicationComponentGroup;
import org.ourproject.kune.platf.client.app.GroupOptionsCollection;
import org.ourproject.kune.platf.client.app.UserOptionsCollection;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.dto.StateTokenUtils;
-import org.ourproject.kune.platf.client.dto.UserSimpleDTO;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
-import org.ourproject.kune.platf.client.i18n.I18nUITranslationService;
import org.ourproject.kune.platf.client.registry.AuthorableRegistry;
import org.ourproject.kune.platf.client.registry.ContentCapabilitiesRegistry;
import org.ourproject.kune.platf.client.registry.RenamableRegistry;
-import org.ourproject.kune.platf.client.rpc.ContentService;
-import org.ourproject.kune.platf.client.rpc.ContentServiceAsync;
-import org.ourproject.kune.platf.client.rpc.GroupService;
-import org.ourproject.kune.platf.client.rpc.GroupServiceAsync;
-import org.ourproject.kune.platf.client.rpc.I18nServiceAsync;
-import org.ourproject.kune.platf.client.rpc.SocialNetworkService;
-import org.ourproject.kune.platf.client.rpc.SocialNetworkServiceAsync;
-import org.ourproject.kune.platf.client.rpc.UserServiceAsync;
import org.ourproject.kune.platf.client.services.AbstractExtendedModule;
-import org.ourproject.kune.platf.client.services.ErrorHandler;
import org.ourproject.kune.platf.client.services.ImageUtils;
import org.ourproject.kune.platf.client.services.Images;
import org.ourproject.kune.platf.client.shortcuts.GlobalShortcutRegister;
-import org.ourproject.kune.platf.client.state.AccessRightsClientManager;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.platf.client.ui.download.FileDownloadUtils;
import org.ourproject.kune.platf.client.ui.img.ImgResources;
import org.ourproject.kune.platf.client.ui.noti.NotifyUser;
@@ -259,6 +242,24 @@
import org.ourproject.kune.workspace.client.wave.WaveInsertPanel;
import org.ourproject.kune.workspace.client.wave.WaveInsertPresenter;
+import cc.kune.core.client.errors.ErrorHandler;
+import cc.kune.core.client.i18n.I18nUITranslationService;
+import cc.kune.core.client.rpcservices.ContentService;
+import cc.kune.core.client.rpcservices.ContentServiceAsync;
+import cc.kune.core.client.rpcservices.GroupService;
+import cc.kune.core.client.rpcservices.GroupServiceAsync;
+import cc.kune.core.client.rpcservices.I18nServiceAsync;
+import cc.kune.core.client.rpcservices.SocialNetworkService;
+import cc.kune.core.client.rpcservices.SocialNetworkServiceAsync;
+import cc.kune.core.client.rpcservices.UserServiceAsync;
+import cc.kune.core.client.state.AccessRightsClientManager;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.dto.StateTokenUtils;
+import cc.kune.core.shared.dto.UserSimpleDTO;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.events.Listener0;
import com.calclab.suco.client.ioc.decorator.NoDecoration;
import com.calclab.suco.client.ioc.decorator.Singleton;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/cnt/ActionContentToolbar.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/cnt/ActionContentToolbar.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/cnt/ActionContentToolbar.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -20,8 +20,9 @@
package org.ourproject.kune.workspace.client.cnt;
import org.ourproject.kune.platf.client.actions.toolbar.ActionToolbar;
-import org.ourproject.kune.platf.client.dto.StateToken;
+import cc.kune.core.shared.dto.StateToken;
+
public interface ActionContentToolbar extends ActionToolbar<StateToken> {
}
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/cnt/ActionContentToolbarPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/cnt/ActionContentToolbarPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/cnt/ActionContentToolbarPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -21,8 +21,9 @@
import org.ourproject.kune.platf.client.actions.toolbar.ActionToolbarPresenter;
import org.ourproject.kune.platf.client.actions.toolbar.ActionToolbarView;
-import org.ourproject.kune.platf.client.dto.StateToken;
+import cc.kune.core.shared.dto.StateToken;
+
public class ActionContentToolbarPresenter extends ActionToolbarPresenter<StateToken> implements ActionContentToolbar {
public ActionContentToolbarPresenter(ActionToolbarView<StateToken> toolbar) {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/cnt/ContentActionRegistry.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/cnt/ContentActionRegistry.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/cnt/ContentActionRegistry.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -20,7 +20,8 @@
package org.ourproject.kune.workspace.client.cnt;
import org.ourproject.kune.platf.client.actions.ActionRegistry;
-import org.ourproject.kune.platf.client.dto.StateToken;
+import cc.kune.core.shared.dto.StateToken;
+
public class ContentActionRegistry extends ActionRegistry<StateToken> {
}
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/cnt/ContentIconsRegistry.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/cnt/ContentIconsRegistry.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/cnt/ContentIconsRegistry.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -21,7 +21,7 @@
import java.util.HashMap;
-import org.ourproject.kune.platf.client.dto.BasicMimeTypeDTO;
+import cc.kune.core.shared.dto.BasicMimeTypeDTO;
public class ContentIconsRegistry {
private final HashMap<String, String> contentTypesIcons;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/cnt/FoldableContentPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/cnt/FoldableContentPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/cnt/FoldableContentPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,13 +19,14 @@
*/
package org.ourproject.kune.workspace.client.cnt;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.services.Images;
import org.ourproject.kune.platf.client.ui.IconLabel;
import org.ourproject.kune.platf.client.ui.KuneUiUtils;
import org.ourproject.kune.platf.client.ui.RoundedPanel;
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.allen_sauer.gwt.log.client.Log;
import com.calclab.suco.client.events.Listener0;
import com.google.gwt.event.dom.client.ClickEvent;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/cnt/FoldableContentPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/cnt/FoldableContentPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/cnt/FoldableContentPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -21,21 +21,22 @@
import org.ourproject.kune.platf.client.actions.ActionItemCollection;
import org.ourproject.kune.platf.client.actions.ActionRegistry;
-import org.ourproject.kune.platf.client.dto.AccessRightsDTO;
-import org.ourproject.kune.platf.client.dto.BasicMimeTypeDTO;
-import org.ourproject.kune.platf.client.dto.StateAbstractDTO;
-import org.ourproject.kune.platf.client.dto.StateContainerDTO;
-import org.ourproject.kune.platf.client.dto.StateContentDTO;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.platf.client.ui.download.FileDownloadUtils;
import org.ourproject.kune.platf.client.ui.download.ImageSize;
import org.ourproject.kune.platf.client.ui.noti.NotifyUser;
import org.ourproject.kune.platf.client.ui.rte.insertmedia.abstractmedia.MediaUtils;
import org.ourproject.kune.workspace.client.AbstractFoldableContentActions;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.dto.AccessRightsDTO;
+import cc.kune.core.shared.dto.BasicMimeTypeDTO;
+import cc.kune.core.shared.dto.StateAbstractDTO;
+import cc.kune.core.shared.dto.StateContainerDTO;
+import cc.kune.core.shared.dto.StateContentDTO;
+import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.events.Listener;
import com.calclab.suco.client.events.Listener0;
import com.calclab.suco.client.ioc.Provider;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigator.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigator.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigator.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,11 +19,12 @@
*/
package org.ourproject.kune.workspace.client.ctxnav;
-import org.ourproject.kune.platf.client.dto.ContentStatusDTO;
-import org.ourproject.kune.platf.client.dto.StateContainerDTO;
-import org.ourproject.kune.platf.client.dto.StateToken;
import org.ourproject.kune.workspace.client.upload.FileUploader;
+import cc.kune.core.shared.dto.ContentStatusDTO;
+import cc.kune.core.shared.dto.StateContainerDTO;
+import cc.kune.core.shared.dto.StateToken;
+
public interface ContextNavigator {
void addFileUploaderListener(FileUploader uploader);
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigatorItem.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigatorItem.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigatorItem.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -20,9 +20,10 @@
package org.ourproject.kune.workspace.client.ctxnav;
import org.ourproject.kune.platf.client.actions.ActionItemCollection;
-import org.ourproject.kune.platf.client.dto.ContentStatusDTO;
-import org.ourproject.kune.platf.client.dto.StateToken;
+import cc.kune.core.shared.dto.ContentStatusDTO;
+import cc.kune.core.shared.dto.StateToken;
+
public class ContextNavigatorItem {
private final String id;
private final String parentId;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigatorPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigatorPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigatorPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -22,12 +22,13 @@
import org.ourproject.kune.platf.client.actions.ActionItem;
import org.ourproject.kune.platf.client.actions.ActionManager;
import org.ourproject.kune.platf.client.actions.MenuItemsContainer;
-import org.ourproject.kune.platf.client.dto.ContentStatusDTO;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.ui.noti.NotifyUser;
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
+import cc.kune.core.shared.dto.ContentStatusDTO;
+import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.allen_sauer.gwt.log.client.Log;
import com.calclab.suco.client.events.Listener;
import com.gwtext.client.core.EventObject;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigatorPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigatorPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigatorPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -26,21 +26,7 @@
import org.ourproject.kune.platf.client.actions.ActionItemCollection;
import org.ourproject.kune.platf.client.actions.ActionRegistry;
import org.ourproject.kune.platf.client.actions.toolbar.ActionToolbar;
-import org.ourproject.kune.platf.client.dto.AccessRightsDTO;
-import org.ourproject.kune.platf.client.dto.BasicMimeTypeDTO;
-import org.ourproject.kune.platf.client.dto.ContainerDTO;
-import org.ourproject.kune.platf.client.dto.ContainerSimpleDTO;
-import org.ourproject.kune.platf.client.dto.ContentSimpleDTO;
-import org.ourproject.kune.platf.client.dto.ContentStatusDTO;
-import org.ourproject.kune.platf.client.dto.StateAbstractDTO;
-import org.ourproject.kune.platf.client.dto.StateContainerDTO;
-import org.ourproject.kune.platf.client.dto.StateContentDTO;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.dto.UserInfoDTO;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.registry.ContentCapabilitiesRegistry;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.platf.client.ui.KuneUiUtils;
import org.ourproject.kune.platf.client.ui.download.FileDownloadUtils;
import org.ourproject.kune.platf.client.ui.download.ImageSize;
@@ -50,6 +36,21 @@
import org.ourproject.kune.workspace.client.title.RenameAction;
import org.ourproject.kune.workspace.client.upload.FileUploader;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.dto.AccessRightsDTO;
+import cc.kune.core.shared.dto.BasicMimeTypeDTO;
+import cc.kune.core.shared.dto.ContainerDTO;
+import cc.kune.core.shared.dto.ContainerSimpleDTO;
+import cc.kune.core.shared.dto.ContentSimpleDTO;
+import cc.kune.core.shared.dto.ContentStatusDTO;
+import cc.kune.core.shared.dto.StateAbstractDTO;
+import cc.kune.core.shared.dto.StateContainerDTO;
+import cc.kune.core.shared.dto.StateContentDTO;
+import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.dto.UserInfoDTO;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.events.Listener;
import com.calclab.suco.client.events.Listener0;
import com.calclab.suco.client.events.Listener2;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigatorView.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigatorView.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/ctxnav/ContextNavigatorView.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -20,9 +20,10 @@
package org.ourproject.kune.workspace.client.ctxnav;
import org.ourproject.kune.platf.client.View;
-import org.ourproject.kune.platf.client.dto.ContentStatusDTO;
-import org.ourproject.kune.platf.client.dto.StateToken;
+import cc.kune.core.shared.dto.ContentStatusDTO;
+import cc.kune.core.shared.dto.StateToken;
+
public interface ContextNavigatorView extends View {
void addItem(ContextNavigatorItem contextNavigatorItem);
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/cxt/AccessListsPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/cxt/AccessListsPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/cxt/AccessListsPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -22,13 +22,14 @@
import java.util.Iterator;
import org.ourproject.kune.platf.client.View;
-import org.ourproject.kune.platf.client.dto.AccessListsDTO;
-import org.ourproject.kune.platf.client.dto.GroupDTO;
-import org.ourproject.kune.platf.client.dto.GroupListDTO;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.services.Images;
import org.ourproject.kune.platf.client.ui.IconLabel;
+import cc.kune.core.shared.dto.AccessListsDTO;
+import cc.kune.core.shared.dto.GroupDTO;
+import cc.kune.core.shared.dto.GroupListDTO;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.VerticalPanel;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/cxt/ActionContextBottomToolbar.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/cxt/ActionContextBottomToolbar.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/cxt/ActionContextBottomToolbar.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -22,8 +22,9 @@
import org.ourproject.kune.platf.client.actions.toolbar.ActionToolbar;
import org.ourproject.kune.platf.client.actions.toolbar.ActionToolbarPresenter;
import org.ourproject.kune.platf.client.actions.toolbar.ActionToolbarView;
-import org.ourproject.kune.platf.client.dto.StateToken;
+import cc.kune.core.shared.dto.StateToken;
+
public class ActionContextBottomToolbar extends ActionToolbarPresenter<StateToken> implements ActionToolbar<StateToken> {
public ActionContextBottomToolbar(ActionToolbarView<StateToken> toolbar) {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/cxt/ActionContextTopToolbar.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/cxt/ActionContextTopToolbar.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/cxt/ActionContextTopToolbar.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -22,8 +22,9 @@
import org.ourproject.kune.platf.client.actions.toolbar.ActionToolbar;
import org.ourproject.kune.platf.client.actions.toolbar.ActionToolbarPresenter;
import org.ourproject.kune.platf.client.actions.toolbar.ActionToolbarView;
-import org.ourproject.kune.platf.client.dto.StateToken;
+import cc.kune.core.shared.dto.StateToken;
+
public class ActionContextTopToolbar extends ActionToolbarPresenter<StateToken> implements ActionToolbar<StateToken> {
public ActionContextTopToolbar(ActionToolbarView<StateToken> toolbar) {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/cxt/ContextActionRegistry.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/cxt/ContextActionRegistry.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/cxt/ContextActionRegistry.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -20,7 +20,8 @@
package org.ourproject.kune.workspace.client.cxt;
import org.ourproject.kune.platf.client.actions.ActionRegistry;
-import org.ourproject.kune.platf.client.dto.StateToken;
+import cc.kune.core.shared.dto.StateToken;
+
public class ContextActionRegistry extends ActionRegistry<StateToken> {
}
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/cxt/ContextPropEditor.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/cxt/ContextPropEditor.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/cxt/ContextPropEditor.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,7 +19,7 @@
*/
package org.ourproject.kune.workspace.client.cxt;
-import org.ourproject.kune.platf.client.dto.StateContentDTO;
+import cc.kune.core.shared.dto.StateContentDTO;
public interface ContextPropEditor {
void attach();
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/cxt/ContextPropEditorPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/cxt/ContextPropEditorPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/cxt/ContextPropEditorPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -22,16 +22,17 @@
import java.util.Date;
import java.util.List;
-import org.ourproject.kune.platf.client.dto.AccessListsDTO;
-import org.ourproject.kune.platf.client.dto.I18nLanguageDTO;
-import org.ourproject.kune.platf.client.dto.UserSimpleDTO;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.services.Images;
import org.ourproject.kune.platf.client.ui.ContextPropertyPanel;
import org.ourproject.kune.workspace.client.i18n.LanguageSelector;
import org.ourproject.kune.workspace.client.i18n.LanguageSelectorPanel;
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
+import cc.kune.core.shared.dto.AccessListsDTO;
+import cc.kune.core.shared.dto.I18nLanguageDTO;
+import cc.kune.core.shared.dto.UserSimpleDTO;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.ioc.Provider;
import com.google.gwt.user.client.ui.ScrollPanel;
import com.google.gwt.user.client.ui.VerticalPanel;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/cxt/ContextPropEditorPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/cxt/ContextPropEditorPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/cxt/ContextPropEditorPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -22,21 +22,22 @@
import java.util.Date;
import java.util.List;
-import org.ourproject.kune.platf.client.dto.AccessListsDTO;
-import org.ourproject.kune.platf.client.dto.I18nLanguageDTO;
-import org.ourproject.kune.platf.client.dto.StateContainerDTO;
-import org.ourproject.kune.platf.client.dto.StateContentDTO;
-import org.ourproject.kune.platf.client.dto.TagCloudResultDTO;
-import org.ourproject.kune.platf.client.dto.UserSimpleDTO;
import org.ourproject.kune.platf.client.registry.ContentCapabilitiesRegistry;
-import org.ourproject.kune.platf.client.rpc.AsyncCallbackSimple;
-import org.ourproject.kune.platf.client.rpc.ContentServiceAsync;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.platf.client.ui.noti.NotifyUser;
import org.ourproject.kune.workspace.client.tags.TagsSummary;
import org.ourproject.kune.workspace.client.title.EntitySubTitle;
+import cc.kune.core.client.rpcservices.AsyncCallbackSimple;
+import cc.kune.core.client.rpcservices.ContentServiceAsync;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.dto.AccessListsDTO;
+import cc.kune.core.shared.dto.I18nLanguageDTO;
+import cc.kune.core.shared.dto.StateContainerDTO;
+import cc.kune.core.shared.dto.StateContentDTO;
+import cc.kune.core.shared.dto.TagCloudResultDTO;
+import cc.kune.core.shared.dto.UserSimpleDTO;
+
import com.calclab.suco.client.ioc.Provider;
public class ContextPropEditorPresenter implements ContextPropEditor {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/cxt/ContextPropEditorView.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/cxt/ContextPropEditorView.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/cxt/ContextPropEditorView.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -22,9 +22,9 @@
import java.util.Date;
import java.util.List;
-import org.ourproject.kune.platf.client.dto.AccessListsDTO;
-import org.ourproject.kune.platf.client.dto.I18nLanguageDTO;
-import org.ourproject.kune.platf.client.dto.UserSimpleDTO;
+import cc.kune.core.shared.dto.AccessListsDTO;
+import cc.kune.core.shared.dto.I18nLanguageDTO;
+import cc.kune.core.shared.dto.UserSimpleDTO;
public interface ContextPropEditorView {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/cxt/FoldableContextPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/cxt/FoldableContextPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/cxt/FoldableContextPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,12 +19,13 @@
*/
package org.ourproject.kune.workspace.client.cxt;
-import org.ourproject.kune.platf.client.dto.StateAbstractDTO;
-import org.ourproject.kune.platf.client.dto.StateContainerDTO;
-import org.ourproject.kune.platf.client.dto.StateContentDTO;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.workspace.client.ctxnav.ContextNavigator;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.dto.StateAbstractDTO;
+import cc.kune.core.shared.dto.StateContainerDTO;
+import cc.kune.core.shared.dto.StateContentDTO;
+
import com.calclab.suco.client.events.Listener;
import com.calclab.suco.client.ioc.Provider;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/editor/ContentEditorPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/editor/ContentEditorPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/editor/ContentEditorPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,10 +1,11 @@
package org.ourproject.kune.workspace.client.editor;
import org.ourproject.kune.platf.client.actions.ui.GuiBindingsRegister;
-import org.ourproject.kune.platf.client.i18n.I18nUITranslationService;
import org.ourproject.kune.platf.client.shortcuts.GlobalShortcutRegister;
import org.ourproject.kune.platf.client.ui.rte.saving.RTESavingEditorPanel;
+import cc.kune.core.client.i18n.I18nUITranslationService;
+
public class ContentEditorPanel extends RTESavingEditorPanel implements ContentEditorView {
public ContentEditorPanel(final ContentEditorPresenter presenter, final I18nUITranslationService i18n,
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/editor/ContentEditorPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/editor/ContentEditorPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/editor/ContentEditorPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -9,10 +9,7 @@
import org.ourproject.kune.platf.client.actions.KeyStroke;
import org.ourproject.kune.platf.client.actions.ui.ComplexToolbar;
import org.ourproject.kune.platf.client.actions.ui.MenuItemDescriptor;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.shortcuts.Keyboard;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.platf.client.ui.palette.ColorWebSafePalette;
import org.ourproject.kune.platf.client.ui.rte.basic.RTEditor;
import org.ourproject.kune.platf.client.ui.rte.basic.RTEditorPanel;
@@ -31,6 +28,10 @@
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
import org.ourproject.kune.workspace.client.title.EntityTitle;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.events.Listener;
import com.calclab.suco.client.events.Listener0;
import com.calclab.suco.client.ioc.Provider;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/editor/insertlocalimg/InsertImageLocalPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/editor/insertlocalimg/InsertImageLocalPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/editor/insertlocalimg/InsertImageLocalPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,15 +1,16 @@
package org.ourproject.kune.workspace.client.editor.insertlocalimg;
-import org.ourproject.kune.platf.client.dto.BasicMimeTypeDTO;
-import org.ourproject.kune.platf.client.dto.LinkDTO;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.services.SearcherConstants;
-import org.ourproject.kune.platf.client.state.Session;
import org.ourproject.kune.platf.client.ui.download.FileDownloadUtils;
import org.ourproject.kune.platf.client.ui.rte.insertimg.abstractimg.InsertImageAbstractPanel;
import org.ourproject.kune.workspace.client.search.AbstractLiveSearcherField;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.shared.dto.BasicMimeTypeDTO;
+import cc.kune.core.shared.dto.LinkDTO;
+import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.events.Listener;
import com.gwtext.client.core.UrlParam;
import com.gwtext.client.widgets.form.Field;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/editor/insertlocalimg/InsertImageLocalPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/editor/insertlocalimg/InsertImageLocalPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/editor/insertlocalimg/InsertImageLocalPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,9 +1,10 @@
package org.ourproject.kune.workspace.client.editor.insertlocalimg;
-import org.ourproject.kune.platf.client.state.Session;
import org.ourproject.kune.platf.client.ui.rte.insertimg.InsertImageDialog;
import org.ourproject.kune.platf.client.ui.rte.insertimg.abstractimg.InsertImageAbstractPresenter;
+import cc.kune.core.client.state.Session;
+
public class InsertImageLocalPresenter extends InsertImageAbstractPresenter implements InsertImageLocal {
private final Session session;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/editor/insertlocallink/InsertLinkLocalPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/editor/insertlocallink/InsertLinkLocalPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/editor/insertlocallink/InsertLinkLocalPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,16 +19,17 @@
*/
package org.ourproject.kune.workspace.client.editor.insertlocallink;
-import org.ourproject.kune.platf.client.dto.LinkDTO;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.dto.StateTokenUtils;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.services.SearcherConstants;
import org.ourproject.kune.platf.client.ui.download.FileDownloadUtils;
import org.ourproject.kune.platf.client.ui.rte.insertlink.abstractlink.InsertLinkAbstractPanel;
import org.ourproject.kune.workspace.client.search.AbstractLiveSearcherField;
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
+import cc.kune.core.shared.dto.LinkDTO;
+import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.dto.StateTokenUtils;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.events.Listener;
public class InsertLinkLocalPanel extends InsertLinkAbstractPanel implements InsertLinkLocalView {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/editor/insertlocalmedia/InsertMediaLocalPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/editor/insertlocalmedia/InsertMediaLocalPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/editor/insertlocalmedia/InsertMediaLocalPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,14 +1,15 @@
package org.ourproject.kune.workspace.client.editor.insertlocalmedia;
-import org.ourproject.kune.platf.client.dto.BasicMimeTypeDTO;
-import org.ourproject.kune.platf.client.dto.LinkDTO;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.services.SearcherConstants;
import org.ourproject.kune.platf.client.ui.download.FileDownloadUtils;
import org.ourproject.kune.platf.client.ui.rte.insertmedia.abstractmedia.InsertMediaAbstractPanel;
import org.ourproject.kune.workspace.client.search.AbstractLiveSearcherField;
+import cc.kune.core.shared.dto.BasicMimeTypeDTO;
+import cc.kune.core.shared.dto.LinkDTO;
+import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.events.Listener;
import com.gwtext.client.core.UrlParam;
import com.gwtext.client.widgets.form.Field;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/editor/insertlocalmedia/InsertMediaLocalPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/editor/insertlocalmedia/InsertMediaLocalPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/editor/insertlocalmedia/InsertMediaLocalPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,11 +1,12 @@
package org.ourproject.kune.workspace.client.editor.insertlocalmedia;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.state.Session;
import org.ourproject.kune.platf.client.ui.rte.insertmedia.InsertMediaDialog;
import org.ourproject.kune.platf.client.ui.rte.insertmedia.abstractmedia.InsertMediaAbstractPresenter;
import org.ourproject.kune.platf.client.ui.rte.insertmedia.abstractmedia.MediaUtils;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.shared.dto.StateToken;
+
import com.calclab.suco.client.ioc.Provider;
public class InsertMediaLocalPresenter extends InsertMediaAbstractPresenter implements InsertMediaLocal {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/entityheader/EntityHeaderPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/entityheader/EntityHeaderPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/entityheader/EntityHeaderPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -25,14 +25,15 @@
import org.ourproject.kune.platf.client.actions.ui.ComplexToolbar;
import org.ourproject.kune.platf.client.actions.ui.GuiActionDescrip;
import org.ourproject.kune.platf.client.actions.ui.GuiBindingsRegister;
-import org.ourproject.kune.platf.client.dto.GroupDTO;
-import org.ourproject.kune.platf.client.dto.StateToken;
import org.ourproject.kune.platf.client.services.Images;
import org.ourproject.kune.platf.client.ui.download.FileConstants;
import org.ourproject.kune.platf.client.ui.download.FileDownloadUtils;
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
import org.ourproject.kune.workspace.client.themes.WsTheme;
+import cc.kune.core.shared.dto.GroupDTO;
+import cc.kune.core.shared.dto.StateToken;
+
import com.calclab.suco.client.ioc.Provider;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Image;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/entityheader/EntityHeaderPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/entityheader/EntityHeaderPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/entityheader/EntityHeaderPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -21,12 +21,13 @@
import org.ourproject.kune.platf.client.View;
import org.ourproject.kune.platf.client.actions.ui.GuiActionDescrip;
-import org.ourproject.kune.platf.client.dto.GroupDTO;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.workspace.client.themes.WsTheme;
import org.ourproject.kune.workspace.client.themes.WsThemeManager;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.dto.GroupDTO;
+
import com.calclab.suco.client.events.Listener2;
public class EntityHeaderPresenter implements EntityHeader {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/entityheader/EntityHeaderView.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/entityheader/EntityHeaderView.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/entityheader/EntityHeaderView.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -21,10 +21,11 @@
import org.ourproject.kune.platf.client.View;
import org.ourproject.kune.platf.client.actions.ui.GuiActionDescrip;
-import org.ourproject.kune.platf.client.dto.GroupDTO;
-import org.ourproject.kune.platf.client.dto.StateToken;
import org.ourproject.kune.workspace.client.themes.WsTheme;
+import cc.kune.core.shared.dto.GroupDTO;
+import cc.kune.core.shared.dto.StateToken;
+
public interface EntityHeaderView {
void addAction(GuiActionDescrip descriptor);
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/entityheader/maxmin/MaxMinWorkspacePresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/entityheader/maxmin/MaxMinWorkspacePresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/entityheader/maxmin/MaxMinWorkspacePresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -7,11 +7,12 @@
import org.ourproject.kune.platf.client.actions.KeyStroke;
import org.ourproject.kune.platf.client.actions.Shortcut;
import org.ourproject.kune.platf.client.actions.ui.MenuItemDescriptor;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.shortcuts.GlobalShortcutRegister;
import org.ourproject.kune.platf.client.ui.img.ImgResources;
import org.ourproject.kune.workspace.client.sitebar.siteoptions.SiteOptions;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.google.gwt.resources.client.ImageResource;
public class MaxMinWorkspacePresenter implements MaxMinWorkspace {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/hello/HelloWorldModule.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/hello/HelloWorldModule.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/hello/HelloWorldModule.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -31,8 +31,6 @@
import org.ourproject.kune.platf.client.actions.ui.MenuRadioItemDescriptor;
import org.ourproject.kune.platf.client.actions.ui.MenuSeparatorDescriptor;
import org.ourproject.kune.platf.client.actions.ui.PushButtonDescriptor;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationServiceMocked;
import org.ourproject.kune.platf.client.services.AbstractExtendedModule;
import org.ourproject.kune.platf.client.shortcuts.GlobalShortcutRegister;
import org.ourproject.kune.platf.client.ui.img.ImgResources;
@@ -41,6 +39,9 @@
import org.ourproject.kune.workspace.client.hello.HelloWorldModule.HelloWorldPanel.HelloWorldPresenter;
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
+import cc.kune.core.client.i18n.I18nTranslationServiceMocked;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.allen_sauer.gwt.log.client.Log;
import com.calclab.suco.client.ioc.Provider;
import com.calclab.suco.client.ioc.decorator.Singleton;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/i18n/I18nTranslatorPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/i18n/I18nTranslatorPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/i18n/I18nTranslatorPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,17 +19,18 @@
*/
package org.ourproject.kune.workspace.client.i18n;
-import org.ourproject.kune.platf.client.dto.I18nLanguageDTO;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.services.Images;
import org.ourproject.kune.platf.client.services.SearcherConstants;
import org.ourproject.kune.platf.client.ui.AbstractSearcherPanel;
-import org.ourproject.kune.platf.client.ui.TextUtils;
import org.ourproject.kune.platf.client.ui.dialogs.BasicDialog;
import org.ourproject.kune.platf.client.ui.noti.NotifyUser;
import org.ourproject.kune.workspace.client.search.SiteBottomTrayButton;
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
+import cc.kune.core.client.utils.TextUtils;
+import cc.kune.core.shared.dto.I18nLanguageDTO;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.google.gwt.user.client.ui.Frame;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.gwtext.client.core.EventObject;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/i18n/I18nTranslatorPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/i18n/I18nTranslatorPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/i18n/I18nTranslatorPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -20,12 +20,13 @@
package org.ourproject.kune.workspace.client.i18n;
import org.ourproject.kune.platf.client.View;
-import org.ourproject.kune.platf.client.dto.I18nLanguageDTO;
-import org.ourproject.kune.platf.client.i18n.I18nUITranslationService;
-import org.ourproject.kune.platf.client.rpc.I18nServiceAsync;
-import org.ourproject.kune.platf.client.state.Session;
import org.ourproject.kune.platf.client.ui.noti.NotifyUser;
+import cc.kune.core.client.i18n.I18nUITranslationService;
+import cc.kune.core.client.rpcservices.I18nServiceAsync;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.shared.dto.I18nLanguageDTO;
+
import com.calclab.suco.client.events.Listener0;
import com.google.gwt.user.client.rpc.AsyncCallback;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/i18n/LanguageSelector.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/i18n/LanguageSelector.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/i18n/LanguageSelector.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -20,8 +20,9 @@
package org.ourproject.kune.workspace.client.i18n;
import org.ourproject.kune.platf.client.View;
-import org.ourproject.kune.platf.client.dto.I18nLanguageDTO;
+import cc.kune.core.shared.dto.I18nLanguageDTO;
+
public interface LanguageSelector {
String getSelectedLanguage();
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/i18n/LanguageSelectorPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/i18n/LanguageSelectorPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/i18n/LanguageSelectorPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,8 +19,9 @@
*/
package org.ourproject.kune.workspace.client.i18n;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.gwtext.client.data.SimpleStore;
import com.gwtext.client.data.Store;
import com.gwtext.client.widgets.form.ComboBox;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/i18n/LanguageSelectorPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/i18n/LanguageSelectorPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/i18n/LanguageSelectorPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -20,9 +20,10 @@
package org.ourproject.kune.workspace.client.i18n;
import org.ourproject.kune.platf.client.View;
-import org.ourproject.kune.platf.client.dto.I18nLanguageDTO;
-import org.ourproject.kune.platf.client.state.Session;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.shared.dto.I18nLanguageDTO;
+
public class LanguageSelectorPresenter implements LanguageSelector {
private LanguageSelectorView view;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/i18n/SiteOptionsI18nTranslatorAction.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/i18n/SiteOptionsI18nTranslatorAction.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/i18n/SiteOptionsI18nTranslatorAction.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -4,10 +4,11 @@
import org.ourproject.kune.platf.client.actions.Action;
import org.ourproject.kune.platf.client.actions.ActionEvent;
import org.ourproject.kune.platf.client.actions.ui.MenuItemDescriptor;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.ui.img.ImgResources;
import org.ourproject.kune.workspace.client.sitebar.siteoptions.SiteOptions;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.ioc.Provider;
public class SiteOptionsI18nTranslatorAction extends AbstractAction {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/licensefoot/EntityLicensePanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/licensefoot/EntityLicensePanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/licensefoot/EntityLicensePanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,12 +19,13 @@
*/
package org.ourproject.kune.workspace.client.licensefoot;
-import org.ourproject.kune.platf.client.dto.LicenseDTO;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.ui.KuneWindowUtils;
import org.ourproject.kune.platf.client.ui.SimpleToolbar;
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
+import cc.kune.core.shared.dto.LicenseDTO;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.MouseOutEvent;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/licensefoot/EntityLicensePresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/licensefoot/EntityLicensePresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/licensefoot/EntityLicensePresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -20,11 +20,12 @@
package org.ourproject.kune.workspace.client.licensefoot;
import org.ourproject.kune.platf.client.View;
-import org.ourproject.kune.platf.client.dto.LicenseDTO;
-import org.ourproject.kune.platf.client.dto.StateAbstractDTO;
-import org.ourproject.kune.platf.client.dto.StateContainerDTO;
-import org.ourproject.kune.platf.client.state.StateManager;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.dto.LicenseDTO;
+import cc.kune.core.shared.dto.StateAbstractDTO;
+import cc.kune.core.shared.dto.StateContainerDTO;
+
import com.calclab.suco.client.events.Listener;
public class EntityLicensePresenter {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/licensefoot/EntityLicenseView.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/licensefoot/EntityLicenseView.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/licensefoot/EntityLicenseView.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -20,8 +20,9 @@
package org.ourproject.kune.workspace.client.licensefoot;
import org.ourproject.kune.platf.client.View;
-import org.ourproject.kune.platf.client.dto.LicenseDTO;
+import cc.kune.core.shared.dto.LicenseDTO;
+
public interface EntityLicenseView extends View {
void attach();
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/licensewizard/LicenseChangeAction.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/licensewizard/LicenseChangeAction.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/licensewizard/LicenseChangeAction.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,14 +19,15 @@
*/
package org.ourproject.kune.workspace.client.licensewizard;
-import org.ourproject.kune.platf.client.dto.LicenseDTO;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
-import org.ourproject.kune.platf.client.rpc.GroupServiceAsync;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.platf.client.ui.noti.NotifyUser;
+import cc.kune.core.client.rpcservices.GroupServiceAsync;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.dto.LicenseDTO;
+import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.events.Listener0;
import com.calclab.suco.client.ioc.Provider;
import com.google.gwt.user.client.rpc.AsyncCallback;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/licensewizard/LicenseWizard.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/licensewizard/LicenseWizard.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/licensewizard/LicenseWizard.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,8 +19,9 @@
*/
package org.ourproject.kune.workspace.client.licensewizard;
-import org.ourproject.kune.platf.client.dto.LicenseDTO;
+import cc.kune.core.shared.dto.LicenseDTO;
+
import com.calclab.suco.client.events.Listener;
public interface LicenseWizard {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/licensewizard/LicenseWizardPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/licensewizard/LicenseWizardPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/licensewizard/LicenseWizardPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,11 +19,12 @@
*/
package org.ourproject.kune.workspace.client.licensewizard;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.ui.dialogs.WizardDialog;
import org.ourproject.kune.platf.client.ui.dialogs.WizardListener;
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
public class LicenseWizardPanel extends WizardDialog implements LicenseWizardView {
public static final String LIC_WIZ_DIALOG = "k-lwp-diag";
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/licensewizard/LicenseWizardPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/licensewizard/LicenseWizardPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/licensewizard/LicenseWizardPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -22,14 +22,15 @@
import java.util.List;
import org.ourproject.kune.platf.client.View;
-import org.ourproject.kune.platf.client.dto.LicenseDTO;
-import org.ourproject.kune.platf.client.state.Session;
import org.ourproject.kune.platf.client.ui.noti.NotifyUser;
import org.ourproject.kune.workspace.client.licensewizard.pages.LicenseWizardFirstFormView;
import org.ourproject.kune.workspace.client.licensewizard.pages.LicenseWizardFrdFormView;
import org.ourproject.kune.workspace.client.licensewizard.pages.LicenseWizardSndFormView;
import org.ourproject.kune.workspace.client.licensewizard.pages.LicenseWizardTrdFormView;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.shared.dto.LicenseDTO;
+
import com.allen_sauer.gwt.log.client.Log;
import com.calclab.suco.client.events.Listener;
import com.calclab.suco.client.events.Listener0;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/licensewizard/pages/LicenseWizardFirstForm.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/licensewizard/pages/LicenseWizardFirstForm.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/licensewizard/pages/LicenseWizardFirstForm.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,12 +19,13 @@
*/
package org.ourproject.kune.workspace.client.licensewizard.pages;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
-import org.ourproject.kune.platf.client.ui.TextUtils;
import org.ourproject.kune.platf.client.ui.dialogs.DefaultForm;
import org.ourproject.kune.platf.client.ui.dialogs.DefaultFormUtils;
import org.ourproject.kune.workspace.client.licensewizard.LicenseWizardView;
+import cc.kune.core.client.utils.TextUtils;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.events.Event0;
import com.calclab.suco.client.events.Listener0;
import com.gwtext.client.widgets.form.Checkbox;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/licensewizard/pages/LicenseWizardFlags.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/licensewizard/pages/LicenseWizardFlags.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/licensewizard/pages/LicenseWizardFlags.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,11 +19,12 @@
*/
package org.ourproject.kune.workspace.client.licensewizard.pages;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.services.Images;
import org.ourproject.kune.platf.client.ui.IconLabel;
import org.ourproject.kune.platf.client.ui.KuneWindowUtils;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.gwtext.client.widgets.Panel;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/licensewizard/pages/LicenseWizardFrdForm.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/licensewizard/pages/LicenseWizardFrdForm.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/licensewizard/pages/LicenseWizardFrdForm.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -22,13 +22,14 @@
import java.util.ArrayList;
import java.util.List;
-import org.ourproject.kune.platf.client.dto.LicenseDTO;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
-import org.ourproject.kune.platf.client.state.Session;
import org.ourproject.kune.platf.client.ui.dialogs.DefaultForm;
import org.ourproject.kune.platf.client.ui.dialogs.DefaultFormUtils;
import org.ourproject.kune.workspace.client.licensewizard.LicenseWizardView;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.shared.dto.LicenseDTO;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.events.Event0;
import com.calclab.suco.client.events.Listener0;
import com.gwtext.client.core.Template;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/licensewizard/pages/LicenseWizardSndForm.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/licensewizard/pages/LicenseWizardSndForm.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/licensewizard/pages/LicenseWizardSndForm.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,11 +19,12 @@
*/
package org.ourproject.kune.workspace.client.licensewizard.pages;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.ui.dialogs.DefaultForm;
import org.ourproject.kune.platf.client.ui.dialogs.DefaultFormUtils;
import org.ourproject.kune.workspace.client.licensewizard.LicenseWizardView;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.gwtext.client.widgets.form.FieldSet;
import com.gwtext.client.widgets.form.Label;
import com.gwtext.client.widgets.form.Radio;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/licensewizard/pages/LicenseWizardTrdForm.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/licensewizard/pages/LicenseWizardTrdForm.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/licensewizard/pages/LicenseWizardTrdForm.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,12 +19,13 @@
*/
package org.ourproject.kune.workspace.client.licensewizard.pages;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.services.Images;
import org.ourproject.kune.platf.client.ui.dialogs.DefaultForm;
import org.ourproject.kune.platf.client.ui.dialogs.DefaultFormUtils;
import org.ourproject.kune.workspace.client.licensewizard.LicenseWizardView;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.events.Event0;
import com.calclab.suco.client.events.Listener0;
import com.gwtext.client.widgets.PaddedPanel;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/newgroup/NewGroupPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/newgroup/NewGroupPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/newgroup/NewGroupPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,8 +19,6 @@
*/
package org.ourproject.kune.workspace.client.newgroup;
-import org.ourproject.kune.platf.client.dto.LicenseDTO;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.services.Images;
import org.ourproject.kune.platf.client.ui.KuneUiUtils;
import org.ourproject.kune.platf.client.ui.KuneWindowUtils;
@@ -31,6 +29,9 @@
import org.ourproject.kune.workspace.client.WorkspaceMessages;
import org.ourproject.kune.workspace.client.licensewizard.LicenseWizard;
+import cc.kune.core.shared.dto.LicenseDTO;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.events.Listener;
import com.calclab.suco.client.events.Listener0;
import com.calclab.suco.client.ioc.Provider;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/newgroup/NewGroupPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/newgroup/NewGroupPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/newgroup/NewGroupPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -20,22 +20,23 @@
package org.ourproject.kune.workspace.client.newgroup;
import org.ourproject.kune.platf.client.View;
-import org.ourproject.kune.platf.client.dto.GroupDTO;
-import org.ourproject.kune.platf.client.dto.GroupType;
-import org.ourproject.kune.platf.client.dto.LicenseDTO;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.errors.GroupNameInUseException;
-import org.ourproject.kune.platf.client.errors.UIException;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
-import org.ourproject.kune.platf.client.rpc.AsyncCallbackSimple;
-import org.ourproject.kune.platf.client.rpc.GroupServiceAsync;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.platf.client.ui.noti.NotifyUser;
import org.ourproject.kune.platf.client.ui.noti.NotifyUser.Level;
import org.ourproject.kune.workspace.client.WorkspaceMessages;
import org.ourproject.kune.workspace.client.site.SiteToken;
+import cc.kune.core.client.errors.GroupNameInUseException;
+import cc.kune.core.client.errors.UIException;
+import cc.kune.core.client.rpcservices.AsyncCallbackSimple;
+import cc.kune.core.client.rpcservices.GroupServiceAsync;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.dto.GroupDTO;
+import cc.kune.core.shared.dto.GroupType;
+import cc.kune.core.shared.dto.LicenseDTO;
+import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.events.Listener0;
import com.calclab.suco.client.ioc.Provider;
import com.google.gwt.user.client.rpc.AsyncCallback;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/newgroup/NewGroupView.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/newgroup/NewGroupView.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/newgroup/NewGroupView.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -20,9 +20,10 @@
package org.ourproject.kune.workspace.client.newgroup;
import org.ourproject.kune.platf.client.View;
-import org.ourproject.kune.platf.client.dto.LicenseDTO;
import org.ourproject.kune.platf.client.ui.noti.NotifyUser.Level;
+import cc.kune.core.shared.dto.LicenseDTO;
+
public interface NewGroupView extends View {
void center();
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/nohomepage/NoHomePagePanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/nohomepage/NoHomePagePanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/nohomepage/NoHomePagePanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -20,10 +20,11 @@
package org.ourproject.kune.workspace.client.nohomepage;
import org.ourproject.kune.platf.client.PlatfMessages;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.workspace.client.skel.EntityWorkspace;
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.google.gwt.user.client.ui.Label;
public class NoHomePagePanel implements NoHomePageView {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/nohomepage/NoHomePagePresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/nohomepage/NoHomePagePresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/nohomepage/NoHomePagePresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -20,11 +20,12 @@
package org.ourproject.kune.workspace.client.nohomepage;
import org.ourproject.kune.platf.client.View;
-import org.ourproject.kune.platf.client.dto.StateAbstractDTO;
-import org.ourproject.kune.platf.client.dto.StateNoContentDTO;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.workspace.client.entityheader.EntityHeader;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.dto.StateAbstractDTO;
+import cc.kune.core.shared.dto.StateNoContentDTO;
+
import com.calclab.suco.client.events.Listener;
import com.calclab.suco.client.ioc.Provider;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/options/GroupOptionsPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/options/GroupOptionsPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/options/GroupOptionsPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -22,11 +22,12 @@
import org.ourproject.kune.platf.client.PlatfMessages;
import org.ourproject.kune.platf.client.actions.ui.GuiActionDescrip;
import org.ourproject.kune.platf.client.app.GroupOptionsCollection;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.services.Images;
import org.ourproject.kune.platf.client.ui.dialogs.tabbed.AbstractTabbedDialogPanel;
import org.ourproject.kune.workspace.client.entityheader.EntityHeader;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
public class GroupOptionsPanel extends AbstractTabbedDialogPanel implements GroupOptionsView {
public static final String GROUP_OP_PANEL_ID = "k-gop-diagpan";
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/options/GroupOptionsPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/options/GroupOptionsPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/options/GroupOptionsPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -23,13 +23,14 @@
import org.ourproject.kune.platf.client.actions.Action;
import org.ourproject.kune.platf.client.actions.ActionEvent;
import org.ourproject.kune.platf.client.actions.ui.ButtonDescriptor;
-import org.ourproject.kune.platf.client.dto.StateAbstractDTO;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.platf.client.ui.dialogs.tabbed.AbstractTabbedDialogPresenter;
import org.ourproject.kune.platf.client.ui.img.ImgConstants;
import org.ourproject.kune.platf.client.ui.img.ImgResources;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.dto.StateAbstractDTO;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.events.Listener;
public class GroupOptionsPresenter extends AbstractTabbedDialogPresenter implements GroupOptions {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/options/UserOptionsPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/options/UserOptionsPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/options/UserOptionsPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -21,11 +21,12 @@
import org.ourproject.kune.platf.client.PlatfMessages;
import org.ourproject.kune.platf.client.app.UserOptionsCollection;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.services.Images;
import org.ourproject.kune.platf.client.ui.dialogs.tabbed.AbstractTabbedDialogPanel;
import org.ourproject.kune.workspace.client.entityheader.EntityHeader;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
public class UserOptionsPanel extends AbstractTabbedDialogPanel implements UserOptionsView {
public static final String USER_OP_PANEL_ID = "k-uop-diagpan";
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/options/UserOptionsPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/options/UserOptionsPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/options/UserOptionsPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -23,13 +23,14 @@
import org.ourproject.kune.platf.client.actions.Action;
import org.ourproject.kune.platf.client.actions.ActionEvent;
import org.ourproject.kune.platf.client.actions.ui.MenuItemDescriptor;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.platf.client.ui.dialogs.tabbed.AbstractTabbedDialogPresenter;
import org.ourproject.kune.platf.client.ui.img.ImgResources;
import org.ourproject.kune.workspace.client.sitebar.siteusermenu.SiteUserOptions;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.events.Listener0;
public class UserOptionsPresenter extends AbstractTabbedDialogPresenter implements UserOptions {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/options/license/EntityOptionsDefLicensePanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/options/license/EntityOptionsDefLicensePanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/options/license/EntityOptionsDefLicensePanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,14 +19,15 @@
*/
package org.ourproject.kune.workspace.client.options.license;
-import org.ourproject.kune.platf.client.dto.LicenseDTO;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.ui.KuneUiUtils;
import org.ourproject.kune.platf.client.ui.dialogs.DefaultForm;
import org.ourproject.kune.platf.client.ui.dialogs.DefaultFormUtils;
import org.ourproject.kune.workspace.client.options.EntityOptionsView;
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
+import cc.kune.core.shared.dto.LicenseDTO;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.Image;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/options/license/EntityOptionsDefLicensePresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/options/license/EntityOptionsDefLicensePresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/options/license/EntityOptionsDefLicensePresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -20,13 +20,14 @@
package org.ourproject.kune.workspace.client.options.license;
import org.ourproject.kune.platf.client.View;
-import org.ourproject.kune.platf.client.dto.LicenseDTO;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.state.Session;
import org.ourproject.kune.workspace.client.licensewizard.LicenseChangeAction;
import org.ourproject.kune.workspace.client.licensewizard.LicenseWizard;
import org.ourproject.kune.workspace.client.options.EntityOptions;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.shared.dto.LicenseDTO;
+import cc.kune.core.shared.dto.StateToken;
+
import com.calclab.suco.client.events.Listener;
import com.calclab.suco.client.events.Listener0;
import com.calclab.suco.client.ioc.Provider;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/options/license/EntityOptionsDefLicenseView.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/options/license/EntityOptionsDefLicenseView.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/options/license/EntityOptionsDefLicenseView.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -20,8 +20,9 @@
package org.ourproject.kune.workspace.client.options.license;
import org.ourproject.kune.platf.client.View;
-import org.ourproject.kune.platf.client.dto.LicenseDTO;
+import cc.kune.core.shared.dto.LicenseDTO;
+
public interface EntityOptionsDefLicenseView extends View {
void openWindow(String url);
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/options/license/GroupOptionsDefLicensePresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/options/license/GroupOptionsDefLicensePresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/options/license/GroupOptionsDefLicensePresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,13 +1,14 @@
package org.ourproject.kune.workspace.client.options.license;
-import org.ourproject.kune.platf.client.dto.LicenseDTO;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.workspace.client.licensewizard.LicenseChangeAction;
import org.ourproject.kune.workspace.client.licensewizard.LicenseWizard;
import org.ourproject.kune.workspace.client.options.EntityOptions;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.dto.LicenseDTO;
+import cc.kune.core.shared.dto.StateToken;
+
import com.calclab.suco.client.events.Listener2;
import com.calclab.suco.client.ioc.Provider;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/options/license/UserOptionsDefLicensePresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/options/license/UserOptionsDefLicensePresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/options/license/UserOptionsDefLicensePresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,13 +1,14 @@
package org.ourproject.kune.workspace.client.options.license;
-import org.ourproject.kune.platf.client.dto.LicenseDTO;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.dto.UserInfoDTO;
-import org.ourproject.kune.platf.client.state.Session;
import org.ourproject.kune.workspace.client.licensewizard.LicenseChangeAction;
import org.ourproject.kune.workspace.client.licensewizard.LicenseWizard;
import org.ourproject.kune.workspace.client.options.EntityOptions;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.shared.dto.LicenseDTO;
+import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.dto.UserInfoDTO;
+
import com.calclab.suco.client.events.Listener;
import com.calclab.suco.client.ioc.Provider;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/options/logo/EntityOptionsLogoPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/options/logo/EntityOptionsLogoPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/options/logo/EntityOptionsLogoPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -20,13 +20,14 @@
package org.ourproject.kune.workspace.client.options.logo;
import org.ourproject.kune.platf.client.PlatfMessages;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.ui.dialogs.DefaultFormUtils;
import org.ourproject.kune.platf.client.ui.download.FileConstants;
import org.ourproject.kune.platf.client.ui.noti.NotifyUser;
import org.ourproject.kune.workspace.client.options.EntityOptionsView;
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.gwtext.client.core.Connection;
import com.gwtext.client.core.EventCallback;
import com.gwtext.client.core.EventObject;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/options/logo/EntityOptionsLogoPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/options/logo/EntityOptionsLogoPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/options/logo/EntityOptionsLogoPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -21,12 +21,13 @@
import org.ourproject.kune.chat.client.ChatEngine;
import org.ourproject.kune.platf.client.View;
-import org.ourproject.kune.platf.client.rpc.UserServiceAsync;
-import org.ourproject.kune.platf.client.state.Session;
import org.ourproject.kune.platf.client.ui.noti.NotifyUser;
import org.ourproject.kune.workspace.client.entityheader.EntityHeader;
import org.ourproject.kune.workspace.client.options.EntityOptions;
+import cc.kune.core.client.rpcservices.UserServiceAsync;
+import cc.kune.core.client.state.Session;
+
import com.calclab.suco.client.ioc.Provider;
public abstract class EntityOptionsLogoPresenter implements GroupOptionsLogo, UserOptionsLogo {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/options/logo/GroupOptionsLogoPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/options/logo/GroupOptionsLogoPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/options/logo/GroupOptionsLogoPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,9 +1,10 @@
package org.ourproject.kune.workspace.client.options.logo;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.ui.download.FileConstants;
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
public class GroupOptionsLogoPanel extends EntityOptionsLogoPanel {
public static final String PANEL_ID = "k-golp-pan";
public static final String BUTTON_ID = "k-golp-sendb";
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/options/logo/GroupOptionsLogoPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/options/logo/GroupOptionsLogoPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/options/logo/GroupOptionsLogoPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,12 +1,13 @@
package org.ourproject.kune.workspace.client.options.logo;
import org.ourproject.kune.chat.client.ChatEngine;
-import org.ourproject.kune.platf.client.rpc.UserServiceAsync;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.workspace.client.entityheader.EntityHeader;
import org.ourproject.kune.workspace.client.options.EntityOptions;
+import cc.kune.core.client.rpcservices.UserServiceAsync;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+
import com.calclab.suco.client.events.Listener2;
import com.calclab.suco.client.ioc.Provider;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/options/logo/UserOptionsLogoPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/options/logo/UserOptionsLogoPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/options/logo/UserOptionsLogoPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,9 +1,10 @@
package org.ourproject.kune.workspace.client.options.logo;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.ui.download.FileConstants;
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
public class UserOptionsLogoPanel extends EntityOptionsLogoPanel {
public static final String PANEL_ID = "k-uolp-pan";
public static final String BUTTON_ID = "k-uolp-sendb";
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/options/logo/UserOptionsLogoPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/options/logo/UserOptionsLogoPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/options/logo/UserOptionsLogoPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,15 +1,16 @@
package org.ourproject.kune.workspace.client.options.logo;
import org.ourproject.kune.chat.client.ChatEngine;
-import org.ourproject.kune.platf.client.dto.GroupDTO;
-import org.ourproject.kune.platf.client.dto.UserInfoDTO;
-import org.ourproject.kune.platf.client.rpc.AsyncCallbackSimple;
-import org.ourproject.kune.platf.client.rpc.UserServiceAsync;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.workspace.client.entityheader.EntityHeader;
import org.ourproject.kune.workspace.client.options.EntityOptions;
+import cc.kune.core.client.rpcservices.AsyncCallbackSimple;
+import cc.kune.core.client.rpcservices.UserServiceAsync;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.dto.GroupDTO;
+import cc.kune.core.shared.dto.UserInfoDTO;
+
import com.calclab.suco.client.events.Listener;
import com.calclab.suco.client.ioc.Provider;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/options/pscape/EntityOptionsPublicSpaceConfPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/options/pscape/EntityOptionsPublicSpaceConfPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/options/pscape/EntityOptionsPublicSpaceConfPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,10 +19,7 @@
*/
package org.ourproject.kune.workspace.client.options.pscape;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.ui.BasicThumb;
-import org.ourproject.kune.platf.client.ui.TextUtils;
import org.ourproject.kune.platf.client.ui.download.FileDownloadUtils;
import org.ourproject.kune.platf.client.ui.download.ImageSize;
import org.ourproject.kune.platf.client.ui.noti.NotifyUser;
@@ -30,6 +27,10 @@
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
import org.ourproject.kune.workspace.client.themes.WsThemeSelector;
+import cc.kune.core.client.utils.TextUtils;
+import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.HorizontalPanel;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/options/pscape/EntityOptionsPublicSpaceConfPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/options/pscape/EntityOptionsPublicSpaceConfPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/options/pscape/EntityOptionsPublicSpaceConfPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,17 +1,18 @@
package org.ourproject.kune.workspace.client.options.pscape;
import org.ourproject.kune.platf.client.View;
-import org.ourproject.kune.platf.client.dto.ContentSimpleDTO;
-import org.ourproject.kune.platf.client.dto.GroupDTO;
-import org.ourproject.kune.platf.client.dto.StateAbstractDTO;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.rpc.AsyncCallbackSimple;
-import org.ourproject.kune.platf.client.rpc.GroupServiceAsync;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.workspace.client.options.EntityOptions;
import org.ourproject.kune.workspace.client.themes.WsBackManager;
+import cc.kune.core.client.rpcservices.AsyncCallbackSimple;
+import cc.kune.core.client.rpcservices.GroupServiceAsync;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.dto.ContentSimpleDTO;
+import cc.kune.core.shared.dto.GroupDTO;
+import cc.kune.core.shared.dto.StateAbstractDTO;
+import cc.kune.core.shared.dto.StateToken;
+
import com.calclab.suco.client.events.Listener;
import com.calclab.suco.client.events.Listener0;
import com.calclab.suco.client.ioc.Provider;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/options/pscape/EntityOptionsPublicSpaceConfView.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/options/pscape/EntityOptionsPublicSpaceConfView.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/options/pscape/EntityOptionsPublicSpaceConfView.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -20,8 +20,9 @@
package org.ourproject.kune.workspace.client.options.pscape;
import org.ourproject.kune.platf.client.View;
-import org.ourproject.kune.platf.client.dto.StateToken;
+import cc.kune.core.shared.dto.StateToken;
+
public interface EntityOptionsPublicSpaceConfView extends View {
public void clearBackImage();
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/options/pscape/GroupOptionsPublicSpaceConfPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/options/pscape/GroupOptionsPublicSpaceConfPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/options/pscape/GroupOptionsPublicSpaceConfPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,16 +19,17 @@
*/
package org.ourproject.kune.workspace.client.options.pscape;
-import org.ourproject.kune.platf.client.dto.StateAbstractDTO;
-import org.ourproject.kune.platf.client.rpc.GroupServiceAsync;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.workspace.client.options.EntityOptions;
import org.ourproject.kune.workspace.client.themes.WsBackManager;
import org.ourproject.kune.workspace.client.themes.WsTheme;
import org.ourproject.kune.workspace.client.themes.WsThemeManager;
import org.ourproject.kune.workspace.client.themes.WsThemeSelector;
+import cc.kune.core.client.rpcservices.GroupServiceAsync;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.dto.StateAbstractDTO;
+
import com.calclab.suco.client.events.Listener;
import com.calclab.suco.client.ioc.Provider;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/options/pscape/UserOptionsPublicSpaceConfPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/options/pscape/UserOptionsPublicSpaceConfPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/options/pscape/UserOptionsPublicSpaceConfPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,16 +19,17 @@
*/
package org.ourproject.kune.workspace.client.options.pscape;
-import org.ourproject.kune.platf.client.dto.UserInfoDTO;
-import org.ourproject.kune.platf.client.rpc.GroupServiceAsync;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.workspace.client.options.EntityOptions;
import org.ourproject.kune.workspace.client.themes.WsBackManager;
import org.ourproject.kune.workspace.client.themes.WsTheme;
import org.ourproject.kune.workspace.client.themes.WsThemeManager;
import org.ourproject.kune.workspace.client.themes.WsThemeSelector;
+import cc.kune.core.client.rpcservices.GroupServiceAsync;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.dto.UserInfoDTO;
+
import com.calclab.suco.client.events.Listener;
import com.calclab.suco.client.ioc.Provider;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/options/tools/EntityOptionsToolsConfPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/options/tools/EntityOptionsToolsConfPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/options/tools/EntityOptionsToolsConfPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -21,12 +21,13 @@
import java.util.HashMap;
-import org.ourproject.kune.platf.client.dto.ToolSimpleDTO;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.ui.dialogs.DefaultForm;
import org.ourproject.kune.workspace.client.options.EntityOptionsView;
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
+import cc.kune.core.shared.dto.ToolSimpleDTO;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.allen_sauer.gwt.log.client.Log;
import com.gwtext.client.widgets.ToolTip;
import com.gwtext.client.widgets.form.Checkbox;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/options/tools/EntityOptionsToolsConfPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/options/tools/EntityOptionsToolsConfPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/options/tools/EntityOptionsToolsConfPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -4,15 +4,16 @@
import java.util.List;
import org.ourproject.kune.platf.client.View;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.dto.ToolSimpleDTO;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
-import org.ourproject.kune.platf.client.rpc.GroupServiceAsync;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.platf.client.ui.noti.NotifyUser.Level;
import org.ourproject.kune.workspace.client.options.EntityOptions;
+import cc.kune.core.client.rpcservices.GroupServiceAsync;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.dto.ToolSimpleDTO;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.ioc.Provider;
import com.google.gwt.user.client.rpc.AsyncCallback;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/options/tools/EntityOptionsToolsConfView.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/options/tools/EntityOptionsToolsConfView.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/options/tools/EntityOptionsToolsConfView.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -20,8 +20,9 @@
package org.ourproject.kune.workspace.client.options.tools;
import org.ourproject.kune.platf.client.View;
-import org.ourproject.kune.platf.client.dto.ToolSimpleDTO;
+import cc.kune.core.shared.dto.ToolSimpleDTO;
+
public interface EntityOptionsToolsConfView extends View {
void add(ToolSimpleDTO tool);
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/options/tools/GroupOptionsToolsConfPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/options/tools/GroupOptionsToolsConfPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/options/tools/GroupOptionsToolsConfPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -22,15 +22,16 @@
import java.util.Collection;
import java.util.List;
-import org.ourproject.kune.platf.client.dto.ContentSimpleDTO;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.dto.ToolSimpleDTO;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
-import org.ourproject.kune.platf.client.rpc.GroupServiceAsync;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.workspace.client.options.EntityOptions;
+import cc.kune.core.client.rpcservices.GroupServiceAsync;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.dto.ContentSimpleDTO;
+import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.dto.ToolSimpleDTO;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.events.Listener2;
import com.calclab.suco.client.ioc.Provider;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/options/tools/UserOptionsToolsConfPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/options/tools/UserOptionsToolsConfPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/options/tools/UserOptionsToolsConfPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -22,15 +22,16 @@
import java.util.Collection;
import java.util.List;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.dto.ToolSimpleDTO;
-import org.ourproject.kune.platf.client.dto.UserInfoDTO;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
-import org.ourproject.kune.platf.client.rpc.GroupServiceAsync;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.workspace.client.options.EntityOptions;
+import cc.kune.core.client.rpcservices.GroupServiceAsync;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.dto.ToolSimpleDTO;
+import cc.kune.core.shared.dto.UserInfoDTO;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.events.Listener;
import com.calclab.suco.client.ioc.Provider;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/rate/RateItPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/rate/RateItPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/rate/RateItPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,10 +19,11 @@
*/
package org.ourproject.kune.workspace.client.rate;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.services.Images;
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.google.gwt.dom.client.Element;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/rate/RateItPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/rate/RateItPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/rate/RateItPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,17 +19,18 @@
*/
package org.ourproject.kune.workspace.client.rate;
-import org.ourproject.kune.platf.client.dto.RateResultDTO;
-import org.ourproject.kune.platf.client.dto.StateAbstractDTO;
-import org.ourproject.kune.platf.client.dto.StateContentDTO;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.registry.ContentCapabilitiesRegistry;
-import org.ourproject.kune.platf.client.rpc.AsyncCallbackSimple;
-import org.ourproject.kune.platf.client.rpc.ContentServiceAsync;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.platf.client.ui.noti.NotifyUser;
+import cc.kune.core.client.rpcservices.AsyncCallbackSimple;
+import cc.kune.core.client.rpcservices.ContentServiceAsync;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.dto.RateResultDTO;
+import cc.kune.core.shared.dto.StateAbstractDTO;
+import cc.kune.core.shared.dto.StateContentDTO;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.events.Listener;
import com.calclab.suco.client.ioc.Provider;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/rate/RatePanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/rate/RatePanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/rate/RatePanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,10 +19,11 @@
*/
package org.ourproject.kune.workspace.client.rate;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.workspace.client.skel.Toolbar;
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Grid;
import com.google.gwt.user.client.ui.Image;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/rate/RatePresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/rate/RatePresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/rate/RatePresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,12 +19,13 @@
\*/
package org.ourproject.kune.workspace.client.rate;
-import org.ourproject.kune.platf.client.dto.RateResultDTO;
-import org.ourproject.kune.platf.client.dto.StateAbstractDTO;
-import org.ourproject.kune.platf.client.dto.StateContentDTO;
import org.ourproject.kune.platf.client.registry.ContentCapabilitiesRegistry;
-import org.ourproject.kune.platf.client.state.StateManager;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.dto.RateResultDTO;
+import cc.kune.core.shared.dto.StateAbstractDTO;
+import cc.kune.core.shared.dto.StateContentDTO;
+
import com.calclab.suco.client.events.Listener;
public class RatePresenter {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/search/AbstractLiveSearcherField.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/search/AbstractLiveSearcherField.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/search/AbstractLiveSearcherField.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,9 +1,10 @@
package org.ourproject.kune.workspace.client.search;
-import org.ourproject.kune.platf.client.dto.LinkDTO;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.services.SearcherConstants;
+import cc.kune.core.shared.dto.LinkDTO;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.events.Listener;
import com.google.gwt.core.client.Scheduler;
import com.google.gwt.core.client.Scheduler.ScheduledCommand;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/search/AbstractLiveSearcherPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/search/AbstractLiveSearcherPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/search/AbstractLiveSearcherPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,9 +19,10 @@
*/
package org.ourproject.kune.workspace.client.search;
-import org.ourproject.kune.platf.client.dto.LinkDTO;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
+import cc.kune.core.shared.dto.LinkDTO;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.events.Listener;
import com.gwtext.client.widgets.form.FormPanel;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/search/EntityLiveSearcher.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/search/EntityLiveSearcher.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/search/EntityLiveSearcher.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,8 +19,9 @@
*/
package org.ourproject.kune.workspace.client.search;
-import org.ourproject.kune.platf.client.dto.LinkDTO;
+import cc.kune.core.shared.dto.LinkDTO;
+
import com.calclab.suco.client.events.Listener;
public interface EntityLiveSearcher {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/search/EntityLiveSearcherPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/search/EntityLiveSearcherPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/search/EntityLiveSearcherPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,13 +19,14 @@
*/
package org.ourproject.kune.workspace.client.search;
-import org.ourproject.kune.platf.client.dto.LinkDTO;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.services.SearcherConstants;
import org.ourproject.kune.platf.client.ui.dialogs.BasicDialog;
import org.ourproject.kune.platf.client.ui.download.FileDownloadUtils;
+import cc.kune.core.shared.dto.LinkDTO;
+import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.events.Listener;
public class EntityLiveSearcherPanel implements EntityLiveSearcherView {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/search/EntityLiveSearcherPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/search/EntityLiveSearcherPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/search/EntityLiveSearcherPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -20,8 +20,9 @@
package org.ourproject.kune.workspace.client.search;
import org.ourproject.kune.platf.client.View;
-import org.ourproject.kune.platf.client.dto.LinkDTO;
+import cc.kune.core.shared.dto.LinkDTO;
+
import com.calclab.suco.client.events.Listener;
public class EntityLiveSearcherPresenter implements EntityLiveSearcher {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/search/GroupLiveSearchPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/search/GroupLiveSearchPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/search/GroupLiveSearchPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,9 +19,10 @@
*/
package org.ourproject.kune.workspace.client.search;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.ui.download.FileDownloadUtils;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
public class GroupLiveSearchPanel extends EntityLiveSearcherPanel {
public GroupLiveSearchPanel(final EntityLiveSearcherPresenter presenter, final I18nTranslationService i18n,
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/search/SiteSearcherPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/search/SiteSearcherPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/search/SiteSearcherPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,13 +19,14 @@
*/
package org.ourproject.kune.workspace.client.search;
-import org.ourproject.kune.platf.client.errors.UIException;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.services.SearcherConstants;
import org.ourproject.kune.platf.client.ui.AbstractSearcherPanel;
import org.ourproject.kune.platf.client.ui.dialogs.BasicDialog;
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
+import cc.kune.core.client.errors.UIException;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.allen_sauer.gwt.log.client.Log;
import com.google.gwt.event.dom.client.KeyCodes;
import com.google.gwt.user.client.ui.HorizontalPanel;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/search/SiteSearcherPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/search/SiteSearcherPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/search/SiteSearcherPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -22,9 +22,10 @@
import java.util.HashMap;
import org.ourproject.kune.platf.client.View;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.platf.client.ui.noti.NotifyUser;
+import cc.kune.core.client.state.StateManager;
+
import com.calclab.suco.client.ioc.Provider;
public class SiteSearcherPresenter implements SiteSearcher {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/search/UserLiveSearcherPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/search/UserLiveSearcherPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/search/UserLiveSearcherPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,9 +19,10 @@
*/
package org.ourproject.kune.workspace.client.search;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.ui.download.FileDownloadUtils;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
public class UserLiveSearcherPanel extends EntityLiveSearcherPanel {
public UserLiveSearcherPanel(final EntityLiveSearcherPresenter presenter, final I18nTranslationService i18n,
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/signin/RegisterForm.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/signin/RegisterForm.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/signin/RegisterForm.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,11 +19,12 @@
\*/
package org.ourproject.kune.workspace.client.signin;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
-import org.ourproject.kune.platf.client.state.Session;
import org.ourproject.kune.platf.client.ui.dialogs.DefaultForm;
import org.ourproject.kune.workspace.client.WorkspaceMessages;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.gwtext.client.data.SimpleStore;
import com.gwtext.client.data.Store;
import com.gwtext.client.widgets.form.ComboBox;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/signin/RegisterPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/signin/RegisterPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/signin/RegisterPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -20,13 +20,14 @@
package org.ourproject.kune.workspace.client.signin;
import org.ourproject.kune.platf.client.PlatfMessages;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.services.Images;
-import org.ourproject.kune.platf.client.state.Session;
import org.ourproject.kune.platf.client.ui.KuneUiUtils;
import org.ourproject.kune.platf.client.ui.dialogs.InfoDialog;
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.events.Listener0;
import com.google.gwt.core.client.Scheduler;
import com.google.gwt.core.client.Scheduler.ScheduledCommand;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/signin/RegisterPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/signin/RegisterPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/signin/RegisterPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -21,22 +21,23 @@
import org.ourproject.kune.platf.client.PlatfMessages;
import org.ourproject.kune.platf.client.View;
-import org.ourproject.kune.platf.client.dto.I18nCountryDTO;
-import org.ourproject.kune.platf.client.dto.I18nLanguageDTO;
-import org.ourproject.kune.platf.client.dto.TimeZoneDTO;
-import org.ourproject.kune.platf.client.dto.UserDTO;
-import org.ourproject.kune.platf.client.dto.UserInfoDTO;
-import org.ourproject.kune.platf.client.errors.EmailAddressInUseException;
-import org.ourproject.kune.platf.client.errors.GroupNameInUseException;
-import org.ourproject.kune.platf.client.errors.UIException;
-import org.ourproject.kune.platf.client.i18n.I18nUITranslationService;
-import org.ourproject.kune.platf.client.rpc.UserServiceAsync;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.platf.client.ui.noti.NotifyUser;
import org.ourproject.kune.platf.client.ui.noti.NotifyUser.Level;
-import com.calclab.emiteuimodule.client.SubscriptionMode;
+import cc.kune.core.client.errors.EmailAddressInUseException;
+import cc.kune.core.client.errors.GroupNameInUseException;
+import cc.kune.core.client.errors.UIException;
+import cc.kune.core.client.i18n.I18nUITranslationService;
+import cc.kune.core.client.rpcservices.UserServiceAsync;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.dto.I18nCountryDTO;
+import cc.kune.core.shared.dto.I18nLanguageDTO;
+import cc.kune.core.shared.dto.SubscriptionMode;
+import cc.kune.core.shared.dto.TimeZoneDTO;
+import cc.kune.core.shared.dto.UserDTO;
+import cc.kune.core.shared.dto.UserInfoDTO;
+
import com.calclab.suco.client.ioc.Provider;
import com.google.gwt.user.client.rpc.AsyncCallback;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/signin/SignInAbstractPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/signin/SignInAbstractPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/signin/SignInAbstractPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -21,13 +21,14 @@
import java.util.Date;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.services.Images;
-import org.ourproject.kune.platf.client.state.Session;
import org.ourproject.kune.platf.client.ui.dialogs.ExtendedDialog;
import org.ourproject.kune.platf.client.ui.dialogs.MessageToolbar;
import org.ourproject.kune.platf.client.ui.noti.NotifyUser.Level;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.events.Listener0;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.Cookies;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/signin/SignInAbstractPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/signin/SignInAbstractPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/signin/SignInAbstractPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,12 +19,13 @@
*/
package org.ourproject.kune.workspace.client.signin;
-import org.ourproject.kune.platf.client.dto.I18nLanguageDTO;
-import org.ourproject.kune.platf.client.dto.UserInfoDTO;
-import org.ourproject.kune.platf.client.i18n.I18nUITranslationService;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
+import cc.kune.core.client.i18n.I18nUITranslationService;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.dto.I18nLanguageDTO;
+import cc.kune.core.shared.dto.UserInfoDTO;
+
public class SignInAbstractPresenter {
protected final Session session;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/signin/SignInForm.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/signin/SignInForm.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/signin/SignInForm.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,9 +19,10 @@
\*/
package org.ourproject.kune.workspace.client.signin;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.ui.dialogs.DefaultForm;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.gwtext.client.core.EventObject;
import com.gwtext.client.widgets.form.Field;
import com.gwtext.client.widgets.form.TextField;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/signin/SignInPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/signin/SignInPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/signin/SignInPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -20,11 +20,12 @@
package org.ourproject.kune.workspace.client.signin;
import org.ourproject.kune.platf.client.PlatfMessages;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.services.Images;
import org.ourproject.kune.platf.client.ui.KuneUiUtils;
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.events.Listener0;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/signin/SignInPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/signin/SignInPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/signin/SignInPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -21,17 +21,18 @@
import org.ourproject.kune.platf.client.PlatfMessages;
import org.ourproject.kune.platf.client.View;
-import org.ourproject.kune.platf.client.dto.UserDTO;
-import org.ourproject.kune.platf.client.dto.UserInfoDTO;
-import org.ourproject.kune.platf.client.errors.UserAuthException;
-import org.ourproject.kune.platf.client.i18n.I18nUITranslationService;
-import org.ourproject.kune.platf.client.rpc.UserServiceAsync;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.platf.client.ui.noti.NotifyUser;
import org.ourproject.kune.platf.client.ui.noti.NotifyUser.Level;
import org.ourproject.kune.workspace.client.site.SiteToken;
+import cc.kune.core.client.errors.UserAuthException;
+import cc.kune.core.client.i18n.I18nUITranslationService;
+import cc.kune.core.client.rpcservices.UserServiceAsync;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.dto.UserDTO;
+import cc.kune.core.shared.dto.UserInfoDTO;
+
import com.allen_sauer.gwt.log.client.Log;
import com.calclab.suco.client.ioc.Provider;
import com.google.gwt.user.client.rpc.AsyncCallback;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/site/WorkspaceNotifyUser.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/site/WorkspaceNotifyUser.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/site/WorkspaceNotifyUser.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,6 +1,5 @@
package org.ourproject.kune.workspace.client.site;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.ui.noti.ConfirmationAsk;
import org.ourproject.kune.platf.client.ui.noti.NotifyUser;
import org.ourproject.kune.platf.client.ui.noti.NotifyUser.Level;
@@ -8,6 +7,8 @@
import org.ourproject.kune.workspace.client.sitebar.siteprogress.SiteProgress;
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.events.Listener;
import com.calclab.suco.client.events.Listener0;
import com.calclab.suco.client.events.Listener2;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/sitelogo/SiteLogoPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/sitelogo/SiteLogoPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/sitelogo/SiteLogoPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -20,9 +20,10 @@
package org.ourproject.kune.workspace.client.sitebar.sitelogo;
import org.ourproject.kune.platf.client.View;
-import org.ourproject.kune.platf.client.dto.InitDataDTO;
-import org.ourproject.kune.platf.client.state.Session;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.shared.dto.InitDataDTO;
+
import com.calclab.suco.client.events.Listener;
public class SiteLogoPresenter implements SiteLogo {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/sitenewgroup/SiteNewGroupLinkPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/sitenewgroup/SiteNewGroupLinkPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/sitenewgroup/SiteNewGroupLinkPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,10 +19,11 @@
\*/
package org.ourproject.kune.workspace.client.sitebar.sitenewgroup;
-import org.ourproject.kune.platf.client.i18n.I18nUITranslationService;
import org.ourproject.kune.workspace.client.site.SiteToken;
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
+import cc.kune.core.client.i18n.I18nUITranslationService;
+
import com.google.gwt.user.client.ui.Hyperlink;
public class SiteNewGroupLinkPanel implements SiteNewGroupLinkView {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/siteoptions/SiteOptionsPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/siteoptions/SiteOptionsPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/siteoptions/SiteOptionsPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -20,11 +20,12 @@
package org.ourproject.kune.workspace.client.sitebar.siteoptions;
import org.ourproject.kune.platf.client.actions.ui.GuiBindingsRegister;
-import org.ourproject.kune.platf.client.i18n.I18nUITranslationService;
import org.ourproject.kune.platf.client.ui.AbstractToolbar;
import org.ourproject.kune.platf.client.ui.dialogs.InfoDialog;
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
+import cc.kune.core.client.i18n.I18nUITranslationService;
+
import com.google.gwt.user.client.ui.Frame;
import com.gwtext.client.widgets.Panel;
import com.gwtext.client.widgets.layout.FitLayout;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/siteoptions/SiteOptionsPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/siteoptions/SiteOptionsPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/siteoptions/SiteOptionsPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -28,10 +28,11 @@
import org.ourproject.kune.platf.client.actions.ui.MenuDescriptor;
import org.ourproject.kune.platf.client.actions.ui.MenuItemDescriptor;
import org.ourproject.kune.platf.client.actions.ui.MenuSeparatorDescriptor;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.ui.KuneWindowUtils;
import org.ourproject.kune.platf.client.ui.img.ImgResources;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
public class SiteOptionsPresenter extends AbstractActionExtensiblePresenter implements SiteOptions {
private SiteOptionsView view;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/sitepublic/SitePublicSpaceLink.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/sitepublic/SitePublicSpaceLink.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/sitepublic/SitePublicSpaceLink.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,7 +19,7 @@
\*/
package org.ourproject.kune.workspace.client.sitebar.sitepublic;
-import org.ourproject.kune.platf.client.dto.StateAbstractDTO;
+import cc.kune.core.shared.dto.StateAbstractDTO;
public interface SitePublicSpaceLink {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/sitepublic/SitePublicSpaceLinkPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/sitepublic/SitePublicSpaceLinkPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/sitepublic/SitePublicSpaceLinkPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,12 +19,13 @@
\*/
package org.ourproject.kune.workspace.client.sitebar.sitepublic;
-import org.ourproject.kune.platf.client.i18n.I18nUITranslationService;
import org.ourproject.kune.platf.client.services.Images;
import org.ourproject.kune.platf.client.ui.AbstractToolbar;
import org.ourproject.kune.platf.client.ui.IconLabel;
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
+import cc.kune.core.client.i18n.I18nUITranslationService;
+
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.Window;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/sitepublic/SitePublicSpaceLinkPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/sitepublic/SitePublicSpaceLinkPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/sitepublic/SitePublicSpaceLinkPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -20,15 +20,16 @@
package org.ourproject.kune.workspace.client.sitebar.sitepublic;
import org.ourproject.kune.platf.client.View;
-import org.ourproject.kune.platf.client.dto.ContentStatusDTO;
-import org.ourproject.kune.platf.client.dto.GroupListDTO;
-import org.ourproject.kune.platf.client.dto.StateAbstractDTO;
-import org.ourproject.kune.platf.client.dto.StateContainerDTO;
-import org.ourproject.kune.platf.client.dto.StateContentDTO;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.dto.StateTokenUtils;
-import org.ourproject.kune.platf.client.state.StateManager;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.dto.ContentStatusDTO;
+import cc.kune.core.shared.dto.GroupListDTO;
+import cc.kune.core.shared.dto.StateAbstractDTO;
+import cc.kune.core.shared.dto.StateContainerDTO;
+import cc.kune.core.shared.dto.StateContentDTO;
+import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.dto.StateTokenUtils;
+
import com.calclab.suco.client.events.Listener;
public class SitePublicSpaceLinkPresenter implements SitePublicSpaceLink {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/sitesearch/SiteSearchPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/sitesearch/SiteSearchPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/sitesearch/SiteSearchPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -20,9 +20,10 @@
package org.ourproject.kune.workspace.client.sitebar.sitesearch;
import org.ourproject.kune.platf.client.View;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.workspace.client.search.SiteSearcher;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.ioc.Provider;
public class SiteSearchPresenter implements SiteSearch {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/sitesign/SiteSignInLinkPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/sitesign/SiteSignInLinkPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/sitesign/SiteSignInLinkPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,10 +19,11 @@
\*/
package org.ourproject.kune.workspace.client.sitebar.sitesign;
-import org.ourproject.kune.platf.client.i18n.I18nUITranslationService;
import org.ourproject.kune.workspace.client.site.SiteToken;
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
+import cc.kune.core.client.i18n.I18nUITranslationService;
+
import com.google.gwt.user.client.ui.Hyperlink;
public class SiteSignInLinkPanel implements SiteSignInLinkView {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/sitesign/SiteSignInLinkPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/sitesign/SiteSignInLinkPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/sitesign/SiteSignInLinkPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -20,9 +20,10 @@
package org.ourproject.kune.workspace.client.sitebar.sitesign;
import org.ourproject.kune.platf.client.View;
-import org.ourproject.kune.platf.client.dto.UserInfoDTO;
-import org.ourproject.kune.platf.client.state.Session;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.shared.dto.UserInfoDTO;
+
import com.calclab.suco.client.events.Listener;
import com.calclab.suco.client.events.Listener0;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/sitesign/SiteSignOutLink.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/sitesign/SiteSignOutLink.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/sitesign/SiteSignOutLink.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,7 +19,7 @@
\*/
package org.ourproject.kune.workspace.client.sitebar.sitesign;
-import org.ourproject.kune.platf.client.actions.BeforeActionListener;
+import cc.kune.core.client.actions.BeforeActionListener;
public interface SiteSignOutLink {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/sitesign/SiteSignOutLinkPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/sitesign/SiteSignOutLinkPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/sitesign/SiteSignOutLinkPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,10 +19,11 @@
\*/
package org.ourproject.kune.workspace.client.sitebar.sitesign;
-import org.ourproject.kune.platf.client.i18n.I18nUITranslationService;
import org.ourproject.kune.platf.client.ui.noti.NotifyUser;
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
+import cc.kune.core.client.i18n.I18nUITranslationService;
+
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.Label;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/sitesign/SiteSignOutLinkPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/sitesign/SiteSignOutLinkPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/sitesign/SiteSignOutLinkPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -22,17 +22,18 @@
import java.util.Date;
import org.ourproject.kune.platf.client.View;
-import org.ourproject.kune.platf.client.actions.BeforeActionCollection;
-import org.ourproject.kune.platf.client.actions.BeforeActionListener;
-import org.ourproject.kune.platf.client.dto.UserInfoDTO;
-import org.ourproject.kune.platf.client.errors.SessionExpiredException;
-import org.ourproject.kune.platf.client.errors.UIException;
-import org.ourproject.kune.platf.client.errors.UserMustBeLoggedException;
-import org.ourproject.kune.platf.client.rpc.UserServiceAsync;
-import org.ourproject.kune.platf.client.services.ErrorHandler;
-import org.ourproject.kune.platf.client.state.Session;
import org.ourproject.kune.platf.client.ui.noti.NotifyUser;
+import cc.kune.core.client.actions.BeforeActionCollection;
+import cc.kune.core.client.actions.BeforeActionListener;
+import cc.kune.core.client.errors.ErrorHandler;
+import cc.kune.core.client.errors.SessionExpiredException;
+import cc.kune.core.client.errors.UIException;
+import cc.kune.core.client.errors.UserMustBeLoggedException;
+import cc.kune.core.client.rpcservices.UserServiceAsync;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.shared.dto.UserInfoDTO;
+
import com.calclab.suco.client.events.Listener;
import com.calclab.suco.client.events.Listener0;
import com.calclab.suco.client.ioc.Provider;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/siteusermenu/SiteUserOptionsPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/siteusermenu/SiteUserOptionsPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/siteusermenu/SiteUserOptionsPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -31,14 +31,15 @@
import org.ourproject.kune.platf.client.actions.ui.GuiActionDescrip;
import org.ourproject.kune.platf.client.actions.ui.MenuDescriptor;
import org.ourproject.kune.platf.client.actions.ui.MenuItemDescriptor;
-import org.ourproject.kune.platf.client.dto.GroupDTO;
-import org.ourproject.kune.platf.client.dto.UserInfoDTO;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.platf.client.ui.download.FileDownloadUtils;
import org.ourproject.kune.platf.client.ui.img.ImgResources;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.dto.GroupDTO;
+import cc.kune.core.shared.dto.UserInfoDTO;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.events.Listener;
import com.calclab.suco.client.events.Listener0;
import com.calclab.suco.client.ioc.Provider;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/BuddiesSummaryPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/BuddiesSummaryPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/BuddiesSummaryPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -26,13 +26,14 @@
import org.ourproject.kune.platf.client.actions.MenuItemsContainer;
import org.ourproject.kune.platf.client.actions.toolbar.ActionToolbarPanel;
import org.ourproject.kune.platf.client.actions.toolbar.ActionToolbarView;
-import org.ourproject.kune.platf.client.dto.UserSimpleDTO;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.ui.AbstractToolbar;
import org.ourproject.kune.platf.client.ui.BasicThumb;
import org.ourproject.kune.workspace.client.skel.SummaryPanel;
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
+import cc.kune.core.shared.dto.UserSimpleDTO;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.events.Listener;
import com.google.gwt.dom.client.Element;
import com.google.gwt.event.dom.client.ClickEvent;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/BuddiesSummaryPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/BuddiesSummaryPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/BuddiesSummaryPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -29,26 +29,27 @@
import org.ourproject.kune.platf.client.actions.ActionToolbarMenuRadioDescriptor;
import org.ourproject.kune.platf.client.actions.RadioMustBeChecked;
import org.ourproject.kune.platf.client.actions.toolbar.ActionToolbar;
-import org.ourproject.kune.platf.client.dto.AccessRightsDTO;
-import org.ourproject.kune.platf.client.dto.AccessRolDTO;
-import org.ourproject.kune.platf.client.dto.SocialNetworkDataDTO;
-import org.ourproject.kune.platf.client.dto.StateAbstractDTO;
-import org.ourproject.kune.platf.client.dto.UserBuddiesDataDTO;
-import org.ourproject.kune.platf.client.dto.UserBuddiesVisibilityDTO;
-import org.ourproject.kune.platf.client.dto.UserSimpleDTO;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
-import org.ourproject.kune.platf.client.rpc.AsyncCallbackSimple;
-import org.ourproject.kune.platf.client.rpc.SocialNetworkServiceAsync;
-import org.ourproject.kune.platf.client.rpc.UserServiceAsync;
import org.ourproject.kune.platf.client.services.ImageUtils;
-import org.ourproject.kune.platf.client.state.AccessRightsClientManager;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.platf.client.ui.download.FileDownloadUtils;
import org.ourproject.kune.platf.client.ui.img.ImgResources;
import org.ourproject.kune.platf.client.ui.noti.NotifyUser;
import org.ourproject.kune.workspace.client.socialnet.toolbar.ActionBuddiesSummaryToolbar;
+import cc.kune.core.client.rpcservices.AsyncCallbackSimple;
+import cc.kune.core.client.rpcservices.SocialNetworkServiceAsync;
+import cc.kune.core.client.rpcservices.UserServiceAsync;
+import cc.kune.core.client.state.AccessRightsClientManager;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.dto.AccessRightsDTO;
+import cc.kune.core.shared.dto.AccessRolDTO;
+import cc.kune.core.shared.dto.SocialNetworkDataDTO;
+import cc.kune.core.shared.dto.StateAbstractDTO;
+import cc.kune.core.shared.dto.UserBuddiesDataDTO;
+import cc.kune.core.shared.dto.UserBuddiesVisibilityDTO;
+import cc.kune.core.shared.dto.UserSimpleDTO;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.events.Listener;
import com.calclab.suco.client.ioc.Provider;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/BuddiesSummaryView.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/BuddiesSummaryView.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/BuddiesSummaryView.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -21,8 +21,9 @@
import org.ourproject.kune.platf.client.View;
import org.ourproject.kune.platf.client.actions.ActionItemCollection;
-import org.ourproject.kune.platf.client.dto.UserSimpleDTO;
+import cc.kune.core.shared.dto.UserSimpleDTO;
+
public interface BuddiesSummaryView extends View {
String NOAVATAR = "";
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/GroupActionRegistry.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/GroupActionRegistry.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/GroupActionRegistry.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -20,8 +20,9 @@
package org.ourproject.kune.workspace.client.socialnet;
import org.ourproject.kune.platf.client.actions.ActionRegistry;
-import org.ourproject.kune.platf.client.dto.StateToken;
+import cc.kune.core.shared.dto.StateToken;
+
/**
* The Class GroupActionRegistry stores actions over groups (mainly used in SN)
*/
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/GroupMembersSummary.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/GroupMembersSummary.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/GroupMembersSummary.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,9 +19,10 @@
*/
package org.ourproject.kune.workspace.client.socialnet;
-import org.ourproject.kune.platf.client.dto.GroupDTO;
import org.ourproject.kune.platf.client.ui.MenuItem;
+import cc.kune.core.shared.dto.GroupDTO;
+
public interface GroupMembersSummary {
void addGroupOperation(MenuItem<GroupDTO> operation, boolean mustBeLogged);
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/GroupMembersSummaryPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/GroupMembersSummaryPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/GroupMembersSummaryPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -22,9 +22,6 @@
import org.ourproject.kune.platf.client.PlatfMessages;
import org.ourproject.kune.platf.client.actions.toolbar.ActionToolbarPanel;
import org.ourproject.kune.platf.client.actions.toolbar.ActionToolbarView;
-import org.ourproject.kune.platf.client.dto.GroupDTO;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.i18n.I18nUITranslationService;
import org.ourproject.kune.platf.client.ui.AbstractToolbar;
import org.ourproject.kune.platf.client.ui.gridmenu.GridDragConfiguration;
import org.ourproject.kune.platf.client.ui.gridmenu.GridItem;
@@ -32,6 +29,10 @@
import org.ourproject.kune.workspace.client.skel.SummaryPanel;
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
+import cc.kune.core.client.i18n.I18nUITranslationService;
+import cc.kune.core.shared.dto.GroupDTO;
+import cc.kune.core.shared.dto.StateToken;
+
import com.calclab.emiteuimodule.client.users.UserGridPanel;
import com.calclab.suco.client.events.Listener;
import com.google.gwt.core.client.Scheduler;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/GroupMembersSummaryPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/GroupMembersSummaryPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/GroupMembersSummaryPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -26,27 +26,8 @@
import org.ourproject.kune.platf.client.actions.ActionToolbarMenuRadioDescriptor;
import org.ourproject.kune.platf.client.actions.RadioMustBeChecked;
import org.ourproject.kune.platf.client.actions.toolbar.ActionToolbar;
-import org.ourproject.kune.platf.client.dto.AccessListsDTO;
-import org.ourproject.kune.platf.client.dto.AccessRightsDTO;
-import org.ourproject.kune.platf.client.dto.AccessRolDTO;
-import org.ourproject.kune.platf.client.dto.AdmissionTypeDTO;
-import org.ourproject.kune.platf.client.dto.GroupDTO;
-import org.ourproject.kune.platf.client.dto.InitDataDTO;
-import org.ourproject.kune.platf.client.dto.LinkDTO;
-import org.ourproject.kune.platf.client.dto.SocialNetworkDTO;
-import org.ourproject.kune.platf.client.dto.SocialNetworkDataDTO;
-import org.ourproject.kune.platf.client.dto.SocialNetworkVisibilityDTO;
-import org.ourproject.kune.platf.client.dto.StateAbstractDTO;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.i18n.I18nUITranslationService;
-import org.ourproject.kune.platf.client.rpc.AsyncCallbackSimple;
-import org.ourproject.kune.platf.client.rpc.GroupServiceAsync;
-import org.ourproject.kune.platf.client.rpc.SocialNetworkServiceAsync;
import org.ourproject.kune.platf.client.services.ImageDescriptor;
import org.ourproject.kune.platf.client.services.ImageUtils;
-import org.ourproject.kune.platf.client.state.AccessRightsClientManager;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.platf.client.ui.MenuItem;
import org.ourproject.kune.platf.client.ui.download.FileDownloadUtils;
import org.ourproject.kune.platf.client.ui.gridmenu.GridGroup;
@@ -55,6 +36,26 @@
import org.ourproject.kune.workspace.client.search.GroupLiveSearcher;
import org.ourproject.kune.workspace.client.socialnet.toolbar.ActionGroupSummaryToolbar;
+import cc.kune.core.client.i18n.I18nUITranslationService;
+import cc.kune.core.client.rpcservices.AsyncCallbackSimple;
+import cc.kune.core.client.rpcservices.GroupServiceAsync;
+import cc.kune.core.client.rpcservices.SocialNetworkServiceAsync;
+import cc.kune.core.client.state.AccessRightsClientManager;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.dto.AccessListsDTO;
+import cc.kune.core.shared.dto.AccessRightsDTO;
+import cc.kune.core.shared.dto.AccessRolDTO;
+import cc.kune.core.shared.dto.AdmissionTypeDTO;
+import cc.kune.core.shared.dto.GroupDTO;
+import cc.kune.core.shared.dto.InitDataDTO;
+import cc.kune.core.shared.dto.LinkDTO;
+import cc.kune.core.shared.dto.SocialNetworkDTO;
+import cc.kune.core.shared.dto.SocialNetworkDataDTO;
+import cc.kune.core.shared.dto.SocialNetworkVisibilityDTO;
+import cc.kune.core.shared.dto.StateAbstractDTO;
+import cc.kune.core.shared.dto.StateToken;
+
import com.calclab.emite.core.client.xmpp.stanzas.XmppURI;
import com.calclab.suco.client.events.Listener;
import com.calclab.suco.client.ioc.Provider;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/GroupMembersSummaryView.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/GroupMembersSummaryView.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/GroupMembersSummaryView.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,9 +19,10 @@
\*/
package org.ourproject.kune.workspace.client.socialnet;
-import org.ourproject.kune.platf.client.dto.GroupDTO;
import org.ourproject.kune.platf.client.ui.gridmenu.GridItem;
+import cc.kune.core.shared.dto.GroupDTO;
+
public interface GroupMembersSummaryView {
void addItem(GridItem<GroupDTO> gridItem);
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/ParticipateAction.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/ParticipateAction.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/ParticipateAction.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,17 +1,18 @@
package org.ourproject.kune.workspace.client.socialnet;
import org.ourproject.kune.platf.client.actions.ActionEvent;
-import org.ourproject.kune.platf.client.dto.AccessRolDTO;
-import org.ourproject.kune.platf.client.dto.SocialNetworkRequestResult;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
-import org.ourproject.kune.platf.client.rpc.AsyncCallbackSimple;
-import org.ourproject.kune.platf.client.rpc.SocialNetworkServiceAsync;
-import org.ourproject.kune.platf.client.state.AccessRightsClientManager;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.platf.client.ui.img.ImgResources;
import org.ourproject.kune.platf.client.ui.noti.NotifyUser;
+import cc.kune.core.client.rpcservices.AsyncCallbackSimple;
+import cc.kune.core.client.rpcservices.SocialNetworkServiceAsync;
+import cc.kune.core.client.state.AccessRightsClientManager;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.dto.AccessRolDTO;
+import cc.kune.core.shared.dto.SocialNetworkRequestResult;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.ioc.Provider;
public class ParticipateAction extends RolAction {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/ParticipationSummaryPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/ParticipationSummaryPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/ParticipationSummaryPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -21,15 +21,16 @@
import org.ourproject.kune.platf.client.actions.toolbar.ActionToolbarPanel;
import org.ourproject.kune.platf.client.actions.toolbar.ActionToolbarView;
-import org.ourproject.kune.platf.client.dto.GroupDTO;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.ui.AbstractToolbar;
import org.ourproject.kune.platf.client.ui.gridmenu.GridItem;
import org.ourproject.kune.platf.client.ui.gridmenu.GridMenuPanel;
import org.ourproject.kune.workspace.client.skel.SummaryPanel;
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
+import cc.kune.core.shared.dto.GroupDTO;
+import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.events.Listener;
import com.google.gwt.user.client.ui.Widget;
import com.gwtext.client.widgets.BoxComponent;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/ParticipationSummaryPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/ParticipationSummaryPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/ParticipationSummaryPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -21,21 +21,22 @@
import java.util.List;
-import org.ourproject.kune.platf.client.dto.AccessRightsDTO;
-import org.ourproject.kune.platf.client.dto.GroupDTO;
-import org.ourproject.kune.platf.client.dto.ParticipationDataDTO;
-import org.ourproject.kune.platf.client.dto.StateAbstractDTO;
-import org.ourproject.kune.platf.client.i18n.I18nUITranslationService;
-import org.ourproject.kune.platf.client.rpc.SocialNetworkServiceAsync;
import org.ourproject.kune.platf.client.services.ImageUtils;
-import org.ourproject.kune.platf.client.state.AccessRightsClientManager;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.platf.client.ui.download.FileDownloadUtils;
import org.ourproject.kune.platf.client.ui.gridmenu.GridGroup;
import org.ourproject.kune.platf.client.ui.img.ImgResources;
import org.ourproject.kune.workspace.client.socialnet.toolbar.ActionParticipationToolbar;
+import cc.kune.core.client.i18n.I18nUITranslationService;
+import cc.kune.core.client.rpcservices.SocialNetworkServiceAsync;
+import cc.kune.core.client.state.AccessRightsClientManager;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.dto.AccessRightsDTO;
+import cc.kune.core.shared.dto.GroupDTO;
+import cc.kune.core.shared.dto.ParticipationDataDTO;
+import cc.kune.core.shared.dto.StateAbstractDTO;
+
import com.calclab.suco.client.events.Listener;
import com.calclab.suco.client.ioc.Provider;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/ParticipationSummaryView.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/ParticipationSummaryView.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/ParticipationSummaryView.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -20,9 +20,10 @@
package org.ourproject.kune.workspace.client.socialnet;
import org.ourproject.kune.platf.client.View;
-import org.ourproject.kune.platf.client.dto.GroupDTO;
import org.ourproject.kune.platf.client.ui.gridmenu.GridItem;
+import cc.kune.core.shared.dto.GroupDTO;
+
public interface ParticipationSummaryView extends View {
void addItem(GridItem<GroupDTO> createGridItem);
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/RolAction.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/RolAction.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/RolAction.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -2,13 +2,14 @@
import org.ourproject.kune.platf.client.actions.AbstractExtendedAction;
import org.ourproject.kune.platf.client.actions.ui.GuiActionDescrip;
-import org.ourproject.kune.platf.client.dto.AccessRightsDTO;
-import org.ourproject.kune.platf.client.dto.AccessRolDTO;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
-import org.ourproject.kune.platf.client.state.AccessRightsClientManager;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
+import cc.kune.core.client.state.AccessRightsClientManager;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.dto.AccessRightsDTO;
+import cc.kune.core.shared.dto.AccessRolDTO;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.events.Listener2;
import com.google.gwt.resources.client.ImageResource;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/RolComparator.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/RolComparator.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/RolComparator.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,7 +1,7 @@
package org.ourproject.kune.workspace.client.socialnet;
-import org.ourproject.kune.platf.client.dto.AccessRightsDTO;
-import org.ourproject.kune.platf.client.dto.AccessRolDTO;
+import cc.kune.core.shared.dto.AccessRightsDTO;
+import cc.kune.core.shared.dto.AccessRolDTO;
public final class RolComparator {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/SocialNetworkPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/SocialNetworkPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/SocialNetworkPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -25,16 +25,6 @@
import org.ourproject.kune.platf.client.actions.ui.ButtonDescriptor;
import org.ourproject.kune.platf.client.actions.ui.MenuDescriptor;
import org.ourproject.kune.platf.client.actions.ui.MenuItemDescriptor;
-import org.ourproject.kune.platf.client.dto.AccessRightsDTO;
-import org.ourproject.kune.platf.client.dto.GroupDTO;
-import org.ourproject.kune.platf.client.dto.SocialNetworkDataDTO;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
-import org.ourproject.kune.platf.client.rpc.AsyncCallbackSimple;
-import org.ourproject.kune.platf.client.rpc.SocialNetworkServiceAsync;
-import org.ourproject.kune.platf.client.state.AccessRightsClientManager;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.platf.client.ui.MenuItem;
import org.ourproject.kune.platf.client.ui.MenuItemCollection;
import org.ourproject.kune.platf.client.ui.download.FileConstants;
@@ -45,6 +35,17 @@
import org.ourproject.kune.platf.client.ui.img.ImgResources;
import org.ourproject.kune.platf.client.ui.noti.NotifyUser;
+import cc.kune.core.client.rpcservices.AsyncCallbackSimple;
+import cc.kune.core.client.rpcservices.SocialNetworkServiceAsync;
+import cc.kune.core.client.state.AccessRightsClientManager;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.dto.AccessRightsDTO;
+import cc.kune.core.shared.dto.GroupDTO;
+import cc.kune.core.shared.dto.SocialNetworkDataDTO;
+import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.events.Listener;
import com.calclab.suco.client.ioc.Provider;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/UnjoinAction.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/UnjoinAction.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/UnjoinAction.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,18 +1,19 @@
package org.ourproject.kune.workspace.client.socialnet;
import org.ourproject.kune.platf.client.actions.ActionEvent;
-import org.ourproject.kune.platf.client.dto.AccessRolDTO;
-import org.ourproject.kune.platf.client.dto.SocialNetworkDataDTO;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
-import org.ourproject.kune.platf.client.rpc.AsyncCallbackSimple;
-import org.ourproject.kune.platf.client.rpc.SocialNetworkServiceAsync;
-import org.ourproject.kune.platf.client.state.AccessRightsClientManager;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.platf.client.ui.img.ImgResources;
import org.ourproject.kune.platf.client.ui.noti.NotifyUser;
+import cc.kune.core.client.rpcservices.AsyncCallbackSimple;
+import cc.kune.core.client.rpcservices.SocialNetworkServiceAsync;
+import cc.kune.core.client.state.AccessRightsClientManager;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.dto.AccessRolDTO;
+import cc.kune.core.shared.dto.SocialNetworkDataDTO;
+import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.events.Listener0;
import com.calclab.suco.client.ioc.Provider;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/UserActionRegistry.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/UserActionRegistry.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/UserActionRegistry.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -20,8 +20,9 @@
package org.ourproject.kune.workspace.client.socialnet;
import org.ourproject.kune.platf.client.actions.ActionRegistry;
-import org.ourproject.kune.platf.client.dto.UserSimpleDTO;
+import cc.kune.core.shared.dto.UserSimpleDTO;
+
/**
* The Class UserActionRegistry.
*
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/other/AddAsBuddieHeaderButton.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/other/AddAsBuddieHeaderButton.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/other/AddAsBuddieHeaderButton.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -8,15 +8,16 @@
import org.ourproject.kune.platf.client.actions.PropertyChangeEvent;
import org.ourproject.kune.platf.client.actions.PropertyChangeListener;
import org.ourproject.kune.platf.client.actions.ui.ButtonDescriptor;
-import org.ourproject.kune.platf.client.dto.StateAbstractDTO;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.platf.client.ui.img.ImgConstants;
import org.ourproject.kune.platf.client.ui.img.ImgResources;
import org.ourproject.kune.platf.client.ui.noti.NotifyUser;
import org.ourproject.kune.workspace.client.entityheader.EntityHeader;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.dto.StateAbstractDTO;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.events.Listener;
import com.calclab.suco.client.events.Listener0;
import com.calclab.suco.client.ioc.Provider;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/toolbar/ActionBuddiesSummaryToolbar.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/toolbar/ActionBuddiesSummaryToolbar.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/toolbar/ActionBuddiesSummaryToolbar.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -20,8 +20,9 @@
package org.ourproject.kune.workspace.client.socialnet.toolbar;
import org.ourproject.kune.platf.client.actions.toolbar.ActionToolbar;
-import org.ourproject.kune.platf.client.dto.UserSimpleDTO;
+import cc.kune.core.shared.dto.UserSimpleDTO;
+
public interface ActionBuddiesSummaryToolbar extends ActionToolbar<UserSimpleDTO> {
}
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/toolbar/ActionBuddiesSummaryToolbarPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/toolbar/ActionBuddiesSummaryToolbarPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/toolbar/ActionBuddiesSummaryToolbarPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -21,8 +21,9 @@
import org.ourproject.kune.platf.client.actions.toolbar.ActionToolbarPresenter;
import org.ourproject.kune.platf.client.actions.toolbar.ActionToolbarView;
-import org.ourproject.kune.platf.client.dto.UserSimpleDTO;
+import cc.kune.core.shared.dto.UserSimpleDTO;
+
public class ActionBuddiesSummaryToolbarPresenter extends ActionToolbarPresenter<UserSimpleDTO> implements
ActionBuddiesSummaryToolbar {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/toolbar/ActionGroupSummaryToolbar.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/toolbar/ActionGroupSummaryToolbar.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/toolbar/ActionGroupSummaryToolbar.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -20,8 +20,9 @@
package org.ourproject.kune.workspace.client.socialnet.toolbar;
import org.ourproject.kune.platf.client.actions.toolbar.ActionToolbar;
-import org.ourproject.kune.platf.client.dto.StateToken;
+import cc.kune.core.shared.dto.StateToken;
+
public interface ActionGroupSummaryToolbar extends ActionToolbar<StateToken> {
}
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/toolbar/ActionGroupSummaryToolbarPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/toolbar/ActionGroupSummaryToolbarPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/toolbar/ActionGroupSummaryToolbarPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -21,8 +21,9 @@
import org.ourproject.kune.platf.client.actions.toolbar.ActionToolbarPresenter;
import org.ourproject.kune.platf.client.actions.toolbar.ActionToolbarView;
-import org.ourproject.kune.platf.client.dto.StateToken;
+import cc.kune.core.shared.dto.StateToken;
+
public class ActionGroupSummaryToolbarPresenter extends ActionToolbarPresenter<StateToken> implements
ActionGroupSummaryToolbar {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/toolbar/ActionParticipationSummaryToolbarPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/toolbar/ActionParticipationSummaryToolbarPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/toolbar/ActionParticipationSummaryToolbarPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -21,8 +21,9 @@
import org.ourproject.kune.platf.client.actions.toolbar.ActionToolbarPresenter;
import org.ourproject.kune.platf.client.actions.toolbar.ActionToolbarView;
-import org.ourproject.kune.platf.client.dto.StateToken;
+import cc.kune.core.shared.dto.StateToken;
+
public class ActionParticipationSummaryToolbarPresenter extends ActionToolbarPresenter<StateToken> implements
ActionParticipationToolbar {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/toolbar/ActionParticipationToolbar.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/toolbar/ActionParticipationToolbar.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/toolbar/ActionParticipationToolbar.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -20,8 +20,9 @@
package org.ourproject.kune.workspace.client.socialnet.toolbar;
import org.ourproject.kune.platf.client.actions.toolbar.ActionToolbar;
-import org.ourproject.kune.platf.client.dto.StateToken;
+import cc.kune.core.shared.dto.StateToken;
+
public interface ActionParticipationToolbar extends ActionToolbar<StateToken> {
}
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/tags/TagsSummary.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/tags/TagsSummary.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/tags/TagsSummary.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,7 +19,7 @@
*/
package org.ourproject.kune.workspace.client.tags;
-import org.ourproject.kune.platf.client.dto.TagCloudResultDTO;
+import cc.kune.core.shared.dto.TagCloudResultDTO;
public interface TagsSummary {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/tags/TagsSummaryPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/tags/TagsSummaryPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/tags/TagsSummaryPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,11 +19,12 @@
*/
package org.ourproject.kune.workspace.client.tags;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.ui.KuneUiUtils;
import org.ourproject.kune.workspace.client.skel.SummaryPanel;
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.FlowPanel;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/tags/TagsSummaryPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/tags/TagsSummaryPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/tags/TagsSummaryPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -20,15 +20,16 @@
package org.ourproject.kune.workspace.client.tags;
import org.ourproject.kune.platf.client.View;
-import org.ourproject.kune.platf.client.dto.StateAbstractDTO;
-import org.ourproject.kune.platf.client.dto.StateContainerDTO;
-import org.ourproject.kune.platf.client.dto.TagCloudResultDTO;
-import org.ourproject.kune.platf.client.dto.TagCountDTO;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.workspace.client.search.SiteSearcher;
import org.ourproject.kune.workspace.client.search.SiteSearcherType;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.dto.StateAbstractDTO;
+import cc.kune.core.shared.dto.StateContainerDTO;
+import cc.kune.core.shared.dto.TagCloudResultDTO;
+import cc.kune.core.shared.dto.TagCountDTO;
+
import com.allen_sauer.gwt.log.client.Log;
import com.calclab.suco.client.events.Listener;
import com.calclab.suco.client.ioc.Provider;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/themes/WsBackManager.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/themes/WsBackManager.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/themes/WsBackManager.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,7 +1,8 @@
package org.ourproject.kune.workspace.client.themes;
-import org.ourproject.kune.platf.client.dto.StateToken;
+import cc.kune.core.shared.dto.StateToken;
+
import com.calclab.suco.client.events.Listener;
import com.calclab.suco.client.events.Listener0;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/themes/WsBackManagerImpl.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/themes/WsBackManagerImpl.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/themes/WsBackManagerImpl.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,9 +1,10 @@
package org.ourproject.kune.workspace.client.themes;
import org.cobogw.gwt.user.client.CSS;
-import org.ourproject.kune.platf.client.dto.StateToken;
import org.ourproject.kune.platf.client.ui.download.FileDownloadUtils;
+import cc.kune.core.shared.dto.StateToken;
+
import com.calclab.suco.client.events.Event;
import com.calclab.suco.client.events.Event0;
import com.calclab.suco.client.events.Listener;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/themes/WsThemeManager.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/themes/WsThemeManager.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/themes/WsThemeManager.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,16 +19,17 @@
\*/
package org.ourproject.kune.workspace.client.themes;
-import org.ourproject.kune.platf.client.dto.ContentSimpleDTO;
-import org.ourproject.kune.platf.client.dto.InitDataDTO;
-import org.ourproject.kune.platf.client.dto.StateAbstractDTO;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.rpc.AsyncCallbackSimple;
-import org.ourproject.kune.platf.client.rpc.GroupServiceAsync;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.platf.client.ui.noti.NotifyUser;
+import cc.kune.core.client.rpcservices.AsyncCallbackSimple;
+import cc.kune.core.client.rpcservices.GroupServiceAsync;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.dto.ContentSimpleDTO;
+import cc.kune.core.shared.dto.InitDataDTO;
+import cc.kune.core.shared.dto.StateAbstractDTO;
+import cc.kune.core.shared.dto.StateToken;
+
import com.calclab.suco.client.events.Event2;
import com.calclab.suco.client.events.Listener;
import com.calclab.suco.client.events.Listener2;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/themes/WsThemeSelectorPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/themes/WsThemeSelectorPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/themes/WsThemeSelectorPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -8,10 +8,11 @@
import org.ourproject.kune.platf.client.actions.ui.CssStyleDescriptor;
import org.ourproject.kune.platf.client.actions.ui.MenuDescriptor;
import org.ourproject.kune.platf.client.actions.ui.MenuItemDescriptor;
-import org.ourproject.kune.platf.client.dto.InitDataDTO;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
-import org.ourproject.kune.platf.client.state.Session;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.shared.dto.InitDataDTO;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.events.Event;
import com.calclab.suco.client.events.Listener;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/title/EntitySubTitlePresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/title/EntitySubTitlePresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/title/EntitySubTitlePresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -22,13 +22,14 @@
import java.util.Date;
import org.ourproject.kune.platf.client.View;
-import org.ourproject.kune.platf.client.dto.StateAbstractDTO;
-import org.ourproject.kune.platf.client.dto.StateContainerDTO;
-import org.ourproject.kune.platf.client.dto.StateContentDTO;
-import org.ourproject.kune.platf.client.i18n.I18nUITranslationService;
import org.ourproject.kune.platf.client.registry.AuthorableRegistry;
-import org.ourproject.kune.platf.client.state.StateManager;
+import cc.kune.core.client.i18n.I18nUITranslationService;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.dto.StateAbstractDTO;
+import cc.kune.core.shared.dto.StateContainerDTO;
+import cc.kune.core.shared.dto.StateContentDTO;
+
import com.calclab.suco.client.events.Listener;
public class EntitySubTitlePresenter implements EntitySubTitle {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/title/EntityTitlePresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/title/EntityTitlePresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/title/EntityTitlePresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -20,15 +20,16 @@
package org.ourproject.kune.workspace.client.title;
import org.ourproject.kune.platf.client.View;
-import org.ourproject.kune.platf.client.dto.StateAbstractDTO;
-import org.ourproject.kune.platf.client.dto.StateContainerDTO;
-import org.ourproject.kune.platf.client.dto.StateContentDTO;
-import org.ourproject.kune.platf.client.dto.StateToken;
import org.ourproject.kune.platf.client.registry.RenamableRegistry;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.workspace.client.cnt.ContentIconsRegistry;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.dto.StateAbstractDTO;
+import cc.kune.core.shared.dto.StateContainerDTO;
+import cc.kune.core.shared.dto.StateContentDTO;
+import cc.kune.core.shared.dto.StateToken;
+
import com.calclab.suco.client.events.Listener;
import com.calclab.suco.client.events.Listener2;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/title/RenameAction.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/title/RenameAction.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/title/RenameAction.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,15 +19,16 @@
*/
package org.ourproject.kune.workspace.client.title;
-import org.ourproject.kune.platf.client.dto.StateAbstractDTO;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.errors.NameInUseException;
-import org.ourproject.kune.platf.client.errors.NameNotPermittedException;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
-import org.ourproject.kune.platf.client.rpc.ContentServiceAsync;
-import org.ourproject.kune.platf.client.state.Session;
import org.ourproject.kune.platf.client.ui.noti.NotifyUser;
+import cc.kune.core.client.errors.NameInUseException;
+import cc.kune.core.client.errors.NameNotPermittedException;
+import cc.kune.core.client.rpcservices.ContentServiceAsync;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.shared.dto.StateAbstractDTO;
+import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.events.Event2;
import com.calclab.suco.client.events.Listener2;
import com.calclab.suco.client.ioc.Provider;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/tool/FoldableAbstractClientTool.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/tool/FoldableAbstractClientTool.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/tool/FoldableAbstractClientTool.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,11 +19,12 @@
*/
package org.ourproject.kune.workspace.client.tool;
-import org.ourproject.kune.platf.client.dto.BasicMimeTypeDTO;
import org.ourproject.kune.platf.client.registry.ContentCapabilitiesRegistry;
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
import org.ourproject.kune.workspace.client.themes.WsThemeManager;
+import cc.kune.core.shared.dto.BasicMimeTypeDTO;
+
public abstract class FoldableAbstractClientTool extends AbstractClientTool {
public static final String UPLOADEDFILE_SUFFIX = "uploaded";
public static final String WAVE_SUFFIX = "wave";
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/tool/ToolSelectorItemPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/tool/ToolSelectorItemPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/tool/ToolSelectorItemPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -20,10 +20,11 @@
package org.ourproject.kune.workspace.client.tool;
import org.ourproject.kune.platf.client.View;
-import org.ourproject.kune.platf.client.dto.StateToken;
import org.ourproject.kune.workspace.client.themes.WsTheme;
import org.ourproject.kune.workspace.client.themes.WsThemeManager;
+import cc.kune.core.shared.dto.StateToken;
+
import com.calclab.suco.client.events.Listener2;
public class ToolSelectorItemPresenter implements ToolSelectorItem {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/tool/ToolSelectorPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/tool/ToolSelectorPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/tool/ToolSelectorPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -22,11 +22,12 @@
import java.util.HashMap;
import java.util.List;
-import org.ourproject.kune.platf.client.dto.StateAbstractDTO;
-import org.ourproject.kune.platf.client.errors.UIException;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.workspace.client.themes.WsThemeManager;
+import cc.kune.core.client.errors.UIException;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.dto.StateAbstractDTO;
+
import com.allen_sauer.gwt.log.client.Log;
import com.calclab.suco.client.events.Listener;
import com.calclab.suco.client.events.Listener2;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/upload/FileUploader.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/upload/FileUploader.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/upload/FileUploader.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,8 +19,9 @@
\*/
package org.ourproject.kune.workspace.client.upload;
-import org.ourproject.kune.platf.client.dto.StateToken;
+import cc.kune.core.shared.dto.StateToken;
+
import com.calclab.suco.client.events.Listener;
public interface FileUploader {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/upload/FileUploaderDialog.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/upload/FileUploaderDialog.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/upload/FileUploaderDialog.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,11 +19,12 @@
\*/
package org.ourproject.kune.workspace.client.upload;
-import org.ourproject.kune.platf.client.i18n.I18nUITranslationService;
-import org.ourproject.kune.platf.client.ui.TextUtils;
import org.ourproject.kune.platf.client.ui.noti.NotifyUser;
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
+import cc.kune.core.client.i18n.I18nUITranslationService;
+import cc.kune.core.client.utils.TextUtils;
+
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.core.client.Scheduler;
import com.google.gwt.core.client.Scheduler.ScheduledCommand;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/upload/FileUploaderPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/upload/FileUploaderPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/upload/FileUploaderPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -19,10 +19,11 @@
\*/
package org.ourproject.kune.workspace.client.upload;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.state.Session;
import org.ourproject.kune.workspace.client.tool.FoldableAbstractClientTool;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.shared.dto.StateToken;
+
import com.calclab.suco.client.events.Event;
import com.calclab.suco.client.events.Listener;
import com.calclab.suco.client.events.Listener0;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/wave/WaveInsert.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/wave/WaveInsert.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/wave/WaveInsert.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,6 +1,6 @@
package org.ourproject.kune.workspace.client.wave;
-import org.ourproject.kune.platf.client.dto.StateToken;
+import cc.kune.core.shared.dto.StateToken;
public interface WaveInsert {
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/wave/WaveInsertPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/wave/WaveInsertPanel.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/wave/WaveInsertPanel.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,9 +1,10 @@
package org.ourproject.kune.workspace.client.wave;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.client.ui.img.ImgConstants;
import org.ourproject.kune.platf.client.ui.img.ImgResources;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.emiteuimodule.client.dialog.BasicDialogExtended;
import com.calclab.emiteuimodule.client.dialog.BasicDialogListener;
import com.google.gwt.core.client.Scheduler;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/wave/WaveInsertPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/wave/WaveInsertPresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/wave/WaveInsertPresenter.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -2,15 +2,16 @@
import org.ourproject.kune.docs.client.DocumentClientTool;
import org.ourproject.kune.platf.client.View;
-import org.ourproject.kune.platf.client.dto.StateContentDTO;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
-import org.ourproject.kune.platf.client.rpc.AsyncCallbackSimple;
-import org.ourproject.kune.platf.client.rpc.ContentServiceAsync;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.platf.client.ui.noti.NotifyUser;
+import cc.kune.core.client.rpcservices.AsyncCallbackSimple;
+import cc.kune.core.client.rpcservices.ContentServiceAsync;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.dto.StateContentDTO;
+import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.ioc.Provider;
public class WaveInsertPresenter implements WaveInsert {
Modified: trunk/src/main/resources/dozerBeanMapping.xml
===================================================================
--- trunk/src/main/resources/dozerBeanMapping.xml 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/main/resources/dozerBeanMapping.xml 2010-12-09 16:03:51 UTC (rev 1163)
@@ -7,69 +7,44 @@
<date-format>dd/mm/yyyy</date-format>
<wildcard>true</wildcard>
</configuration>
-
<mapping>
- <class-a>
- org.ourproject.kune.platf.client.dto.InitDataDTO
- </class-a>
+ <class-a> cc.kune.core.shared.dto.InitDataDTO </class-a>
<class-b>org.ourproject.kune.platf.server.InitData</class-b>
<field>
<a>licenses</a>
<b>licenses</b>
- <a-hint>
- org.ourproject.kune.platf.client.dto.LicenseDTO
- </a-hint>
- <b-hint>
- org.ourproject.kune.platf.server.domain.License
- </b-hint>
+ <a-hint> cc.kune.core.shared.dto.LicenseDTO </a-hint>
+ <b-hint> org.ourproject.kune.platf.server.domain.License </b-hint>
</field>
<field>
<a>languages</a>
<b>languages</b>
- <a-hint>
- org.ourproject.kune.platf.client.dto.I18nLanguageSimpleDTO
- </a-hint>
- <b-hint>
- org.ourproject.kune.platf.server.domain.I18nLanguage
- </b-hint>
+ <a-hint> cc.kune.core.shared.dto.I18nLanguageSimpleDTO </a-hint>
+ <b-hint> org.ourproject.kune.platf.server.domain.I18nLanguage </b-hint>
</field>
<field>
<a>countries</a>
<b>countries</b>
- <a-hint>
- org.ourproject.kune.platf.client.dto.I18nCountryDTO
- </a-hint>
- <b-hint>
- org.ourproject.kune.platf.server.domain.I18nCountry
- </b-hint>
+ <a-hint> cc.kune.core.shared.dto.I18nCountryDTO </a-hint>
+ <b-hint> org.ourproject.kune.platf.server.domain.I18nCountry </b-hint>
</field>
</mapping>
-
<mapping>
<class-a>org.ourproject.kune.platf.server.domain.Group</class-a>
- <class-b>org.ourproject.kune.platf.client.dto.GroupDTO</class-b>
+ <class-b>cc.kune.core.shared.dto.GroupDTO</class-b>
<field type="one-way">
<a>hasLogo</a>
<b>hasLogo</b>
</field>
</mapping>
-
<mapping>
- <class-a>
- org.ourproject.kune.platf.client.dto.GroupListDTO
- </class-a>
- <class-b>
- org.ourproject.kune.platf.server.domain.GroupList
- </class-b>
+ <class-a> cc.kune.core.shared.dto.GroupListDTO </class-a>
+ <class-b> org.ourproject.kune.platf.server.domain.GroupList </class-b>
<field>
<a>list</a>
<b>list</b>
- <a-hint>
- org.ourproject.kune.platf.client.dto.GroupDTO
- </a-hint>
- <b-hint>
- org.ourproject.kune.platf.server.domain.Group
- </b-hint>
+ <a-hint> cc.kune.core.shared.dto.GroupDTO </a-hint>
+ <b-hint> org.ourproject.kune.platf.server.domain.Group </b-hint>
</field>
<field
custom-converter="org.ourproject.kune.platf.server.mapper.GroupListModeConverter">
@@ -77,141 +52,83 @@
<b>mode</b>
</field>
</mapping>
-
<mapping>
- <class-a>
- org.ourproject.kune.platf.client.dto.AccessListsDTO
- </class-a>
- <class-b>
- org.ourproject.kune.platf.server.domain.AccessLists
- </class-b>
+ <class-a> cc.kune.core.shared.dto.AccessListsDTO </class-a>
+ <class-b> org.ourproject.kune.platf.server.domain.AccessLists </class-b>
<field>
<a>admins</a>
<b>admins</b>
- <a-hint>
- org.ourproject.kune.platf.client.dto.GroupListDTO
- </a-hint>
- <b-hint>
- org.ourproject.kune.platf.server.domain.GroupList
- </b-hint>
+ <a-hint> cc.kune.core.shared.dto.GroupListDTO </a-hint>
+ <b-hint> org.ourproject.kune.platf.server.domain.GroupList </b-hint>
</field>
<field>
<a>editors</a>
<b>editors</b>
- <a-hint>
- org.ourproject.kune.platf.client.dto.GroupListDTO
- </a-hint>
- <b-hint>
- org.ourproject.kune.platf.server.domain.GroupList
- </b-hint>
+ <a-hint> cc.kune.core.shared.dto.GroupListDTO </a-hint>
+ <b-hint> org.ourproject.kune.platf.server.domain.GroupList </b-hint>
</field>
<field>
<a>viewers</a>
<b>viewers</b>
- <a-hint>
- org.ourproject.kune.platf.client.dto.GroupListDTO
- </a-hint>
- <b-hint>
- org.ourproject.kune.platf.server.domain.GroupList
- </b-hint>
+ <a-hint> cc.kune.core.shared.dto.GroupListDTO </a-hint>
+ <b-hint> org.ourproject.kune.platf.server.domain.GroupList </b-hint>
</field>
</mapping>
-
<mapping>
- <class-a>
- org.ourproject.kune.platf.client.dto.AccessRightsDTO
- </class-a>
- <class-b>
- org.ourproject.kune.platf.server.access.AccessRights
- </class-b>
+ <class-a> cc.kune.core.shared.dto.AccessRightsDTO </class-a>
+ <class-b> org.ourproject.kune.platf.server.access.AccessRights </class-b>
</mapping>
-
<mapping>
- <class-a>org.ourproject.kune.platf.client.dto.StateContentDTO</class-a>
+ <class-a>cc.kune.core.shared.dto.StateContentDTO</class-a>
<class-b>org.ourproject.kune.platf.server.state.StateContent</class-b>
<field>
<a>authors</a>
<b>authors</b>
- <a-hint>
- org.ourproject.kune.platf.client.dto.UserSimpleDTO
- </a-hint>
- <b-hint>
- org.ourproject.kune.platf.server.domain.User
- </b-hint>
+ <a-hint> cc.kune.core.shared.dto.UserSimpleDTO </a-hint>
+ <b-hint> org.ourproject.kune.platf.server.domain.User </b-hint>
</field>
</mapping>
-
- <mapping>
- <class-a>org.ourproject.kune.platf.client.dto.StateContainerDTO</class-a>
+ <mapping>
+ <class-a>cc.kune.core.shared.dto.StateContainerDTO</class-a>
<class-b>org.ourproject.kune.platf.server.state.StateContainer</class-b>
- <field>
+ <field>
<a>tagCloudResult</a>
<b>tagCloudResult</b>
- <a-hint>
- org.ourproject.kune.platf.client.dto.TagCloudResultDTO
- </a-hint>
- <b-hint>
- org.ourproject.kune.platf.server.domain.TagCloudResult
- </b-hint>
+ <a-hint> cc.kune.core.shared.dto.TagCloudResultDTO </a-hint>
+ <b-hint> org.ourproject.kune.platf.server.domain.TagCloudResult </b-hint>
</field>
</mapping>
-
<mapping>
- <class-a>org.ourproject.kune.platf.client.dto.StateAbstractDTO</class-a>
+ <class-a>cc.kune.core.shared.dto.StateAbstractDTO</class-a>
<class-b>org.ourproject.kune.platf.server.state.StateAbstract</class-b>
</mapping>
-
<mapping>
- <class-a>
- org.ourproject.kune.platf.client.dto.StateToken
- </class-a>
- <class-b>
- org.ourproject.kune.platf.client.dto.StateToken
- </class-b>
+ <class-a> cc.kune.core.shared.dto.StateToken </class-a>
+ <class-b> cc.kune.core.shared.dto.StateToken </class-b>
<field>
<a>encoded</a>
<b>encoded</b>
</field>
</mapping>
-
<mapping>
- <class-a>
- org.ourproject.kune.platf.client.dto.BasicMimeTypeDTO
- </class-a>
- <class-b>
- org.ourproject.kune.platf.server.domain.BasicMimeType
- </class-b>
+ <class-a> cc.kune.core.shared.dto.BasicMimeTypeDTO </class-a>
+ <class-b> org.ourproject.kune.platf.server.domain.BasicMimeType </class-b>
</mapping>
-
<mapping>
- <class-a>
- org.ourproject.kune.platf.client.dto.LicenseDTO
- </class-a>
- <class-b>
- org.ourproject.kune.platf.server.domain.License
- </class-b>
+ <class-a> cc.kune.core.shared.dto.LicenseDTO </class-a>
+ <class-b> org.ourproject.kune.platf.server.domain.License </class-b>
</mapping>
-
<mapping>
- <class-a>
- org.ourproject.kune.platf.client.dto.ContainerSimpleDTO
- </class-a>
- <class-b>
- org.ourproject.kune.platf.server.domain.Container
- </class-b>
+ <class-a> cc.kune.core.shared.dto.ContainerSimpleDTO </class-a>
+ <class-b> org.ourproject.kune.platf.server.domain.Container </class-b>
<field>
<a get-method="getStateToken">stateToken</a>
<b>stateToken</b>
</field>
</mapping>
-
<mapping>
- <class-a>
- org.ourproject.kune.platf.client.dto.ContentSimpleDTO
- </class-a>
- <class-b>
- org.ourproject.kune.platf.server.domain.Content
- </class-b>
+ <class-a> cc.kune.core.shared.dto.ContentSimpleDTO </class-a>
+ <class-b> org.ourproject.kune.platf.server.domain.Content </class-b>
<field>
<a>title</a>
<b>lastRevision.title</b>
@@ -221,12 +138,9 @@
<b>stateToken</b>
</field>
</mapping>
-
<mapping type="one-way">
- <class-a>
- org.ourproject.kune.platf.server.domain.Content
- </class-a>
- <class-b>org.ourproject.kune.platf.client.dto.LinkDTO</class-b>
+ <class-a> org.ourproject.kune.platf.server.domain.Content </class-a>
+ <class-b>cc.kune.core.shared.dto.LinkDTO</class-b>
<field>
<a>lastRevision.title</a>
<b>longName</b>
@@ -240,102 +154,57 @@
<b>link</b>
</field>
</mapping>
-
<mapping>
- <class-a>
- org.ourproject.kune.platf.client.dto.ContainerDTO
- </class-a>
- <class-b>
- org.ourproject.kune.platf.server.domain.Container
- </class-b>
+ <class-a> cc.kune.core.shared.dto.ContainerDTO </class-a>
+ <class-b> org.ourproject.kune.platf.server.domain.Container </class-b>
<field>
<a>contents</a>
<b>contents</b>
- <a-hint>
- org.ourproject.kune.platf.client.dto.ContentSimpleDTO
- </a-hint>
- <b-hint>
- org.ourproject.kune.platf.server.domain.Content
- </b-hint>
+ <a-hint> cc.kune.core.shared.dto.ContentSimpleDTO </a-hint>
+ <b-hint> org.ourproject.kune.platf.server.domain.Content </b-hint>
</field>
-
<field>
<a>absolutePath</a>
<b>absolutePath</b>
- <a-hint>
- org.ourproject.kune.platf.client.dto.ContainerSimpleDTO
- </a-hint>
- <b-hint>
- org.ourproject.kune.platf.server.domain.Container
- </b-hint>
+ <a-hint> cc.kune.core.shared.dto.ContainerSimpleDTO </a-hint>
+ <b-hint> org.ourproject.kune.platf.server.domain.Container </b-hint>
</field>
-
<field>
<a>childs</a>
<b>childs</b>
- <a-hint>
- org.ourproject.kune.platf.client.dto.ContainerSimpleDTO
- </a-hint>
- <b-hint>
- org.ourproject.kune.platf.server.domain.Container
- </b-hint>
+ <a-hint> cc.kune.core.shared.dto.ContainerSimpleDTO </a-hint>
+ <b-hint> org.ourproject.kune.platf.server.domain.Container </b-hint>
</field>
-
<field>
<a get-method="getStateToken">stateToken</a>
<b>stateToken</b>
</field>
</mapping>
-
<mapping>
- <class-a>
- org.ourproject.kune.platf.client.dto.UserInfoDTO
- </class-a>
- <class-b>
- org.ourproject.kune.platf.server.users.UserInfo
- </class-b>
+ <class-a> cc.kune.core.shared.dto.UserInfoDTO </class-a>
+ <class-b> org.ourproject.kune.platf.server.users.UserInfo </class-b>
<field>
<a>user</a>
<b>user</b>
- <a-hint>
- org.ourproject.kune.platf.client.dto.UserSimpleDTO
- </a-hint>
- <b-hint>
- org.ourproject.kune.platf.server.domain.User
- </b-hint>
+ <a-hint> cc.kune.core.shared.dto.UserSimpleDTO </a-hint>
+ <b-hint> org.ourproject.kune.platf.server.domain.User </b-hint>
</field>
</mapping>
-
<mapping>
- <class-a>
- org.ourproject.kune.platf.client.dto.ParticipationDataDTO
- </class-a>
- <class-b>
- org.ourproject.kune.platf.server.sn.ParticipationData
- </class-b>
+ <class-a> cc.kune.core.shared.dto.ParticipationDataDTO </class-a>
+ <class-b> org.ourproject.kune.platf.server.sn.ParticipationData </class-b>
</mapping>
-
<mapping>
- <class-a>
- org.ourproject.kune.platf.client.dto.I18nLanguageDTO
- </class-a>
- <class-b>
- org.ourproject.kune.platf.server.domain.I18nLanguage
- </class-b>
+ <class-a> cc.kune.core.shared.dto.I18nLanguageDTO </class-a>
+ <class-b> org.ourproject.kune.platf.server.domain.I18nLanguage </class-b>
</mapping>
-
<mapping>
- <class-a>
- org.ourproject.kune.platf.client.dto.I18nCountryDTO
- </class-a>
- <class-b>
- org.ourproject.kune.platf.server.domain.I18nCountry
- </class-b>
+ <class-a> cc.kune.core.shared.dto.I18nCountryDTO </class-a>
+ <class-b> org.ourproject.kune.platf.server.domain.I18nCountry </class-b>
</mapping>
-
<mapping>
<class-a>org.ourproject.kune.platf.server.domain.User</class-a>
- <class-b>org.ourproject.kune.platf.client.dto.UserSimpleDTO</class-b>
+ <class-b>cc.kune.core.shared.dto.UserSimpleDTO</class-b>
<field type="one-way">
<a>hasLogo</a>
<b>hasLogo</b>
@@ -345,177 +214,94 @@
<b>stateToken</b>
</field>
</mapping>
-
<mapping>
- <class-a>org.ourproject.kune.platf.client.dto.TagDTO</class-a>
+ <class-a>cc.kune.core.shared.dto.TagDTO</class-a>
<class-b>org.ourproject.kune.platf.server.domain.Tag</class-b>
</mapping>
-
-<mapping>
- <class-a>
- org.ourproject.kune.platf.client.dto.TagCloudResultDTO
- </class-a>
- <class-b>
- org.ourproject.kune.platf.server.domain.TagCloudResult
- </class-b>
+ <mapping>
+ <class-a> cc.kune.core.shared.dto.TagCloudResultDTO </class-a>
+ <class-b> org.ourproject.kune.platf.server.domain.TagCloudResult </class-b>
</mapping>
-
<mapping>
- <class-a>
- org.ourproject.kune.platf.client.dto.TagCountDTO
- </class-a>
- <class-b>
- org.ourproject.kune.platf.server.domain.TagCount
- </class-b>
+ <class-a> cc.kune.core.shared.dto.TagCountDTO </class-a>
+ <class-b> org.ourproject.kune.platf.server.domain.TagCount </class-b>
</mapping>
-
<mapping>
- <class-a>
- org.ourproject.kune.platf.client.dto.RateResultDTO
- </class-a>
- <class-b>
- org.ourproject.kune.platf.server.domain.RateResult
- </class-b>
+ <class-a> cc.kune.core.shared.dto.RateResultDTO </class-a>
+ <class-b> org.ourproject.kune.platf.server.domain.RateResult </class-b>
</mapping>
-
<mapping>
- <class-a>
- org.ourproject.kune.platf.server.domain.Comment
- </class-a>
- <class-b>
- org.ourproject.kune.platf.client.dto.CommentDTO
- </class-b>
+ <class-a> org.ourproject.kune.platf.server.domain.Comment </class-a>
+ <class-b> cc.kune.core.shared.dto.CommentDTO </class-b>
<field>
<a>author</a>
<b>author</b>
- <a-hint>
- org.ourproject.kune.platf.server.domain.User
- </a-hint>
- <b-hint>
- org.ourproject.kune.platf.client.dto.UserSimpleDTO
- </b-hint>
+ <a-hint> org.ourproject.kune.platf.server.domain.User </a-hint>
+ <b-hint> cc.kune.core.shared.dto.UserSimpleDTO </b-hint>
</field>
-
<field>
<a>childs</a>
<b>childs</b>
- <a-hint>
- org.ourproject.kune.platf.server.domain.Comment
- </a-hint>
- <b-hint>
- org.ourproject.kune.platf.client.dto.CommentDTO
- </b-hint>
+ <a-hint> org.ourproject.kune.platf.server.domain.Comment </a-hint>
+ <b-hint> cc.kune.core.shared.dto.CommentDTO </b-hint>
</field>
-
<field type="one-way">
- <a get-method="getPositiveVotersCount">
- positiveVotersCount
- </a>
+ <a get-method="getPositiveVotersCount"> positiveVotersCount </a>
<b>positiveVotersCount</b>
</field>
-
<field type="one-way">
- <a get-method="getNegativeVotersCount">
- negativeVotersCount
- </a>
+ <a get-method="getNegativeVotersCount"> negativeVotersCount </a>
<b>negativeVotersCount</b>
</field>
-
<field type="one-way">
- <a get-method="getAbuseInformersCount">
- abuseInformersCount
- </a>
+ <a get-method="getAbuseInformersCount"> abuseInformersCount </a>
<b>abuseInformersCount</b>
</field>
</mapping>
-
<mapping>
- <class-a>org.ourproject.kune.platf.client.dto.LinkDTO</class-a>
+ <class-a>cc.kune.core.shared.dto.LinkDTO</class-a>
<class-b>org.ourproject.kune.platf.server.domain.User</class-b>
<field>
<a>longName</a>
<b>name</b>
</field>
</mapping>
-
<mapping>
- <class-a>
- org.ourproject.kune.platf.client.dto.ChatUserParamsDTO
- </class-a>
- <class-b>
- org.ourproject.kune.platf.server.domain.ChatUserParams
- </class-b>
+ <class-a> cc.kune.core.shared.dto.ChatUserParamsDTO </class-a>
+ <class-b> org.ourproject.kune.platf.server.domain.ChatUserParams </class-b>
</mapping>
-
<mapping>
- <class-a>
- org.ourproject.kune.platf.client.dto.SocialNetworkVisibilityDTO
- </class-a>
+ <class-a> cc.kune.core.shared.dto.SocialNetworkVisibilityDTO </class-a>
<class-b>
- org.ourproject.kune.platf.server.domain.SocialNetworkVisibility
- </class-b>
+ org.ourproject.kune.platf.server.domain.SocialNetworkVisibility </class-b>
</mapping>
-
<mapping>
- <class-a>
- org.ourproject.kune.platf.client.dto.AdmissionTypeDTO
- </class-a>
- <class-b>
- org.ourproject.kune.platf.server.domain.AdmissionType
- </class-b>
+ <class-a> cc.kune.core.shared.dto.AdmissionTypeDTO </class-a>
+ <class-b> org.ourproject.kune.platf.server.domain.AdmissionType </class-b>
</mapping>
-
<mapping>
- <class-a>
- org.ourproject.kune.platf.client.dto.UserBuddiesVisibilityDTO
- </class-a>
+ <class-a> cc.kune.core.shared.dto.UserBuddiesVisibilityDTO </class-a>
<class-b>
- org.ourproject.kune.platf.server.domain.UserBuddiesVisibility
- </class-b>
+ org.ourproject.kune.platf.server.domain.UserBuddiesVisibility </class-b>
</mapping>
-
<mapping>
- <class-a>
- org.ourproject.kune.platf.client.dto.ContentStatusDTO
- </class-a>
- <class-b>
- org.ourproject.kune.platf.server.domain.ContentStatus
- </class-b>
+ <class-a> cc.kune.core.shared.dto.ContentStatusDTO </class-a>
+ <class-b> org.ourproject.kune.platf.server.domain.ContentStatus </class-b>
</mapping>
-
<mapping>
- <class-a>
- org.ourproject.kune.platf.client.dto.AccessRolDTO
- </class-a>
- <class-b>
- org.ourproject.kune.platf.server.access.AccessRol
- </class-b>
+ <class-a> cc.kune.core.shared.dto.AccessRolDTO </class-a>
+ <class-b> org.ourproject.kune.platf.server.access.AccessRol </class-b>
</mapping>
-
<mapping>
- <class-a>
- org.ourproject.kune.platf.client.dto.ToolSimpleDTO
- </class-a>
- <class-b>
- org.ourproject.kune.platf.server.tool.ToolSimple
- </class-b>
+ <class-a> cc.kune.core.shared.dto.ToolSimpleDTO </class-a>
+ <class-b> org.ourproject.kune.platf.server.tool.ToolSimple </class-b>
</mapping>
-
<mapping>
- <class-a>
- org.ourproject.kune.platf.client.dto.UserBuddiesDataDTO
- </class-a>
- <class-b>
- org.ourproject.kune.platf.server.sn.UserBuddiesData
- </class-b>
+ <class-a> cc.kune.core.shared.dto.UserBuddiesDataDTO </class-a>
+ <class-b> org.ourproject.kune.platf.server.sn.UserBuddiesData </class-b>
</mapping>
-
- <mapping>
- <class-a>
- org.ourproject.kune.platf.client.dto.SocialNetworkDataDTO
- </class-a>
- <class-b>
- org.ourproject.kune.platf.server.domain.SocialNetworkData
- </class-b>
+ <mapping>
+ <class-a> cc.kune.core.shared.dto.SocialNetworkDataDTO </class-a>
+ <class-b> org.ourproject.kune.platf.server.domain.SocialNetworkData </class-b>
</mapping>
</mappings>
\ No newline at end of file
Copied: trunk/src/test/java/cc/kune/core/client/state (from rev 1158, trunk/src/test/java/org/ourproject/kune/platf/client/state)
Modified: trunk/src/test/java/cc/kune/core/client/state/StateManagerTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/client/state/StateManagerTest.java 2010-12-07 22:38:26 UTC (rev 1158)
+++ trunk/src/test/java/cc/kune/core/client/state/StateManagerTest.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,17 +1,17 @@
-package org.ourproject.kune.platf.client.state;
+package cc.kune.core.client.state;
import static org.junit.Assert.assertTrue;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mockito;
-import org.ourproject.kune.platf.client.actions.BeforeActionListener;
-import org.ourproject.kune.platf.client.app.HistoryWrapper;
-import org.ourproject.kune.platf.client.dto.StateAbstractDTO;
-import org.ourproject.kune.platf.client.dto.StateToken;
import org.ourproject.kune.platf.client.ui.noti.NotifyUser;
import org.ourproject.kune.workspace.client.site.SiteToken;
+import cc.kune.core.client.actions.BeforeActionListener;
+import cc.kune.core.shared.dto.StateAbstractDTO;
+import cc.kune.core.shared.dto.StateToken;
+
import com.calclab.suco.testing.events.MockedListener;
import com.calclab.suco.testing.events.MockedListener0;
import com.calclab.suco.testing.events.MockedListener2;
@@ -123,7 +123,7 @@
@SuppressWarnings("unchecked")
@Test
public void oneBeforeStateChangeListenerAddAndRemove() {
- String newToken = confBeforeStateChangeListeners(false, false);
+ final String newToken = confBeforeStateChangeListeners(false, false);
stateManager.onHistoryChanged(newToken);
removeBeforeStateChangeListener();
stateManager.onHistoryChanged(newToken);
@@ -133,7 +133,7 @@
@Test
public void oneBeforeStateChangeListenerFalseAndResume() {
- String token = confBeforeStateChangeListeners(false, true);
+ final String token = confBeforeStateChangeListeners(false, true);
stateManager.onHistoryChanged(token);
Mockito.verify(history, Mockito.never()).newItem(token);
removeBeforeStateChangeListener();
@@ -179,23 +179,23 @@
@Test
public void siteTokenTest() {
- MockedListener0 siteTokenListener = new MockedListener0();
+ final MockedListener0 siteTokenListener = new MockedListener0();
stateManager.addSiteToken("signin", siteTokenListener);
stateManager.onHistoryChanged("signIn");
siteTokenListener.isCalledOnce();
}
- private void changeState(String... tokens) {
- for (String token : tokens) {
+ private void changeState(final String... tokens) {
+ for (final String token : tokens) {
Mockito.when(state.getStateToken()).thenReturn(new StateToken(token));
stateManager.setState(state);
}
}
- private String confBeforeStateChangeListeners(boolean value, boolean value2) {
+ private String confBeforeStateChangeListeners(final boolean value, final boolean value2) {
stateManager.addBeforeStateChangeListener(beforeChangeListener1);
stateManager.addBeforeStateChangeListener(beforeChangeListener2);
- String newToken = "something";
+ final String newToken = "something";
Mockito.when(beforeChangeListener1.beforeAction()).thenReturn(value);
Mockito.when(beforeChangeListener2.beforeAction()).thenReturn(value2);
return newToken;
Modified: trunk/src/test/java/cc/kune/core/client/state/StateTokenTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/client/state/StateTokenTest.java 2010-12-07 22:38:26 UTC (rev 1158)
+++ trunk/src/test/java/cc/kune/core/client/state/StateTokenTest.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,12 +1,13 @@
-package org.ourproject.kune.platf.client.state;
+package cc.kune.core.client.state;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNull;
import org.junit.Test;
-import org.ourproject.kune.platf.client.dto.StateToken;
+import cc.kune.core.shared.dto.StateToken;
+
public class StateTokenTest {
@Test
Modified: trunk/src/test/java/org/ourproject/kune/blogs/server/BlogServerToolTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/blogs/server/BlogServerToolTest.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/test/java/org/ourproject/kune/blogs/server/BlogServerToolTest.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -7,9 +7,10 @@
import org.junit.Before;
import org.junit.Test;
-import org.ourproject.kune.platf.client.errors.ContainerNotPermittedException;
-import org.ourproject.kune.platf.client.errors.ContentNotPermittedException;
+import cc.kune.core.client.errors.ContainerNotPermittedException;
+import cc.kune.core.client.errors.ContentNotPermittedException;
+
public class BlogServerToolTest { // extends PersistenceTest {
private BlogServerTool serverTool;
Modified: trunk/src/test/java/org/ourproject/kune/gallery/server/GalleryServerToolTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/gallery/server/GalleryServerToolTest.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/test/java/org/ourproject/kune/gallery/server/GalleryServerToolTest.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -6,8 +6,9 @@
import org.junit.Before;
import org.junit.Test;
-import org.ourproject.kune.platf.client.errors.ContainerNotPermittedException;
+import cc.kune.core.client.errors.ContainerNotPermittedException;
+
public class GalleryServerToolTest { // extends PersistenceTest {
private GalleryServerTool serverTool;
Modified: trunk/src/test/java/org/ourproject/kune/platf/client/actions/ActionRegistryTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/client/actions/ActionRegistryTest.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/test/java/org/ourproject/kune/platf/client/actions/ActionRegistryTest.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -5,11 +5,12 @@
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mockito;
-import org.ourproject.kune.platf.client.dto.AccessRightsDTO;
-import org.ourproject.kune.platf.client.dto.AccessRolDTO;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.state.Session;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.shared.dto.AccessRightsDTO;
+import cc.kune.core.shared.dto.AccessRolDTO;
+import cc.kune.core.shared.dto.StateToken;
+
import com.calclab.suco.client.events.Listener;
public class ActionRegistryTest {
Modified: trunk/src/test/java/org/ourproject/kune/platf/client/actions/ContentIconsRegistryTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/client/actions/ContentIconsRegistryTest.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/test/java/org/ourproject/kune/platf/client/actions/ContentIconsRegistryTest.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -4,9 +4,10 @@
import org.junit.Before;
import org.junit.Test;
-import org.ourproject.kune.platf.client.dto.BasicMimeTypeDTO;
import org.ourproject.kune.workspace.client.cnt.ContentIconsRegistry;
+import cc.kune.core.shared.dto.BasicMimeTypeDTO;
+
public class ContentIconsRegistryTest {
private static final String CONTENT_TYPE_TEST = "somecontenttype";
Modified: trunk/src/test/java/org/ourproject/kune/platf/client/actions/KeyStrokeTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/client/actions/KeyStrokeTest.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/test/java/org/ourproject/kune/platf/client/actions/KeyStrokeTest.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -5,11 +5,12 @@
import org.junit.Before;
import org.junit.Test;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationServiceMocked;
import org.ourproject.kune.platf.client.i18n.Resources;
import org.ourproject.kune.platf.client.shortcuts.Keyboard;
import org.ourproject.kune.platf.client.shortcuts.ShortcutDescriptor;
+import cc.kune.core.client.i18n.I18nTranslationServiceMocked;
+
public class KeyStrokeTest {
@Test
Modified: trunk/src/test/java/org/ourproject/kune/platf/client/actions/ShortcutTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/client/actions/ShortcutTest.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/test/java/org/ourproject/kune/platf/client/actions/ShortcutTest.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -4,9 +4,10 @@
import org.junit.Before;
import org.junit.Test;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationServiceMocked;
import org.ourproject.kune.platf.client.i18n.Resources;
+import cc.kune.core.client.i18n.I18nTranslationServiceMocked;
+
public class ShortcutTest {
@Test
public void altS() {
Modified: trunk/src/test/java/org/ourproject/kune/platf/client/dto/BasicMimeTypeDTOTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/client/dto/BasicMimeTypeDTOTest.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/test/java/org/ourproject/kune/platf/client/dto/BasicMimeTypeDTOTest.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -4,6 +4,8 @@
import org.junit.Test;
+import cc.kune.core.shared.dto.BasicMimeTypeDTO;
+
public class BasicMimeTypeDTOTest {
@Test
Modified: trunk/src/test/java/org/ourproject/kune/platf/client/ui/KuneStringUtilsTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/client/ui/KuneStringUtilsTest.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/test/java/org/ourproject/kune/platf/client/ui/KuneStringUtilsTest.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -6,6 +6,8 @@
import org.junit.Test;
+import cc.kune.core.client.utils.TextUtils;
+
public class KuneStringUtilsTest {
@Test
Modified: trunk/src/test/java/org/ourproject/kune/platf/client/ui/TextUtilsTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/client/ui/TextUtilsTest.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/test/java/org/ourproject/kune/platf/client/ui/TextUtilsTest.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -4,6 +4,8 @@
import org.junit.Test;
+import cc.kune.core.client.utils.TextUtils;
+
public class TextUtilsTest {
@Test
public void matchDemoEmail() {
Modified: trunk/src/test/java/org/ourproject/kune/platf/client/ui/dialogs/upload/FileUploaderPresenterTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/client/ui/dialogs/upload/FileUploaderPresenterTest.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/test/java/org/ourproject/kune/platf/client/ui/dialogs/upload/FileUploaderPresenterTest.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -7,11 +7,12 @@
import org.junit.Test;
import org.mockito.Mockito;
import org.ourproject.kune.docs.client.DocumentClientTool;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.state.Session;
import org.ourproject.kune.workspace.client.upload.FileUploaderPresenter;
import org.ourproject.kune.workspace.client.upload.FileUploaderView;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.shared.dto.StateToken;
+
public class FileUploaderPresenterTest {
private static final String SOMEUSER_HASH = "someuserHash";
Modified: trunk/src/test/java/org/ourproject/kune/platf/client/ui/rte/insertmedia/ExternalMediaDescriptorTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/client/ui/rte/insertmedia/ExternalMediaDescriptorTest.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/test/java/org/ourproject/kune/platf/client/ui/rte/insertmedia/ExternalMediaDescriptorTest.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -6,8 +6,9 @@
import org.junit.Before;
import org.junit.Test;
-import org.ourproject.kune.platf.client.dto.ExtMediaDescripDTO;
+import cc.kune.core.shared.dto.ExtMediaDescripDTO;
+
public class ExternalMediaDescriptorTest {
private ExtMediaDescripDTO ytmedia;
Modified: trunk/src/test/java/org/ourproject/kune/platf/client/ui/rte/saving/RTESavingEditorPresenterTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/client/ui/rte/saving/RTESavingEditorPresenterTest.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/test/java/org/ourproject/kune/platf/client/ui/rte/saving/RTESavingEditorPresenterTest.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -7,14 +7,15 @@
import org.junit.Test;
import org.mockito.Mockito;
import org.mockito.internal.verification.api.VerificationMode;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationServiceMocked;
import org.ourproject.kune.platf.client.i18n.Resources;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.platf.client.ui.rte.img.RTEImgResources;
import org.ourproject.kune.platf.client.utils.DeferredCommandWrapper;
import org.ourproject.kune.platf.client.utils.TimerWrapper;
+import cc.kune.core.client.i18n.I18nTranslationServiceMocked;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.calclab.suco.client.events.Listener0;
import com.calclab.suco.testing.events.MockedListener;
import com.calclab.suco.testing.events.MockedListener0;
Modified: trunk/src/test/java/org/ourproject/kune/platf/integration/IntegrationTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/integration/IntegrationTest.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/test/java/org/ourproject/kune/platf/integration/IntegrationTest.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,10 +1,11 @@
package org.ourproject.kune.platf.integration;
-import org.ourproject.kune.platf.client.errors.DefaultException;
-import org.ourproject.kune.platf.client.rpc.UserService;
import org.ourproject.kune.platf.server.UserSession;
import org.ourproject.kune.platf.server.properties.DatabaseProperties;
+import cc.kune.core.client.errors.DefaultException;
+import cc.kune.core.client.rpcservices.UserService;
+
import com.google.inject.Inject;
public abstract class IntegrationTest {
Modified: trunk/src/test/java/org/ourproject/kune/platf/integration/content/ContentCommentServiceTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/integration/content/ContentCommentServiceTest.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/test/java/org/ourproject/kune/platf/integration/content/ContentCommentServiceTest.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -4,12 +4,13 @@
import org.junit.Before;
import org.junit.Test;
-import org.ourproject.kune.platf.client.dto.CommentDTO;
-import org.ourproject.kune.platf.client.dto.StateContainerDTO;
-import org.ourproject.kune.platf.client.errors.DefaultException;
-import org.ourproject.kune.platf.client.errors.UserMustBeLoggedException;
import org.ourproject.kune.platf.integration.IntegrationTestHelper;
+import cc.kune.core.client.errors.DefaultException;
+import cc.kune.core.client.errors.UserMustBeLoggedException;
+import cc.kune.core.shared.dto.CommentDTO;
+import cc.kune.core.shared.dto.StateContainerDTO;
+
public class ContentCommentServiceTest extends ContentServiceIntegrationTest {
private StateContainerDTO defaultContent;
Modified: trunk/src/test/java/org/ourproject/kune/platf/integration/content/ContentServiceAddTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/integration/content/ContentServiceAddTest.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/test/java/org/ourproject/kune/platf/integration/content/ContentServiceAddTest.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -9,18 +9,19 @@
import org.junit.Test;
import org.ourproject.kune.docs.client.DocumentClientTool;
import org.ourproject.kune.docs.server.DocumentServerTool;
-import org.ourproject.kune.platf.client.dto.AccessRightsDTO;
-import org.ourproject.kune.platf.client.dto.ContainerDTO;
-import org.ourproject.kune.platf.client.dto.ContainerSimpleDTO;
-import org.ourproject.kune.platf.client.dto.ContentSimpleDTO;
-import org.ourproject.kune.platf.client.dto.StateContainerDTO;
-import org.ourproject.kune.platf.client.dto.StateContentDTO;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.errors.ContentNotFoundException;
-import org.ourproject.kune.platf.client.errors.UserMustBeLoggedException;
import org.ourproject.kune.platf.integration.IntegrationTestHelper;
import org.ourproject.kune.wiki.server.WikiServerTool;
+import cc.kune.core.client.errors.ContentNotFoundException;
+import cc.kune.core.client.errors.UserMustBeLoggedException;
+import cc.kune.core.shared.dto.AccessRightsDTO;
+import cc.kune.core.shared.dto.ContainerDTO;
+import cc.kune.core.shared.dto.ContainerSimpleDTO;
+import cc.kune.core.shared.dto.ContentSimpleDTO;
+import cc.kune.core.shared.dto.StateContainerDTO;
+import cc.kune.core.shared.dto.StateContentDTO;
+import cc.kune.core.shared.dto.StateToken;
+
public class ContentServiceAddTest extends ContentServiceIntegrationTest {
private StateContentDTO defaultContent;
Modified: trunk/src/test/java/org/ourproject/kune/platf/integration/content/ContentServiceGetTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/integration/content/ContentServiceGetTest.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/test/java/org/ourproject/kune/platf/integration/content/ContentServiceGetTest.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -6,14 +6,15 @@
import org.junit.Before;
import org.junit.Test;
-import org.ourproject.kune.platf.client.dto.StateAbstractDTO;
-import org.ourproject.kune.platf.client.dto.StateContainerDTO;
-import org.ourproject.kune.platf.client.dto.StateContentDTO;
-import org.ourproject.kune.platf.client.dto.StateNoContentDTO;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.errors.ContentNotFoundException;
import org.ourproject.kune.platf.integration.IntegrationTestHelper;
+import cc.kune.core.client.errors.ContentNotFoundException;
+import cc.kune.core.shared.dto.StateAbstractDTO;
+import cc.kune.core.shared.dto.StateContainerDTO;
+import cc.kune.core.shared.dto.StateContentDTO;
+import cc.kune.core.shared.dto.StateNoContentDTO;
+import cc.kune.core.shared.dto.StateToken;
+
public class ContentServiceGetTest extends ContentServiceIntegrationTest {
@Test
Modified: trunk/src/test/java/org/ourproject/kune/platf/integration/content/ContentServiceIntegrationTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/integration/content/ContentServiceIntegrationTest.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/test/java/org/ourproject/kune/platf/integration/content/ContentServiceIntegrationTest.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,11 +1,12 @@
package org.ourproject.kune.platf.integration.content;
-import org.ourproject.kune.platf.client.dto.StateContentDTO;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.rpc.ContentService;
-import org.ourproject.kune.platf.client.rpc.UserService;
import org.ourproject.kune.platf.integration.IntegrationTest;
+import cc.kune.core.client.rpcservices.ContentService;
+import cc.kune.core.client.rpcservices.UserService;
+import cc.kune.core.shared.dto.StateContentDTO;
+import cc.kune.core.shared.dto.StateToken;
+
import com.google.inject.Inject;
public abstract class ContentServiceIntegrationTest extends IntegrationTest {
Modified: trunk/src/test/java/org/ourproject/kune/platf/integration/content/ContentServiceSaveTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/integration/content/ContentServiceSaveTest.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/test/java/org/ourproject/kune/platf/integration/content/ContentServiceSaveTest.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -4,10 +4,11 @@
import org.junit.Before;
import org.junit.Test;
-import org.ourproject.kune.platf.client.dto.StateContentDTO;
import org.ourproject.kune.platf.integration.IntegrationTestHelper;
import org.ourproject.kune.platf.server.TestDomainHelper;
+import cc.kune.core.shared.dto.StateContentDTO;
+
public class ContentServiceSaveTest extends ContentServiceIntegrationTest {
private StateContentDTO defaultContent;
Modified: trunk/src/test/java/org/ourproject/kune/platf/integration/content/ContentServiceVariousTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/integration/content/ContentServiceVariousTest.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/test/java/org/ourproject/kune/platf/integration/content/ContentServiceVariousTest.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -12,18 +12,19 @@
import org.junit.Test;
import org.ourproject.kune.docs.client.DocumentClientTool;
import org.ourproject.kune.docs.server.DocumentServerTool;
-import org.ourproject.kune.platf.client.dto.ContainerDTO;
-import org.ourproject.kune.platf.client.dto.ContentSimpleDTO;
-import org.ourproject.kune.platf.client.dto.StateAbstractDTO;
-import org.ourproject.kune.platf.client.dto.StateContainerDTO;
-import org.ourproject.kune.platf.client.dto.StateContentDTO;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.dto.TagCloudResultDTO;
-import org.ourproject.kune.platf.client.dto.TagCountDTO;
-import org.ourproject.kune.platf.client.dto.UserSimpleDTO;
-import org.ourproject.kune.platf.client.errors.AccessViolationException;
import org.ourproject.kune.platf.integration.IntegrationTestHelper;
+import cc.kune.core.client.errors.AccessViolationException;
+import cc.kune.core.shared.dto.ContainerDTO;
+import cc.kune.core.shared.dto.ContentSimpleDTO;
+import cc.kune.core.shared.dto.StateAbstractDTO;
+import cc.kune.core.shared.dto.StateContainerDTO;
+import cc.kune.core.shared.dto.StateContentDTO;
+import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.dto.TagCloudResultDTO;
+import cc.kune.core.shared.dto.TagCountDTO;
+import cc.kune.core.shared.dto.UserSimpleDTO;
+
public class ContentServiceVariousTest extends ContentServiceIntegrationTest {
private StateContentDTO defaultContent;
Modified: trunk/src/test/java/org/ourproject/kune/platf/integration/kuneservice/GroupServiceTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/integration/kuneservice/GroupServiceTest.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/test/java/org/ourproject/kune/platf/integration/kuneservice/GroupServiceTest.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -4,17 +4,18 @@
import org.junit.Before;
import org.junit.Test;
-import org.ourproject.kune.platf.client.dto.GroupDTO;
-import org.ourproject.kune.platf.client.dto.GroupType;
-import org.ourproject.kune.platf.client.dto.LicenseDTO;
-import org.ourproject.kune.platf.client.errors.UserMustBeLoggedException;
-import org.ourproject.kune.platf.client.rpc.GroupService;
import org.ourproject.kune.platf.integration.IntegrationTest;
import org.ourproject.kune.platf.integration.IntegrationTestHelper;
import org.ourproject.kune.platf.server.UserSession;
import org.ourproject.kune.platf.server.domain.AdmissionType;
import org.ourproject.kune.platf.server.domain.Group;
+import cc.kune.core.client.errors.UserMustBeLoggedException;
+import cc.kune.core.client.rpcservices.GroupService;
+import cc.kune.core.shared.dto.GroupDTO;
+import cc.kune.core.shared.dto.GroupType;
+import cc.kune.core.shared.dto.LicenseDTO;
+
import com.google.inject.Inject;
public class GroupServiceTest extends IntegrationTest {
Modified: trunk/src/test/java/org/ourproject/kune/platf/integration/site/SiteServiceTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/integration/site/SiteServiceTest.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/test/java/org/ourproject/kune/platf/integration/site/SiteServiceTest.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -8,15 +8,16 @@
import org.junit.Before;
import org.junit.Test;
-import org.ourproject.kune.platf.client.dto.InitDataDTO;
-import org.ourproject.kune.platf.client.dto.LicenseDTO;
-import org.ourproject.kune.platf.client.rpc.SiteService;
import org.ourproject.kune.platf.integration.IntegrationTest;
import org.ourproject.kune.platf.integration.IntegrationTestHelper;
import org.ourproject.kune.platf.server.UserSession;
import org.ourproject.kune.platf.server.domain.Group;
import org.ourproject.kune.platf.server.manager.I18nLanguageManager;
+import cc.kune.core.client.rpcservices.SiteService;
+import cc.kune.core.shared.dto.InitDataDTO;
+import cc.kune.core.shared.dto.LicenseDTO;
+
import com.google.inject.Inject;
public class SiteServiceTest extends IntegrationTest {
Modified: trunk/src/test/java/org/ourproject/kune/platf/integration/site/UserServiceTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/integration/site/UserServiceTest.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/test/java/org/ourproject/kune/platf/integration/site/UserServiceTest.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -1,23 +1,11 @@
package org.ourproject.kune.platf.integration.site;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNull;
+import static org.junit.Assert.*;
import java.util.List;
import org.junit.Before;
import org.junit.Test;
-import org.ourproject.kune.platf.client.dto.GroupDTO;
-import org.ourproject.kune.platf.client.dto.I18nCountryDTO;
-import org.ourproject.kune.platf.client.dto.I18nLanguageDTO;
-import org.ourproject.kune.platf.client.dto.TimeZoneDTO;
-import org.ourproject.kune.platf.client.dto.UserDTO;
-import org.ourproject.kune.platf.client.dto.UserInfoDTO;
-import org.ourproject.kune.platf.client.errors.EmailAddressInUseException;
-import org.ourproject.kune.platf.client.errors.GroupNameInUseException;
-import org.ourproject.kune.platf.client.errors.SessionExpiredException;
-import org.ourproject.kune.platf.client.rpc.UserService;
import org.ourproject.kune.platf.integration.IntegrationTest;
import org.ourproject.kune.platf.integration.IntegrationTestHelper;
import org.ourproject.kune.platf.server.domain.Group;
@@ -27,7 +15,18 @@
import org.ourproject.kune.platf.server.users.UserInfo;
import org.ourproject.kune.platf.server.users.UserInfoService;
-import com.calclab.emiteuimodule.client.SubscriptionMode;
+import cc.kune.core.client.errors.EmailAddressInUseException;
+import cc.kune.core.client.errors.GroupNameInUseException;
+import cc.kune.core.client.errors.SessionExpiredException;
+import cc.kune.core.client.rpcservices.UserService;
+import cc.kune.core.shared.dto.GroupDTO;
+import cc.kune.core.shared.dto.I18nCountryDTO;
+import cc.kune.core.shared.dto.I18nLanguageDTO;
+import cc.kune.core.shared.dto.SubscriptionMode;
+import cc.kune.core.shared.dto.TimeZoneDTO;
+import cc.kune.core.shared.dto.UserDTO;
+import cc.kune.core.shared.dto.UserInfoDTO;
+
import com.google.inject.Inject;
public class UserServiceTest extends IntegrationTest {
Modified: trunk/src/test/java/org/ourproject/kune/platf/integration/socialnet/SocialNetworkServiceTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/integration/socialnet/SocialNetworkServiceTest.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/test/java/org/ourproject/kune/platf/integration/socialnet/SocialNetworkServiceTest.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -4,15 +4,16 @@
import org.junit.Before;
import org.junit.Test;
-import org.ourproject.kune.platf.client.dto.SocialNetworkDataDTO;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.errors.AlreadyUserMemberException;
-import org.ourproject.kune.platf.client.errors.UserMustBeLoggedException;
-import org.ourproject.kune.platf.client.rpc.SocialNetworkService;
import org.ourproject.kune.platf.integration.IntegrationTest;
import org.ourproject.kune.platf.integration.IntegrationTestHelper;
import org.ourproject.kune.platf.server.UserSession;
+import cc.kune.core.client.errors.AlreadyUserMemberException;
+import cc.kune.core.client.errors.UserMustBeLoggedException;
+import cc.kune.core.client.rpcservices.SocialNetworkService;
+import cc.kune.core.shared.dto.SocialNetworkDataDTO;
+import cc.kune.core.shared.dto.StateToken;
+
import com.google.inject.Inject;
public class SocialNetworkServiceTest extends IntegrationTest {
Modified: trunk/src/test/java/org/ourproject/kune/platf/server/access/FinderTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/server/access/FinderTest.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/test/java/org/ourproject/kune/platf/server/access/FinderTest.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -6,8 +6,6 @@
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mockito;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.errors.ContentNotFoundException;
import org.ourproject.kune.platf.server.TestDomainHelper;
import org.ourproject.kune.platf.server.content.CommentManager;
import org.ourproject.kune.platf.server.content.ContainerManager;
@@ -19,6 +17,9 @@
import org.ourproject.kune.platf.server.manager.GroupManager;
import org.ourproject.kune.platf.server.manager.RateManager;
+import cc.kune.core.client.errors.ContentNotFoundException;
+import cc.kune.core.shared.dto.StateToken;
+
public class FinderTest {
private GroupManager groupManager;
Modified: trunk/src/test/java/org/ourproject/kune/platf/server/auth/AuthenticatedMethodInterceptorTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/server/auth/AuthenticatedMethodInterceptorTest.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/test/java/org/ourproject/kune/platf/server/auth/AuthenticatedMethodInterceptorTest.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -6,11 +6,12 @@
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mockito;
-import org.ourproject.kune.platf.client.errors.SessionExpiredException;
-import org.ourproject.kune.platf.client.errors.UserMustBeLoggedException;
import org.ourproject.kune.platf.integration.IntegrationTest;
import org.ourproject.kune.platf.integration.IntegrationTestHelper;
+import cc.kune.core.client.errors.SessionExpiredException;
+import cc.kune.core.client.errors.UserMustBeLoggedException;
+
public class AuthenticatedMethodInterceptorTest extends IntegrationTest {
private AuthenticatedMethodInterceptor auth;
Modified: trunk/src/test/java/org/ourproject/kune/platf/server/auth/AuthorizatedMethodInterceptorTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/server/auth/AuthorizatedMethodInterceptorTest.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/test/java/org/ourproject/kune/platf/server/auth/AuthorizatedMethodInterceptorTest.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -6,13 +6,14 @@
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mockito;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.errors.AccessViolationException;
-import org.ourproject.kune.platf.client.errors.ContentNotFoundException;
import org.ourproject.kune.platf.integration.IntegrationTest;
import org.ourproject.kune.platf.integration.IntegrationTestHelper;
import org.ourproject.kune.platf.server.access.AccessRol;
+import cc.kune.core.client.errors.AccessViolationException;
+import cc.kune.core.client.errors.ContentNotFoundException;
+import cc.kune.core.shared.dto.StateToken;
+
import com.wideplay.warp.persist.Transactional;
public class AuthorizatedMethodInterceptorTest extends IntegrationTest {
Modified: trunk/src/test/java/org/ourproject/kune/platf/server/manager/GroupManagerTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/server/manager/GroupManagerTest.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/test/java/org/ourproject/kune/platf/server/manager/GroupManagerTest.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -7,10 +7,6 @@
import org.apache.lucene.queryParser.ParseException;
import org.junit.Test;
-import org.ourproject.kune.platf.client.dto.GroupType;
-import org.ourproject.kune.platf.client.errors.EmailAddressInUseException;
-import org.ourproject.kune.platf.client.errors.GroupNameInUseException;
-import org.ourproject.kune.platf.client.errors.I18nNotFoundException;
import org.ourproject.kune.platf.server.PersistencePreLoadedDataTest;
import org.ourproject.kune.platf.server.domain.AccessLists;
import org.ourproject.kune.platf.server.domain.Group;
@@ -18,6 +14,11 @@
import org.ourproject.kune.platf.server.domain.User;
import org.ourproject.kune.platf.server.manager.impl.SearchResult;
+import cc.kune.core.client.errors.EmailAddressInUseException;
+import cc.kune.core.client.errors.GroupNameInUseException;
+import cc.kune.core.client.errors.I18nNotFoundException;
+import cc.kune.core.shared.dto.GroupType;
+
public class GroupManagerTest extends PersistencePreLoadedDataTest {
@Test
Modified: trunk/src/test/java/org/ourproject/kune/platf/server/manager/I18nManagerTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/server/manager/I18nManagerTest.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/test/java/org/ourproject/kune/platf/server/manager/I18nManagerTest.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -9,12 +9,13 @@
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
-import org.ourproject.kune.platf.client.i18n.I18nTranslationService;
import org.ourproject.kune.platf.server.PersistenceTest;
import org.ourproject.kune.platf.server.domain.I18nCountry;
import org.ourproject.kune.platf.server.domain.I18nLanguage;
import org.ourproject.kune.platf.server.domain.I18nTranslation;
+import cc.kune.core.shared.i18n.I18nTranslationService;
+
import com.google.inject.Inject;
public class I18nManagerTest extends PersistenceTest {
Modified: trunk/src/test/java/org/ourproject/kune/platf/server/manager/UserManagerTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/server/manager/UserManagerTest.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/test/java/org/ourproject/kune/platf/server/manager/UserManagerTest.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -11,12 +11,13 @@
import org.apache.lucene.queryParser.ParseException;
import org.hibernate.validator.InvalidStateException;
import org.junit.Test;
-import org.ourproject.kune.platf.client.errors.I18nNotFoundException;
import org.ourproject.kune.platf.server.PersistencePreLoadedDataTest;
import org.ourproject.kune.platf.server.domain.Group;
import org.ourproject.kune.platf.server.domain.User;
import org.ourproject.kune.platf.server.manager.impl.SearchResult;
+import cc.kune.core.client.errors.I18nNotFoundException;
+
import com.google.inject.Inject;
public class UserManagerTest extends PersistencePreLoadedDataTest {
Modified: trunk/src/test/java/org/ourproject/kune/platf/server/manager/file/EntityLogoUploadManagerTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/server/manager/file/EntityLogoUploadManagerTest.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/test/java/org/ourproject/kune/platf/server/manager/file/EntityLogoUploadManagerTest.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -7,12 +7,13 @@
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
-import org.ourproject.kune.platf.client.dto.StateContainerDTO;
-import org.ourproject.kune.platf.client.errors.SessionExpiredException;
-import org.ourproject.kune.platf.client.errors.UserMustBeLoggedException;
import org.ourproject.kune.platf.integration.IntegrationTestHelper;
import org.ourproject.kune.platf.integration.content.ContentServiceIntegrationTest;
+import cc.kune.core.client.errors.SessionExpiredException;
+import cc.kune.core.client.errors.UserMustBeLoggedException;
+import cc.kune.core.shared.dto.StateContainerDTO;
+
import com.google.inject.Inject;
public class EntityLogoUploadManagerTest extends ContentServiceIntegrationTest {
Modified: trunk/src/test/java/org/ourproject/kune/platf/server/manager/file/FileDownloadManagerTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/server/manager/file/FileDownloadManagerTest.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/test/java/org/ourproject/kune/platf/server/manager/file/FileDownloadManagerTest.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -11,13 +11,14 @@
import org.junit.Ignore;
import org.junit.Test;
import org.mockito.Mockito;
-import org.ourproject.kune.platf.client.dto.StateToken;
import org.ourproject.kune.platf.client.ui.download.ImageSize;
import org.ourproject.kune.platf.integration.IntegrationTestHelper;
import org.ourproject.kune.platf.server.domain.BasicMimeType;
import org.ourproject.kune.platf.server.domain.Content;
import org.ourproject.kune.platf.server.properties.KuneProperties;
+import cc.kune.core.shared.dto.StateToken;
+
import com.google.inject.Inject;
public class FileDownloadManagerTest {
Modified: trunk/src/test/java/org/ourproject/kune/platf/server/manager/file/FileUploadManagerTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/server/manager/file/FileUploadManagerTest.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/test/java/org/ourproject/kune/platf/server/manager/file/FileUploadManagerTest.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -2,11 +2,12 @@
import org.junit.Before;
import org.junit.Test;
-import org.ourproject.kune.platf.client.errors.SessionExpiredException;
-import org.ourproject.kune.platf.client.errors.UserMustBeLoggedException;
import org.ourproject.kune.platf.integration.IntegrationTestHelper;
import org.ourproject.kune.platf.integration.content.ContentServiceIntegrationTest;
+import cc.kune.core.client.errors.SessionExpiredException;
+import cc.kune.core.client.errors.UserMustBeLoggedException;
+
import com.google.inject.Inject;
public class FileUploadManagerTest extends ContentServiceIntegrationTest {
Modified: trunk/src/test/java/org/ourproject/kune/platf/server/manager/impl/SocialNetworkManagerTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/server/manager/impl/SocialNetworkManagerTest.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/test/java/org/ourproject/kune/platf/server/manager/impl/SocialNetworkManagerTest.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -7,11 +7,6 @@
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
-import org.ourproject.kune.platf.client.dto.GroupType;
-import org.ourproject.kune.platf.client.dto.SocialNetworkRequestResult;
-import org.ourproject.kune.platf.client.errors.AccessViolationException;
-import org.ourproject.kune.platf.client.errors.AlreadyGroupMemberException;
-import org.ourproject.kune.platf.client.errors.LastAdminInGroupException;
import org.ourproject.kune.platf.server.PersistenceTest;
import org.ourproject.kune.platf.server.domain.AdmissionType;
import org.ourproject.kune.platf.server.domain.Group;
@@ -20,6 +15,12 @@
import org.ourproject.kune.platf.server.sn.ParticipationData;
import org.ourproject.kune.testhelper.ctx.DomainContext;
+import cc.kune.core.client.errors.AccessViolationException;
+import cc.kune.core.client.errors.AlreadyGroupMemberException;
+import cc.kune.core.client.errors.LastAdminInGroupException;
+import cc.kune.core.shared.dto.GroupType;
+import cc.kune.core.shared.dto.SocialNetworkRequestResult;
+
import com.google.inject.Inject;
import com.wideplay.warp.persist.Transactional;
Modified: trunk/src/test/java/org/ourproject/kune/platf/server/mapper/MapperTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/platf/server/mapper/MapperTest.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/test/java/org/ourproject/kune/platf/server/mapper/MapperTest.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -10,19 +10,6 @@
import org.junit.Before;
import org.junit.Test;
-import org.ourproject.kune.platf.client.dto.CommentDTO;
-import org.ourproject.kune.platf.client.dto.ContainerDTO;
-import org.ourproject.kune.platf.client.dto.ContainerSimpleDTO;
-import org.ourproject.kune.platf.client.dto.ContentSimpleDTO;
-import org.ourproject.kune.platf.client.dto.GroupDTO;
-import org.ourproject.kune.platf.client.dto.GroupListDTO;
-import org.ourproject.kune.platf.client.dto.LicenseDTO;
-import org.ourproject.kune.platf.client.dto.LinkDTO;
-import org.ourproject.kune.platf.client.dto.SocialNetworkDataDTO;
-import org.ourproject.kune.platf.client.dto.SocialNetworkVisibilityDTO;
-import org.ourproject.kune.platf.client.dto.StateContentDTO;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.dto.UserBuddiesVisibilityDTO;
import org.ourproject.kune.platf.server.TestDomainHelper;
import org.ourproject.kune.platf.server.TestHelper;
import org.ourproject.kune.platf.server.access.AccessRights;
@@ -45,6 +32,20 @@
import org.ourproject.kune.platf.server.sn.UserBuddiesData;
import org.ourproject.kune.platf.server.state.StateContent;
+import cc.kune.core.shared.dto.CommentDTO;
+import cc.kune.core.shared.dto.ContainerDTO;
+import cc.kune.core.shared.dto.ContainerSimpleDTO;
+import cc.kune.core.shared.dto.ContentSimpleDTO;
+import cc.kune.core.shared.dto.GroupDTO;
+import cc.kune.core.shared.dto.GroupListDTO;
+import cc.kune.core.shared.dto.LicenseDTO;
+import cc.kune.core.shared.dto.LinkDTO;
+import cc.kune.core.shared.dto.SocialNetworkDataDTO;
+import cc.kune.core.shared.dto.SocialNetworkVisibilityDTO;
+import cc.kune.core.shared.dto.StateContentDTO;
+import cc.kune.core.shared.dto.StateToken;
+import cc.kune.core.shared.dto.UserBuddiesVisibilityDTO;
+
import com.google.inject.Inject;
public class MapperTest {
Modified: trunk/src/test/java/org/ourproject/kune/testhelper/ctx/DomainContext.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/testhelper/ctx/DomainContext.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/test/java/org/ourproject/kune/testhelper/ctx/DomainContext.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -3,7 +3,6 @@
import java.util.HashMap;
import java.util.TimeZone;
-import org.ourproject.kune.platf.client.dto.GroupType;
import org.ourproject.kune.platf.server.domain.AccessLists;
import org.ourproject.kune.platf.server.domain.Group;
import org.ourproject.kune.platf.server.domain.I18nCountry;
@@ -11,6 +10,8 @@
import org.ourproject.kune.platf.server.domain.SocialNetwork;
import org.ourproject.kune.platf.server.domain.User;
+import cc.kune.core.shared.dto.GroupType;
+
public class DomainContext {
private final HashMap<String, User> users;
private final HashMap<String, Group> groups;
Modified: trunk/src/test/java/org/ourproject/kune/workspace/client/entityheader/EntityLogoPresenterTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/workspace/client/entityheader/EntityLogoPresenterTest.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/test/java/org/ourproject/kune/workspace/client/entityheader/EntityLogoPresenterTest.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -3,13 +3,14 @@
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mockito;
-import org.ourproject.kune.platf.client.dto.GroupDTO;
-import org.ourproject.kune.platf.client.dto.GroupType;
-import org.ourproject.kune.platf.client.dto.StateToken;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.workspace.client.themes.WsThemeManager;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.dto.GroupDTO;
+import cc.kune.core.shared.dto.GroupType;
+import cc.kune.core.shared.dto.StateToken;
+
public class EntityLogoPresenterTest {
private StateManager stateManager;
Modified: trunk/src/test/java/org/ourproject/kune/workspace/client/licensewizard/LicenseWizardPresenterTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/workspace/client/licensewizard/LicenseWizardPresenterTest.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/test/java/org/ourproject/kune/workspace/client/licensewizard/LicenseWizardPresenterTest.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -3,12 +3,13 @@
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mockito;
-import org.ourproject.kune.platf.client.state.Session;
import org.ourproject.kune.workspace.client.licensewizard.pages.LicenseWizardFirstFormView;
import org.ourproject.kune.workspace.client.licensewizard.pages.LicenseWizardFrdFormView;
import org.ourproject.kune.workspace.client.licensewizard.pages.LicenseWizardSndFormView;
import org.ourproject.kune.workspace.client.licensewizard.pages.LicenseWizardTrdFormView;
+import cc.kune.core.client.state.Session;
+
public class LicenseWizardPresenterTest {
private LicenseWizardView view;
Modified: trunk/src/test/java/org/ourproject/kune/workspace/client/socialnet/RolActionTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/workspace/client/socialnet/RolActionTest.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/test/java/org/ourproject/kune/workspace/client/socialnet/RolActionTest.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -4,9 +4,10 @@
import org.junit.Before;
import org.junit.Test;
-import org.ourproject.kune.platf.client.dto.AccessRightsDTO;
-import org.ourproject.kune.platf.client.dto.AccessRolDTO;
+import cc.kune.core.shared.dto.AccessRightsDTO;
+import cc.kune.core.shared.dto.AccessRolDTO;
+
public class RolActionTest {
private AccessRightsDTO adminRights;
Modified: trunk/src/test/java/org/ourproject/kune/workspace/client/socialnet/RolComparatorTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/workspace/client/socialnet/RolComparatorTest.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/test/java/org/ourproject/kune/workspace/client/socialnet/RolComparatorTest.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -4,9 +4,10 @@
import static org.junit.Assert.assertTrue;
import org.junit.Test;
-import org.ourproject.kune.platf.client.dto.AccessRightsDTO;
-import org.ourproject.kune.platf.client.dto.AccessRolDTO;
+import cc.kune.core.shared.dto.AccessRightsDTO;
+import cc.kune.core.shared.dto.AccessRolDTO;
+
public class RolComparatorTest {
@Test
Modified: trunk/src/test/java/org/ourproject/kune/workspace/client/tags/TagsSummaryPresenterTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/workspace/client/tags/TagsSummaryPresenterTest.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/test/java/org/ourproject/kune/workspace/client/tags/TagsSummaryPresenterTest.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -5,13 +5,14 @@
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mockito;
-import org.ourproject.kune.platf.client.dto.StateContainerDTO;
-import org.ourproject.kune.platf.client.dto.TagCloudResultDTO;
-import org.ourproject.kune.platf.client.dto.TagCountDTO;
-import org.ourproject.kune.platf.client.state.Session;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.workspace.client.search.SiteSearcher;
+import cc.kune.core.client.state.Session;
+import cc.kune.core.client.state.StateManager;
+import cc.kune.core.shared.dto.StateContainerDTO;
+import cc.kune.core.shared.dto.TagCloudResultDTO;
+import cc.kune.core.shared.dto.TagCountDTO;
+
import com.calclab.suco.client.ioc.Provider;
public class TagsSummaryPresenterTest {
Modified: trunk/src/test/java/org/ourproject/kune/workspace/client/tool/ToolSelectorPresenterTest.java
===================================================================
--- trunk/src/test/java/org/ourproject/kune/workspace/client/tool/ToolSelectorPresenterTest.java 2010-12-08 20:00:05 UTC (rev 1162)
+++ trunk/src/test/java/org/ourproject/kune/workspace/client/tool/ToolSelectorPresenterTest.java 2010-12-09 16:03:51 UTC (rev 1163)
@@ -3,11 +3,12 @@
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mockito;
-import org.ourproject.kune.platf.client.state.StateManager;
import org.ourproject.kune.workspace.client.themes.WsThemeManager;
import org.ourproject.kune.workspace.client.tool.ToolSelectorItem;
import org.ourproject.kune.workspace.client.tool.ToolSelectorPresenter;
+import cc.kune.core.client.state.StateManager;
+
public class ToolSelectorPresenterTest {
private static final String TOOL1_NAME = "tool1";
1
0
r1162 - in trunk: . script src/main/java/cc/kune/core src/main/java/cc/kune/core/client src/main/java/cc/kune/core/client/ws src/main/java/cc/kune/core/public
by Vicente J. Ruiz Jurado 08 Dec '10
by Vicente J. Ruiz Jurado 08 Dec '10
08 Dec '10
Author: vjrj_
Date: 2010-12-08 21:00:05 +0100 (Wed, 08 Dec 2010)
New Revision: 1162
Added:
trunk/pom.xml.dic11
trunk/script/mvn-eclipse.sh
trunk/src/main/java/cc/kune/core/public/ws.css
Modified:
trunk/TROUBLESHOOT
trunk/pom.xml
trunk/src/main/java/cc/kune/core/Core.gwt.xml
trunk/src/main/java/cc/kune/core/client/CoreEventBus.java
trunk/src/main/java/cc/kune/core/client/CoreGinModule.java
trunk/src/main/java/cc/kune/core/client/KuneEntryPoint.java
trunk/src/main/java/cc/kune/core/client/ws/CorePresenter.java
trunk/src/main/java/cc/kune/core/client/ws/CoreView.java
trunk/src/main/java/cc/kune/core/public/ws.html
Log:
CLOSED - # 6: Common Actions integration
http://kune.ourproject.org/issues/ticket/6
CLOSED - # 4: Gwt 2.1.0 and mvn cleanup
http://kune.ourproject.org/issues/ticket/4
Modified: trunk/TROUBLESHOOT
===================================================================
--- trunk/TROUBLESHOOT 2010-12-08 19:58:37 UTC (rev 1161)
+++ trunk/TROUBLESHOOT 2010-12-08 20:00:05 UTC (rev 1162)
@@ -59,6 +59,13 @@
If you have this problem with openfire it's not enough to change the password in openfire.xml because probably it's already stored in the ofProperty openfire table and you need to change the password there.
-=== Eclipse ===
+=== Eclipse & GWT ===
If you have some tests with error like "can not be found in source packages. Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly" and you have installed GWTDesigner, uncheck "client classpath": http://code.google.com/webtoolkit/tools/gwtdesigner/preferences/gwt/prefere…
+
+ Error: Invalid version number "2.0" passed to external.gwtOnLoad(), expected "2.1"; your hosted mode bootstrap file may be out of date; if you are using -noserver try recompiling and redeploying your app
+ Fix: clear your browser cache
+
+ Error: method should override method xxx (or similar)
+ Fix: Project --> Properties --> Java Compiler ---> Unenable project specific settings
+
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2010-12-08 19:58:37 UTC (rev 1161)
+++ trunk/pom.xml 2010-12-08 20:00:05 UTC (rev 1162)
@@ -18,6 +18,18 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
+ <dependency>
+ <groupId>com.google.gwt</groupId>
+ <artifactId>gwt-servlet</artifactId>
+ <version>${gwtVersion}</version>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.google.gwt</groupId>
+ <artifactId>gwt-user</artifactId>
+ <version>${gwtVersion}</version>
+ <scope>provided</scope>
+ </dependency>
<!-- guice -->
<dependency>
<groupId>com.google.code.guice</groupId>
@@ -35,18 +47,6 @@
<version>2.0.1</version>
</dependency>
<dependency>
- <groupId>com.google.gwt</groupId>
- <artifactId>gwt-servlet</artifactId>
- <version>${gwtVersion}</version>
- <scope>runtime</scope>
- </dependency>
- <dependency>
- <groupId>com.google.gwt</groupId>
- <artifactId>gwt-user</artifactId>
- <version>${gwtVersion}</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
<groupId>com.googlecode.mvp4g</groupId>
<artifactId>mvp4g</artifactId>
<version>1.2.0</version>
@@ -56,13 +56,30 @@
<artifactId>mvc4g</artifactId>
<version>1.0.0-jboss</version>
</dependency>
- <!-- cc -->
<dependency>
- <groupId>org.cobogw</groupId>
- <artifactId>gwt</artifactId>
- <version>1.2.2</version>
+ <groupId>org.ourproject.common</groupId>
+ <artifactId>gwt-common</artifactId>
+ <version>0.0.3</version>
+ <scope>compile</scope>
</dependency>
<dependency>
+ <groupId>com.extjs</groupId>
+ <artifactId>gxt</artifactId>
+ <version>2.2.1</version>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.cobogw.gwt</groupId>
+ <artifactId>cobogw</artifactId>
+ <version>1.3.1</version>
+ </dependency>
+ <dependency>
+ <groupId>org.ourproject.kune.ws.armor</groupId>
+ <artifactId>ws-armor</artifactId>
+ <version>0.0.4</version>
+ </dependency>
+ <!-- cc -->
+ <dependency>
<groupId>com.gwtext</groupId>
<artifactId>gwtext</artifactId>
<version>2.0.5</version>
@@ -82,11 +99,6 @@
<artifactId>gwt-voices</artifactId>
<version>1.6.0</version>
</dependency>
- <dependency>
- <groupId>org.ourproject.kune.ws.armor</groupId>
- <artifactId>ws-armor</artifactId>
- <version>0.0.3</version>
- </dependency>
<!-- utilities -->
<dependency>
<groupId>log4j</groupId>
@@ -470,6 +482,21 @@
<name>Releases Repository for Mvp4g</name>
<url>http://mvp4g.googlecode.com/svn/maven2/releases/</url>
</repository>
+ <repository>
+ <id>ext-gxt</id>
+ <name>ext-gxt at jahia</name>
+ <url>http://maven.jahia.org/maven2/</url>
+ </repository>
+ <repository>
+ <id>ext-gxt</id>
+ <name>ext-gxt at jahia</name>
+ <url>http://maven.jahia.org/maven2/</url>
+ </repository>
+ <repository>
+ <id>cobogw</id>
+ <name>Cobogw repository at googlecode</name>
+ <url>http://cobogw.googlecode.com/svn/maven2</url>
+ </repository>
<!-- cc -->
<repository>
<id>dyndns-repo</id>
@@ -589,8 +616,7 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
- <!--<version>1.2</version> -->
- <version>2.1.0</version>
+ <version>2.1.0-1</version>
<executions>
<execution>
<configuration>
@@ -842,4 +868,4 @@
</dependencies>
</profile>
</profiles>
-</project>
\ No newline at end of file
+</project>
Added: trunk/pom.xml.dic11
===================================================================
--- trunk/pom.xml.dic11 (rev 0)
+++ trunk/pom.xml.dic11 2010-12-08 20:00:05 UTC (rev 1162)
@@ -0,0 +1,894 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.ourproject</groupId>
+ <artifactId>kune</artifactId>
+ <packaging>jar</packaging>
+ <version>0.0.6</version>
+ <description>
+ kune free/open/libre collaboration platform
+ </description>
+ <name>kune</name>
+ <url>http://kune.ourproject.org</url>
+ <properties>
+ <!-- Available versions: http://repo1.maven.org/maven2/com/google/gwt/gwt-dev/
+ or also in: http://google-web-toolkit.googlecode.com/svn/2.1.0.M2/gwt/maven/
+ and similars. -->
+ <!-- Convenience property to set the GWT version -->
+ <gwtVersion>2.1.0</gwtVersion>
+ <!-- GWT needs at least java 1.5 -->
+ <maven.compiler.source>1.6</maven.compiler.source>
+ <maven.compiler.target>1.6</maven.compiler.target>
+ <webappDirectory>${project.build.directory}/${project.build.finalName}</webappDirectory>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ </properties>
+ <dependencies>
+ <!-- guice -->
+ <dependency>
+ <groupId>com.google.code.guice</groupId>
+ <artifactId>guice</artifactId>
+ <version>2.0.1</version>
+ </dependency>
+ <dependency>
+ <groupId>com.google.code.guice</groupId>
+ <artifactId>guice-servlet</artifactId>
+ <version>2.0.1</version>
+ </dependency>
+ <!-- GWT dependencies (from maven "central" repo) -->
+ <dependency>
+ <groupId>com.google.gwt</groupId>
+ <artifactId>gwt-servlet</artifactId>
+ <version>${gwtVersion}</version>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.google.gwt</groupId>
+ <artifactId>gwt-user</artifactId>
+ <version>${gwtVersion}</version>
+ <type>jar</type>
+ <scope>provided</scope>
+ </dependency>
+ <!-- <dependency> <groupId>com.extjs</groupId> <artifactId>gxt</artifactId>
+ <version>1.0-beta2</version> </dependency> -->
+ <dependency>
+ <groupId>org.cobogw</groupId>
+ <artifactId>gwt</artifactId>
+ <version>1.2.2</version>
+ </dependency>
+ <dependency>
+ <groupId>com.gwtext</groupId>
+ <artifactId>gwtext</artifactId>
+ <version>2.0.5</version>
+ </dependency>
+ <dependency>
+ <groupId>com.gwtextux</groupId>
+ <artifactId>gwtextux</artifactId>
+ <version>0.4.0.924</version>
+ </dependency>
+ <dependency>
+ <groupId>com.allen_sauer.gwt.log.gwt-log</groupId>
+ <artifactId>gwt-log</artifactId>
+ <version>3.0.1</version>
+ </dependency>
+ <dependency>
+ <groupId>com.allen_sauer.gwt.voices.gwt-voices</groupId>
+ <artifactId>gwt-voices</artifactId>
+ <version>1.6.0</version>
+ </dependency>
+ <!-- utilities -->
+ <dependency>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ <version>1.2.14</version>
+ </dependency>
+ <dependency>
+ <groupId>net.sf.dozer</groupId>
+ <artifactId>dozer</artifactId>
+ <version>4.0</version>
+ </dependency>
+ <dependency>
+ <groupId>com.calclab</groupId>
+ <artifactId>suco</artifactId>
+ <scope>compile</scope>
+ <version>0.6.5</version>
+ </dependency>
+ <dependency>
+ <groupId>jmagick</groupId>
+ <artifactId>jmagick</artifactId>
+ <version>6.2.6-0</version>
+ </dependency>
+ <dependency>
+ <groupId>org.xwiki.platform</groupId>
+ <artifactId>xwiki-web-gwt-dom</artifactId>
+ <version>2.3-rc-1</version>
+ <!-- <version>2.0-SNAPSHOT-g164</version> -->
+ <!-- <version>2.0-SNAPSHOT</version> -->
+ <!-- <version>2.0-SNAPSHOT-g20s</version> -->
+ </dependency>
+ <!-- xmpp -->
+ <dependency>
+ <groupId>com.calclab.emite</groupId>
+ <artifactId>emite</artifactId>
+ <version>0.4.7</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jivesoftware.smack</groupId>
+ <artifactId>smack</artifactId>
+ <version>3.0.4</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jivesoftware.smackx</groupId>
+ <artifactId>smackx</artifactId>
+ <version>3.0.4</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jivesoftware.smackx.debugger</groupId>
+ <artifactId>smackx-debugger</artifactId>
+ <version>3.0.4</version>
+ </dependency>
+ <!-- mysql -->
+ <dependency>
+ <groupId>mysql</groupId>
+ <artifactId>mysql-connector-java</artifactId>
+ <version>5.0.5</version>
+ </dependency>
+ <!-- hibernate JPA -->
+ <dependency>
+ <groupId>org.hibernate</groupId>
+ <artifactId>hibernate-core</artifactId>
+ <version>3.3.1.GA</version>
+ </dependency>
+ <dependency>
+ <groupId>org.hibernate</groupId>
+ <artifactId>hibernate-validator</artifactId>
+ <version>3.1.0.GA</version>
+ </dependency>
+ <dependency>
+ <groupId>org.hibernate</groupId>
+ <artifactId>hibernate-annotations</artifactId>
+ <version>3.4.0.GA</version>
+ </dependency>
+ <dependency>
+ <groupId>org.hibernate</groupId>
+ <artifactId>hibernate-commons-annotations</artifactId>
+ <version>3.3.0.ga</version>
+ </dependency>
+ <!-- <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-ehcache</artifactId>
+ <version>3.3.1.GA</version> </dependency> -->
+ <dependency>
+ <groupId>org.hibernate</groupId>
+ <artifactId>hibernate-search</artifactId>
+ <version>3.1.0.GA</version>
+ </dependency>
+ <dependency>
+ <groupId>org.hibernate</groupId>
+ <artifactId>hibernate-entitymanager</artifactId>
+ <version>3.4.0.GA</version>
+ </dependency>
+ <dependency>
+ <groupId>org.hibernate</groupId>
+ <artifactId>hibernate-tools</artifactId>
+ <version>3.2.3.GA</version>
+ </dependency>
+ <dependency>
+ <groupId>c3p0</groupId>
+ <artifactId>c3p0</artifactId>
+ <version>0.9.1.2</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-lang</groupId>
+ <artifactId>commons-lang</artifactId>
+ <version>2.0</version>
+ </dependency>
+ <dependency>
+ <groupId>com.wideplay</groupId>
+ <artifactId>warp-persist</artifactId>
+ <version>2.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-log4j12</artifactId>
+ <version>1.5.2</version>
+ </dependency>
+ <!-- REST: xml and json (stax) -->
+ <dependency>
+ <groupId>com.thoughtworks.xstream</groupId>
+ <artifactId>xstream</artifactId>
+ <version>1.2.2</version>
+ </dependency>
+ <dependency>
+ <groupId>stax</groupId>
+ <artifactId>stax-api</artifactId>
+ <version>1.0.1</version>
+ </dependency>
+ <dependency>
+ <groupId>org.codehaus.jettison</groupId>
+ <artifactId>jettison</artifactId>
+ <version>1.0-RC2</version>
+ </dependency>
+ <dependency>
+ <groupId>net.sf.json-lib</groupId>
+ <artifactId>json-lib</artifactId>
+ <version>2.1</version>
+ <classifier>jdk15</classifier>
+ </dependency>
+ <dependency>
+ <groupId>commons-collections</groupId>
+ <artifactId>commons-collections</artifactId>
+ <version>3.2</version>
+ </dependency>
+ <!-- File upload -->
+ <dependency>
+ <groupId>commons-beanutils</groupId>
+ <artifactId>commons-beanutils</artifactId>
+ <version>1.7.0</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-io</groupId>
+ <artifactId>commons-io</artifactId>
+ <version>1.2</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ <version>1.1</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-fileupload</groupId>
+ <artifactId>commons-fileupload</artifactId>
+ <version>1.1.1</version>
+ </dependency>
+ <!-- db upgrades -->
+ <dependency>
+ <groupId>org.liquibase</groupId>
+ <artifactId>liquibase-core</artifactId>
+ <version>1.7.0</version>
+ </dependency>
+ <dependency>
+ <groupId>org.liquibase</groupId>
+ <artifactId>liquibase-plugin</artifactId>
+ <version>1.7.0.0</version>
+ </dependency>
+ <!-- jetty dependencies -->
+ <dependency>
+ <groupId>org.mortbay.jetty</groupId>
+ <artifactId>jetty-util</artifactId>
+ <version>6.1.11</version>
+ <!-- <version>7.0.0.pre5</version> -->
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.mortbay.jetty</groupId>
+ <artifactId>maven-jetty-plugin</artifactId>
+ <!-- <artifactId>jetty-maven-plugin</artifactId> -->
+ <!-- <version>7.0.0.1beta0</version> -->
+ <version>6.1.11</version>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ <version>2.4</version>
+ <scope>provided</scope>
+ </dependency>
+ <!-- testing dependencies -->
+ <dependency>
+ <groupId>org.mockito</groupId>
+ <artifactId>mockito-all</artifactId>
+ <scope>test</scope>
+ <version>1.6</version>
+ </dependency>
+ <dependency>
+ <groupId>com.h2database</groupId>
+ <artifactId>h2</artifactId>
+ <version>1.0.20070617</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.7</version>
+ <scope>test</scope>
+ </dependency>
+ <!-- <dependency> -->
+ <!-- <groupId>org.openqa.selenium.client-drivers</groupId> -->
+ <!-- <artifactId>selenium-java-client-driver</artifactId> -->
+ <!-- <version>1.0-beta-1</version> -->
+ <!-- <scope>test</scope> -->
+ <!-- </dependency> -->
+ <!-- public side -->
+ <dependency>
+ <groupId>org.jruby.rack</groupId>
+ <artifactId>jruby-rack</artifactId>
+ <version>0.9.4</version>
+ </dependency>
+ <!-- wave -->
+ <dependency>
+ <groupId>org.waveprotocol</groupId>
+ <artifactId>kune-wave-server</artifactId>
+ <version>0.0.2.2</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-cli</groupId>
+ <artifactId>commons-cli</artifactId>
+ <version>1.2</version>
+ <type>jar</type>
+ </dependency>
+ <dependency>
+ <groupId>commons-codec</groupId>
+ <artifactId>commons-codec</artifactId>
+ <version>1.3</version>
+ <type>jar</type>
+ </dependency>
+ <dependency>
+ <groupId>dom4j</groupId>
+ <artifactId>dom4j</artifactId>
+ <version>1.6.1</version>
+ <type>jar</type>
+ </dependency>
+ <dependency>
+ <groupId>com.google.code.guice</groupId>
+ <artifactId>guice-assistedinject</artifactId>
+ <version>2.0</version>
+ </dependency>
+ <dependency>
+ <groupId>jline</groupId>
+ <artifactId>jline</artifactId>
+ <version>0.9.94</version>
+ <type>jar</type>
+ </dependency>
+ <dependency>
+ <groupId>org.gnu.inet</groupId>
+ <artifactId>libidn</artifactId>
+ <version>1.15</version>
+ <type>jar</type>
+ </dependency>
+ <dependency>
+ <groupId>com.google.protobuf</groupId>
+ <artifactId>protobuf-java</artifactId>
+ <version>2.1.0</version>
+ <type>jar</type>
+ </dependency>
+ <dependency>
+ <groupId>xpp3</groupId>
+ <artifactId>xpp3</artifactId>
+ <version>1.1.4c</version>
+ <type>jar</type>
+ </dependency>
+ <dependency>
+ <groupId>xpp3</groupId>
+ <artifactId>xpp3_xpath</artifactId>
+ <version>1.1.4c</version>
+ <type>jar</type>
+ </dependency>
+ <dependency>
+ <groupId>aopalliance</groupId>
+ <artifactId>aopalliance</artifactId>
+ <version>1.0</version>
+ <type>jar</type>
+ </dependency>
+ <dependency>
+ <groupId>org.wave-protocol</groupId>
+ <artifactId>xmpp</artifactId>
+ <version>1.0.0</version>
+ </dependency>
+ <dependency>
+ <groupId>org.wave-protocol</groupId>
+ <artifactId>whack</artifactId>
+ <version>1.0.0</version>
+ </dependency>
+ <dependency>
+ <groupId>com.google.common</groupId>
+ <artifactId>collect</artifactId>
+ <version>1.0-rc2</version>
+ </dependency>
+ </dependencies>
+ <distributionManagement>
+ <repository>
+ <id>kune.ourproject.org</id>
+ <url>scpexe://kune.ourproject.org/home/groups/kune/htdocs/mavenrepo/</url>
+ </repository>
+ </distributionManagement>
+ <!-- http://gwt-maven.googlecode.com/svn/docs/maven-googlewebtoolkit2-plugin/ind… -->
+ <pluginRepositories>
+ <!-- <pluginRepository> <id>gwt-maven</id> <url>http://gwt-maven.googlecode.com/svn/trunk/mavenrepo</url>
+ </pluginRepository> -->
+ <pluginRepository>
+ <id>Codehaus Snapshots</id>
+ <url>http://snapshots.repository.codehaus.org/</url>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <releases>
+ <enabled>true</enabled> <!-- Workaround for MNG-2974, see note below -->
+ </releases>
+ </pluginRepository>
+ <pluginRepository>
+ <id>gwt-plugin-repo</id>
+ <url>http://google-web-toolkit.googlecode.com/svn/2.1.0.M3/gwt/maven</url>
+ <name>Google Web Toolkit Plugin Repository</name>
+ </pluginRepository>
+ </pluginRepositories>
+ <repositories>
+ <repository>
+ <id>guice-maven</id>
+ <name>guice maven</name>
+ <url>http://guice-maven.googlecode.com/svn/trunk</url>
+ </repository>
+ <repository>
+ <id>Codehaus Snapshots</id>
+ <url>http://snapshots.repository.codehaus.org/</url>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ </repository>
+ <repository>
+ <id>repository.jboss.org</id>
+ <name>JBoss Maven Repository</name>
+ <url>http://repository.jboss.org/maven2</url>
+ <layout>default</layout>
+ </repository>
+ <repository>
+ <id>dyndns-repo</id>
+ <url>http://maven.dyndns.org/2</url>
+ </repository>
+ <repository>
+ <id>gwt-maven</id>
+ <url>
+ http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/
+ </url>
+ </repository>
+ <repository>
+ <id>kune-maven</id>
+ <url>http://kune.ourproject.org/mavenrepo/</url>
+ </repository>
+ <repository>
+ <id>gwtext</id>
+ <url>http://www.gwt-ext.com/maven2/</url>
+ </repository>
+ <repository>
+ <id>google-maven-snapshot-repository</id>
+ <name>Google Maven Snapshot Repository</name>
+ <url>https://oss.sonatype.org/content/repositories/google-snapshots/</url>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </repository>
+ <repository>
+ <id>openqa.org</id>
+ <name>Openqa Release Repository</name>
+ <url>http://archiva.openqa.org/repository/releases</url>
+ <layout>default</layout>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ </repository>
+ <repository>
+ <id>openqa.org snapshots</id>
+ <name>Openqa Snapshot Repository</name>
+ <url>http://archiva.openqa.org/repository/snapshots</url>
+ <layout>default</layout>
+ <snapshots>
+ <enabled>true</enabled>
+ <updatePolicy>daily</updatePolicy>
+ <checksumPolicy>ignore</checksumPolicy>
+ </snapshots>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ </repository>
+ <repository>
+ <id>xwiki-releases</id>
+ <name>XWiki Maven2 Remote Repository for Releases</name>
+ <url>http://maven.xwiki.org/releases</url>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ </repository>
+ <repository>
+ <id>xwiki</id>
+ <name>XWiki Repository</name>
+ <url>http://maven.xwiki.org/snapshots</url>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ <updatePolicy>daily</updatePolicy>
+ <checksumPolicy>warn</checksumPolicy>
+ </snapshots>
+ </repository>
+ </repositories>
+ <issueManagement>
+ <system>kune issues list at ourproject.org</system>
+ <url>http://kune.ourproject.org/issues/</url>
+ </issueManagement>
+ <developers>
+ <developer>
+ <id>dani</id>
+ <name>Daniel Gómez Blasco</name>
+ <email>danigb(a)gmail.com</email>
+ </developer>
+ <developer>
+ <name>Samer Hassan</name>
+ <email>samer2004(a)gmail.com</email>
+ </developer>
+ <developer>
+ <name>Vicente J. Ruiz Jurado</name>
+ <email>vjrj(a)ourproject.org</email>
+ </developer>
+ </developers>
+ <scm>
+ <url>svn://scm.ourproject.org/svnroot/kune/trunk</url>
+ </scm>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.3</version>
+ <configuration>
+ <forkMode>pertest</forkMode>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.6</source>
+ <target>1.6</target>
+ <!-- Uncomment and run mvn with -X -e if we have same compile problems
+ <compilerArgument>-verbose</compilerArgument> <fork>true</fork> <verbose>true</verbose> -->
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>gwt-maven-plugin</artifactId>
+ <!--<version>1.2</version> -->
+ <version>2.1.0</version>
+ <executions>
+ <execution>
+ <id>test</id>
+ <goals>
+ <goal>test</goal>
+ <!-- <goal>i18n</goal> -->
+ <!-- <goal>generateAsync</goal> -->
+ </goals>
+ </execution>
+ <execution>
+ <id>gwtcompile</id><phase>prepare-package</phase>
+ <goals>
+ <goal>compile</goal>
+ <!-- http://mojo.codehaus.org/gwt-maven-plugin/user-guide/library.html -->
+ <goal>resources</goal>
+ </goals>
+ </execution>
+ <execution>
+ <configuration>
+ <inplace>true</inplace>
+ <!-- <extraJvmArgs>-Xmx512M</extraJvmArgs> -->
+ <soyc>false</soyc>
+ <style>OBF</style>
+ <localWorkers>2</localWorkers>
+ <copyWebapp>true</copyWebapp>
+ </configuration>
+ <goals>
+ <!-- gwt:* goals to be executed during build -->
+ <goal>compile</goal>
+ <!-- http://mojo.codehaus.org/gwt-maven-plugin/user-guide/library.html -->
+ <goal>resources</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <generateDirectory>${project.build.directory}/generated-sources/gwt</generateDirectory>
+ <gen>${project.build.directory}/generated</gen>
+ <productionMode>true</productionMode>
+ <!--<extraJvmArgs>-Xmx512m -verbose</extraJvmArgs> -->
+ <logLevel>INFO</logLevel>
+ <style>OBF</style>
+ <localWorkers>2</localWorkers>
+ <!--<mode>htmlunit</mode> -->
+ <hostedWebapp>${webappDirectory}</hostedWebapp>
+ <runTarget>org.ourproject.kune.app.Kune/ws.html?log_level=DEBUG</runTarget>
+ <gwt.module>org.ourproject.kune.app.Kune</gwt.module>
+ <!-- <webappDirectory>${basedir}/war</webappDirectory> -->
+ <inplace>true</inplace>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-war-plugin</artifactId>
+ <version>2.1</version>
+ <executions>
+ <execution>
+ <phase>compile</phase>
+ <goals>
+ <goal>exploded</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <webappDirectory>${webappDirectory}</webappDirectory>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-eclipse-plugin</artifactId>
+ <version>2.7</version>
+ <configuration>
+ <downloadSources>true</downloadSources>
+ <downloadJavadocs>false</downloadJavadocs>
+ <wtpversion>2.0</wtpversion>
+ <additionalBuildcommands>
+ <buildCommand>
+ <name>com.google.gwt.eclipse.core.gwtProjectValidator</name>
+ </buildCommand>
+ </additionalBuildcommands>
+ <additionalProjectnatures>
+ <projectnature>org.eclipse.ajdt.ui.ajnature</projectnature>
+ <projectnature>com.google.gwt.eclipse.core.gwtNature</projectnature>
+ </additionalProjectnatures>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <version>2.7</version>
+ <executions>
+ <execution>
+ <id>javadoc-jar</id>
+ <phase>package</phase>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-source-plugin</artifactId>
+ <version>2.1.2</version>
+ <executions>
+ <execution>
+ <id>attach-sources</id>
+ <phase>package</phase>
+ <goals>
+ <goal>jar-no-fork</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.mortbay.jetty</groupId>
+ <!-- <artifactId>jetty-maven-plugin</artifactId> -->
+ <!-- <version>7.0.0.1beta0</version> -->
+ <artifactId>maven-jetty-plugin</artifactId>
+ <version>6.1.14</version>
+ <configuration>
+ <contextPath>/</contextPath>
+ <!-- <webAppSourceDirectory>war</webAppSourceDirectory> -->
+ <!-- <tmpDir>war</tmpDir> -->
+ <reload>manual</reload>
+ <scanIntervalSeconds>0</scanIntervalSeconds>
+ <!-- <scanTargets> -->
+ <!-- <scanTarget>${basedir}/war</scanTarget> -->
+ <!-- </scanTargets> -->
+ </configuration>
+ </plugin>
+ <!-- <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>deb-maven-plugin</artifactId>
+ <version>1.0-SNAPSHOT</version> <configuration> <description>kune free/open/libre
+ collaboration platform</description> <maintainer>Kune Development Team <kune-devel(a)lists.ourproject.org></maintainer>
+ <section>web</section> <priority>optional</priority> <architecture>all</architecture>
+ </configuration> <executions> <execution> <goals> <goal>deb</goal> </goals>
+ </execution> </executions> </plugin> -->
+ <plugin>
+ <groupId>org.liquibase</groupId>
+ <artifactId>liquibase-plugin</artifactId>
+ <version>1.7.0.0</version>
+ <executions>
+ <execution>
+ <phase>process-resources</phase>
+ <configuration>
+ <changeLogFile>
+ src/main/resources/db/liquibase_changelog.xml </changeLogFile>
+ <driver>com.mysql.jdbc.Driver</driver>
+ <url>jdbc:mysql://localhost/kune_dev</url>
+ <username>kune</username>
+ <password>db4kune</password>
+ <verbose>true</verbose>
+ </configuration>
+ <!-- <configuration> <verbose>true</verbose> <propertiesFile>
+ src/main/resources/db/liquibase.properties </propertiesFile> </configuration> -->
+ <goals>
+ <goal>update</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <version>2.2</version>
+ <executions>
+ <execution>
+ <id>core</id>
+ <phase>package</phase>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ <configuration>
+ <classifier>core</classifier>
+ <includes>
+ <include>**/KunePlatform.gwt.xml**</include>
+ <include>**/i18n/I18nTranslationService.**</include>
+ <include>**/i18n/I18nTranslationServiceMocked.**</include>
+ <include>**/TextUtils.**</include>
+ <include>**/IconLabelEditable.**</include>
+ <include>**/QuickTipsHelper.**</include>
+ <include>**/RichText.gwt.xml**</include>
+ <include>**/BasicDialog.**</include>
+ <include>**/HorizontalLine.**</include>
+ <include>**/AbstractLabel.**</include>
+ <include>**/IconLabel.**</include>
+ <include> **/EditableIconLabel.** </include>
+ <include> **/EditableClickListener.** </include>
+ <include>**/KuneStringUtils.**</include>
+ <include>**/IconHyperlink*.**</include>
+ <include>**/LabelWrapper*.**</include>
+ <include>**/KuneUiUtils.**</include>
+ <include>**/View.**</include>
+ <!-- <include>**/platf/**</include> <include>**/platf/client/extend/**</include>
+ <include>**/platf/client/*java</include> <include>**/platf/client/app/**</include>
+ <include>**/platf/client/dispatch/**</include> -->
+ </includes>
+ </configuration>
+ </execution>
+ <execution>
+ <id>helloworldmodule</id>
+ <phase>package</phase>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ <configuration>
+ <classifier>helloworldmodule</classifier>
+ <includes>
+ <include>**/HelloWorld*</include>
+ </includes>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <!-- <plugin> -->
+ <!-- <groupId>org.codehaus.mojo</groupId> -->
+ <!-- <artifactId>selenium-maven-plugin</artifactId> -->
+ <!-- <configuration> -->
+ <!-- <port>4441</port> -->
+ <!-- </configuration> -->
+ <!-- <executions> -->
+ <!-- <execution> -->
+ <!-- <phase>pre-integration-test</phase> -->
+ <!-- <goals> -->
+ <!-- <goal>start-server</goal> -->
+ <!-- </goals> -->
+ <!-- <configuration> -->
+ <!-- <background>true</background> -->
+ <!-- </configuration> -->
+ <!-- </execution> -->
+ <!-- </executions> -->
+ <!-- </plugin> -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <forkMode>pertest</forkMode>
+ <!-- Skip the normal tests, we'll run them in the integration-test
+ phase -->
+ <skip>true</skip>
+ </configuration>
+ <executions>
+ <execution>
+ <phase>integration-test</phase>
+ <goals>
+ <goal>test</goal>
+ </goals>
+ <configuration>
+ <skip>false</skip>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <!-- <plugin> <artifactId>maven-clean-plugin</artifactId> <version>2.2</version>
+ <configuration> <filesets> <fileset> <directory>src/main/webapp/gwt/</directory>
+ <includes> <include>**/org.ourproject.kune.app.Kune*</include> <followSymlinks>false</followSymlinks>
+ </includes> </fileset> </filesets> </configuration> </plugin> -->
+ </plugins>
+ <!-- Generate compiled stuff in the folder used for developing mode -->
+<!-- <outputDirectory>${webappDirectory}/WEB-INF/classes</outputDirectory>-->
+ <outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/classes</outputDirectory>
+ <testOutputDirectory>war/WEB-INF/test-classes</testOutputDirectory>
+ <resources>
+ <resource>
+ <directory>src/main/resources</directory>
+ </resource>
+ <resource>
+ <directory>src/main/java</directory>
+ </resource>
+ </resources>
+ <extensions>
+ <extension>
+ <groupId>org.apache.maven.wagon</groupId>
+ <artifactId>wagon-ssh-external</artifactId>
+ <version>1.0-beta-2</version>
+ </extension>
+ </extensions>
+ </build>
+ <reporting>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jxr-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-pmd-plugin</artifactId>
+ <version>2.4</version>
+ <configuration>
+ <linkXref>true</linkXref>
+ <sourceEncoding>utf-8</sourceEncoding>
+ <minimumTokens>100</minimumTokens>
+ <targetJdk>1.5</targetJdk>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>cobertura-maven-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>jdepend-maven-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>findbugs-maven-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </reporting>
+ <profiles>
+ <profile>
+ <!-- Activate only when within eclipse -->
+ <id>m2eclipse</id>
+ <activation>
+ <property>
+ <name>!m2e.version</name>
+ </property>
+ </activation>
+ <!-- GWT SDK is provided by GWT SDK Classpath Container -->
+ <dependencies>
+ <dependency>
+ <groupId>com.google.gwt</groupId>
+ <artifactId>gwt-servlet</artifactId>
+ <version>${gwtVersion}</version>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.google.gwt</groupId>
+ <artifactId>gwt-user</artifactId>
+ <version>${gwtVersion}</version>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+ </profile>
+ </profiles>
+</project>
Added: trunk/script/mvn-eclipse.sh
===================================================================
--- trunk/script/mvn-eclipse.sh (rev 0)
+++ trunk/script/mvn-eclipse.sh 2010-12-08 20:00:05 UTC (rev 1162)
@@ -0,0 +1,3 @@
+mvn eclipse:eclipse
+perl -p -i -e 's/<\/classpath>//g' .classpath
+echo -en " <classpathentry kind=\"con\" path=\"com.google.gwt.eclipse.core.GWT_CONTAINER\"/>\n</classpath>" >> .classpath
Property changes on: trunk/script/mvn-eclipse.sh
___________________________________________________________________
Name: svn:executable
+ *
Modified: trunk/src/main/java/cc/kune/core/Core.gwt.xml
===================================================================
--- trunk/src/main/java/cc/kune/core/Core.gwt.xml 2010-12-08 19:58:37 UTC (rev 1161)
+++ trunk/src/main/java/cc/kune/core/Core.gwt.xml 2010-12-08 20:00:05 UTC (rev 1162)
@@ -1,15 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.1.0//EN" "http://google-web-toolkit.googlecode.com/svn/tags/2.1.0/distro-source/core/…">
<module rename-to="ws">
- <inherits name="com.google.gwt.user.User" />
+ <!-- source / public / etc ==================================== -->
<!-- excluding test sources for this module workaround for open issue 4454
see http://code.google.com/p/google-web-toolkit/issues/detail?id=4454 -->
<source path='client'
excludes="**/*Test.java,**/*Tests.java,**/*MockProvider.java" />
<public path="public" />
+ <!-- Dependencies ============================================= -->
+ <inherits name="com.google.gwt.user.User" />
<inherits name='com.mvp4g.Mvp4gModule' />
<inherits name="org.ourproject.kune.ws.armor.WsArmor" />
+ <inherits name="org.ourproject.common.Common" />
+ <inherits name="com.extjs.gxt.ui.GXT" />
+ <!-- Styles =================================================== -->
+ <stylesheet src="ws.css" />
+ <stylesheet src="fontface/stylesheet.css" />
+ <!-- Entrypoint =============================================== -->
<entry-point class="cc.kune.core.client.KuneEntryPoint" />
+ <!-- NOTE: this only compiles for chromium/safari ============= -->
<!--http://code.google.com/p/google-web-toolkit/issues/detail?id=42 -->
<!-- <set-property name="user.agent" value="gecko1_8" /> -->
<set-property name="user.agent" value="safari" />
Modified: trunk/src/main/java/cc/kune/core/client/CoreEventBus.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/CoreEventBus.java 2010-12-08 19:58:37 UTC (rev 1161)
+++ trunk/src/main/java/cc/kune/core/client/CoreEventBus.java 2010-12-08 20:00:05 UTC (rev 1162)
@@ -1,5 +1,7 @@
package cc.kune.core.client;
+import org.ourproject.common.client.CommonGinModule;
+
import cc.kune.core.client.ws.CorePresenter;
import cc.kune.core.client.ws.CoreView;
@@ -9,10 +11,16 @@
import com.mvp4g.client.annotation.Start;
import com.mvp4g.client.event.EventBus;
-@Events(startView = CoreView.class, ginModules = { CoreGinModule.class })
+/**
+ * The Kune Core EventBus.
+ */
+@Events(startView = CoreView.class, ginModules = { CoreGinModule.class, CommonGinModule.class })
@Debug
public interface CoreEventBus extends EventBus {
+ /**
+ * Application start event
+ */
@Start
@Event(handlers = CorePresenter.class)
void start();
Modified: trunk/src/main/java/cc/kune/core/client/CoreGinModule.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/CoreGinModule.java 2010-12-08 19:58:37 UTC (rev 1161)
+++ trunk/src/main/java/cc/kune/core/client/CoreGinModule.java 2010-12-08 20:00:05 UTC (rev 1162)
@@ -6,8 +6,16 @@
import com.google.gwt.inject.client.AbstractGinModule;
import com.google.inject.Singleton;
+/**
+ * The Class Core GinModule.
+ */
public class CoreGinModule extends AbstractGinModule {
+ /*
+ * (non-Javadoc)
+ *
+ * @see com.google.gwt.inject.client.AbstractGinModule#configure()
+ */
@Override
protected void configure() {
bind(IBody.class).to(Body.class).in(Singleton.class);
Modified: trunk/src/main/java/cc/kune/core/client/KuneEntryPoint.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/KuneEntryPoint.java 2010-12-08 19:58:37 UTC (rev 1161)
+++ trunk/src/main/java/cc/kune/core/client/KuneEntryPoint.java 2010-12-08 20:00:05 UTC (rev 1162)
@@ -8,6 +8,11 @@
public class KuneEntryPoint implements EntryPoint {
+ /*
+ * (non-Javadoc)
+ *
+ * @see com.google.gwt.core.client.EntryPoint#onModuleLoad()
+ */
@Override
public void onModuleLoad() {
final Mvp4gModule module = (Mvp4gModule) GWT.create(Mvp4gModule.class);
Modified: trunk/src/main/java/cc/kune/core/client/ws/CorePresenter.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/ws/CorePresenter.java 2010-12-08 19:58:37 UTC (rev 1161)
+++ trunk/src/main/java/cc/kune/core/client/ws/CorePresenter.java 2010-12-08 20:00:05 UTC (rev 1162)
@@ -6,11 +6,21 @@
import com.mvp4g.client.annotation.Presenter;
import com.mvp4g.client.presenter.BasePresenter;
+/**
+ * The Class CorePresenter.
+ */
@Presenter(view = CoreView.class)
public class CorePresenter extends BasePresenter<ICoreView, CoreEventBus> {
+
+ /**
+ * The Interface ICoreView.
+ */
public interface ICoreView {
}
+ /**
+ * On start.
+ */
public void onStart() {
}
}
Modified: trunk/src/main/java/cc/kune/core/client/ws/CoreView.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/ws/CoreView.java 2010-12-08 19:58:37 UTC (rev 1161)
+++ trunk/src/main/java/cc/kune/core/client/ws/CoreView.java 2010-12-08 20:00:05 UTC (rev 1162)
@@ -7,13 +7,25 @@
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.ui.Composite;
+import com.google.gwt.user.client.ui.InlineLabel;
import com.google.inject.Inject;
+/**
+ * The Class CoreView is where the general armor of Kune it created/attached.
+ */
public class CoreView extends Composite implements ICoreView {
+ /**
+ * Instantiates a new core view.
+ *
+ * @param body
+ * the body
+ */
@Inject
public CoreView(final Body body) {
GWT.<WsArmorResources> create(WsArmorResources.class).style().ensureInjected();
initWidget(body);
+ body.getEntityHeader().add(new InlineLabel("Test - a, e, i, o, u"));
+ body.getDocHeader().add(new InlineLabel("doc title"));
}
}
Added: trunk/src/main/java/cc/kune/core/public/ws.css
===================================================================
--- trunk/src/main/java/cc/kune/core/public/ws.css (rev 0)
+++ trunk/src/main/java/cc/kune/core/public/ws.css 2010-12-08 20:00:05 UTC (rev 1162)
@@ -0,0 +1,304 @@
+@CHARSET "UTF-8";
+
+body {
+ background-color: white;
+ color: black;
+ font-family: 'Droid Sans', Arial;
+ font-size: small;
+ margin: 5px;
+}
+
+body.fontface {font: 'Droid Sans', Arial;}
+
+a {
+ color: darkblue;
+}
+
+a:visited {
+ color: darkblue;
+}
+
+.gwt-DialogBox {
+ border: 2px solid #AAAAAA;
+ background-color: white;
+}
+
+.gwt-DialogBox .Caption {
+ background-image: url(gray_gradient.gif);
+ background-repeat: repeat-x;
+ padding: 4px;
+ padding-bottom: 8px;
+ font-weight: bold;
+ cursor: default;
+}
+
+.gwt-MenuBar {
+ background-color: #C3D9FF;
+ cursor: default;
+}
+
+.gwt-MenuItem {
+ font-size: 80%;
+ margin: 1px;
+ cursor: default;
+}
+
+.gwt-MenuItem-selected {
+ background-color: #E8EEF7;
+}
+
+.gwt-Tree {
+}
+
+.gwt-Tree .gwt-TreeItem {
+ font-size: 80%;
+ cursor: default;
+}
+
+.gwt-Tree .gwt-TreeItem-selected {
+ background-color: #C3D9FF;
+}
+
+.gwt-StackPanel {
+ background-color: white;
+ border: 1px solid #AAAAAA;
+ width: 15em;
+}
+
+.gwt-StackPanel .gwt-StackPanelItem {
+ background-image: url(blue_gradient.gif);
+ background-repeat: repeat-x;
+ background-color: #EEEEEE;
+ cursor: pointer;
+ cursor: hand;
+}
+
+.gwt-StackPanel .gwt-StackPanelItem-selected {
+}
+
+.gwt-TabPanel {
+
+}
+
+.gwt-TabPanelBottom {
+ border-left: 1px solid #87b3ff;
+ border-right: 1px solid #87b3ff;
+ border-bottom: 1px solid #87b3ff;
+}
+
+.gwt-TabBar {
+ font-size: smaller;
+}
+
+.gwt-TabBar .gwt-TabBarFirst {
+ height: 100%;
+ border-bottom: 1px solid #87b3ff;
+ border-right: 1px solid #87b3ff;
+ padding-left: 3px;
+}
+
+.gwt-TabBar .gwt-TabBarRest {
+ border-bottom: 1px solid #87b3ff;
+ padding-right: 3px;
+}
+
+.gwt-TabBar .gwt-TabBarItem {
+ border-top: 1px solid #87b3ff;
+ border-bottom: 1px solid #87b3ff;
+ padding: 2px;
+ cursor: hand;
+ white-space: nowrap;
+ border-right: 1px solid #87b3ff;
+}
+
+.gwt-TabBar .gwt-TabBarItem-selected {
+ font-weight: bold;
+ background-color: #e8eef7;
+ border-top: 1px solid #87b3ff;
+ border-right: 1px solid #87b3ff;
+ border-bottom: 1px solid #e8eef7;
+ padding: 2px;
+ cursor: default;
+ white-space: nowrap;
+}
+
+.gwt-PushButton-up {
+ background-color: #C3D9FF;
+ padding: 2px;
+ border: 2px solid transparent;
+ border-color: #E8F1FF rgb(157, 174, 205) rgb(157, 174, 205) rgb(232, 241, 255);
+ cursor: pointer;
+ cursor: hand;
+}
+
+.gwt-PushButton-up-hovering {
+ background-color: #C3D9FF;
+ padding: 2px;
+ border: 2px solid transparent;
+ border-color: #E8F1FF rgb(157, 174, 205) rgb(157, 174, 205) rgb(232, 241, 255);
+ cursor: pointer;
+ cursor: hand;
+}
+
+.gwt-PushButton-down {
+ background-color: #C3D9FF;
+ padding: 2px;
+ border: 2px solid transparent;
+ border-color: #9DAECD rgb(232, 241, 255) rgb(232, 241, 255) rgb(157, 174, 205);
+ cursor: pointer;
+ cursor: hand;
+}
+
+.gwt-PushButton-down-hovering {
+ background-color: #C3D9FF;
+ padding: 2px;
+ border: 2px solid transparent;
+ border-color: #9DAECD rgb(232, 241, 255) rgb(232, 241, 255) rgb(157, 174, 205);
+ cursor: pointer;
+ cursor: hand;
+}
+
+.gwt-ToggleButton-up {
+ background-color: #C3D9FF;
+ padding: 2px;
+ border: 2px solid transparent;
+ border-color: #E8F1FF rgb(157, 174, 205) rgb(157, 174, 205) rgb(232, 241, 255);
+ cursor: pointer;
+ cursor: hand;
+}
+
+.gwt-ToggleButton-up-hovering {
+ background-color: #C3D9FF;
+ padding: 2px;
+ border: 2px solid transparent;
+ border-color: #E8F1FF rgb(157, 174, 205) rgb(157, 174, 205) rgb(232, 241, 255);
+ cursor: pointer;
+ cursor: hand;
+}
+
+.gwt-ToggleButton-down {
+ background-color: #C3D9FF;
+ padding: 2px;
+ background-color: #E8F1FF;
+ border: 2px solid transparent;
+ border-color: #9DAECD rgb(232, 241, 255) rgb(232, 241, 255) rgb(157, 174, 205);
+ cursor: pointer;
+ cursor: hand;
+}
+
+.gwt-ToggleButton-down-hovering {
+ background-color: #C3D9FF;
+ padding: 2px;
+ background-color: #E8F1FF;
+ border: 2px solid transparent;
+ border-color: #9DAECD rgb(232, 241, 255) rgb(232, 241, 255) rgb(157, 174, 205);
+ cursor: pointer;
+ cursor: hand;
+}
+
+.gwt-RichTextArea {
+ border: 1px solid black;
+ background-color: white;
+}
+
+.gwt-RichTextToolbar {
+ background-color: #C3D9FF;
+ padding: 2px;
+}
+
+.gwt-RichTextToolbar .gwt-PushButton-up {
+ margin-right: 2px;
+ border: 1px solid #C3D9FF;
+}
+
+.gwt-RichTextToolbar .gwt-PushButton-up-hovering {
+ margin-right: 2px;
+ border: 1px solid #C3D9FF;
+ border-color: #E8F1FF rgb(157, 174, 205) rgb(157, 174, 205) rgb(232, 241, 255);
+}
+
+.gwt-RichTextToolbar .gwt-PushButton-down {
+ margin-right: 2px;
+ border: 1px solid #C3D9FF;
+ border-color: #9DAECD rgb(232, 241, 255) rgb(232, 241, 255) rgb(157, 174, 205);
+}
+
+.gwt-RichTextToolbar .gwt-PushButton-down-hovering {
+ margin-right: 2px;
+ border: 1px solid #C3D9FF;
+ border-color: #9DAECD rgb(232, 241, 255) rgb(232, 241, 255) rgb(157, 174, 205);
+}
+
+.gwt-RichTextToolbar .gwt-ToggleButton-up {
+ margin-right: 2px;
+ border: 1px solid #C3D9FF;
+}
+
+.gwt-RichTextToolbar .gwt-ToggleButton-up-hovering {
+ margin-right: 2px;
+ border: 1px solid #C3D9FF;
+ border-color: #E8F1FF rgb(157, 174, 205) rgb(157, 174, 205) rgb(232, 241, 255);
+}
+
+.gwt-RichTextToolbar .gwt-ToggleButton-down {
+ margin-right: 2px;
+ background-color: #E8F1FF;
+ border: 1px solid #C3D9FF;
+ border-color: #9DAECD rgb(232, 241, 255) rgb(232, 241, 255) rgb(157, 174, 205);
+}
+
+.gwt-RichTextToolbar .gwt-ToggleButton-down-hovering {
+ margin-right: 2px;
+ background-color: #E8F1FF;
+ border: 1px solid #C3D9FF;
+ border-color: #9DAECD rgb(232, 241, 255) rgb(232, 241, 255) rgb(157, 174, 205);
+}
+
+.gwt-HorizontalSplitPanel {
+ border: 8px solid #C3D9FF;
+}
+
+.gwt-HorizontalSplitPanel .splitter {
+ background-color: #C3D9FF;
+ cursor: move;
+}
+
+.gwt-HorizontalSplitPanel .left {
+ background-color: #E8EEF7;
+}
+
+.gwt-VerticalSplitPanel {
+ border: 8px solid #C3D9FF;
+}
+
+.gwt-VerticalSplitPanel .splitter {
+ background-color: #C3D9FF;
+ height: 8px;
+ cursor: move;
+}
+
+.gwt-SuggestBoxPopup {
+ border: 2px solid #C3D9FF;
+}
+
+.gwt-SuggestBoxPopup .item {
+ padding: 2px;
+}
+
+.gwt-SuggestBoxPopup .item-selected {
+ background-color: #C3D9FF;
+ padding: 2px;
+}
+
+.gwt-DisclosurePanel {
+ border: 2px solid #C3D9FF;
+}
+
+.gwt-DisclosurePanel .header {
+ background-color: #e8eef7;
+ cursor: hand;
+}
+
+.gwt-SplitLayoutPanel { }
+.gwt-SplitLayoutPanel .gwt-SplitLayoutPanel-HDragger { background-color: white; background: none; }
+.gwt-SplitLayoutPanel .gwt-SplitLayoutPanel-VDragger { }
Property changes on: trunk/src/main/java/cc/kune/core/public/ws.css
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/src/main/java/cc/kune/core/public/ws.html
===================================================================
--- trunk/src/main/java/cc/kune/core/public/ws.html 2010-12-08 19:58:37 UTC (rev 1161)
+++ trunk/src/main/java/cc/kune/core/public/ws.html 2010-12-08 20:00:05 UTC (rev 1162)
@@ -6,6 +6,8 @@
<script type="text/javascript" language="javascript"
src="/ws/ws.nocache.js"></script>
</head>
+<!-- FIXME: make something local -->
+<link href='http://fonts.googleapis.com/css?family=Droid+Sans' rel='stylesheet' type='text/css'>
<body>
<iframe id="__gwt_historyFrame" style="width: 0; height: 0; border: 0"></iframe>
<iframe src="" id="__download" style="width: 0; height: 0; border: 0"></iframe>
1
0
r1161 - in kune-ws-armor/trunk: . .settings src/org/ourproject/kune/ws/armor src/org/ourproject/kune/ws/armor/client src/org/ourproject/kune/ws/armor/client/resources target target/maven-archiver war war/WEB-INF/lib
by Vicente J. Ruiz Jurado 08 Dec '10
by Vicente J. Ruiz Jurado 08 Dec '10
08 Dec '10
Author: vjrj_
Date: 2010-12-08 20:58:37 +0100 (Wed, 08 Dec 2010)
New Revision: 1161
Added:
kune-ws-armor/trunk/.settings/com.google.appengine.eclipse.core.prefs
kune-ws-armor/trunk/.settings/org.eclipse.jdt.core.prefs
kune-ws-armor/trunk/.settings/org.maven.ide.eclipse.prefs
kune-ws-armor/trunk/pom.xml
kune-ws-armor/trunk/target/
kune-ws-armor/trunk/target/kune-ws-armor-0.0.4.jar
kune-ws-armor/trunk/target/kune-ws-armor-0.0.4/
kune-ws-armor/trunk/target/maven-archiver/
kune-ws-armor/trunk/target/maven-archiver/pom.properties
Removed:
kune-ws-armor/trunk/war/WEB-INF/lib/gwt-servlet.jar
Modified:
kune-ws-armor/trunk/.classpath
kune-ws-armor/trunk/.project
kune-ws-armor/trunk/.settings/com.google.gwt.eclipse.core.prefs
kune-ws-armor/trunk/src/org/ourproject/kune/ws/armor/WsArmor.gwt.xml
kune-ws-armor/trunk/src/org/ourproject/kune/ws/armor/client/Body.ui.xml
kune-ws-armor/trunk/src/org/ourproject/kune/ws/armor/client/resources/WsArmorResources.java
kune-ws-armor/trunk/war/WsArmor.css
Log:
NEW - # 6: Common Actions integration
http://kune.ourproject.org/issues/ticket/6
CLOSED - # 5: Guin and MVC4p integration
http://kune.ourproject.org/issues/ticket/5
Modified: kune-ws-armor/trunk/.classpath
===================================================================
--- kune-ws-armor/trunk/.classpath 2010-12-08 15:21:36 UTC (rev 1160)
+++ kune-ws-armor/trunk/.classpath 2010-12-08 19:58:37 UTC (rev 1161)
@@ -2,6 +2,17 @@
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
- <classpathentry kind="con" path="com.google.gwt.eclipse.core.GWT_CONTAINER/GWT (3)"/>
+ <classpathentry kind="var" path="M2_REPO/com/google/gwt/gwt-servlet/2.1.0/gwt-servlet-2.1.0.jar" sourcepath="M2_REPO/com/google/gwt/gwt-servlet/2.1.0/gwt-servlet-2.1.0-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/com/google/gwt/gwt-user/2.1.0/gwt-user-2.1.0.jar" sourcepath="M2_REPO/com/google/gwt/gwt-user/2.1.0/gwt-user-2.1.0-sources.jar"/>
+ <classpathentry kind="lib" path="/home/vjrj/bin/eclipse64-hel/plugins/com.google.gwt.eclipse.sdkbundle.2.1.0_2.1.0.v201010280102/gwt-2.1.0/gwt-user.jar">
+ <attributes>
+ <attribute name="javadoc_location" value="file:/home/vjrj/bin/eclipse64-hel/plugins/com.google.gwt.eclipse.sdkbundle.2.1.0_2.1.0.v201010280102/gwt-2.1.0/doc/javadoc/"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="lib" path="/home/vjrj/bin/eclipse64-hel/plugins/com.google.gwt.eclipse.sdkbundle.2.1.0_2.1.0.v201010280102/gwt-2.1.0/gwt-dev.jar">
+ <attributes>
+ <attribute name="javadoc_location" value="file:/home/vjrj/bin/eclipse64-hel/plugins/com.google.gwt.eclipse.sdkbundle.2.1.0_2.1.0.v201010280102/gwt-2.1.0/doc/javadoc/"/>
+ </attributes>
+ </classpathentry>
<classpathentry kind="output" path="war/WEB-INF/classes"/>
</classpath>
Modified: kune-ws-armor/trunk/.project
===================================================================
--- kune-ws-armor/trunk/.project 2010-12-08 15:21:36 UTC (rev 1160)
+++ kune-ws-armor/trunk/.project 2010-12-08 19:58:37 UTC (rev 1161)
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
- <name>ws-armor</name>
- <comment></comment>
+ <name>kune-ws-armor</name>
+ <comment>The current armor of Kune Workspace</comment>
<projects>
</projects>
<buildSpec>
@@ -16,6 +16,11 @@
</arguments>
</buildCommand>
<buildCommand>
+ <name>org.maven.ide.eclipse.maven2Builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
<name>com.google.gdt.eclipse.core.webAppProjectValidator</name>
<arguments>
</arguments>
@@ -27,6 +32,7 @@
</buildCommand>
</buildSpec>
<natures>
+ <nature>org.maven.ide.eclipse.maven2Nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>com.instantiations.designer.gwt.GWTNature</nature>
<nature>com.google.gwt.eclipse.core.gwtNature</nature>
Added: kune-ws-armor/trunk/.settings/com.google.appengine.eclipse.core.prefs
===================================================================
--- kune-ws-armor/trunk/.settings/com.google.appengine.eclipse.core.prefs (rev 0)
+++ kune-ws-armor/trunk/.settings/com.google.appengine.eclipse.core.prefs 2010-12-08 19:58:37 UTC (rev 1161)
@@ -0,0 +1,3 @@
+#Wed Dec 08 20:22:01 CET 2010
+eclipse.preferences.version=1
+filesCopiedToWebInfLib=
Property changes on: kune-ws-armor/trunk/.settings/com.google.appengine.eclipse.core.prefs
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: kune-ws-armor/trunk/.settings/com.google.gwt.eclipse.core.prefs
===================================================================
--- kune-ws-armor/trunk/.settings/com.google.gwt.eclipse.core.prefs 2010-12-08 15:21:36 UTC (rev 1160)
+++ kune-ws-armor/trunk/.settings/com.google.gwt.eclipse.core.prefs 2010-12-08 19:58:37 UTC (rev 1161)
@@ -1,5 +1,5 @@
-#Sun Dec 05 02:43:22 CET 2010
+#Wed Dec 08 12:57:07 CET 2010
eclipse.preferences.version=1
entryPointModules=
-filesCopiedToWebInfLib=gwt-servlet.jar
+filesCopiedToWebInfLib=
gwtCompileSettings=PGd3dC1jb21waWxlLXNldHRpbmdzPjxsb2ctbGV2ZWw+SU5GTzwvbG9nLWxldmVsPjxvdXRwdXQtc3R5bGU+T0JGVVNDQVRFRDwvb3V0cHV0LXN0eWxlPjxleHRyYS1hcmdzPjwhW0NEQVRBW11dPjwvZXh0cmEtYXJncz48dm0tYXJncz48IVtDREFUQVstWG14NTEybV1dPjwvdm0tYXJncz48L2d3dC1jb21waWxlLXNldHRpbmdzPg\=\=
Added: kune-ws-armor/trunk/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- kune-ws-armor/trunk/.settings/org.eclipse.jdt.core.prefs (rev 0)
+++ kune-ws-armor/trunk/.settings/org.eclipse.jdt.core.prefs 2010-12-08 19:58:37 UTC (rev 1161)
@@ -0,0 +1,3 @@
+#Wed Dec 08 20:27:44 CET 2010
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
Property changes on: kune-ws-armor/trunk/.settings/org.eclipse.jdt.core.prefs
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: kune-ws-armor/trunk/.settings/org.maven.ide.eclipse.prefs
===================================================================
--- kune-ws-armor/trunk/.settings/org.maven.ide.eclipse.prefs (rev 0)
+++ kune-ws-armor/trunk/.settings/org.maven.ide.eclipse.prefs 2010-12-08 19:58:37 UTC (rev 1161)
@@ -0,0 +1,8 @@
+#Wed Dec 08 00:31:12 CET 2010
+activeProfiles=
+eclipse.preferences.version=1
+fullBuildGoals=process-test-resources
+resolveWorkspaceProjects=true
+resourceFilterGoals=process-resources resources\:testResources
+skipCompilerPlugin=true
+version=1
Property changes on: kune-ws-armor/trunk/.settings/org.maven.ide.eclipse.prefs
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: kune-ws-armor/trunk/pom.xml
===================================================================
--- kune-ws-armor/trunk/pom.xml (rev 0)
+++ kune-ws-armor/trunk/pom.xml 2010-12-08 19:58:37 UTC (rev 1161)
@@ -0,0 +1,70 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>kune-ws-armor</groupId>
+ <artifactId>kune-ws-armor</artifactId>
+ <version>0.0.4</version>
+ <name>Kune Armor Main Layout</name>
+ <description>The current armor of Kune Workspace</description>
+ <properties>
+ <!-- Available versions: http://repo1.maven.org/maven2/com/google/gwt/gwt-dev/ -->
+ <gwtVersion>2.1.0</gwtVersion>
+ <maven.compiler.source>1.6</maven.compiler.source>
+ <maven.compiler.target>1.6</maven.compiler.target>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ </properties>
+ <dependencies>
+ <dependency>
+ <groupId>com.google.gwt</groupId>
+ <artifactId>gwt-servlet</artifactId>
+ <version>${gwtVersion}</version>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.google.gwt</groupId>
+ <artifactId>gwt-user</artifactId>
+ <version>${gwtVersion}</version>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>gwt-maven-plugin</artifactId>
+ <version>2.1.0-1</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>compile</goal>
+ <goal>test</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <version>2.2</version>
+ <executions>
+ <execution>
+ <id>core</id>
+ <phase>package</phase>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ <outputDirectory>war/WEB-INF/classes</outputDirectory>
+ <testOutputDirectory>war/WEB-INF/test-classes</testOutputDirectory>
+ <sourceDirectory>src</sourceDirectory>
+ <testSourceDirectory>test</testSourceDirectory>
+ <resources>
+ <resource>
+ <directory>src</directory>
+ </resource>
+ </resources>
+ </build>
+</project>
Property changes on: kune-ws-armor/trunk/pom.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: kune-ws-armor/trunk/src/org/ourproject/kune/ws/armor/WsArmor.gwt.xml
===================================================================
--- kune-ws-armor/trunk/src/org/ourproject/kune/ws/armor/WsArmor.gwt.xml 2010-12-08 15:21:36 UTC (rev 1160)
+++ kune-ws-armor/trunk/src/org/ourproject/kune/ws/armor/WsArmor.gwt.xml 2010-12-08 19:58:37 UTC (rev 1161)
@@ -1,6 +1,8 @@
+<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.1.0//EN" "http://google-web-toolkit.googlecode.com/svn/tags/2.1.0/distro-source/core/…">
<module>
<inherits name="com.google.gwt.user.User" />
<inherits name="com.google.gwt.user.theme.standard.Standard" />
- <entry-point class="org.ourproject.kune.ws.armor.client.WsArmor" />
+ <!-- <entry-point class="org.ourproject.kune.ws.armor.client.WsArmor" /> -->
<public path="public" />
+ <source path="client" />
</module>
\ No newline at end of file
Modified: kune-ws-armor/trunk/src/org/ourproject/kune/ws/armor/client/Body.ui.xml
===================================================================
--- kune-ws-armor/trunk/src/org/ourproject/kune/ws/armor/client/Body.ui.xml 2010-12-08 15:21:36 UTC (rev 1160)
+++ kune-ws-armor/trunk/src/org/ourproject/kune/ws/armor/client/Body.ui.xml 2010-12-08 19:58:37 UTC (rev 1161)
@@ -40,277 +40,7 @@
</g:east>
<g:center>
<g:ScrollPanel styleName="{res.style.docEditor}">
- <g:HTML wordWrap="true" width="100%" height="100%">吗
- 台湾
- 六种辅音韵尾
- 中国政府要求在中国出售的软件必须使用编码
- 过 国标
- 名词的复数形式只在代词及多音节
- 台湾和港澳三地日益加深的经济联系
- 白话
- 如上面提到的
- 个例外可能是
- 个有意思的问题是中文数据的繁简体转换
- 看
- 就有明显的区别
- 推广普通话的效率
- 虽然不同方言区的人们可能不能互相理解对方的语音
- 吗 另外,
- 汉语维基百科
- 公元前世纪到世纪
- 随着中国大陆政治上的影响不断增加
- 韩语 上, 文言
- 新 唐朝和宋朝
- 历史书书经以及部分的易经
- 上古汉语存在于周朝前期和中期
- 过
- 助词等所构成的句法复杂程度却又大大地超过了以拉丁语为例的曲折性语言
- 但客家话是在北方移民南下影响中形成的
- 例如 和 四川
- 诗经集
- 无论那个年龄层次
- 相隔只有十公里的当地居民也许已经不能互相理解了,
- 根据广韵所反映的
- 在现代汉语的书面语中
- 由于闽南语的内部分歧比较大
- 打 繁化
- 汉语与欧洲语言
- 大陆直至年代
- 台湾和港澳三地日益加深的经济联系
- 香港 上, 过
- 通常 公元年
- 根据根据切韵涉及到的,
- 大陆称为普通话
- 助词也用来表达问句问句的语序与陈述句的语序相同
- 和 日语 华语
- 未来汉字的发展
- 汉语还有套复杂的系统用于区分方向
- 有很多文化上的保守人士认为简体中文是不纯的和
- 过 最后 看
- 辞海和辞源等汉语言工具书
- 迫使民间跨越两种书写体系的障碍
- 中国古代的文学家花费了很大的精力来总结汉语的语音体系,
- 广东东部
- 揭开中文的历史是个很有趣的问题
- 在山西绝大部分以及陕西北部
- 大陆 上 然而
- 相隔只有十公里的当地居民也许已经不能互相理解了
- 本地语被认为是更加亲切而用于家庭成员及日常生活中
- 新, 通常说来
- 时态等的曲折变化
- 直到上世纪年代中期
- 了 共有 对多
- 韵书以对外语的翻译
- 菲律宾和南亚的些国家使用
- 过 通常
- 它可以分为早期
- 虽然不同方言区的人们可能不能互相理解对方的语音
- 打碎 格 成语
- 虽然他们可能不能相互理解
- 事实上也没有因为简繁字体的不通出现交流障碍
- 上, 头
- 不同于欧洲的很多具有曲折变化的语言
- 大陆的书法界有的倒是比较流行以繁体汉字来书写
- 通常 上 为例
- 极少混淆
- 通常分为闽北方言
- 港澳和海外的华人圈中
- 共有 头
- 汉语与欧洲语言
- 有人认为应看上文下理
- 繁体有些书写形式更有美感
- 澳门和海外华人中间
- 的简体转化为繁体编码就要困难的多
- 国标 看,
- 莆仙方言
- 及双峰话 昨天
- 性 云南 湘方言
- 请参看汉字 上
- 大陆 体 并举出
- 看不懂
- 但在文化层面而言,
- 另外
- 就有明显的区别
- 如罗曼语族语言相比
- 粤方言是汉语中声调最复杂的方言之
- 体 及
- 为基础的书面语
- 在安徽南部地区使用
- 晋语, 汉字 性
- 是个量词
- 现代方言的多样性
- 在汉语中有大量的量词
- 徽语 看
- 汉语属于独立语
- 中国国家标准的简称
- 过 以后
- 就有明显的区别
- 中文等称呼都是指汉语
- 人们使用繁体中文编码时可以很方便地转换成
- 徽语 性
- 北方方言
- 中文的词汇只有种形式而没有诸如复数
- 然而汉语之所以能统称为汉语
- 简体字危及了对古代文学的研究
- 或 汉字, 北部
- 如 文化交流
- 汉语具有很多不同的方言
- 雅言 或 南京话
- 但是在不同的场合,
- 四川 上
- 它可以分为早期
- 北方话的声调较少
- 诗歌的韵律以及对外国人名的翻译中可以找到足够的信息
- 晋语 了
- 中古汉语中的
- 使用这方言的人占中国人口的,
- 但是在不同的场合
- 杭州人却倾向于认为他们的方言与上海话不同
- 新 因此 文言
- 如
- 是种以孔子时代所使用的以
- 有人认为台湾识字率并不逊于中国大陆,
- 汉字 吴方言
- 编码收集了汉语
- 亦令繁简变换变得困难
- 及 看 汉字编码
- 现在尚有争议
- 最新的版本是
- 昨天 体 相反
- 普通人都认识繁体汉字
- 北方方言的明显特点包括
- 汉语也曾对其周边的国家的语言文字产生过重要影响,
- 头 请参看汉字
- 商务交流和快速的因特网络
- 中国南方的人都可以流利的使用本地语和普通话
- 日语 看
- 并不被中国政府很好的接受
- 操北方话的北方人般可以相互理解然而在福建
- 日语 繁化 的码
- 极少混淆
- 可能是任何人也难以预料的
- 格, 找 以后
- 极少混淆
- 编码收集了汉语
- 个人可以生产简体向繁体转换的转换软件
- 为代表
- 菲律宾和南亚的些国家使用
- 相反 打, 海南
- 中古汉语也可以由方言重建
- 粤方言是汉语中声调最复杂的方言之
- 头, 老
- 我去过书店
- 人们会自动进行语码转换
- 汉语的书写系统目前有繁体和简体两种
- 共有 走 实际上
- 因为国标在大陆使用
- 港澳和海外的华人圈中
- 平话, 看 四川
- 在汉字
- 在江苏南部, 了
- 找到 闽东方言
- 来表达疑问语气
- 并不被中国政府很好的接受
- 和
- 使用人数大约为总人口的
- 成都话为北方方言的代表
- 徽语, 打 对多
- 汉语中存在
- 内蒙古河套地区等地使用
- 通常 打
- 通常认为是赣方言的种
- 由于日常使用和文学上使用的文字不同
- 例如, 贵州 体
- 湘方言以长沙话
- 根据广韵所反映的
- 所有的国标标准都使用作为前缀
- 昨天 找 湘方言
- 指北方地区
- 四川 性
- 极少混淆
- 这些资料仍然是现代语言学家工作的基础
- 主要用于广东省
- 同时也是保留中古汉语最完整的方言
- 杭州人却倾向于认为他们的方言与上海话不同
- 共有 过,
- 其中的
- 不是简化
- 江西沿江地区
- 同时 打 因此
- 和
- 使用于庄重的场合
- 普通话被认为是种更加正式的语言,
- 老
- 六种辅音韵尾
- 汉语是世界上使用人数最多的种语言
- 韩语 北京话
- 客家方言
- 在山西绝大部分以及陕西北部
- 打 香港, 日语
- 阳平二声
- 因此必须说
- 中国国家标准的简称
- 老 例如 上
- 平声已分为阴平
- 因为国标在大陆使用,
- 找到 不知是指
- 在另方面
- 它保存在了周德清在世纪初撰写的韵书中原音韵中
- 走 华语 体
- 另外大陆地区
- 简体字危及了对古代文学的研究,
- 另外 看 湘方言
- 用手进行大量书写的情况极少
- 吗
- 使用人数约为
- 只使用末尾的语气助词
- 云南, 大陆 打
- 文化交流
- 例如在普通话中的
- 和 为例
- 使用人数约为
- 这种汉语使用于隋朝,
- 头
- 四种辅音韵尾
- 两位或四位编码
- 以厦门话为代表
- 昨天
- 无论那个年龄层次
- 使用粤方言的人口大约为总数的
- 这些资料仍然是现代语言学家工作的基础
- 海南 走, 最后
- 过
- 在这七大方言内部
- 文言已经很少使用了
- 或
- 世界上大约有
- 但可以通过相同书写方式进行沟通及交流
- 打碎
- 简繁有差异的字不到
- 他主要研究汉字和形式和诗经的韵律
- 贵州 和
- 成都话为北方方言的代表
- 但可以通过相同书写方式进行沟通及交流
- 在不同的方言区的人的语言意识也有定的区别
- 性 然而, 例如
- 及
- 湘方言以长沙话
- 只使用末尾的语气助词
- 北部
- 世界上大约有
- 现代方言的多样性
- 看, 走 而不是
- 北方方言包含了大量的同音字以及相应产生的复合词
- 为例 毫无疑问
- 助词也用来表达问句问句的语序与陈述句的语序相同
- 体 国标,
- 但在台湾
- 中国的不同方言的语法是相似的
- 这种方言对清浊辅音的区分是个很明显的特点
- 或 为例, 如
- 他主要研究汉字和形式和诗经的韵律
- 汉语的名词与数词连接时通常要求有量词
- 晋语</g:HTML>
+ <g:HTML wordWrap="true" width="100%" height="100%"></g:HTML>
</g:ScrollPanel>
</g:center>
<g:south size="33.0">
Modified: kune-ws-armor/trunk/src/org/ourproject/kune/ws/armor/client/resources/WsArmorResources.java
===================================================================
--- kune-ws-armor/trunk/src/org/ourproject/kune/ws/armor/client/resources/WsArmorResources.java 2010-12-08 15:21:36 UTC (rev 1160)
+++ kune-ws-armor/trunk/src/org/ourproject/kune/ws/armor/client/resources/WsArmorResources.java 2010-12-08 19:58:37 UTC (rev 1161)
@@ -43,6 +43,7 @@
String siteBar();
}
+ @Deprecated
public static final WsArmorResources INSTANCE = GWT.create(WsArmorResources.class);
@Source("def-theme-doc-arrow-down.png")
Added: kune-ws-armor/trunk/target/kune-ws-armor-0.0.4.jar
===================================================================
(Binary files differ)
Property changes on: kune-ws-armor/trunk/target/kune-ws-armor-0.0.4.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: kune-ws-armor/trunk/target/maven-archiver/pom.properties
===================================================================
--- kune-ws-armor/trunk/target/maven-archiver/pom.properties (rev 0)
+++ kune-ws-armor/trunk/target/maven-archiver/pom.properties 2010-12-08 19:58:37 UTC (rev 1161)
@@ -0,0 +1,5 @@
+#Generated by Maven
+#Wed Dec 08 20:41:22 CET 2010
+version=0.0.4
+groupId=kune-ws-armor
+artifactId=kune-ws-armor
Property changes on: kune-ws-armor/trunk/target/maven-archiver/pom.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Deleted: kune-ws-armor/trunk/war/WEB-INF/lib/gwt-servlet.jar
===================================================================
(Binary files differ)
Modified: kune-ws-armor/trunk/war/WsArmor.css
===================================================================
--- kune-ws-armor/trunk/war/WsArmor.css 2010-12-08 15:21:36 UTC (rev 1160)
+++ kune-ws-armor/trunk/war/WsArmor.css 2010-12-08 19:58:37 UTC (rev 1161)
@@ -1,130 +1,135 @@
-body {
- background-color: white;
- color: black;
- font-family: 'UbuntuRegular', Arial;
- font-size: small;
- margin: 5px;
+body {
+ background-color: white;
+ color: black;
+ font-family: 'UbuntuRegular', Arial;
+ font-size: small;
+ margin: 5px;
}
-body.fontface {font: 'UbuntuRegular', Arial;}
+body.fontface {
+ font: 'UbuntuRegular', Arial;
+}
-a {
- color: darkblue;
+a {
+ color: darkblue;
}
-a:visited {
- color: darkblue;
+a:visited {
+ color: darkblue;
}
.gwt-DialogBox {
- border: 2px solid #AAAAAA;
- background-color: white;
+ border: 2px solid #AAAAAA;
+ background-color: white;
}
.gwt-DialogBox .Caption {
- background-image: url(gray_gradient.gif);
- background-repeat: repeat-x;
- padding: 4px;
- padding-bottom: 8px;
- font-weight: bold;
- cursor: default;
+ background-image: url(gray_gradient.gif);
+ background-repeat: repeat-x;
+ padding: 4px;
+ padding-bottom: 8px;
+ font-weight: bold;
+ cursor: default;
}
.gwt-MenuBar {
- background-color: #C3D9FF;
- cursor: default;
+ background-color: #C3D9FF;
+ cursor: default;
}
.gwt-MenuItem {
- font-size: 80%;
- margin: 1px;
- cursor: default;
+ font-size: 80%;
+ margin: 1px;
+ cursor: default;
}
.gwt-MenuItem-selected {
- background-color: #E8EEF7;
+ background-color: #E8EEF7;
}
.gwt-Tree {
+
}
.gwt-Tree .gwt-TreeItem {
- font-size: 80%;
- cursor: default;
+ font-size: 80%;
+ cursor: default;
}
.gwt-Tree .gwt-TreeItem-selected {
- background-color: #C3D9FF;
+ background-color: #C3D9FF;
}
.gwt-StackPanel {
- background-color: white;
- border: 1px solid #AAAAAA;
- width: 15em;
+ background-color: white;
+ border: 1px solid #AAAAAA;
+ width: 15em;
}
.gwt-StackPanel .gwt-StackPanelItem {
- background-image: url(blue_gradient.gif);
- background-repeat: repeat-x;
- background-color: #EEEEEE;
- cursor: pointer;
- cursor: hand;
+ background-image: url(blue_gradient.gif);
+ background-repeat: repeat-x;
+ background-color: #EEEEEE;
+ cursor: pointer;
+ cursor: hand;
}
.gwt-StackPanel .gwt-StackPanelItem-selected {
+
}
.gwt-TabPanel {
-
+
}
.gwt-TabPanelBottom {
- border-left: 1px solid #87b3ff;
- border-right: 1px solid #87b3ff;
- border-bottom: 1px solid #87b3ff;
+ border-left: 1px solid #87b3ff;
+ border-right: 1px solid #87b3ff;
+ border-bottom: 1px solid #87b3ff;
}
.gwt-TabBar {
- font-size: smaller;
+ font-size: smaller;
}
.gwt-TabBar .gwt-TabBarFirst {
- height: 100%;
- border-bottom: 1px solid #87b3ff;
- border-right: 1px solid #87b3ff;
- padding-left: 3px;
+ height: 100%;
+ border-bottom: 1px solid #87b3ff;
+ border-right: 1px solid #87b3ff;
+ padding-left: 3px;
}
.gwt-TabBar .gwt-TabBarRest {
- border-bottom: 1px solid #87b3ff;
- padding-right: 3px;
+ border-bottom: 1px solid #87b3ff;
+ padding-right: 3px;
}
.gwt-TabBar .gwt-TabBarItem {
- border-top: 1px solid #87b3ff;
- border-bottom: 1px solid #87b3ff;
- padding: 2px;
- cursor: hand;
- white-space: nowrap;
- border-right: 1px solid #87b3ff;
+ border-top: 1px solid #87b3ff;
+ border-bottom: 1px solid #87b3ff;
+ padding: 2px;
+ cursor: hand;
+ white-space: nowrap;
+ border-right: 1px solid #87b3ff;
}
.gwt-TabBar .gwt-TabBarItem-selected {
- font-weight: bold;
- background-color: #e8eef7;
- border-top: 1px solid #87b3ff;
- border-right: 1px solid #87b3ff;
- border-bottom: 1px solid #e8eef7;
- padding: 2px;
- cursor: default;
- white-space: nowrap;
+ font-weight: bold;
+ background-color: #e8eef7;
+ border-top: 1px solid #87b3ff;
+ border-right: 1px solid #87b3ff;
+ border-bottom: 1px solid #e8eef7;
+ padding: 2px;
+ cursor: default;
+ white-space: nowrap;
}
.gwt-PushButton-up {
background-color: #C3D9FF;
padding: 2px;
border: 2px solid transparent;
- border-color: #E8F1FF rgb(157, 174, 205) rgb(157, 174, 205) rgb(232, 241, 255);
+ border-color: #E8F1FF rgb(157, 174, 205) rgb(157, 174, 205)
+ rgb(232, 241, 255);
cursor: pointer;
cursor: hand;
}
@@ -133,7 +138,8 @@
background-color: #C3D9FF;
padding: 2px;
border: 2px solid transparent;
- border-color: #E8F1FF rgb(157, 174, 205) rgb(157, 174, 205) rgb(232, 241, 255);
+ border-color: #E8F1FF rgb(157, 174, 205) rgb(157, 174, 205)
+ rgb(232, 241, 255);
cursor: pointer;
cursor: hand;
}
@@ -142,7 +148,8 @@
background-color: #C3D9FF;
padding: 2px;
border: 2px solid transparent;
- border-color: #9DAECD rgb(232, 241, 255) rgb(232, 241, 255) rgb(157, 174, 205);
+ border-color: #9DAECD rgb(232, 241, 255) rgb(232, 241, 255)
+ rgb(157, 174, 205);
cursor: pointer;
cursor: hand;
}
@@ -151,7 +158,8 @@
background-color: #C3D9FF;
padding: 2px;
border: 2px solid transparent;
- border-color: #9DAECD rgb(232, 241, 255) rgb(232, 241, 255) rgb(157, 174, 205);
+ border-color: #9DAECD rgb(232, 241, 255) rgb(232, 241, 255)
+ rgb(157, 174, 205);
cursor: pointer;
cursor: hand;
}
@@ -160,7 +168,8 @@
background-color: #C3D9FF;
padding: 2px;
border: 2px solid transparent;
- border-color: #E8F1FF rgb(157, 174, 205) rgb(157, 174, 205) rgb(232, 241, 255);
+ border-color: #E8F1FF rgb(157, 174, 205) rgb(157, 174, 205)
+ rgb(232, 241, 255);
cursor: pointer;
cursor: hand;
}
@@ -169,7 +178,8 @@
background-color: #C3D9FF;
padding: 2px;
border: 2px solid transparent;
- border-color: #E8F1FF rgb(157, 174, 205) rgb(157, 174, 205) rgb(232, 241, 255);
+ border-color: #E8F1FF rgb(157, 174, 205) rgb(157, 174, 205)
+ rgb(232, 241, 255);
cursor: pointer;
cursor: hand;
}
@@ -179,7 +189,8 @@
padding: 2px;
background-color: #E8F1FF;
border: 2px solid transparent;
- border-color: #9DAECD rgb(232, 241, 255) rgb(232, 241, 255) rgb(157, 174, 205);
+ border-color: #9DAECD rgb(232, 241, 255) rgb(232, 241, 255)
+ rgb(157, 174, 205);
cursor: pointer;
cursor: hand;
}
@@ -189,7 +200,8 @@
padding: 2px;
background-color: #E8F1FF;
border: 2px solid transparent;
- border-color: #9DAECD rgb(232, 241, 255) rgb(232, 241, 255) rgb(157, 174, 205);
+ border-color: #9DAECD rgb(232, 241, 255) rgb(232, 241, 255)
+ rgb(157, 174, 205);
cursor: pointer;
cursor: hand;
}
@@ -212,19 +224,22 @@
.gwt-RichTextToolbar .gwt-PushButton-up-hovering {
margin-right: 2px;
border: 1px solid #C3D9FF;
- border-color: #E8F1FF rgb(157, 174, 205) rgb(157, 174, 205) rgb(232, 241, 255);
+ border-color: #E8F1FF rgb(157, 174, 205) rgb(157, 174, 205)
+ rgb(232, 241, 255);
}
.gwt-RichTextToolbar .gwt-PushButton-down {
margin-right: 2px;
border: 1px solid #C3D9FF;
- border-color: #9DAECD rgb(232, 241, 255) rgb(232, 241, 255) rgb(157, 174, 205);
+ border-color: #9DAECD rgb(232, 241, 255) rgb(232, 241, 255)
+ rgb(157, 174, 205);
}
.gwt-RichTextToolbar .gwt-PushButton-down-hovering {
margin-right: 2px;
border: 1px solid #C3D9FF;
- border-color: #9DAECD rgb(232, 241, 255) rgb(232, 241, 255) rgb(157, 174, 205);
+ border-color: #9DAECD rgb(232, 241, 255) rgb(232, 241, 255)
+ rgb(157, 174, 205);
}
.gwt-RichTextToolbar .gwt-ToggleButton-up {
@@ -235,30 +250,33 @@
.gwt-RichTextToolbar .gwt-ToggleButton-up-hovering {
margin-right: 2px;
border: 1px solid #C3D9FF;
- border-color: #E8F1FF rgb(157, 174, 205) rgb(157, 174, 205) rgb(232, 241, 255);
+ border-color: #E8F1FF rgb(157, 174, 205) rgb(157, 174, 205)
+ rgb(232, 241, 255);
}
.gwt-RichTextToolbar .gwt-ToggleButton-down {
margin-right: 2px;
background-color: #E8F1FF;
border: 1px solid #C3D9FF;
- border-color: #9DAECD rgb(232, 241, 255) rgb(232, 241, 255) rgb(157, 174, 205);
+ border-color: #9DAECD rgb(232, 241, 255) rgb(232, 241, 255)
+ rgb(157, 174, 205);
}
.gwt-RichTextToolbar .gwt-ToggleButton-down-hovering {
margin-right: 2px;
background-color: #E8F1FF;
border: 1px solid #C3D9FF;
- border-color: #9DAECD rgb(232, 241, 255) rgb(232, 241, 255) rgb(157, 174, 205);
+ border-color: #9DAECD rgb(232, 241, 255) rgb(232, 241, 255)
+ rgb(157, 174, 205);
}
.gwt-HorizontalSplitPanel {
- border: 8px solid #C3D9FF;
+ border: 8px solid #C3D9FF;
}
.gwt-HorizontalSplitPanel .splitter {
- background-color: #C3D9FF;
- cursor: move;
+ background-color: #C3D9FF;
+ cursor: move;
}
.gwt-HorizontalSplitPanel .left {
@@ -266,37 +284,106 @@
}
.gwt-VerticalSplitPanel {
- border: 8px solid #C3D9FF;
+ border: 8px solid #C3D9FF;
}
.gwt-VerticalSplitPanel .splitter {
- background-color: #C3D9FF;
- height: 8px;
- cursor: move;
+ background-color: #C3D9FF;
+ height: 8px;
+ cursor: move;
}
.gwt-SuggestBoxPopup {
- border: 2px solid #C3D9FF;
+ border: 2px solid #C3D9FF;
}
.gwt-SuggestBoxPopup .item {
- padding: 2px;
+ padding: 2px;
}
.gwt-SuggestBoxPopup .item-selected {
- background-color: #C3D9FF;
- padding: 2px;
+ background-color: #C3D9FF;
+ padding: 2px;
}
.gwt-DisclosurePanel {
- border: 2px solid #C3D9FF;
+ border: 2px solid #C3D9FF;
}
.gwt-DisclosurePanel .header {
- background-color: #e8eef7;
- cursor: hand;
+ background-color: #e8eef7;
+ cursor: hand;
}
-.gwt-SplitLayoutPanel { }
-.gwt-SplitLayoutPanel .gwt-SplitLayoutPanel-HDragger { background-color: white; background: none; }
-.gwt-SplitLayoutPanel .gwt-SplitLayoutPanel-VDragger { }
+.gwt-SplitLayoutPanel {
+
+}
+
+.gwt-SplitLayoutPanel .gwt-SplitLayoutPanel-HDragger {
+ background-color: white;
+ background: none;
+}
+
+.gwt-SplitLayoutPanel .gwt-SplitLayoutPanel-VDragger {
+
+}
+
+@font-face {
+ font-family: 'UbuntuRegular';
+ src:
+ url('/org.ourproject.kune.ws.armor.WsArmor/fontface/Ubuntu-R-webfont.eot');
+ src: local('☺'),
+ url('/org.ourproject.kune.ws.armor.WsArmor/fontface/Ubuntu-R-webfont.woff')
+ format('woff'),
+ url('/org.ourproject.kune.ws.armor.WsArmor/fontface/Ubuntu-R-webfont.ttf')
+ format('truetype'),
+ url('/org.ourproject.kune.ws.armor.WsArmor/fontface/Ubuntu-R-webfont.svg#webfontcceGD1qN')
+ format('svg');
+ font-weight: normal;
+ font-style: normal;
+}
+
+@font-face {
+ font-family: 'UbuntuItalic';
+ src:
+ url('/org.ourproject.kune.ws.armor.WsArmor/fontface/Ubuntu-I--webfont.eot');
+ src: local('☺'),
+ url('/org.ourproject.kune.ws.armor.WsArmor/fontface/Ubuntu-I--webfont.woff')
+ format('woff'),
+ url('/org.ourproject.kune.ws.armor.WsArmor/fontface/Ubuntu-I--webfont.ttf')
+ format('truetype'),
+ url('/org.ourproject.kune.ws.armor.WsArmor/fontface/Ubuntu-I--webfont.svg#')
+ format('svg');
+ font-weight: normal;
+ font-style: normal;
+}
+
+@font-face {
+ font-family: 'UbuntuBold';
+ src:
+ url('/org.ourproject.kune.ws.armor.WsArmor/fontface/Ubuntu-B---webfont.eot');
+ src: local('☺'),
+ url('/org.ourproject.kune.ws.armor.WsArmor/fontface/Ubuntu-B---webfont.woff')
+ format('woff'),
+ url('/org.ourproject.kune.ws.armor.WsArmor/fontface/Ubuntu-B---webfont.ttf')
+ format('truetype'),
+ url('/org.ourproject.kune.ws.armor.WsArmor/fontface/Ubuntu-B---webfont.svg#')
+ format('svg');
+ font-weight: normal;
+ font-style: normal;
+}
+
+@font-face {
+ font-family: 'UbuntuBoldItalic';
+ src:
+ url('/org.ourproject.kune.ws.armor.WsArmor/fontface/Ubuntu-BI----webfont.eot');
+ src: local('☺'),
+ url('/org.ourproject.kune.ws.armor.WsArmor/fontface/Ubuntu-BI----webfont.woff')
+ format('woff'),
+ url('/org.ourproject.kune.ws.armor.WsArmor/fontface/Ubuntu-BI----webfont.ttf')
+ format('truetype'),
+ url('/org.ourproject.kune.ws.armor.WsArmor/fontface/Ubuntu-BI----webfont.svg#')
+ format('svg');
+ font-weight: normal;
+ font-style: normal;
+}
\ No newline at end of file
1
0
Author: vjrj_
Date: 2010-12-08 16:21:36 +0100 (Wed, 08 Dec 2010)
New Revision: 1160
Added:
trunk/img/template-gen.svg
trunk/src/main/java/cc/
trunk/src/main/java/cc/kune/
trunk/src/main/java/cc/kune/core/
trunk/src/main/java/cc/kune/core/Core.gwt.xml
trunk/src/main/java/cc/kune/core/client/
trunk/src/main/java/cc/kune/core/client/CoreEventBus.java
trunk/src/main/java/cc/kune/core/client/CoreGinModule.java
trunk/src/main/java/cc/kune/core/client/KuneEntryPoint.java
trunk/src/main/java/cc/kune/core/client/ws/
trunk/src/main/java/cc/kune/core/client/ws/CorePresenter.java
trunk/src/main/java/cc/kune/core/client/ws/CoreView.java
trunk/src/main/java/cc/kune/core/public/
trunk/src/main/java/cc/kune/core/public/favicon.ico
trunk/src/main/java/cc/kune/core/public/ws.html
Modified:
trunk/pom.xml
trunk/src/main/java/org/ourproject/kune/app/Kune.gwt.xml
trunk/src/main/java/org/ourproject/kune/app/client/KuneEntryPoint.java
trunk/src/main/java/org/ourproject/kune/app/public/css/kune.css
trunk/src/main/java/org/ourproject/kune/app/public/ws.html
trunk/src/main/java/org/ourproject/kune/chat/client/ChatEngineDefault.java
trunk/src/main/java/org/ourproject/kune/chat/client/ctx/room/AddRoomPanel.java
trunk/src/main/java/org/ourproject/kune/gallery/client/cnt/GalleryFolderContentPanel.java
trunk/src/main/java/org/ourproject/kune/platf/client/actions/MenuItemsContainer.java
trunk/src/main/java/org/ourproject/kune/platf/client/app/ApplicationDefault.java
trunk/src/main/java/org/ourproject/kune/platf/client/ui/gridmenu/CustomMenu.java
trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/basic/RTEditorPanel.java
trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/impl/RichTextAreaImplOldMozilla.java
trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertimg/ext/InsertImageExtPanel.java
trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertlink/abstractlink/InsertLinkAbstractPanel.java
trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertspecialchar/utf8/InsertSpecialUTF8CharPanel.java
trunk/src/main/java/org/ourproject/kune/platf/client/utils/DeferredCommandWrapper.java
trunk/src/main/java/org/ourproject/kune/platf/client/utils/PrefetchUtilities.java
trunk/src/main/java/org/ourproject/kune/workspace/client/search/AbstractLiveSearcherField.java
trunk/src/main/java/org/ourproject/kune/workspace/client/signin/RegisterPanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/siteprogress/SiteProgressPanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/skel/WorkspaceSkeleton.java
trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/GroupMembersSummaryPanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/upload/FileUploaderDialog.java
trunk/src/main/java/org/ourproject/kune/workspace/client/wave/WaveInsertPanel.java
trunk/war/WEB-INF/web.xml
Log:
CLOSED - # 5: Guin and MVC4p integration
http://kune.ourproject.org/issues/ticket/5
CLOSED - # 4: Gwt 2.1.0 and mvn cleanup
http://kune.ourproject.org/issues/ticket/4
Added: trunk/img/template-gen.svg
===================================================================
--- trunk/img/template-gen.svg (rev 0)
+++ trunk/img/template-gen.svg 2010-12-08 15:21:36 UTC (rev 1160)
@@ -0,0 +1,322 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="1052.3622"
+ height="744.09448"
+ id="svg2"
+ version="1.1"
+ inkscape:version="0.48.0 r9654"
+ sodipodi:docname="template-gen.svg">
+ <defs
+ id="defs4">
+ <linearGradient
+ inkscape:collect="always"
+ id="linearGradient3262">
+ <stop
+ style="stop-color:#b3b3b3;stop-opacity:1;"
+ offset="0"
+ id="stop3264" />
+ <stop
+ style="stop-color:#b3b3b3;stop-opacity:0;"
+ offset="1"
+ id="stop3266" />
+ </linearGradient>
+ <linearGradient
+ inkscape:collect="always"
+ xlink:href="#linearGradient3262"
+ id="linearGradient3268"
+ x1="22"
+ y1="59.094482"
+ x2="188"
+ y2="55.094482"
+ gradientUnits="userSpaceOnUse" />
+ <linearGradient
+ inkscape:collect="always"
+ xlink:href="#linearGradient3262"
+ id="linearGradient3272"
+ gradientUnits="userSpaceOnUse"
+ x1="22"
+ y1="59.094482"
+ x2="188"
+ y2="55.094482"
+ gradientTransform="translate(0,358.2677)" />
+ <linearGradient
+ inkscape:collect="always"
+ xlink:href="#linearGradient3262"
+ id="linearGradient3276"
+ gradientUnits="userSpaceOnUse"
+ gradientTransform="translate(0,408.2677)"
+ x1="22"
+ y1="59.094482"
+ x2="188"
+ y2="55.094482" />
+ <linearGradient
+ inkscape:collect="always"
+ xlink:href="#linearGradient3262"
+ id="linearGradient3280"
+ gradientUnits="userSpaceOnUse"
+ gradientTransform="translate(0,458.2677)"
+ x1="22"
+ y1="59.094482"
+ x2="188"
+ y2="55.094482" />
+ <linearGradient
+ inkscape:collect="always"
+ xlink:href="#linearGradient3262"
+ id="linearGradient3284"
+ gradientUnits="userSpaceOnUse"
+ gradientTransform="translate(0,508.2677)"
+ x1="22"
+ y1="59.094482"
+ x2="188"
+ y2="55.094482" />
+ </defs>
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="1"
+ inkscape:cx="554.16978"
+ inkscape:cy="358.47397"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer1"
+ showgrid="false"
+ inkscape:window-width="1280"
+ inkscape:window-height="975"
+ inkscape:window-x="0"
+ inkscape:window-y="24"
+ inkscape:window-maximized="1" />
+ <metadata
+ id="metadata7">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title></dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="Capa 1"
+ inkscape:groupmode="layer"
+ id="layer1"
+ transform="translate(0,-308.2677)">
+ <rect
+ style="color:#000000;fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:#b3b3b3;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
+ id="rect3192"
+ width="621.91388"
+ height="676.81635"
+ x="209.6339"
+ y="336.8118"
+ ry="0" />
+ <rect
+ style="color:#000000;fill:#b3b3b3;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
+ id="rect3198"
+ width="621"
+ height="31"
+ x="210"
+ y="29.094482"
+ transform="translate(0,308.2677)" />
+ <text
+ xml:space="preserve"
+ style="font-size:14px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans Bold"
+ x="220"
+ y="358.36218"
+ id="text3194"
+ sodipodi:linespacing="125%"><tspan
+ sodipodi:role="line"
+ id="tspan3196"
+ x="220"
+ y="358.36218">Preview</tspan></text>
+ <rect
+ y="-1013.2306"
+ x="-187.341"
+ height="676.41876"
+ width="174.69496"
+ id="rect3206"
+ style="color:#000000;fill:#f2f2f2;stroke:#999999;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
+ transform="scale(-1,-1)" />
+ <rect
+ style="color:#000000;fill:#f2f2f2;stroke:#999999;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
+ id="rect3208"
+ width="6.9878192"
+ height="676.41876"
+ x="-209.63385"
+ y="-1013.2306"
+ transform="scale(-1,-1)" />
+ <g
+ id="g3256">
+ <rect
+ transform="scale(-1,-1)"
+ style="color:#000000;fill:#f2f2f2;stroke:#999999;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
+ id="rect3210"
+ width="15.373183"
+ height="676.41876"
+ x="-202.0193"
+ y="-1013.2306" />
+ <rect
+ transform="scale(-1,-1)"
+ rx="4.891449"
+ style="color:#000000;fill:#b3b3b3;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
+ id="rect3212"
+ width="9.7828979"
+ height="55.902386"
+ x="-199.04945"
+ y="-402.49713"
+ ry="4.891449" />
+ </g>
+ <path
+ transform="matrix(-1,0,0,-1,1040.28,1041.7747)"
+ d="m 836,353.09448 a 1.5,7 0 1 1 -3,0 1.5,7 0 1 1 3,0 z"
+ sodipodi:ry="7"
+ sodipodi:rx="1.5"
+ sodipodi:cy="353.09448"
+ sodipodi:cx="834.5"
+ id="path3214"
+ style="color:#000000;fill:#b3b3b3;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
+ sodipodi:type="arc" />
+ <rect
+ transform="scale(-1,-1)"
+ style="color:#000000;fill:#f2f2f2;stroke:#999999;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
+ id="rect3228"
+ width="15.373183"
+ height="644.41876"
+ x="-831.01929"
+ y="-1013.2306" />
+ <rect
+ transform="scale(-1,-1)"
+ rx="4.891449"
+ style="color:#000000;fill:#b3b3b3;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
+ id="rect3230"
+ width="9.7828979"
+ height="53.257759"
+ x="-828.04944"
+ y="-431.38968"
+ ry="4.891449" />
+ <rect
+ y="-1013.2306"
+ x="-831.01929"
+ height="644.41876"
+ width="15.373183"
+ id="rect3232"
+ style="color:#000000;fill:#f2f2f2;stroke:#999999;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
+ transform="scale(-1,-1)" />
+ <rect
+ ry="4.891449"
+ y="-431.38968"
+ x="-828.04944"
+ height="53.257759"
+ width="9.7828979"
+ id="rect3234"
+ style="color:#000000;fill:#b3b3b3;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
+ rx="4.891449"
+ transform="scale(-1,-1)" />
+ <rect
+ transform="scale(-1,-1)"
+ style="color:#000000;fill:#f2f2f2;stroke:#999999;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
+ id="rect3236"
+ width="15.373183"
+ height="644.41876"
+ x="-831.01929"
+ y="-1013.2306" />
+ <rect
+ transform="scale(-1,-1)"
+ rx="4.891449"
+ style="color:#000000;fill:#b3b3b3;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
+ id="rect3238"
+ width="9.7828979"
+ height="53.257759"
+ x="-828.04944"
+ y="-431.38968"
+ ry="4.891449" />
+ <rect
+ y="-1013.2306"
+ x="-831.01929"
+ height="644.41876"
+ width="15.373183"
+ id="rect3240"
+ style="color:#000000;fill:#f2f2f2;stroke:#999999;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
+ transform="scale(-1,-1)" />
+ <rect
+ ry="4.891449"
+ y="-431.38968"
+ x="-828.04944"
+ height="53.257759"
+ width="9.7828979"
+ id="rect3242"
+ style="color:#000000;fill:#b3b3b3;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
+ rx="4.891449"
+ transform="scale(-1,-1)" />
+ <g
+ id="g3248">
+ <rect
+ y="-1013.2306"
+ x="-831.01929"
+ height="644.41876"
+ width="15.373183"
+ id="rect3244"
+ style="color:#000000;fill:#f2f2f2;stroke:#999999;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
+ transform="scale(-1,-1)" />
+ <rect
+ ry="4.891449"
+ y="-431.38968"
+ x="-828.04944"
+ height="53.257759"
+ width="9.7828979"
+ id="rect3246"
+ style="color:#000000;fill:#b3b3b3;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
+ rx="4.891449"
+ transform="scale(-1,-1)" />
+ </g>
+ <rect
+ style="color:#000000;fill:url(#linearGradient3268);fill-opacity:1;fill-rule:nonzero;stroke:#333333;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
+ id="rect3260"
+ width="168"
+ height="50"
+ x="16"
+ y="31.094482"
+ transform="translate(0,308.2677)" />
+ <rect
+ y="389.36218"
+ x="16"
+ height="50"
+ width="168"
+ id="rect3270"
+ style="color:#000000;fill:url(#linearGradient3272);fill-opacity:1;fill-rule:nonzero;stroke:#333333;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate" />
+ <rect
+ style="color:#000000;fill:url(#linearGradient3276);fill-opacity:1;fill-rule:nonzero;stroke:#333333;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
+ id="rect3274"
+ width="168"
+ height="50"
+ x="16"
+ y="439.36218" />
+ <rect
+ y="489.36218"
+ x="16"
+ height="50"
+ width="168"
+ id="rect3278"
+ style="color:#000000;fill:url(#linearGradient3280);fill-opacity:1;fill-rule:nonzero;stroke:#333333;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate" />
+ <rect
+ style="color:#000000;fill:url(#linearGradient3284);fill-opacity:1;fill-rule:nonzero;stroke:#333333;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
+ id="rect3282"
+ width="168"
+ height="50"
+ x="16"
+ y="539.36218" />
+ </g>
+</svg>
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2010-12-07 22:43:52 UTC (rev 1159)
+++ trunk/pom.xml 2010-12-08 15:21:36 UTC (rev 1160)
@@ -1,11 +1,10 @@
-<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
- <groupId>org.ourproject</groupId>
+ <groupId>cc</groupId>
<artifactId>kune</artifactId>
<packaging>jar</packaging>
- <version>0.0.6</version>
+ <version>0.0.7</version>
<description>
kune free/open/libre collaboration platform
</description>
@@ -26,11 +25,15 @@
<version>2.0.1</version>
</dependency>
<dependency>
+ <groupId>com.googlecode.gwt.inject</groupId>
+ <artifactId>gin</artifactId>
+ <version>1.0</version>
+ </dependency>
+ <dependency>
<groupId>com.google.code.guice</groupId>
<artifactId>guice-servlet</artifactId>
<version>2.0.1</version>
</dependency>
- <!-- GWT dependencies (from maven "central" repo) -->
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-servlet</artifactId>
@@ -43,9 +46,18 @@
<version>${gwtVersion}</version>
<scope>provided</scope>
</dependency>
- <!-- <dependency> <groupId>com.extjs</groupId> <artifactId>gxt</artifactId>
- <version>1.0-beta2</version> </dependency> -->
<dependency>
+ <groupId>com.googlecode.mvp4g</groupId>
+ <artifactId>mvp4g</artifactId>
+ <version>1.2.0</version>
+ </dependency>
+ <dependency>
+ <groupId>com.googlecode.mvc4g</groupId>
+ <artifactId>mvc4g</artifactId>
+ <version>1.0.0-jboss</version>
+ </dependency>
+ <!-- cc -->
+ <dependency>
<groupId>org.cobogw</groupId>
<artifactId>gwt</artifactId>
<version>1.2.2</version>
@@ -70,6 +82,11 @@
<artifactId>gwt-voices</artifactId>
<version>1.6.0</version>
</dependency>
+ <dependency>
+ <groupId>org.ourproject.kune.ws.armor</groupId>
+ <artifactId>ws-armor</artifactId>
+ <version>0.0.3</version>
+ </dependency>
<!-- utilities -->
<dependency>
<groupId>log4j</groupId>
@@ -244,22 +261,21 @@
<version>1.7.0.0</version>
</dependency>
<!-- jetty dependencies -->
+ <!-- <dependency> -->
+ <!-- <groupId>org.mortbay.jetty</groupId> -->
+ <!-- <artifactId>jetty-util</artifactId> -->
+ <!-- <version>6.1.11</version> -->
+ <!-- <version>7.0.0.pre5</version> -->
+ <!-- <scope>provided</scope> -->
+ <!-- </dependency> -->
+ <!-- <dependency> -->
+ <!-- <groupId>org.mortbay.jetty</groupId> -->
+ <!-- <artifactId>jetty-maven-plugin</artifactId> -->
+ <!-- <version>7.2.1.v20101111</version> -->
+ <!-- <artifactId>maven-jetty-plugin</artifactId> <version>6.1.11</version> -->
+ <!-- <scope>runtime</scope> -->
+ <!-- </dependency> -->
<dependency>
- <groupId>org.mortbay.jetty</groupId>
- <artifactId>jetty-util</artifactId>
- <!-- <version>6.1.11</version> -->
- <version>7.0.0.pre5</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.mortbay.jetty</groupId>
- <artifactId>jetty-maven-plugin</artifactId>
- <version>7.2.1.v20101111</version>
- <!-- <artifactId>maven-jetty-plugin</artifactId>
- <version>6.1.11</version> -->
- <scope>runtime</scope>
- </dependency>
- <dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.4</version>
@@ -295,6 +311,7 @@
<groupId>org.jruby.rack</groupId>
<artifactId>jruby-rack</artifactId>
<version>1.0.3</version>
+ <!-- <version>0.9.4</version> -->
</dependency>
<!-- wave -->
<dependency>
@@ -383,8 +400,23 @@
<url>scpexe://kune.ourproject.org/home/groups/kune/htdocs/mavenrepo/</url>
</repository>
</distributionManagement>
- <!-- http://gwt-maven.googlecode.com/svn/docs/maven-googlewebtoolkit2-plugin/ind… -->
<pluginRepositories>
+ <!-- cc -->
+ <pluginRepository>
+ <id>jboss-public-repository-group</id>
+ <name>JBoss Public Maven Repository Group</name>
+ <url>https://repository.jboss.org/nexus/content/groups/public-jboss/</url>
+ <layout>default</layout>
+ <releases>
+ <enabled>true</enabled>
+ <updatePolicy>never</updatePolicy>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ <updatePolicy>never</updatePolicy>
+ </snapshots>
+ </pluginRepository>
+ <!-- cc -->
<!-- <pluginRepository> <id>gwt-maven</id> <url>http://gwt-maven.googlecode.com/svn/trunk/mavenrepo</url>
</pluginRepository> -->
<pluginRepository>
@@ -420,12 +452,26 @@
</releases>
</repository>
<repository>
- <id>repository.jboss.org</id>
- <name>JBoss Maven Repository</name>
- <url>http://repository.jboss.org/maven2</url>
+ <id>jboss-public-repository-group</id>
+ <name>JBoss Public Maven Repository Group</name>
+ <url>https://repository.jboss.org/nexus/content/groups/public-jboss/</url>
<layout>default</layout>
+ <releases>
+ <enabled>true</enabled>
+ <updatePolicy>never</updatePolicy>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ <updatePolicy>never</updatePolicy>
+ </snapshots>
</repository>
<repository>
+ <id>mvp4g.googlecode.releases</id>
+ <name>Releases Repository for Mvp4g</name>
+ <url>http://mvp4g.googlecode.com/svn/maven2/releases/</url>
+ </repository>
+ <!-- cc -->
+ <repository>
<id>dyndns-repo</id>
<url>http://maven.dyndns.org/2</url>
</repository>
@@ -440,10 +486,6 @@
<url>http://kune.ourproject.org/mavenrepo/</url>
</repository>
<repository>
- <id>gwtext</id>
- <url>http://www.gwt-ext.com/maven2/</url>
- </repository>
- <repository>
<id>google-maven-snapshot-repository</id>
<name>Google Maven Snapshot Repository</name>
<url>https://oss.sonatype.org/content/repositories/google-snapshots/</url>
@@ -579,28 +621,15 @@
<wtpversion>2.0</wtpversion>
</configuration>
</plugin>
-<!-- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-war-plugin</artifactId>
- <version>2.1</version>
- <executions>
- <execution>
- <phase>compile</phase>
- <goals>
- <goal>exploded</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <webappDirectory>/war</webappDirectory>
- </configuration>
- </plugin> -->
+ <!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId>
+ <version>2.1</version> <executions> <execution> <phase>compile</phase> <goals>
+ <goal>exploded</goal> </goals> </execution> </executions> <configuration>
+ <webappDirectory>/war</webappDirectory> </configuration> </plugin> -->
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>7.2.1.v20101111</version>
- <!--<artifactId>maven-jetty-plugin</artifactId>
- <version>6.1.14</version> -->
+ <!--<artifactId>maven-jetty-plugin</artifactId> <version>6.1.14</version> -->
<configuration>
<!-- <contextPath>/</contextPath> -->
<!-- <webAppSourceDirectory>${basedir}/target/${project.artifactId}-${version}</webAppSourceDirectory> -->
@@ -813,4 +842,4 @@
</dependencies>
</profile>
</profiles>
-</project>
+</project>
\ No newline at end of file
Added: trunk/src/main/java/cc/kune/core/Core.gwt.xml
===================================================================
--- trunk/src/main/java/cc/kune/core/Core.gwt.xml (rev 0)
+++ trunk/src/main/java/cc/kune/core/Core.gwt.xml 2010-12-08 15:21:36 UTC (rev 1160)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.1.0//EN" "http://google-web-toolkit.googlecode.com/svn/tags/2.1.0/distro-source/core/…">
+<module rename-to="ws">
+ <inherits name="com.google.gwt.user.User" />
+ <!-- excluding test sources for this module workaround for open issue 4454
+ see http://code.google.com/p/google-web-toolkit/issues/detail?id=4454 -->
+ <source path='client'
+ excludes="**/*Test.java,**/*Tests.java,**/*MockProvider.java" />
+ <public path="public" />
+ <inherits name='com.mvp4g.Mvp4gModule' />
+ <inherits name="org.ourproject.kune.ws.armor.WsArmor" />
+ <entry-point class="cc.kune.core.client.KuneEntryPoint" />
+ <!--http://code.google.com/p/google-web-toolkit/issues/detail?id=42 -->
+ <!-- <set-property name="user.agent" value="gecko1_8" /> -->
+ <set-property name="user.agent" value="safari" />
+</module>
\ No newline at end of file
Property changes on: trunk/src/main/java/cc/kune/core/Core.gwt.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/src/main/java/cc/kune/core/client/CoreEventBus.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/CoreEventBus.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/CoreEventBus.java 2010-12-08 15:21:36 UTC (rev 1160)
@@ -0,0 +1,20 @@
+package cc.kune.core.client;
+
+import cc.kune.core.client.ws.CorePresenter;
+import cc.kune.core.client.ws.CoreView;
+
+import com.mvp4g.client.annotation.Debug;
+import com.mvp4g.client.annotation.Event;
+import com.mvp4g.client.annotation.Events;
+import com.mvp4g.client.annotation.Start;
+import com.mvp4g.client.event.EventBus;
+
+@Events(startView = CoreView.class, ginModules = { CoreGinModule.class })
+@Debug
+public interface CoreEventBus extends EventBus {
+
+ @Start
+ @Event(handlers = CorePresenter.class)
+ void start();
+
+}
Property changes on: trunk/src/main/java/cc/kune/core/client/CoreEventBus.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/src/main/java/cc/kune/core/client/CoreGinModule.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/CoreGinModule.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/CoreGinModule.java 2010-12-08 15:21:36 UTC (rev 1160)
@@ -0,0 +1,16 @@
+package cc.kune.core.client;
+
+import org.ourproject.kune.ws.armor.client.Body;
+import org.ourproject.kune.ws.armor.client.IBody;
+
+import com.google.gwt.inject.client.AbstractGinModule;
+import com.google.inject.Singleton;
+
+public class CoreGinModule extends AbstractGinModule {
+
+ @Override
+ protected void configure() {
+ bind(IBody.class).to(Body.class).in(Singleton.class);
+ }
+
+}
Property changes on: trunk/src/main/java/cc/kune/core/client/CoreGinModule.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/src/main/java/cc/kune/core/client/KuneEntryPoint.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/KuneEntryPoint.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/KuneEntryPoint.java 2010-12-08 15:21:36 UTC (rev 1160)
@@ -0,0 +1,18 @@
+package cc.kune.core.client;
+
+import com.google.gwt.core.client.EntryPoint;
+import com.google.gwt.core.client.GWT;
+import com.google.gwt.user.client.ui.RootLayoutPanel;
+import com.google.gwt.user.client.ui.Widget;
+import com.mvp4g.client.Mvp4gModule;
+
+public class KuneEntryPoint implements EntryPoint {
+
+ @Override
+ public void onModuleLoad() {
+ final Mvp4gModule module = (Mvp4gModule) GWT.create(Mvp4gModule.class);
+ module.createAndStartModule();
+ RootLayoutPanel.get().add((Widget) module.getStartView());
+ }
+
+}
Property changes on: trunk/src/main/java/cc/kune/core/client/KuneEntryPoint.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/src/main/java/cc/kune/core/client/ws/CorePresenter.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/ws/CorePresenter.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/ws/CorePresenter.java 2010-12-08 15:21:36 UTC (rev 1160)
@@ -0,0 +1,16 @@
+package cc.kune.core.client.ws;
+
+import cc.kune.core.client.CoreEventBus;
+import cc.kune.core.client.ws.CorePresenter.ICoreView;
+
+import com.mvp4g.client.annotation.Presenter;
+import com.mvp4g.client.presenter.BasePresenter;
+
+@Presenter(view = CoreView.class)
+public class CorePresenter extends BasePresenter<ICoreView, CoreEventBus> {
+ public interface ICoreView {
+ }
+
+ public void onStart() {
+ }
+}
Property changes on: trunk/src/main/java/cc/kune/core/client/ws/CorePresenter.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/src/main/java/cc/kune/core/client/ws/CoreView.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/ws/CoreView.java (rev 0)
+++ trunk/src/main/java/cc/kune/core/client/ws/CoreView.java 2010-12-08 15:21:36 UTC (rev 1160)
@@ -0,0 +1,19 @@
+package cc.kune.core.client.ws;
+
+import org.ourproject.kune.ws.armor.client.Body;
+import org.ourproject.kune.ws.armor.client.resources.WsArmorResources;
+
+import cc.kune.core.client.ws.CorePresenter.ICoreView;
+
+import com.google.gwt.core.client.GWT;
+import com.google.gwt.user.client.ui.Composite;
+import com.google.inject.Inject;
+
+public class CoreView extends Composite implements ICoreView {
+
+ @Inject
+ public CoreView(final Body body) {
+ GWT.<WsArmorResources> create(WsArmorResources.class).style().ensureInjected();
+ initWidget(body);
+ }
+}
Property changes on: trunk/src/main/java/cc/kune/core/client/ws/CoreView.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/src/main/java/cc/kune/core/public/favicon.ico
===================================================================
(Binary files differ)
Property changes on: trunk/src/main/java/cc/kune/core/public/favicon.ico
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/src/main/java/cc/kune/core/public/ws.html
===================================================================
--- trunk/src/main/java/cc/kune/core/public/ws.html (rev 0)
+++ trunk/src/main/java/cc/kune/core/public/ws.html 2010-12-08 15:21:36 UTC (rev 1160)
@@ -0,0 +1,13 @@
+<!doctype html>
+<html>
+<head>
+<meta http-equiv="content-type" content="text/html; charset=UTF-8">
+<title>Kune</title>
+<script type="text/javascript" language="javascript"
+ src="/ws/ws.nocache.js"></script>
+</head>
+<body>
+<iframe id="__gwt_historyFrame" style="width: 0; height: 0; border: 0"></iframe>
+<iframe src="" id="__download" style="width: 0; height: 0; border: 0"></iframe>
+</body>
+</html>
\ No newline at end of file
Property changes on: trunk/src/main/java/cc/kune/core/public/ws.html
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/src/main/java/org/ourproject/kune/app/Kune.gwt.xml
===================================================================
--- trunk/src/main/java/org/ourproject/kune/app/Kune.gwt.xml 2010-12-07 22:43:52 UTC (rev 1159)
+++ trunk/src/main/java/org/ourproject/kune/app/Kune.gwt.xml 2010-12-08 15:21:36 UTC (rev 1160)
@@ -1,5 +1,5 @@
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.1.0//EN" "http://google-web-toolkit.googlecode.com/svn/tags/2.1.0/distro-source/core/…">
-<module rename-to="ws">
+<module rename-to="wsold">
<inherits name="com.google.gwt.i18n.I18N" />
<inherits name="com.google.gwt.user.User" />
<inherits name="com.google.gwt.resources.Resources" />
@@ -42,6 +42,7 @@
<!--http://code.google.com/p/google-web-toolkit/issues/detail?id=42 -->
<set-property name="user.agent" value="gecko1_8" />
<inherits name="com.google.gwt.wave.Wave" />
+ <inherits name="org.ourproject.kune.ws.armor.WsArmor" />
<!-- Specify the app entry point class. -->
<entry-point class="org.ourproject.kune.app.client.KuneEntryPoint" />
<!-- excluding test sources for this module workaround for open issue 4454
Modified: trunk/src/main/java/org/ourproject/kune/app/client/KuneEntryPoint.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/app/client/KuneEntryPoint.java 2010-12-07 22:43:52 UTC (rev 1159)
+++ trunk/src/main/java/org/ourproject/kune/app/client/KuneEntryPoint.java 2010-12-08 15:21:36 UTC (rev 1160)
@@ -19,29 +19,23 @@
*/
package org.ourproject.kune.app.client;
-import org.ourproject.kune.blogs.client.BlogClientModule;
-import org.ourproject.kune.chat.client.ChatClientModule;
-import org.ourproject.kune.docs.client.DocumentClientModule;
-import org.ourproject.kune.gallery.client.GalleryClientModule;
import org.ourproject.kune.platf.client.services.Loader;
import org.ourproject.kune.platf.client.services.PlatformModule;
-import org.ourproject.kune.wiki.client.WikiClientModule;
-import org.ourproject.kune.workspace.client.RegistryModule;
-import org.ourproject.kune.workspace.client.WorkspaceModule;
-import org.ourproject.kune.workspace.client.hello.HelloWorldModule;
+import org.ourproject.kune.ws.armor.client.Body;
+import org.ourproject.kune.ws.armor.client.resources.WsArmorResources;
import com.allen_sauer.gwt.log.client.Log;
-import com.calclab.emiteuimodule.client.EmiteUIModule;
import com.google.gwt.core.client.EntryPoint;
-import com.google.gwt.user.client.Command;
-import com.google.gwt.user.client.DeferredCommand;
+import com.google.gwt.core.client.Scheduler;
+import com.google.gwt.core.client.Scheduler.ScheduledCommand;
+import com.google.gwt.user.client.ui.RootLayoutPanel;
public class KuneEntryPoint implements EntryPoint {
public void onModuleLoad() {
Log.setUncaughtExceptionHandler();
- DeferredCommand.addCommand(new Command() {
+ Scheduler.get().scheduleDeferred(new ScheduledCommand() {
public void execute() {
onModuleLoadCont();
}
@@ -51,14 +45,20 @@
public void onModuleLoadCont() {
// At the moment, in runtime:
Log.setCurrentLogLevel(Log.LOG_LEVEL_DEBUG);
+ final WsArmorResources resources = WsArmorResources.INSTANCE;
+ resources.style().ensureInjected();
-// Loader.install(new RegistryModule(), new DocumentClientModule(), new BlogClientModule(),
-// new WikiClientModule(), new GalleryClientModule(), new EmiteUIModule(), new ChatClientModule(),
-// new WorkspaceModule(), new PlatformModule());
+ final Body body = new Body();
+ RootLayoutPanel.get().add(body);
+ // Loader.install(new RegistryModule(), new DocumentClientModule(), new
+ // BlogClientModule(),
+ // new WikiClientModule(), new GalleryClientModule(), new
+ // EmiteUIModule(), new ChatClientModule(),
+ // new WorkspaceModule(), new PlatformModule());
- Loader.install(new RegistryModule(), new PlatformModule());
+ Loader.install(new PlatformModule());
// We install our HelloWorldModule
- Loader.install(new HelloWorldModule());
+ // Loader.install(new HelloWorldModule());
}
}
Modified: trunk/src/main/java/org/ourproject/kune/app/public/css/kune.css
===================================================================
--- trunk/src/main/java/org/ourproject/kune/app/public/css/kune.css 2010-12-07 22:43:52 UTC (rev 1159)
+++ trunk/src/main/java/org/ourproject/kune/app/public/css/kune.css 2010-12-08 15:21:36 UTC (rev 1160)
@@ -1,7 +1,7 @@
.kunebody {
background-color: #FFF;
color: #000;
- font-family: arial, sans;
+ font-family: 'Droid Sans', arial, sans;
margin: 5px 5px 0 5px;
}
Modified: trunk/src/main/java/org/ourproject/kune/app/public/ws.html
===================================================================
--- trunk/src/main/java/org/ourproject/kune/app/public/ws.html 2010-12-07 22:43:52 UTC (rev 1159)
+++ trunk/src/main/java/org/ourproject/kune/app/public/ws.html 2010-12-08 15:21:36 UTC (rev 1160)
@@ -17,6 +17,8 @@
<link rel="stylesheet" type="text/css" href="css/docs.css">
-->
+<link href="//fonts.googleapis.com/css?family=Droid+Sans:regular,bold"
+ rel="stylesheet" type="text/css">
<link rel="shortcut icon" href="images/favicon.ico" />
<title>Kune</title>
<style type="text/css">
@@ -26,59 +28,64 @@
top: 0px;
width: 100%;
height: 100%;
- background-color: #FFF;
+ background-color: #F2F2F2;
z-index: 9999;
}
#kuneprogresspanel {
- position: absolute;
- top: 2px;
- <!-- left: 2px; -->
- z-index: 9998;
+ position: absolute;
+ top: 2px;
+ z-index: 9998;
}
.kune-Progress {
- background: #E5FF80;
- border: 1px solid #E5FF80;
- white-space: nowrap;
- height: 16px;
- padding: 0 3px;
+ background: #E5FF80;
+ border: 1px solid #E5FF80;
+ white-space: nowrap;
+ height: 16px;
+ padding: 0 3px;
}
+#kuneprogresspanel {
+ -webkit-border-radius: 5px;
+ -moz-border-radius: 5px;
+ border-radius: 5px;
+}
+
#kuneprogresstext {
- font-family: arial, helvetica, clean, sans-serif;
- font-size-adjust: none;
- font-style: normal;
- font-variant: normal;
- font-weight: normal;
- line-height: 1.22;
+ font-family: 'Droid Sans', arial, helvetica, clean, sans-serif;
+ font-size-adjust: none;
+ font-style: normal;
+ font-variant: normal;
+ font-weight: normal;
+ line-height: 1.22;
}
#kuneloading {
- position: absolute;
- left: 45%;
- top: 40%;
- padding: 0px;
- z-index: 20001;
- height: auto;
- border: 1px solid #ccc;
+ position: absolute;
+ left: 45%;
+ top: 40%;
+ padding: 0px;
+ z-index: 20001;
+ height: auto;
+ border: 1px solid #ccc;
}
#kuneloading a {
- color: #225588;
+ color: #225588;
}
#kuneloading .kuneloading-indicator {
- background: white;
- color: #444;
- font: bold 13px tahoma, arial, helvetica;
- padding: 5px 5px 10px 5px;
- margin: 0;
- height: auto;
+ background: white;
+ color: #444;
+ font: bold 13px 'Droid Sans', tahoma, arial, helvetica;
+ padding: 5px 5px 10px 5px;
+ margin: 0;
+ height: auto;
}
#kuneloading-msg {
- font: normal 10px arial, tahoma, sans-serif;
+ font: normal 10px 'Droid Sans', arial, tahoma, sans-serif;
}
</style>
<!--[if lt IE 7.]>
@@ -88,58 +95,46 @@
</head>
<body>
<script type="text/javascript" language="javascript"
- src="/ws/ws.nocache.js"></script>
+ src="/ws/ws.nocache.js"></script>
-<!-- Ext localization javascript -->
-<script type="text/javascript" id="extlocale"></script>
-<script type="text/javascript">
-
- // decode language passed in url
- var locale = window.location.search
- ? Ext.urlDecode(window.location.search.substring(1)).locale
- : ''
- ;
- // append locale script to the head
- var head = Ext.fly(document.getElementsByTagName('head')[0]);
- if(locale) {
- Ext.fly('extlocale').set({src:'js/ext/source/locale/ext-lang-' + locale + '.js'});
- }
-</script>
<iframe id="__gwt_historyFrame" style="width: 0; height: 0; border: 0"></iframe>
<iframe src="" id="__download" style="width: 0; height: 0; border: 0"></iframe>
<div id="kuneinitialcurtain"></div>
<div class="" id="kuneprogresspanel" style="">
<table cellspacing="0" cellpadding="0" border="0"
- style="margin-top: 5px; margin-left: 5px;"
- summary="Starting">
- <tbody>
- <tr>
- <td height="16" align="left" class="kune-Progress"
- style="vertical-align: top;"><img
- style="height: 16px; width: 16px;"
- src="images/spin-kune-thund-green.gif" alt="progress spin" /></td>
- <td align="left" class="kune-Progress" style="vertical-align: top;">
- <div id="kuneprogresstext" class="gwt-Label">Loading</div>
- </td>
- <td height="16" width="100%" align="left"
- style="vertical-align: top;" />
- </tr>
- </tbody>
+ style="margin-top: 5px; margin-left: 5px;" summary="Starting">
+ <tbody>
+ <tr>
+ <td height="16" align="left" class="kune-Progress"
+ style="vertical-align: top;"><img
+ style="height: 16px; width: 16px;"
+ src="images/spin-kune-thund-green.gif" alt="progress spin" /></td>
+ <td align="left" class="kune-Progress" style="vertical-align: top;">
+ <div id="kuneprogresstext" class="gwt-Label">Loading</div>
+ </td>
+ <td height="16" width="100%" align="left"
+ style="vertical-align: top;" />
+ </tr>
+ </tbody>
</table>
</div>
<div id="kuneloading">
- <div class="kuneloading-indicator">
- <img src="images/kune-anim.gif" width="35" height="35" alt="kune-loading"
- style="margin-right:3px;float:left;vertical-align:top;"/>kune <br/>
- <span id="kuneloading-msg">Starting...</span></div>
+<div class="kuneloading-indicator"><img src="images/kune-anim.gif"
+ width="35" height="35" alt="kune-loading"
+ style="margin-right: 3px; float: left; vertical-align: top;" />kune <br />
+<span id="kuneloading-msg">Starting...</span></div>
</div>
<!--include the Ext CSS, and use the gray theme-->
-<script type="text/javascript">document.getElementById('kuneloading-msg').innerHTML = 'Loading ...';</script>
+<script type="text/javascript">
+ document.getElementById('kuneloading-msg').innerHTML = 'Loading ...';
+</script>
<!--include the application JS-->
-<script type="text/javascript">document.getElementById('kuneloading-msg').innerHTML = 'Starting...';</script>
+<script type="text/javascript">
+ document.getElementById('kuneloading-msg').innerHTML = 'Starting...';
+</script>
<!--hide loading message-->
<!-- <script type="text/javascript">Ext.get('loading').fadeOut({remove: true, duration:4});</script> -->
Modified: trunk/src/main/java/org/ourproject/kune/chat/client/ChatEngineDefault.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/chat/client/ChatEngineDefault.java 2010-12-07 22:43:52 UTC (rev 1159)
+++ trunk/src/main/java/org/ourproject/kune/chat/client/ChatEngineDefault.java 2010-12-08 15:21:36 UTC (rev 1160)
@@ -52,8 +52,8 @@
import com.calclab.suco.client.events.Listener;
import com.calclab.suco.client.events.Listener0;
import com.calclab.suco.client.ioc.Provider;
-import com.google.gwt.user.client.Command;
-import com.google.gwt.user.client.DeferredCommand;
+import com.google.gwt.core.client.Scheduler;
+import com.google.gwt.core.client.Scheduler.ScheduledCommand;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.Window.ClosingEvent;
import com.gwtext.client.core.EventObject;
@@ -171,7 +171,7 @@
+ chatOptions.userOptions.getUserJid().getNode());
final Room room = (Room) emiteUIProvider.get().joinRoom(roomURI);
if (subject != null) {
- DeferredCommand.addCommand(new Command() {
+ Scheduler.get().scheduleDeferred(new ScheduledCommand() {
public void execute() {
final RoomUI roomUI = (RoomUI) room.getData(ChatUI.class);
if (roomUI != null) {
Modified: trunk/src/main/java/org/ourproject/kune/chat/client/ctx/room/AddRoomPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/chat/client/ctx/room/AddRoomPanel.java 2010-12-07 22:43:52 UTC (rev 1159)
+++ trunk/src/main/java/org/ourproject/kune/chat/client/ctx/room/AddRoomPanel.java 2010-12-08 15:21:36 UTC (rev 1160)
@@ -24,8 +24,8 @@
import com.calclab.emiteuimodule.client.dialog.BasicDialogExtended;
import com.calclab.emiteuimodule.client.dialog.BasicDialogListener;
-import com.google.gwt.user.client.Command;
-import com.google.gwt.user.client.DeferredCommand;
+import com.google.gwt.core.client.Scheduler;
+import com.google.gwt.core.client.Scheduler.ScheduledCommand;
import com.gwtext.client.core.EventObject;
import com.gwtext.client.widgets.form.Field;
import com.gwtext.client.widgets.form.FormPanel;
@@ -78,7 +78,7 @@
protected void doAddRoom() {
roomName.validate();
if (formPanel.getForm().isValid()) {
- DeferredCommand.addCommand(new Command() {
+ Scheduler.get().scheduleDeferred(new ScheduledCommand() {
public void execute() {
presenter.addRoom(roomName.getValueAsString());
reset();
@@ -108,7 +108,7 @@
dialog.add(formPanel);
roomName.addListener(new FieldListenerAdapter() {
@Override
- public void onSpecialKey(Field field, EventObject e) {
+ public void onSpecialKey(final Field field, final EventObject e) {
if (e.getKey() == 13) {
doAddRoom();
}
Modified: trunk/src/main/java/org/ourproject/kune/gallery/client/cnt/GalleryFolderContentPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/gallery/client/cnt/GalleryFolderContentPanel.java 2010-12-07 22:43:52 UTC (rev 1159)
+++ trunk/src/main/java/org/ourproject/kune/gallery/client/cnt/GalleryFolderContentPanel.java 2010-12-08 15:21:36 UTC (rev 1160)
@@ -27,10 +27,10 @@
import org.ourproject.kune.workspace.client.cnt.FoldableContentPanel;
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
+import com.google.gwt.core.client.Scheduler;
+import com.google.gwt.core.client.Scheduler.ScheduledCommand;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
-import com.google.gwt.user.client.Command;
-import com.google.gwt.user.client.DeferredCommand;
import com.google.gwt.user.client.ui.FlowPanel;
public class GalleryFolderContentPanel extends FoldableContentPanel implements GalleryFolderContentView {
@@ -48,7 +48,7 @@
}
public void addThumb(final StateToken token, final String title, final String imgUrl) {
- DeferredCommand.addCommand(new Command() {
+ Scheduler.get().scheduleDeferred(new ScheduledCommand() {
public void execute() {
final BasicThumb thumb = new BasicThumb(imgUrl, session.getImgCropsize(), title, TEXT_MAX_LENGHT, true,
new ClickHandler() {
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/actions/MenuItemsContainer.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/actions/MenuItemsContainer.java 2010-12-07 22:43:52 UTC (rev 1159)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/actions/MenuItemsContainer.java 2010-12-08 15:21:36 UTC (rev 1160)
@@ -22,8 +22,8 @@
import java.util.HashMap;
import com.calclab.suco.client.events.Listener;
-import com.google.gwt.user.client.Command;
-import com.google.gwt.user.client.DeferredCommand;
+import com.google.gwt.core.client.Scheduler;
+import com.google.gwt.core.client.Scheduler.ScheduledCommand;
import com.gwtext.client.core.EventObject;
import com.gwtext.client.widgets.menu.BaseItem;
import com.gwtext.client.widgets.menu.Item;
@@ -43,7 +43,7 @@
public void createItemMenu(final String id, final ActionItemCollection<T> actionCollection,
final Listener<ActionItem<T>> listener) {
- DeferredCommand.addCommand(new Command() {
+ Scheduler.get().scheduleDeferred(new ScheduledCommand() {
public void execute() {
Menu menu = null;
if (actionCollection != null) {
@@ -69,7 +69,7 @@
});
}
- public Menu get(String id) {
+ public Menu get(final String id) {
return contextMenus.get(id);
}
}
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/app/ApplicationDefault.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/app/ApplicationDefault.java 2010-12-07 22:43:52 UTC (rev 1159)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/app/ApplicationDefault.java 2010-12-08 15:21:36 UTC (rev 1160)
@@ -30,8 +30,8 @@
import com.calclab.suco.client.events.Event0;
import com.calclab.suco.client.events.Listener;
import com.calclab.suco.client.events.Listener0;
-import com.google.gwt.user.client.Command;
-import com.google.gwt.user.client.DeferredCommand;
+import com.google.gwt.core.client.Scheduler;
+import com.google.gwt.core.client.Scheduler.ScheduledCommand;
import com.google.gwt.user.client.Timer;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.Window.ClosingEvent;
@@ -90,7 +90,7 @@
public void onSuccess(final InitDataDTO initData) {
session.setInitData(initData);
session.setCurrentUserInfo(initData.getUserInfo());
- DeferredCommand.addCommand(new Command() {
+ Scheduler.get().scheduleDeferred(new ScheduledCommand() {
public void execute() {
RootPanel.get("kuneinitialcurtain").setVisible(false);
RootPanel.get("kuneloading").setVisible(false);
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/ui/gridmenu/CustomMenu.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/ui/gridmenu/CustomMenu.java 2010-12-07 22:43:52 UTC (rev 1159)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/ui/gridmenu/CustomMenu.java 2010-12-08 15:21:36 UTC (rev 1160)
@@ -45,8 +45,8 @@
import org.ourproject.kune.platf.client.ui.MenuItem;
import org.ourproject.kune.platf.client.ui.MenuItemCollection;
-import com.google.gwt.user.client.Command;
-import com.google.gwt.user.client.DeferredCommand;
+import com.google.gwt.core.client.Scheduler;
+import com.google.gwt.core.client.Scheduler.ScheduledCommand;
import com.gwtext.client.core.EventObject;
import com.gwtext.client.widgets.menu.BaseItem;
import com.gwtext.client.widgets.menu.Item;
@@ -74,8 +74,9 @@
item.setIcon(menuItem.getIcon());
menu.addItem(item);
item.addListener(new BaseItemListenerAdapter() {
+ @Override
public void onClick(final BaseItem item, final EventObject e) {
- DeferredCommand.addCommand(new Command() {
+ Scheduler.get().scheduleDeferred(new ScheduledCommand() {
public void execute() {
menuItem.fire(param);
}
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/basic/RTEditorPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/basic/RTEditorPanel.java 2010-12-07 22:43:52 UTC (rev 1159)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/basic/RTEditorPanel.java 2010-12-08 15:21:36 UTC (rev 1160)
@@ -26,6 +26,8 @@
import org.xwiki.gwt.dom.client.Selection;
import com.allen_sauer.gwt.log.client.Log;
+import com.google.gwt.core.client.Scheduler;
+import com.google.gwt.core.client.Scheduler.ScheduledCommand;
import com.google.gwt.dom.client.Element;
import com.google.gwt.dom.client.Node;
import com.google.gwt.event.dom.client.BlurEvent;
@@ -33,9 +35,7 @@
import com.google.gwt.event.dom.client.FocusEvent;
import com.google.gwt.event.dom.client.FocusHandler;
import com.google.gwt.event.dom.client.KeyCodes;
-import com.google.gwt.user.client.Command;
import com.google.gwt.user.client.DOM;
-import com.google.gwt.user.client.DeferredCommand;
import com.google.gwt.user.client.Event;
import com.google.gwt.user.client.ui.Composite;
@@ -381,7 +381,7 @@
}
public void showLinkCtxMenu() {
- DeferredCommand.addCommand(new Command() {
+ Scheduler.get().scheduleDeferred(new ScheduledCommand() {
public void execute() {
final org.xwiki.gwt.dom.client.Element selectedAnchor = LinkExecutableUtils.getSelectedAnchor(rta);
if (selectedAnchor != null) {
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/impl/RichTextAreaImplOldMozilla.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/impl/RichTextAreaImplOldMozilla.java 2010-12-07 22:43:52 UTC (rev 1159)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/impl/RichTextAreaImplOldMozilla.java 2010-12-08 15:21:36 UTC (rev 1160)
@@ -15,36 +15,36 @@
*/
package org.ourproject.kune.platf.client.ui.rte.impl;
-import com.google.gwt.user.client.Command;
-import com.google.gwt.user.client.DeferredCommand;
+import com.google.gwt.core.client.Scheduler;
+import com.google.gwt.core.client.Scheduler.ScheduledCommand;
/**
* Old Mozilla-specific implementation of rich-text editing.
*/
public class RichTextAreaImplOldMozilla extends RichTextAreaImplMozilla {
- /**
- * The content window cannot be focused immediately after the content window
- * has been loaded, so we need to wait for an additional deferred command.
- */
- @Override
- protected void onElementInitialized() {
- DeferredCommand.addCommand(new Command() {
- public void execute() {
- RichTextAreaImplOldMozilla.super.onElementInitialized();
- }
- });
- }
+ /**
+ * The content window cannot be focused immediately after the content window
+ * has been loaded, so we need to wait for an additional deferred command.
+ */
+ @Override
+ protected void onElementInitialized() {
+ Scheduler.get().scheduleDeferred(new ScheduledCommand() {
+ public void execute() {
+ RichTextAreaImplOldMozilla.super.onElementInitialized();
+ }
+ });
+ }
- @Override
- protected void setFirstFocusImpl() {
- setFocusImpl(true);
- }
+ @Override
+ protected void setFirstFocusImpl() {
+ setFocusImpl(true);
+ }
- @Override
- protected void setFocusImpl(boolean focused) {
- // Old Mozilla does not support blur on the content window of an iframe.
- if (focused) {
- super.setFocusImpl(focused);
+ @Override
+ protected void setFocusImpl(final boolean focused) {
+ // Old Mozilla does not support blur on the content window of an iframe.
+ if (focused) {
+ super.setFocusImpl(focused);
+ }
}
- }
}
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertimg/ext/InsertImageExtPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertimg/ext/InsertImageExtPanel.java 2010-12-07 22:43:52 UTC (rev 1159)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertimg/ext/InsertImageExtPanel.java 2010-12-08 15:21:36 UTC (rev 1160)
@@ -4,8 +4,8 @@
import org.ourproject.kune.platf.client.ui.TextUtils;
import org.ourproject.kune.platf.client.ui.rte.insertimg.abstractimg.InsertImageAbstractPanel;
-import com.google.gwt.user.client.Command;
-import com.google.gwt.user.client.DeferredCommand;
+import com.google.gwt.core.client.Scheduler;
+import com.google.gwt.core.client.Scheduler.ScheduledCommand;
import com.google.gwt.user.client.ui.Frame;
import com.google.gwt.user.client.ui.Label;
import com.gwtext.client.core.EventCallback;
@@ -71,7 +71,7 @@
}
public void setPreviewUrl(final String url) {
- Frame previewFrame = new Frame(url);
+ final Frame previewFrame = new Frame(url);
previewPanel.clear();
previewPanel.add(previewFrame);
previewPanel.doLayout();
@@ -83,7 +83,7 @@
}
private void refreshPreview() {
- DeferredCommand.addCommand(new Command() {
+ Scheduler.get().scheduleDeferred(new ScheduledCommand() {
public void execute() {
presenter.onPreview();
}
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertlink/abstractlink/InsertLinkAbstractPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertlink/abstractlink/InsertLinkAbstractPanel.java 2010-12-07 22:43:52 UTC (rev 1159)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertlink/abstractlink/InsertLinkAbstractPanel.java 2010-12-08 15:21:36 UTC (rev 1160)
@@ -5,8 +5,8 @@
import org.ourproject.kune.platf.client.ui.rte.insertlink.InsertLinkDialogView;
import org.ourproject.kune.platf.client.ui.rte.insertlink.LinkInfo;
-import com.google.gwt.user.client.Command;
-import com.google.gwt.user.client.DeferredCommand;
+import com.google.gwt.core.client.Scheduler;
+import com.google.gwt.core.client.Scheduler.ScheduledCommand;
import com.gwtext.client.core.EventCallback;
import com.gwtext.client.core.EventObject;
import com.gwtext.client.widgets.Component;
@@ -58,7 +58,7 @@
textField.addKeyPressListener(new EventCallback() {
public void execute(final EventObject e) {
- DeferredCommand.addCommand(new Command() {
+ Scheduler.get().scheduleDeferred(new ScheduledCommand() {
public void execute() {
presenter.onTextFieldChanged(textField.getRawValue());
}
@@ -68,7 +68,7 @@
onOverField.addKeyPressListener(new EventCallback() {
public void execute(final EventObject e) {
- DeferredCommand.addCommand(new Command() {
+ Scheduler.get().scheduleDeferred(new ScheduledCommand() {
public void execute() {
presenter.onOverFieldChanged(onOverField.getRawValue());
}
@@ -86,13 +86,13 @@
super.addListener(new FormPanelListenerAdapter() {
@Override
public void onActivate(final Panel panel) {
- LinkInfo linkInfo = presenter.getLinkInfo();
+ final LinkInfo linkInfo = presenter.getLinkInfo();
updateValues(linkInfo);
presenter.onActivate();
}
});
- FieldSet advanced = new FieldSet(Resources.i18n.t("More options"));
+ final FieldSet advanced = new FieldSet(Resources.i18n.t("More options"));
advanced.setCollapsible(true);
advanced.setCollapsed(true);
advanced.setAutoHeight(true);
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertspecialchar/utf8/InsertSpecialUTF8CharPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertspecialchar/utf8/InsertSpecialUTF8CharPanel.java 2010-12-07 22:43:52 UTC (rev 1159)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/ui/rte/insertspecialchar/utf8/InsertSpecialUTF8CharPanel.java 2010-12-08 15:21:36 UTC (rev 1160)
@@ -7,8 +7,8 @@
import org.ourproject.kune.platf.client.ui.rte.insertspecialchar.InsertSpecialCharDialogView;
import com.allen_sauer.gwt.log.client.Log;
-import com.google.gwt.user.client.Command;
-import com.google.gwt.user.client.DeferredCommand;
+import com.google.gwt.core.client.Scheduler;
+import com.google.gwt.core.client.Scheduler.ScheduledCommand;
import com.gwtext.client.core.EventCallback;
import com.gwtext.client.core.EventObject;
import com.gwtext.client.core.Position;
@@ -32,7 +32,7 @@
form.setAutoWidth(true);
form.setHeight(InsertSpecialCharDialogView.HEIGHT - 10);
- Label label = new Label();
+ final Label label = new Label();
label.setHtml(i18n.t("If you know a special character's [%s] value, enter it below.",
TextUtils.generateHtmlLink("http://unicode.org/charts/", "Unicode"))
+ "<br/><br/>");
@@ -65,7 +65,7 @@
form.add(inputUnicodeField);
form.add(previewField);
- Button insert = new Button(i18n.t("Insert character"));
+ final Button insert = new Button(i18n.t("Insert character"));
insert.addListener(new ButtonListenerAdapter() {
@Override
@@ -84,14 +84,14 @@
private char getCharEntered() {
try {
return (char) Integer.valueOf(inputUnicodeField.getRawValue()).intValue();
- } catch (Exception except) {
+ } catch (final Exception except) {
Log.debug("Not possible to cast utf8 int to char");
}
return '?';
}
private void refreshPreview() {
- DeferredCommand.addCommand(new Command() {
+ Scheduler.get().scheduleDeferred(new ScheduledCommand() {
public void execute() {
previewField.setValue("" + getCharEntered());
}
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/utils/DeferredCommandWrapper.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/utils/DeferredCommandWrapper.java 2010-12-07 22:43:52 UTC (rev 1159)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/utils/DeferredCommandWrapper.java 2010-12-08 15:21:36 UTC (rev 1160)
@@ -20,8 +20,8 @@
package org.ourproject.kune.platf.client.utils;
import com.calclab.suco.client.events.Listener0;
-import com.google.gwt.user.client.Command;
-import com.google.gwt.user.client.DeferredCommand;
+import com.google.gwt.core.client.Scheduler;
+import com.google.gwt.core.client.Scheduler.ScheduledCommand;
/**
* The Class DeferredCommandWrapper is a wrapper of the GWT DeferredCommand
@@ -36,7 +36,7 @@
* the listener
*/
public void addCommand(final Listener0 command) {
- DeferredCommand.addCommand(new Command() {
+ Scheduler.get().scheduleDeferred(new ScheduledCommand() {
public void execute() {
command.onEvent();
}
Modified: trunk/src/main/java/org/ourproject/kune/platf/client/utils/PrefetchUtilities.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/utils/PrefetchUtilities.java 2010-12-07 22:43:52 UTC (rev 1159)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/utils/PrefetchUtilities.java 2010-12-08 15:21:36 UTC (rev 1160)
@@ -19,15 +19,15 @@
*/
package org.ourproject.kune.platf.client.utils;
-import com.google.gwt.user.client.DeferredCommand;
-import com.google.gwt.user.client.IncrementalCommand;
+import com.google.gwt.core.client.Scheduler;
+import com.google.gwt.core.client.Scheduler.RepeatingCommand;
import com.google.gwt.user.client.ui.Image;
public class PrefetchUtilities {
public static void doTasksDeferred() {
- DeferredCommand.addCommand(new IncrementalCommand() {
+ Scheduler.get().scheduleIncremental(new RepeatingCommand() {
int i = 0;
int j = 0;
@@ -66,7 +66,7 @@
j++;
}
- boolean notFinished = i + j < lic.length + ext.length;
+ final boolean notFinished = i + j < lic.length + ext.length;
final boolean finished = !notFinished;
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/search/AbstractLiveSearcherField.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/search/AbstractLiveSearcherField.java 2010-12-07 22:43:52 UTC (rev 1159)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/search/AbstractLiveSearcherField.java 2010-12-08 15:21:36 UTC (rev 1160)
@@ -5,8 +5,8 @@
import org.ourproject.kune.platf.client.services.SearcherConstants;
import com.calclab.suco.client.events.Listener;
-import com.google.gwt.user.client.Command;
-import com.google.gwt.user.client.DeferredCommand;
+import com.google.gwt.core.client.Scheduler;
+import com.google.gwt.core.client.Scheduler.ScheduledCommand;
import com.gwtext.client.core.Connection;
import com.gwtext.client.core.Template;
import com.gwtext.client.core.UrlParam;
@@ -31,7 +31,7 @@
public AbstractLiveSearcherField(final I18nTranslationService i18n, final String templateText,
final String dataProxyUrl, final Listener<LinkDTO> listener) {
- DataProxy dataProxy = new HttpProxy(dataProxyUrl, Connection.POST);
+ final DataProxy dataProxy = new HttpProxy(dataProxyUrl, Connection.POST);
final JsonReader reader = new JsonReader(new RecordDef(
new FieldDef[] { new StringFieldDef(SHORT_NAME_FIELD), new StringFieldDef(LONG_NAME_FIELD),
@@ -67,7 +67,7 @@
super.addListener(new ComboBoxListenerAdapter() {
@Override
public void onSelect(final ComboBox comboBox, final Record record, final int index) {
- DeferredCommand.addCommand(new Command() {
+ Scheduler.get().scheduleDeferred(new ScheduledCommand() {
public void execute() {
final LinkDTO link = new LinkDTO(record.getAsString(SHORT_NAME_FIELD),
record.getAsString(LONG_NAME_FIELD), record.getAsString(ICON_URL_FIELD),
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/signin/RegisterPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/signin/RegisterPanel.java 2010-12-07 22:43:52 UTC (rev 1159)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/signin/RegisterPanel.java 2010-12-08 15:21:36 UTC (rev 1160)
@@ -28,8 +28,8 @@
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
import com.calclab.suco.client.events.Listener0;
-import com.google.gwt.user.client.Command;
-import com.google.gwt.user.client.DeferredCommand;
+import com.google.gwt.core.client.Scheduler;
+import com.google.gwt.core.client.Scheduler.ScheduledCommand;
import com.gwtext.client.widgets.Component;
import com.gwtext.client.widgets.Panel;
import com.gwtext.client.widgets.event.WindowListenerAdapter;
@@ -80,7 +80,7 @@
}
});
- Panel panel = new Panel();
+ final Panel panel = new Panel();
panel.setBorder(false);
registerForm = new RegisterForm(i18n, session);
registerForm.setWidth(370);
@@ -126,7 +126,7 @@
}
public void reset() {
- DeferredCommand.addCommand(new Command() {
+ Scheduler.get().scheduleDeferred(new ScheduledCommand() {
public void execute() {
registerForm.reset();
}
@@ -134,7 +134,8 @@
}
public void showWelcolmeDialog() {
- InfoDialog welcomeDialog = new InfoDialog(WELCOME_DIALOG, i18n.t("Welcome"), i18n.t("Thanks for registering"),
+ final InfoDialog welcomeDialog = new InfoDialog(WELCOME_DIALOG, i18n.t("Welcome"),
+ i18n.t("Thanks for registering"),
i18n.t("Now you can participate more actively in this site with other people and groups. "
+ "You can also use your personal space to publish contents. "
+ "Your email is not verified, please follow the instructions you will receive by email."),
@@ -143,7 +144,8 @@
}
public void showWelcolmeDialogNoHomepage() {
- InfoDialog welcomeDialog = new InfoDialog(WELCOME_DIALOG, i18n.t("Welcome"), i18n.t("Thanks for registering"),
+ final InfoDialog welcomeDialog = new InfoDialog(WELCOME_DIALOG, i18n.t("Welcome"),
+ i18n.t("Thanks for registering"),
i18n.t("Now you can participate more actively in this site with other people and groups. "
+ "Your email is not verified, please follow the instructions you will receive by email."),
i18n.t("Ok"), WELCOME_OK_BUTTON, true, true, 380, 210);
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/siteprogress/SiteProgressPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/siteprogress/SiteProgressPanel.java 2010-12-07 22:43:52 UTC (rev 1159)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/sitebar/siteprogress/SiteProgressPanel.java 2010-12-08 15:21:36 UTC (rev 1160)
@@ -22,9 +22,9 @@
import org.ourproject.kune.workspace.client.sitebar.sitepublic.SitePublicSpaceLink;
import com.calclab.suco.client.ioc.Provider;
-import com.google.gwt.user.client.Command;
+import com.google.gwt.core.client.Scheduler;
+import com.google.gwt.core.client.Scheduler.ScheduledCommand;
import com.google.gwt.user.client.DOM;
-import com.google.gwt.user.client.DeferredCommand;
import com.google.gwt.user.client.Timer;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.Widget;
@@ -54,7 +54,7 @@
public void hideProgress() {
timeProgressMaxTime.cancel();
progressPanel.setVisible(false);
- DeferredCommand.addCommand(new Command() {
+ Scheduler.get().scheduleDeferred(new ScheduledCommand() {
public void execute() {
publicLinkProvider.get().setVisible(true);
}
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/skel/WorkspaceSkeleton.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/skel/WorkspaceSkeleton.java 2010-12-07 22:43:52 UTC (rev 1159)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/skel/WorkspaceSkeleton.java 2010-12-08 15:21:36 UTC (rev 1160)
@@ -24,8 +24,8 @@
import org.ourproject.kune.workspace.client.themes.WsTheme;
import com.calclab.suco.client.events.Listener0;
-import com.google.gwt.user.client.Command;
-import com.google.gwt.user.client.DeferredCommand;
+import com.google.gwt.core.client.Scheduler;
+import com.google.gwt.core.client.Scheduler.ScheduledCommand;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.Widget;
import com.gwtext.client.core.ExtElement;
@@ -92,7 +92,7 @@
MessageBox.confirm(title, message, new MessageBox.ConfirmCallback() {
public void execute(final String btnID) {
if ("yes".equals(btnID)) {
- DeferredCommand.addCommand(new Command() {
+ Scheduler.get().scheduleDeferred(new ScheduledCommand() {
public void execute() {
onConfirmed.onEvent();
}
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/GroupMembersSummaryPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/GroupMembersSummaryPanel.java 2010-12-07 22:43:52 UTC (rev 1159)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/GroupMembersSummaryPanel.java 2010-12-08 15:21:36 UTC (rev 1160)
@@ -34,8 +34,8 @@
import com.calclab.emiteuimodule.client.users.UserGridPanel;
import com.calclab.suco.client.events.Listener;
-import com.google.gwt.user.client.Command;
-import com.google.gwt.user.client.DeferredCommand;
+import com.google.gwt.core.client.Scheduler;
+import com.google.gwt.core.client.Scheduler.ScheduledCommand;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Widget;
import com.gwtext.client.widgets.BoxComponent;
@@ -110,7 +110,7 @@
new MessageBox.ConfirmCallback() {
public void execute(final String btnID) {
if (btnID.equals("yes")) {
- DeferredCommand.addCommand(new Command() {
+ Scheduler.get().scheduleDeferred(new ScheduledCommand() {
public void execute() {
presenter.addCollab(groupShortName);
}
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/upload/FileUploaderDialog.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/upload/FileUploaderDialog.java 2010-12-07 22:43:52 UTC (rev 1159)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/upload/FileUploaderDialog.java 2010-12-08 15:21:36 UTC (rev 1160)
@@ -25,8 +25,8 @@
import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton;
import com.google.gwt.core.client.JavaScriptObject;
-import com.google.gwt.user.client.Command;
-import com.google.gwt.user.client.DeferredCommand;
+import com.google.gwt.core.client.Scheduler;
+import com.google.gwt.core.client.Scheduler.ScheduledCommand;
import com.gwtext.client.core.EventObject;
import com.gwtext.client.widgets.Button;
import com.gwtext.client.widgets.ToolbarButton;
@@ -135,7 +135,7 @@
dialog.addListener(new UploadDialogListenerAdapter() {
@Override
public boolean onBeforeAdd(final UploadDialog source, final String filename) {
- boolean mustAdd = presenter.checkFolderChange();
+ final boolean mustAdd = presenter.checkFolderChange();
if (!mustAdd) {
NotifyUser.important(i18n.t("Please, wait until current uploads are finished to upload new files into another location"));
}
@@ -181,7 +181,7 @@
}
private void setPermittedExtensions(final String[] extensions) {
- DeferredCommand.addCommand(new Command() {
+ Scheduler.get().scheduleDeferred(new ScheduledCommand() {
public void execute() {
if (dialog == null) {
createDialog(false);
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/wave/WaveInsertPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/wave/WaveInsertPanel.java 2010-12-07 22:43:52 UTC (rev 1159)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/wave/WaveInsertPanel.java 2010-12-08 15:21:36 UTC (rev 1160)
@@ -6,8 +6,8 @@
import com.calclab.emiteuimodule.client.dialog.BasicDialogExtended;
import com.calclab.emiteuimodule.client.dialog.BasicDialogListener;
-import com.google.gwt.user.client.Command;
-import com.google.gwt.user.client.DeferredCommand;
+import com.google.gwt.core.client.Scheduler;
+import com.google.gwt.core.client.Scheduler.ScheduledCommand;
import com.gwtext.client.core.EventObject;
import com.gwtext.client.widgets.form.Field;
import com.gwtext.client.widgets.form.FormPanel;
@@ -62,7 +62,7 @@
createForm();
}
dialog.show();
- DeferredCommand.addCommand(new Command() {
+ Scheduler.get().scheduleDeferred(new ScheduledCommand() {
public void execute() {
waveId.focus();
}
Modified: trunk/war/WEB-INF/web.xml
===================================================================
--- trunk/war/WEB-INF/web.xml 2010-12-07 22:43:52 UTC (rev 1159)
+++ trunk/war/WEB-INF/web.xml 2010-12-08 15:21:36 UTC (rev 1160)
@@ -85,83 +85,4 @@
<servlet-name>Proxy</servlet-name>
<url-pattern>/http-bind/</url-pattern>
</servlet-mapping>
-
- <!-- with the new gwt-log remove this -->
-<!-- <servlet>-->
-<!-- <servlet-name>remoteLoggerServiceImpl</servlet-name>-->
-<!-- <servlet-class>-->
-<!-- com.allen_sauer.gwt.log.server.RemoteLoggerServiceImpl</servlet-class>-->
-<!-- </servlet>-->
-<!-- <servlet-mapping>-->
-<!-- <servlet-name>remoteLoggerServiceImpl</servlet-name>-->
-<!-- <url-pattern>/ws/gwt-log</url-pattern>-->
-<!-- </servlet-mapping>-->
-<!-- <servlet>-->
-<!-- <servlet-name>jUnitHostImpl</servlet-name>-->
-<!-- <servlet-class>com.google.gwt.junit.server.JUnitHostImpl</servlet-class>-->
-<!-- </servlet>-->
-<!-- <servlet-mapping>-->
-<!-- <servlet-name>jUnitHostImpl</servlet-name>-->
-<!-- <url-pattern>/ws/junithost</url-pattern>-->
-<!-- </servlet-mapping>-->
-<!-- <servlet-mapping>-->
-<!-- <servlet-name>jUnitHostImpl</servlet-name>-->
-<!-- <url-pattern>/ws/junithost/*</url-pattern>-->
-<!-- </servlet-mapping>-->
-<!-- <servlet-mapping>-->
-<!-- <servlet-name>jUnitHostImpl</servlet-name>-->
-<!-- <url-pattern>/org.ourproject.kune.blogs.KuneBlogs/junithost/*</url-pattern>-->
-<!-- </servlet-mapping>-->
-<!-- <servlet-mapping>-->
-<!-- <servlet-name>remoteLoggerServiceImpl</servlet-name>-->
-<!-- <url-pattern>/org.ourproject.kune.blogs.KuneBlogs/gwt-log</url-pattern>-->
-<!-- </servlet-mapping>-->
-<!-- <servlet-mapping>-->
-<!-- <servlet-name>jUnitHostImpl</servlet-name>-->
-<!-- <url-pattern>/org.ourproject.kune.chat.KuneChat/junithost/*</url-pattern>-->
-<!-- </servlet-mapping>-->
-<!-- <servlet-mapping>-->
-<!-- <servlet-name>remoteLoggerServiceImpl</servlet-name>-->
-<!-- <url-pattern>/org.ourproject.kune.chat.KuneChat/gwt-log</url-pattern>-->
-<!-- </servlet-mapping>-->
-<!-- <servlet-mapping>-->
-<!-- <servlet-name>jUnitHostImpl</servlet-name>-->
-<!-- <url-pattern>/org.ourproject.kune.docs.KuneDocs/junithost/*</url-pattern>-->
-<!-- </servlet-mapping>-->
-<!-- <servlet-mapping>-->
-<!-- <servlet-name>remoteLoggerServiceImpl</servlet-name>-->
-<!-- <url-pattern>/org.ourproject.kune.docs.KuneDocs/gwt-log</url-pattern>-->
-<!-- </servlet-mapping>-->
-<!-- <servlet-mapping>-->
-<!-- <servlet-name>jUnitHostImpl</servlet-name>-->
-<!-- <url-pattern>/org.ourproject.kune.gallery.KuneGallery/junithost/*</url-pattern>-->
-<!-- </servlet-mapping>-->
-<!-- <servlet-mapping>-->
-<!-- <servlet-name>remoteLoggerServiceImpl</servlet-name>-->
-<!-- <url-pattern>/org.ourproject.kune.gallery.KuneGallery/gwt-log</url-pattern>-->
-<!-- </servlet-mapping>-->
-<!-- <servlet-mapping>-->
-<!-- <servlet-name>jUnitHostImpl</servlet-name>-->
-<!-- <url-pattern>/org.ourproject.kune.platf.KunePlatform/junithost/*</url-pattern>-->
-<!-- </servlet-mapping>-->
-<!-- <servlet-mapping>-->
-<!-- <servlet-name>remoteLoggerServiceImpl</servlet-name>-->
-<!-- <url-pattern>/org.ourproject.kune.platf.KunePlatform/gwt-log</url-pattern>-->
-<!-- </servlet-mapping>-->
-<!-- <servlet-mapping>-->
-<!-- <servlet-name>jUnitHostImpl</servlet-name>-->
-<!-- <url-pattern>/org.ourproject.kune.wiki.KuneWiki/junithost/*</url-pattern>-->
-<!-- </servlet-mapping>-->
-<!-- <servlet-mapping>-->
-<!-- <servlet-name>remoteLoggerServiceImpl</servlet-name>-->
-<!-- <url-pattern>/org.ourproject.kune.wiki.KuneWiki/gwt-log</url-pattern>-->
-<!-- </servlet-mapping>-->
-<!-- <servlet-mapping>-->
-<!-- <servlet-name>jUnitHostImpl</servlet-name>-->
-<!-- <url-pattern>/org.ourproject.kune.workspace.KuneWorkspace/junithost/*</url-pattern>-->
-<!-- </servlet-mapping>-->
-<!-- <servlet-mapping>-->
-<!-- <servlet-name>remoteLoggerServiceImpl</servlet-name>-->
-<!-- <url-pattern>/org.ourproject.kune.workspace.KuneWorkspace/gwt-log</url-pattern>-->
-<!-- </servlet-mapping>-->
</web-app>
\ No newline at end of file
1
0