Create users first import (subscribe users was the old name)
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/admin/create-users@125665 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
8d0dc9ffea
commit
b66f9f9d08
|
@ -0,0 +1,50 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="src" output="target/create-users-1.0.0-SNAPSHOT/WEB-INF/classes" path="src/main/java">
|
||||
<attributes>
|
||||
<attribute name="optional" value="true"/>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry including="**/*.java" kind="src" path="src/main/resources"/>
|
||||
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
|
||||
<attributes>
|
||||
<attribute name="optional" value="true"/>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="lib" path="/home/costantino/Downloads/gwt-2.7.0/gwt-user.jar">
|
||||
<attributes>
|
||||
<attribute name="javadoc_location" value="file:/home/costantino/Downloads/gwt-2.7.0/doc/javadoc/"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="lib" path="/home/costantino/Downloads/gwt-2.7.0/gwt-codeserver.jar">
|
||||
<attributes>
|
||||
<attribute name="javadoc_location" value="file:/home/costantino/Downloads/gwt-2.7.0/doc/javadoc/"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="lib" path="/home/costantino/Downloads/gwt-2.7.0/gwt-dev.jar">
|
||||
<attributes>
|
||||
<attribute name="javadoc_location" value="file:/home/costantino/Downloads/gwt-2.7.0/doc/javadoc/"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="lib" path="/home/costantino/Downloads/gwt-2.7.0/validation-api-1.0.0.GA-sources.jar"/>
|
||||
<classpathentry kind="lib" path="/home/costantino/Downloads/gwt-2.7.0/validation-api-1.0.0.GA.jar" sourcepath="/home/costantino/Downloads/gwt-2.7.0/validation-api-1.0.0.GA-sources.jar"/>
|
||||
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="output" path="target/create-users-1.0.0-SNAPSHOT/WEB-INF/classes"/>
|
||||
</classpath>
|
|
@ -0,0 +1,53 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>create-users</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.wst.common.project.facet.core.builder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.wst.validation.validationbuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>com.google.gdt.eclipse.core.webAppProjectValidator</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>com.google.gwt.eclipse.core.gwtProjectValidator</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.m2e.core.maven2Builder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
|
||||
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
<nature>org.eclipse.m2e.core.maven2Nature</nature>
|
||||
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
|
||||
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
|
||||
<nature>com.google.gwt.eclipse.core.gwtNature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="src" path="src/main/webapp"/>
|
||||
<classpathentry kind="src" path="target/m2e-wtp/web-resources"/>
|
||||
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
|
||||
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
|
||||
<attributes>
|
||||
<attribute name="hide" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
|
||||
<classpathentry kind="output" path=""/>
|
||||
</classpath>
|
|
@ -0,0 +1,2 @@
|
|||
eclipse.preferences.version=1
|
||||
filesCopiedToWebInfLib=
|
|
@ -0,0 +1,4 @@
|
|||
eclipse.preferences.version=1
|
||||
lastWarOutDir=/home/costantino/workspace/create-users/target/create-users-1.0.0-SNAPSHOT
|
||||
warSrcDir=src/main/webapp
|
||||
warSrcDirIsOutput=false
|
|
@ -0,0 +1,2 @@
|
|||
eclipse.preferences.version=1
|
||||
entryPointModules=
|
|
@ -0,0 +1,6 @@
|
|||
eclipse.preferences.version=1
|
||||
encoding//src/main/java=UTF-8
|
||||
encoding//src/main/resources=UTF-8
|
||||
encoding//src/test/java=UTF-8
|
||||
encoding//src/test/resources=UTF-8
|
||||
encoding/<project>=UTF-8
|
|
@ -0,0 +1,8 @@
|
|||
eclipse.preferences.version=1
|
||||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
|
||||
org.eclipse.jdt.core.compiler.compliance=1.7
|
||||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
||||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
||||
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
|
||||
org.eclipse.jdt.core.compiler.source=1.7
|
|
@ -0,0 +1,4 @@
|
|||
activeProfiles=
|
||||
eclipse.preferences.version=1
|
||||
resolveWorkspaceProjects=true
|
||||
version=1
|
|
@ -0,0 +1,10 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
|
||||
<wb-module deploy-name="create-users">
|
||||
<wb-resource deploy-path="/" source-path="/target/m2e-wtp/web-resources"/>
|
||||
<wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
|
||||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
|
||||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
|
||||
<property name="java-output-path" value="/create-users/target/subscribe-users-1.0.0-SNAPSHOT/WEB-INF/classes"/>
|
||||
<property name="context-root" value="create-users"/>
|
||||
</wb-module>
|
||||
</project-modules>
|
|
@ -0,0 +1,7 @@
|
|||
<root>
|
||||
<facet id="jst.jaxrs">
|
||||
<node name="libprov">
|
||||
<attribute name="provider-id" value="jaxrs-no-op-library-provider"/>
|
||||
</node>
|
||||
</facet>
|
||||
</root>
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<faceted-project>
|
||||
<fixed facet="wst.jsdt.web"/>
|
||||
<installed facet="java" version="1.7"/>
|
||||
<installed facet="jst.web" version="2.3"/>
|
||||
<installed facet="wst.jsdt.web" version="1.0"/>
|
||||
<installed facet="jst.jaxrs" version="2.0"/>
|
||||
</faceted-project>
|
|
@ -0,0 +1 @@
|
|||
org.eclipse.wst.jsdt.launching.baseBrowserLibrary
|
|
@ -0,0 +1 @@
|
|||
Window
|
|
@ -0,0 +1,2 @@
|
|||
disabled=06target
|
||||
eclipse.preferences.version=1
|
|
@ -0,0 +1,2 @@
|
|||
${gcube.license}
|
||||
|
|
@ -0,0 +1,63 @@
|
|||
The gCube System - ${name}
|
||||
--------------------------------------------------
|
||||
|
||||
${description}
|
||||
|
||||
|
||||
${gcube.description}
|
||||
|
||||
${gcube.funding}
|
||||
|
||||
|
||||
Version
|
||||
--------------------------------------------------
|
||||
|
||||
${version} (${buildDate})
|
||||
|
||||
Please see the file named "changelog.xml" in this directory for the release notes.
|
||||
|
||||
|
||||
Authors
|
||||
--------------------------------------------------
|
||||
|
||||
* Costantino Perciante at ISTI-CNR(Pisa), Istituto di Scienza e Tecnologie dell'Informazione "A. Faedo" - CNR, Pisa (Italy).
|
||||
|
||||
Maintainers
|
||||
-----------
|
||||
|
||||
* Costantino Perciante at ISTI-CNR(Pisa), Istituto di Scienza e Tecnologie dell'Informazione "A. Faedo" - CNR, Pisa (Italy).
|
||||
|
||||
Download information
|
||||
--------------------------------------------------
|
||||
|
||||
Source code is available from SVN:
|
||||
${scm.url}
|
||||
|
||||
Binaries can be downloaded from the gCube website:
|
||||
${gcube.website}
|
||||
|
||||
|
||||
Installation
|
||||
--------------------------------------------------
|
||||
|
||||
Installation documentation is available on-line in the gCube Wiki:
|
||||
${gcube.wikiRoot}
|
||||
|
||||
Documentation
|
||||
--------------------------------------------------
|
||||
|
||||
Documentation is available on-line in the gCube Wiki:
|
||||
${gcube.wikiRoot}
|
||||
${gcube.wikiRoot}
|
||||
|
||||
Support
|
||||
--------------------------------------------------
|
||||
|
||||
Bugs and support requests can be reported in the gCube issue tracking tool:
|
||||
${gcube.issueTracking}
|
||||
|
||||
|
||||
Licensing
|
||||
--------------------------------------------------
|
||||
|
||||
This software is licensed under the terms you may find in the file named "LICENSE" in this directory.
|
|
@ -0,0 +1,6 @@
|
|||
<ReleaseNotes>
|
||||
<Changeset component="org.gcube.portlets.admin.create-users.1-0-0"
|
||||
date="2016-03-28">
|
||||
<Change>First Release</Change>
|
||||
</Changeset>
|
||||
</ReleaseNotes>
|
|
@ -0,0 +1,48 @@
|
|||
<assembly
|
||||
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
|
||||
<id>servicearchive</id>
|
||||
<formats>
|
||||
<format>tar.gz</format>
|
||||
</formats>
|
||||
<baseDirectory>/</baseDirectory>
|
||||
<fileSets>
|
||||
<fileSet>
|
||||
<directory>${distroDirectory}</directory>
|
||||
<outputDirectory>/</outputDirectory>
|
||||
<useDefaultExcludes>true</useDefaultExcludes>
|
||||
<includes>
|
||||
<include>README</include>
|
||||
<include>LICENSE</include>
|
||||
<include>INSTALL</include>
|
||||
<include>MAINTAINERS</include>
|
||||
<include>changelog.xml</include>
|
||||
</includes>
|
||||
<fileMode>755</fileMode>
|
||||
<filtered>true</filtered>
|
||||
</fileSet>
|
||||
<fileSet>
|
||||
<directory>target/apidocs</directory>
|
||||
<outputDirectory>/${artifactId}/doc/api</outputDirectory>
|
||||
<useDefaultExcludes>true</useDefaultExcludes>
|
||||
<fileMode>755</fileMode>
|
||||
</fileSet>
|
||||
</fileSets>
|
||||
<files>
|
||||
<file>
|
||||
<source>${distroDirectory}/profile.xml</source>
|
||||
<outputDirectory>./</outputDirectory>
|
||||
<filtered>true</filtered>
|
||||
</file>
|
||||
<file>
|
||||
<source>target/${build.finalName}.war</source>
|
||||
<outputDirectory>/${artifactId}</outputDirectory>
|
||||
</file>
|
||||
<file>
|
||||
<source>${distroDirectory}/svnpath.txt</source>
|
||||
<outputDirectory>/${artifactId}</outputDirectory>
|
||||
<filtered>true</filtered>
|
||||
</file>
|
||||
</files>
|
||||
</assembly>
|
|
@ -0,0 +1,25 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Resource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<ID></ID>
|
||||
<Type>Service</Type>
|
||||
<Profile>
|
||||
<Description>${description}</Description>
|
||||
<Class>PortletUser</Class>
|
||||
<Name>${artifactId}</Name>
|
||||
<Version>${version}</Version>
|
||||
<Packages>
|
||||
<Software>
|
||||
<Name>${artifactId}</Name>
|
||||
<Version>${version}</Version>
|
||||
<MavenCoordinates>
|
||||
<groupId>${groupId}</groupId>
|
||||
<artifactId>${artifactId}</artifactId>
|
||||
<version>${version}</version>
|
||||
</MavenCoordinates>
|
||||
<Files>
|
||||
<File>target/${build.finalName}.war</File>
|
||||
</Files>
|
||||
</Software>
|
||||
</Packages>
|
||||
</Profile>
|
||||
</Resource>
|
|
@ -0,0 +1,222 @@
|
|||
<?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>
|
||||
<parent>
|
||||
<artifactId>maven-parent</artifactId>
|
||||
<groupId>org.gcube.tools</groupId>
|
||||
<version>1.0.0</version>
|
||||
<relativePath />
|
||||
</parent>
|
||||
|
||||
<groupId>org.gcube.portlets.admin</groupId>
|
||||
<artifactId>create-users</artifactId>
|
||||
<packaging>war</packaging>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
<name>Create users portlet</name>
|
||||
<description>
|
||||
Create users portlet allows a VRE-Manager to enter user's personal data and automatically register he/she in the portal.
|
||||
The portlet also sends a temporary password to the just registered user.
|
||||
</description>
|
||||
|
||||
<scm>
|
||||
<connection>scm:svn:http://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/admin/${project.artifactId}</connection>
|
||||
<developerConnection>scm:https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/admin/${project.artifactId}</developerConnection>
|
||||
<url>http://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/admin/${project.artifactId}</url>
|
||||
</scm>
|
||||
|
||||
<properties>
|
||||
<!-- Convenience property to set the GWT version -->
|
||||
<gwtVersion>2.7.0</gwtVersion>
|
||||
<liferayVersion>6.2.5</liferayVersion>
|
||||
<!-- GWT needs at least java 1.6 -->
|
||||
<maven.compiler.source>1.7</maven.compiler.source>
|
||||
<maven.compiler.target>1.7</maven.compiler.target>
|
||||
|
||||
<webappDirectory>${project.build.directory}/${project.build.finalName}</webappDirectory>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||
</properties>
|
||||
|
||||
<dependencyManagement>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.google.gwt</groupId>
|
||||
<artifactId>gwt</artifactId>
|
||||
<version>${gwtVersion}</version>
|
||||
<type>pom</type>
|
||||
<scope>import</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.gcube.distribution</groupId>
|
||||
<artifactId>maven-portal-bom</artifactId>
|
||||
<version>LATEST</version>
|
||||
<type>pom</type>
|
||||
<scope>import</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</dependencyManagement>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.google.gwt</groupId>
|
||||
<artifactId>gwt-servlet</artifactId>
|
||||
<scope>provided</scope>
|
||||
<version>${gwtVersion}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.google.gwt</groupId>
|
||||
<artifactId>gwt-user</artifactId>
|
||||
<scope>provided</scope>
|
||||
<version>${gwtVersion}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.google.gwt</groupId>
|
||||
<artifactId>gwt-dev</artifactId>
|
||||
<scope>provided</scope>
|
||||
<version>${gwtVersion}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.gcube.portal</groupId>
|
||||
<artifactId>custom-portal-handler</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.github.gwtbootstrap</groupId>
|
||||
<artifactId>gwt-bootstrap</artifactId>
|
||||
<version>2.3.2.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.gcube.dvos</groupId>
|
||||
<artifactId>usermanagement-core</artifactId>
|
||||
<!-- <version>[2.0.0-SNAPSHOT, 3.0.0-SNAPSHOT)</version> -->
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.liferay.portal</groupId>
|
||||
<artifactId>portal-service</artifactId>
|
||||
<version>${liferayVersion}</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.gcube.applicationsupportlayer</groupId>
|
||||
<artifactId>aslcore</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-codec</groupId>
|
||||
<artifactId>commons-codec</artifactId>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.gcube.core</groupId>
|
||||
<artifactId>common-scope-maps</artifactId>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>javax.portlet</groupId>
|
||||
<artifactId>portlet-api</artifactId>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.gcube.portal</groupId>
|
||||
<artifactId>social-networking-library</artifactId>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.gcube.common</groupId>
|
||||
<artifactId>home-library-model</artifactId>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.ow2.asm</groupId>
|
||||
<artifactId>asm-all</artifactId>
|
||||
<version>[5.0.0-SNAPSHOT, 6.0.0-SNAPSHOT)</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.gcube.common</groupId>
|
||||
<artifactId>home-library</artifactId>
|
||||
<scope>provided</scope>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<artifactId>asm-all</artifactId>
|
||||
<groupId>asm</groupId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.gcube.common</groupId>
|
||||
<artifactId>home-library-jcr</artifactId>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>4.11</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<!-- Output classes directly into the webapp, so that IDEs and "mvn process-classes"
|
||||
update them in DevMode -->
|
||||
<outputDirectory>${webappDirectory}/WEB-INF/classes</outputDirectory>
|
||||
|
||||
<plugins>
|
||||
|
||||
<!-- GWT Maven Plugin -->
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>gwt-maven-plugin</artifactId>
|
||||
<version>${gwtVersion}</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>compile</goal>
|
||||
<!-- <goal>test</goal> -->
|
||||
<!-- <goal>generateAsync</goal> -->
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
<!-- Plugin configuration. There are many available options, see gwt-maven-plugin
|
||||
documentation at codehaus.org -->
|
||||
<configuration>
|
||||
<runTarget>Statistics.html</runTarget>
|
||||
<hostedWebapp>${webappDirectory}</hostedWebapp>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<!-- Copy static web files before executing gwt:run -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-war-plugin</artifactId>
|
||||
<version>2.1.1</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>compile</phase>
|
||||
<goals>
|
||||
<goal>exploded</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<webappDirectory>${webappDirectory}</webappDirectory>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>2.3.2</version>
|
||||
<configuration>
|
||||
<source>1.7</source>
|
||||
<target>1.7</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<!-- SA Plugin -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-resources-plugin</artifactId>
|
||||
<version>2.5</version>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
|
@ -0,0 +1,19 @@
|
|||
package org.gcube.portlets.admin.createusers.client;
|
||||
|
||||
import com.google.gwt.core.client.EntryPoint;
|
||||
import com.google.gwt.user.client.ui.RootPanel;
|
||||
|
||||
|
||||
/**
|
||||
* The main module that contains the entry point of the portlet.
|
||||
* @author Costantino Perciante at ISTI-CNR (costantino.perciante@isti.cnr.it)
|
||||
*/
|
||||
public class CreateUsers implements EntryPoint {
|
||||
|
||||
@Override
|
||||
public void onModuleLoad() {
|
||||
|
||||
RootPanel.get("create-users-container").add(new CreateUsersPanel());
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,124 @@
|
|||
package org.gcube.portlets.admin.createusers.client;
|
||||
import java.util.List;
|
||||
|
||||
import org.gcube.portlets.admin.createusers.client.ui.AddUserForm;
|
||||
import org.gcube.portlets.admin.createusers.client.ui.LoadingText;
|
||||
import org.gcube.portlets.admin.createusers.client.ui.RegisteredUsersTable;
|
||||
import org.gcube.portlets.admin.createusers.shared.VreUserBean;
|
||||
|
||||
import com.github.gwtbootstrap.client.ui.AlertBlock;
|
||||
import com.github.gwtbootstrap.client.ui.TabPane;
|
||||
import com.github.gwtbootstrap.client.ui.TabPanel;
|
||||
import com.github.gwtbootstrap.client.ui.constants.AlertType;
|
||||
import com.google.gwt.core.client.GWT;
|
||||
import com.google.gwt.event.shared.HandlerManager;
|
||||
import com.google.gwt.user.client.rpc.AsyncCallback;
|
||||
import com.google.gwt.user.client.ui.Composite;
|
||||
import com.google.gwt.user.client.ui.VerticalPanel;
|
||||
|
||||
/**
|
||||
* The panel that contains the list of users already registered and the form to add new ones.
|
||||
* @author Costantino Perciante at ISTI-CNR (costantino.perciante@isti.cnr.it)
|
||||
*/
|
||||
public class CreateUsersPanel extends Composite {
|
||||
|
||||
// main vertical panel
|
||||
private VerticalPanel mainPanel = new VerticalPanel();
|
||||
|
||||
// Tab panel
|
||||
private TabPanel navTabs = new TabPanel();
|
||||
|
||||
// add user subpanel
|
||||
private TabPane addUserSubPanel = new TabPane("Create New User");
|
||||
|
||||
// registered users subpanel
|
||||
private TabPane registeredUsersSubPanel = new TabPane("Already Created Users") ;
|
||||
|
||||
// Create a remote service proxy to talk to the server-side user manager service.
|
||||
private final HandleUsersServiceAsync userServices = GWT.create(HandleUsersService.class);
|
||||
|
||||
// table of registered users
|
||||
private RegisteredUsersTable registeredUsersTable;
|
||||
|
||||
// event bus
|
||||
private final HandlerManager eventBus = new HandlerManager(null);
|
||||
|
||||
public CreateUsersPanel(){
|
||||
|
||||
super();
|
||||
initWidget(mainPanel);
|
||||
|
||||
// form panel
|
||||
AddUserForm addUserForm = new AddUserForm(userServices, eventBus, this);
|
||||
addUserSubPanel.add(addUserForm);
|
||||
|
||||
// add temporary loader for registered users table
|
||||
LoadingText loader = new LoadingText();
|
||||
loader.setVisible(true);
|
||||
registeredUsersSubPanel.add(loader);
|
||||
|
||||
// add stuff to the main panel
|
||||
navTabs.add(addUserSubPanel);
|
||||
navTabs.add(registeredUsersSubPanel);
|
||||
mainPanel.add(navTabs);
|
||||
|
||||
// select add user form tab
|
||||
navTabs.selectTab(0);
|
||||
|
||||
// enlarge navTabs
|
||||
mainPanel.setWidth("100%");
|
||||
|
||||
// squeeze the form panel
|
||||
addUserSubPanel.setWidth("50%");
|
||||
|
||||
// require already registered users
|
||||
userServices.getAlreadyRegisterdUsers(new AsyncCallback<List<VreUserBean>>() {
|
||||
|
||||
@Override
|
||||
public void onSuccess(List<VreUserBean> result) {
|
||||
|
||||
if(result == null){
|
||||
showProblemsRetrievingList();
|
||||
return;
|
||||
}
|
||||
|
||||
GWT.log("List of registered users received!");
|
||||
registeredUsersTable = new RegisteredUsersTable(result, eventBus);
|
||||
registeredUsersSubPanel.clear();
|
||||
registeredUsersSubPanel.add(registeredUsersTable);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onFailure(Throwable caught) {
|
||||
|
||||
GWT.log("Unable to retrieve list of registered users!" + caught.toString());
|
||||
showProblemsRetrievingList();
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Show error block if retrieving registered data fails.
|
||||
*/
|
||||
private void showProblemsRetrievingList() {
|
||||
|
||||
registeredUsersSubPanel.clear();
|
||||
AlertBlock error = new AlertBlock(AlertType.ERROR);
|
||||
error.setText("It is not possible to retrieve the requested data at the moment. Retry later...");
|
||||
error.setAnimation(true);
|
||||
error.setClose(false);
|
||||
registeredUsersSubPanel.add(error);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine if a user with this email has been already registered
|
||||
* @param actualEmail
|
||||
* @return
|
||||
*/
|
||||
public boolean isUserPresent(String actualEmail) {
|
||||
return registeredUsersTable.isUserPresent(actualEmail);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,33 @@
|
|||
package org.gcube.portlets.admin.createusers.client;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.gcube.portlets.admin.createusers.shared.VreUserBean;
|
||||
|
||||
import com.google.gwt.user.client.rpc.RemoteService;
|
||||
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
|
||||
/**
|
||||
* The client side stub for the RPC service.
|
||||
*/
|
||||
@RemoteServiceRelativePath("usersservice")
|
||||
public interface HandleUsersService extends RemoteService {
|
||||
|
||||
/**
|
||||
* Register this user to the current vre.
|
||||
* @param name
|
||||
* @param surname
|
||||
* @param company
|
||||
* @param email
|
||||
* @param sendEmail
|
||||
* @param isMale
|
||||
* @return the registered user information or null if the registration failed
|
||||
*/
|
||||
VreUserBean register(String name, String surname, String company, String email, boolean sendEmail, boolean isMale);
|
||||
|
||||
/**
|
||||
* Retrieve the list of already registered users.
|
||||
* @return a list of already registered users or null in case of error
|
||||
*/
|
||||
List<VreUserBean> getAlreadyRegisterdUsers();
|
||||
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
package org.gcube.portlets.admin.createusers.client;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.gcube.portlets.admin.createusers.shared.VreUserBean;
|
||||
|
||||
import com.google.gwt.user.client.rpc.AsyncCallback;
|
||||
|
||||
/**
|
||||
* Async version of the service for the client.
|
||||
* @author Costantino Perciante at ISTI-CNR (costantino.perciante@isti.cnr.it)
|
||||
*/
|
||||
public interface HandleUsersServiceAsync {
|
||||
|
||||
void getAlreadyRegisterdUsers(AsyncCallback<List<VreUserBean>> callback);
|
||||
|
||||
void register(String name, String surname, String company, String email,
|
||||
boolean sendEmail, boolean isMale, AsyncCallback<VreUserBean> callback);
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
package org.gcube.portlets.admin.createusers.client.event;
|
||||
import org.gcube.portlets.admin.createusers.shared.VreUserBean;
|
||||
|
||||
import com.google.gwt.event.shared.GwtEvent;
|
||||
|
||||
|
||||
public class AddUserEvent extends GwtEvent<AddUserEventHandler> {
|
||||
public static Type<AddUserEventHandler> TYPE = new Type<AddUserEventHandler>();
|
||||
|
||||
private VreUserBean addedUserBean;
|
||||
|
||||
public AddUserEvent(VreUserBean addedUserBean) {
|
||||
this.addedUserBean = addedUserBean;
|
||||
}
|
||||
|
||||
public VreUserBean getAddedUserBean() {
|
||||
return addedUserBean;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Type<AddUserEventHandler> getAssociatedType() {
|
||||
return TYPE;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void dispatch(AddUserEventHandler handler) {
|
||||
handler.onAddUser(this);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
package org.gcube.portlets.admin.createusers.client.event;
|
||||
|
||||
import com.google.gwt.event.shared.EventHandler;
|
||||
|
||||
public interface AddUserEventHandler extends EventHandler {
|
||||
void onAddUser(AddUserEvent event);
|
||||
}
|
|
@ -0,0 +1,236 @@
|
|||
package org.gcube.portlets.admin.createusers.client.ui;
|
||||
|
||||
import org.gcube.portlets.admin.createusers.client.HandleUsersServiceAsync;
|
||||
import org.gcube.portlets.admin.createusers.client.CreateUsersPanel;
|
||||
import org.gcube.portlets.admin.createusers.client.event.AddUserEvent;
|
||||
import org.gcube.portlets.admin.createusers.shared.VreUserBean;
|
||||
|
||||
import com.github.gwtbootstrap.client.ui.AlertBlock;
|
||||
import com.github.gwtbootstrap.client.ui.Button;
|
||||
import com.github.gwtbootstrap.client.ui.CheckBox;
|
||||
import com.github.gwtbootstrap.client.ui.Form;
|
||||
import com.github.gwtbootstrap.client.ui.TextBox;
|
||||
import com.google.gwt.core.client.GWT;
|
||||
import com.google.gwt.event.dom.client.ClickEvent;
|
||||
import com.google.gwt.event.dom.client.KeyUpEvent;
|
||||
import com.google.gwt.event.shared.HandlerManager;
|
||||
import com.google.gwt.uibinder.client.UiBinder;
|
||||
import com.google.gwt.uibinder.client.UiField;
|
||||
import com.google.gwt.uibinder.client.UiHandler;
|
||||
import com.google.gwt.user.client.Timer;
|
||||
import com.google.gwt.user.client.rpc.AsyncCallback;
|
||||
import com.google.gwt.user.client.ui.Composite;
|
||||
import com.google.gwt.user.client.ui.Widget;
|
||||
|
||||
/**
|
||||
* Form to add new user to the vre.
|
||||
* @author Costantino Perciante at ISTI-CNR (costantino.perciante@isti.cnr.it)
|
||||
*/
|
||||
public class AddUserForm extends Composite{
|
||||
|
||||
private static AddUserFormUiBinder uiBinder = GWT
|
||||
.create(AddUserFormUiBinder.class);
|
||||
|
||||
interface AddUserFormUiBinder extends UiBinder<Widget, AddUserForm> {
|
||||
}
|
||||
|
||||
@UiField
|
||||
Form form;
|
||||
|
||||
@UiField
|
||||
Button submit;
|
||||
|
||||
@UiField
|
||||
CheckBox sendMailCheckbox;
|
||||
|
||||
// @UiField
|
||||
// RadioButton maleCheckbox;
|
||||
|
||||
@UiField
|
||||
TextBox emailTextbox;
|
||||
|
||||
@UiField
|
||||
TextBox nameTextbox;
|
||||
|
||||
@UiField
|
||||
TextBox surnameTextbox;
|
||||
|
||||
@UiField
|
||||
TextBox companyTextbox;
|
||||
|
||||
@UiField
|
||||
AlertBlock errorBlock;
|
||||
|
||||
@UiField
|
||||
AlertBlock successBlock;
|
||||
|
||||
private static final String NAME_SURNAME_PATTERN = "^[a-zA-Z\\s]*$";
|
||||
|
||||
private static final String EMAIL_PATTERN =
|
||||
"^[_A-Za-z0-9-\\+]+(\\.[_A-Za-z0-9-]+)*@"
|
||||
+ "[A-Za-z0-9-]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,})$";
|
||||
|
||||
private static final int HIDE_AFTER_MILLISECONDS = 6000;
|
||||
|
||||
private final HandleUsersServiceAsync registrationService;
|
||||
|
||||
private final HandlerManager eventBus;
|
||||
|
||||
private final CreateUsersPanel parent;
|
||||
|
||||
public AddUserForm(HandleUsersServiceAsync userServices, HandlerManager eventBus, CreateUsersPanel parent) {
|
||||
initWidget(uiBinder.createAndBindUi(this));
|
||||
this.registrationService = userServices;
|
||||
this.eventBus = eventBus;
|
||||
this.parent = parent;
|
||||
}
|
||||
|
||||
@UiHandler("submit")
|
||||
void onClick(ClickEvent e) {
|
||||
|
||||
// input validation
|
||||
String actualName = nameTextbox.getText();
|
||||
String actualSurname = surnameTextbox.getText();
|
||||
String actualEmail = emailTextbox.getText();
|
||||
String actualCompany = companyTextbox.getText();
|
||||
|
||||
if(actualEmail.isEmpty() || !actualEmail.matches(EMAIL_PATTERN)){
|
||||
|
||||
showError("Wrong or empty Email field");
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
if(actualName.isEmpty() || !actualName.matches(NAME_SURNAME_PATTERN)){
|
||||
|
||||
showError("Wrong or empty Name field");
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
if(actualSurname.isEmpty() || !actualSurname.matches(NAME_SURNAME_PATTERN)){
|
||||
|
||||
showError("Wrong or empty Surname field");
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
// check if this user is already present among the people added with this portlet
|
||||
boolean presentTable = parent.isUserPresent(actualEmail);
|
||||
|
||||
if(presentTable){
|
||||
|
||||
showAlertBlockThenHide(
|
||||
errorBlock,
|
||||
"Please note that a user with this email already exists",
|
||||
HIDE_AFTER_MILLISECONDS
|
||||
);
|
||||
|
||||
}else{
|
||||
|
||||
// remote service invocation
|
||||
registrationService.register(
|
||||
actualName,
|
||||
actualSurname,
|
||||
actualCompany,
|
||||
actualEmail,
|
||||
sendMailCheckbox.getValue(),
|
||||
// maleCheckbox.getValue(),
|
||||
true,
|
||||
new AsyncCallback<VreUserBean>() {
|
||||
|
||||
@Override
|
||||
public void onFailure(Throwable caught) {
|
||||
|
||||
GWT.log("There was an error while adding the new user.", caught);
|
||||
showAlertBlockThenHide(
|
||||
errorBlock,
|
||||
"It is not possible to add this user at the moment, retry later.",
|
||||
HIDE_AFTER_MILLISECONDS);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onSuccess(VreUserBean result) {
|
||||
|
||||
if(result == null){
|
||||
|
||||
GWT.log("There was an error while adding the new user."
|
||||
+ " Are you sure he/she is not already present?");
|
||||
|
||||
showAlertBlockThenHide(
|
||||
errorBlock,
|
||||
"It is not possible to add this user at the moment, retry later."
|
||||
+ " Also check that he/she was not already registered in the portal.",
|
||||
HIDE_AFTER_MILLISECONDS);
|
||||
|
||||
}else{
|
||||
|
||||
showAlertBlockThenHide(
|
||||
successBlock,
|
||||
"User correctly added to this VRE",
|
||||
HIDE_AFTER_MILLISECONDS);
|
||||
|
||||
// append to the list of registered users
|
||||
eventBus.fireEvent(new AddUserEvent(result));
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// reset form
|
||||
form.reset();
|
||||
}
|
||||
|
||||
private void showAlertBlockThenHide(final AlertBlock alert, String msg, int hideAfterMs){
|
||||
|
||||
// set text
|
||||
alert.setText(msg);
|
||||
alert.setVisible(true);
|
||||
|
||||
// hide after a while
|
||||
Timer t = new Timer() {
|
||||
@Override
|
||||
public void run() {
|
||||
alert.setVisible(false);
|
||||
}
|
||||
};
|
||||
t.schedule(hideAfterMs);
|
||||
|
||||
}
|
||||
|
||||
private void showError(String msg) {
|
||||
|
||||
errorBlock.setText(msg);
|
||||
errorBlock.setVisible(true);
|
||||
|
||||
}
|
||||
|
||||
private void hideAlertBlocks(){
|
||||
|
||||
errorBlock.setVisible(false);
|
||||
successBlock.setVisible(false);
|
||||
}
|
||||
|
||||
@UiHandler("emailTextbox")
|
||||
void onChangeEmailTextbox(KeyUpEvent event){
|
||||
hideAlertBlocks();
|
||||
}
|
||||
|
||||
@UiHandler("nameTextbox")
|
||||
void onChangeNameTextbox(KeyUpEvent event){
|
||||
hideAlertBlocks();
|
||||
}
|
||||
|
||||
@UiHandler("surnameTextbox")
|
||||
void onChangeSurnameTextbox(KeyUpEvent event){
|
||||
hideAlertBlocks();
|
||||
}
|
||||
|
||||
@UiHandler("companyTextbox")
|
||||
void onChangeCompanyTextbox(KeyUpEvent event){
|
||||
hideAlertBlocks();
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,118 @@
|
|||
<!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" xmlns:b="urn:import:com.github.gwtbootstrap.client.ui">
|
||||
<ui:style>
|
||||
.form-main-style {
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
.fieldset-border-style {
|
||||
border: 1px groove #444;
|
||||
-webkit-box-shadow: 0px 0px 0px 0px #000;
|
||||
box-shadow: 0px 0px 0px 0px #000;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.legend-style {
|
||||
width: auto;
|
||||
padding: 10px;
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
|
||||
@external .form-horizontal .control-label;
|
||||
.form-horizontal .control-label {
|
||||
margin-bottom: 15px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
@external .form-horizontal .input-large;
|
||||
.form-horizontal .input-large {
|
||||
width: 95%;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.block-alert-style {
|
||||
margin-top: 10px;
|
||||
padding: 10px;
|
||||
}
|
||||
</ui:style>
|
||||
<g:HTMLPanel>
|
||||
<b:Form type="HORIZONTAL" styleName="{style.form-main-style}"
|
||||
ui:field="form">
|
||||
<b:Fieldset styleName="{style.fieldset-border-style}">
|
||||
|
||||
<b:Legend styleName="{style.legend-style}">
|
||||
Insert User Information
|
||||
<small>* is required</small>
|
||||
</b:Legend>
|
||||
|
||||
<b:ControlGroup>
|
||||
|
||||
<b:ControlLabel for="email" title="User's email">
|
||||
<font color="red">*</font>
|
||||
E-mail:
|
||||
</b:ControlLabel>
|
||||
<b:Controls>
|
||||
<b:TextBox alternateSize="LARGE" placeholder="E-mail"
|
||||
b:id="email" title="User's email" ui:field="emailTextbox" />
|
||||
</b:Controls>
|
||||
|
||||
<b:ControlLabel for="name" title="User's name">
|
||||
<font color="red">*</font>
|
||||
Name:
|
||||
</b:ControlLabel>
|
||||
<b:Controls>
|
||||
<b:TextBox alternateSize="LARGE" placeholder="Name"
|
||||
b:id="name" title="User's name" ui:field="nameTextbox" />
|
||||
</b:Controls>
|
||||
|
||||
<b:ControlLabel for="surname" title="User's surname">
|
||||
<font color="red">*</font>
|
||||
Surname:
|
||||
</b:ControlLabel>
|
||||
<b:Controls>
|
||||
<b:TextBox alternateSize="LARGE" placeholder="Surname"
|
||||
b:id="surname" title="User's surname" ui:field="surnameTextbox" />
|
||||
</b:Controls>
|
||||
|
||||
<b:ControlLabel for="company" title="User's company">Company:</b:ControlLabel>
|
||||
<b:Controls>
|
||||
<b:TextBox alternateSize="LARGE" placeholder="Company"
|
||||
b:id="company" title="User's company" ui:field="companyTextbox" />
|
||||
</b:Controls>
|
||||
|
||||
<b:ControlLabel for="sendmail"
|
||||
title="Send a notification mail to the user">Send mail:</b:ControlLabel>
|
||||
<b:Controls>
|
||||
<b:CheckBox b:id="sendmail" title="Send a notification mail to the user"
|
||||
checked="true" ui:field="sendMailCheckbox"></b:CheckBox>
|
||||
</b:Controls>
|
||||
|
||||
<!-- <b:ControlLabel title="User's gender">Gender</b:ControlLabel> -->
|
||||
<!-- <b:Controls> -->
|
||||
<!-- <b:RadioButton b:id="gender" checked="true" title="Male" -->
|
||||
<!-- ui:field="maleCheckbox" name="gender">Male</b:RadioButton> -->
|
||||
<!-- <b:RadioButton b:id="gender" title="Female" -->
|
||||
<!-- ui:field="femaleCheckbox" name="gender">Female</b:RadioButton> -->
|
||||
<!-- </b:Controls> -->
|
||||
|
||||
<br></br>
|
||||
|
||||
<b:Controls>
|
||||
<b:Button addStyleNames="btn" ui:field="submit" type="PRIMARY"
|
||||
title="Add user" block="true">Add</b:Button>
|
||||
</b:Controls>
|
||||
|
||||
<br></br>
|
||||
|
||||
<b:AlertBlock type="ERROR" close="false" animation="true"
|
||||
visible="false" ui:field="errorBlock" styleName="{style.block-alert-style}"></b:AlertBlock>
|
||||
|
||||
<b:AlertBlock type="SUCCESS" close="false" animation="true"
|
||||
visible="false" ui:field="successBlock" styleName="{style.block-alert-style}"></b:AlertBlock>
|
||||
|
||||
</b:ControlGroup>
|
||||
</b:Fieldset>
|
||||
</b:Form>
|
||||
</g:HTMLPanel>
|
||||
</ui:UiBinder>
|
|
@ -0,0 +1,19 @@
|
|||
package org.gcube.portlets.admin.createusers.client.ui;
|
||||
|
||||
import com.google.gwt.core.client.GWT;
|
||||
import com.google.gwt.uibinder.client.UiBinder;
|
||||
import com.google.gwt.user.client.ui.Composite;
|
||||
import com.google.gwt.user.client.ui.Widget;
|
||||
|
||||
public class LoadingText extends Composite {
|
||||
|
||||
private static LoadingTextUiBinder uiBinder = GWT
|
||||
.create(LoadingTextUiBinder.class);
|
||||
|
||||
interface LoadingTextUiBinder extends UiBinder<Widget, LoadingText> {
|
||||
}
|
||||
|
||||
public LoadingText() {
|
||||
initWidget(uiBinder.createAndBindUi(this));
|
||||
}
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
<!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" xmlns:b="urn:import:com.github.gwtbootstrap.client.ui">
|
||||
<g:VerticalPanel horizontalAlignment="CENTER" width="100%">
|
||||
<b:Icon type="GEAR" size="FOUR_TIMES" spin="true" />
|
||||
<b:Caption>
|
||||
<b:Heading size="4">Please wait</b:Heading>
|
||||
<b:Paragraph>
|
||||
Contacting database...
|
||||
</b:Paragraph>
|
||||
</b:Caption>
|
||||
</g:VerticalPanel>
|
||||
</ui:UiBinder>
|
|
@ -0,0 +1,286 @@
|
|||
package org.gcube.portlets.admin.createusers.client.ui;
|
||||
import java.util.Comparator;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import org.gcube.portlets.admin.createusers.client.event.AddUserEvent;
|
||||
import org.gcube.portlets.admin.createusers.client.event.AddUserEventHandler;
|
||||
import org.gcube.portlets.admin.createusers.shared.VreUserBean;
|
||||
|
||||
import com.github.gwtbootstrap.client.ui.CellTable;
|
||||
import com.google.gwt.cell.client.Cell;
|
||||
import com.google.gwt.cell.client.TextCell;
|
||||
import com.google.gwt.core.client.GWT;
|
||||
import com.google.gwt.event.shared.HandlerManager;
|
||||
import com.google.gwt.i18n.client.DateTimeFormat;
|
||||
import com.google.gwt.safehtml.shared.SafeHtmlBuilder;
|
||||
import com.google.gwt.user.cellview.client.Column;
|
||||
import com.google.gwt.user.cellview.client.ColumnSortEvent.ListHandler;
|
||||
import com.google.gwt.user.client.ui.Composite;
|
||||
import com.google.gwt.view.client.ListDataProvider;
|
||||
import com.google.gwt.view.client.Range;
|
||||
|
||||
/**
|
||||
* Show already registered users list.
|
||||
* @author Costantino Perciante at ISTI-CNR (costantino.perciante@isti.cnr.it)
|
||||
*/
|
||||
public class RegisteredUsersTable extends Composite {
|
||||
|
||||
//CellTable custom UI resource
|
||||
private CellTable.Resources tableRes = GWT.create(TableResources.class);
|
||||
protected ListDataProvider<VreUserBean> dataProvider = new ListDataProvider<VreUserBean>();
|
||||
private CellTable<VreUserBean> table = new CellTable<VreUserBean>(1, tableRes);
|
||||
private final HandlerManager eventBus;
|
||||
|
||||
public RegisteredUsersTable(List<VreUserBean> registeredUsers, HandlerManager eventBus) {
|
||||
|
||||
super();
|
||||
initWidget(table);
|
||||
|
||||
// bind event
|
||||
this.eventBus = eventBus;
|
||||
bind();
|
||||
|
||||
dataProvider.setList(registeredUsers);
|
||||
dataProvider.addDataDisplay(table);
|
||||
table.setStriped(true);
|
||||
table.setWidth("95%", false);
|
||||
table.addStyleName("table-style");
|
||||
table.setVisibleRange(new Range(0, registeredUsers.size()));
|
||||
table.setBordered(true);
|
||||
table.setRowCount(registeredUsers.size(), true);
|
||||
|
||||
// column for mail and sorting handler
|
||||
Column<VreUserBean, String> emailCol = getColumn(new TextCell(), new GetValue<String>() {
|
||||
@Override
|
||||
public String getValue(VreUserBean user) {
|
||||
return user.getEmail();
|
||||
}
|
||||
});
|
||||
|
||||
ListHandler<VreUserBean> emailColHandler = new ListHandler<VreUserBean>(dataProvider.getList());
|
||||
emailColHandler.setComparator(emailCol, new Comparator<VreUserBean>() {
|
||||
@Override
|
||||
public int compare(VreUserBean o1, VreUserBean o2) {
|
||||
|
||||
return o1.getEmail().compareTo(o2.getEmail());
|
||||
|
||||
}
|
||||
});
|
||||
emailCol.setSortable(true);
|
||||
emailCol.setDefaultSortAscending(false);
|
||||
table.addColumnSortHandler(emailColHandler);
|
||||
|
||||
// name column plus handler for sorting
|
||||
Column<VreUserBean, String> nameCol = getColumn(new TextCell(), new GetValue<String>() {
|
||||
@Override
|
||||
public String getValue(VreUserBean user) {
|
||||
return user.getName();
|
||||
}
|
||||
});
|
||||
|
||||
ListHandler<VreUserBean> nameColHandler = new ListHandler<VreUserBean>(dataProvider.getList());
|
||||
nameColHandler.setComparator(nameCol, new Comparator<VreUserBean>() {
|
||||
@Override
|
||||
public int compare(VreUserBean o1, VreUserBean o2) {
|
||||
|
||||
return o1.getName().compareTo(o2.getName());
|
||||
|
||||
}
|
||||
});
|
||||
nameCol.setSortable(true);
|
||||
nameCol.setDefaultSortAscending(false);
|
||||
table.addColumnSortHandler(nameColHandler);
|
||||
|
||||
// surname column plus handler for sorting
|
||||
Column<VreUserBean, String> surnameCol = getColumn(new TextCell(), new GetValue<String>() {
|
||||
@Override
|
||||
public String getValue(VreUserBean user) {
|
||||
return user.getSurname();
|
||||
}
|
||||
});
|
||||
|
||||
ListHandler<VreUserBean> surnameColHandler = new ListHandler<VreUserBean>(dataProvider.getList());
|
||||
nameColHandler.setComparator(surnameCol, new Comparator<VreUserBean>() {
|
||||
@Override
|
||||
public int compare(VreUserBean o1, VreUserBean o2) {
|
||||
|
||||
return o1.getSurname().compareTo(o2.getSurname());
|
||||
|
||||
}
|
||||
});
|
||||
surnameCol.setSortable(true);
|
||||
surnameCol.setDefaultSortAscending(false);
|
||||
table.addColumnSortHandler(surnameColHandler);
|
||||
|
||||
// company and handler for sorting
|
||||
Column<VreUserBean, String> companyCol = getColumn(new TextCell(), new GetValue<String>() {
|
||||
@Override
|
||||
public String getValue(VreUserBean user) {
|
||||
return user.getCompany();
|
||||
}
|
||||
});
|
||||
|
||||
ListHandler<VreUserBean> companyColHandler = new ListHandler<VreUserBean>(dataProvider.getList());
|
||||
companyColHandler.setComparator(companyCol, new Comparator<VreUserBean>() {
|
||||
@Override
|
||||
public int compare(VreUserBean o1, VreUserBean o2) {
|
||||
|
||||
return o1.getCompany().compareTo(o2.getCompany());
|
||||
|
||||
}
|
||||
});
|
||||
companyCol.setSortable(true);
|
||||
companyCol.setDefaultSortAscending(false);
|
||||
table.addColumnSortHandler(companyColHandler);
|
||||
|
||||
// password and handler for sorting
|
||||
Column<VreUserBean, String> passwordChanged = getColumn(new TextCell(), new GetValue<String>() {
|
||||
@Override
|
||||
public String getValue(VreUserBean user) {
|
||||
return (user.isPasswordChanged() ? "True" : "False");
|
||||
}
|
||||
});
|
||||
|
||||
ListHandler<VreUserBean> passwordChangedColHandler = new ListHandler<VreUserBean>(dataProvider.getList());
|
||||
passwordChangedColHandler.setComparator(passwordChanged, new Comparator<VreUserBean>() {
|
||||
@Override
|
||||
public int compare(VreUserBean o1, VreUserBean o2) {
|
||||
|
||||
String o1PasswordChangedString = o1.isPasswordChanged() ? "True" : "False";
|
||||
String o2PasswordChangedString = o2.isPasswordChanged() ? "True" : "False";
|
||||
return o1PasswordChangedString.compareTo(o2PasswordChangedString);
|
||||
|
||||
}
|
||||
});
|
||||
passwordChanged.setSortable(true);
|
||||
passwordChanged.setDefaultSortAscending(false);
|
||||
table.addColumnSortHandler(passwordChangedColHandler);
|
||||
|
||||
// registration column plus handler for sorting
|
||||
Column<VreUserBean, String> registrationDate = getColumn(new TextCell(), new GetValue<String>() {
|
||||
@Override
|
||||
public String getValue(VreUserBean user) {
|
||||
return DateTimeFormat.getShortDateFormat().format(new Date(user.getRegisrationDate()));
|
||||
}
|
||||
});
|
||||
|
||||
ListHandler<VreUserBean> registrationDateColHandler = new ListHandler<VreUserBean>(dataProvider.getList());
|
||||
registrationDateColHandler.setComparator(registrationDate, new Comparator<VreUserBean>() {
|
||||
@Override
|
||||
public int compare(VreUserBean o1, VreUserBean o2) {
|
||||
return new Long(o1.getRegisrationDate()).compareTo(new Long(o2.getRegisrationDate()));
|
||||
|
||||
}
|
||||
});
|
||||
registrationDate.setDefaultSortAscending(false);
|
||||
registrationDate.setSortable(true);
|
||||
table.addColumnSortHandler(registrationDateColHandler);
|
||||
table.getColumnSortList().push(registrationDate);
|
||||
|
||||
// add columns
|
||||
SafeHtmlBuilder builder = new SafeHtmlBuilder();
|
||||
builder.appendHtmlConstant("<span title=\"" + "Registered user's email"+ "\">");
|
||||
builder.appendEscaped("Email");
|
||||
builder.appendHtmlConstant("</span>");
|
||||
table.addColumn(emailCol, builder.toSafeHtml());
|
||||
builder = new SafeHtmlBuilder();
|
||||
builder.appendHtmlConstant("<span title=\"" + "Registered user's name"+ "\">");
|
||||
builder.appendEscaped("Name");
|
||||
builder.appendHtmlConstant("</span>");
|
||||
table.addColumn(nameCol, builder.toSafeHtml());
|
||||
builder = new SafeHtmlBuilder();
|
||||
builder.appendHtmlConstant("<span title=\"" + "Registered user's surname"+ "\">");
|
||||
builder.appendEscaped("Surname");
|
||||
builder.appendHtmlConstant("</span>");
|
||||
table.addColumn(surnameCol, builder.toSafeHtml());
|
||||
builder = new SafeHtmlBuilder();
|
||||
builder.appendHtmlConstant("<span title=\"" + "Registered user's company"+ "\">");
|
||||
builder.appendEscaped("Company");
|
||||
builder.appendHtmlConstant("</span>");
|
||||
table.addColumn(companyCol, builder.toSafeHtml());
|
||||
builder = new SafeHtmlBuilder();
|
||||
builder.appendHtmlConstant("<span title=\"" + "Did he/she change the default password?"+ "\">");
|
||||
builder.appendEscaped("Password Changed");
|
||||
builder.appendHtmlConstant("</span>");
|
||||
table.addColumn(passwordChanged, builder.toSafeHtml());
|
||||
builder = new SafeHtmlBuilder();
|
||||
builder.appendHtmlConstant("<span title=\"" + "Registration date"+ "\">");
|
||||
builder.appendEscaped("Registration date");
|
||||
builder.appendHtmlConstant("</span>");
|
||||
table.addColumn(registrationDate, builder.toSafeHtml());
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* events binder
|
||||
*/
|
||||
private void bind() {
|
||||
eventBus.addHandler(AddUserEvent.TYPE, new AddUserEventHandler() {
|
||||
|
||||
@Override
|
||||
public void onAddUser(AddUserEvent user) {
|
||||
|
||||
addUserToTable(user);
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the list of registered users
|
||||
* @param event
|
||||
*/
|
||||
private void addUserToTable(AddUserEvent event) {
|
||||
|
||||
VreUserBean userToAdd = event.getAddedUserBean();
|
||||
GWT.log("Adding " + userToAdd);
|
||||
dataProvider.getList().add(userToAdd);
|
||||
table.setVisibleRange(new Range(0, dataProvider.getList().size()));
|
||||
table.setRowCount(dataProvider.getList().size(), true);
|
||||
dataProvider.refresh();
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a user whit this email already exists
|
||||
* @param actualEmail
|
||||
* @return
|
||||
*/
|
||||
public boolean isUserPresent(String actualEmail) {
|
||||
List<VreUserBean> users = dataProvider.getList();
|
||||
|
||||
for (VreUserBean vreUserBean : users) {
|
||||
if(vreUserBean.getEmail().equals(actualEmail))
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Interface for getting a cell value
|
||||
* @param <C>
|
||||
*/
|
||||
private static interface GetValue<C> {
|
||||
C getValue(VreUserBean user);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* get a column
|
||||
*
|
||||
* @param <C> the cell type
|
||||
* @param cell the cell used to render the column
|
||||
* @param getter the value getter for the cell
|
||||
*/
|
||||
private <C> Column<VreUserBean, C> getColumn(Cell<C> cell, final GetValue<C> getter) {
|
||||
Column<VreUserBean, C> column = new Column<VreUserBean, C>(cell) {
|
||||
@Override
|
||||
public C getValue(VreUserBean object) {
|
||||
return getter.getValue(object);
|
||||
}
|
||||
};
|
||||
return column;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,65 @@
|
|||
.cellTableHeader {
|
||||
/* padding: 0px; */
|
||||
/* color: #545454; */
|
||||
/* text-align: center !important; */
|
||||
/* font-size: 13px; */
|
||||
/* background-image: none; */
|
||||
/* background-color: #cfcfcf; */
|
||||
/* height: 25px; */
|
||||
vertical-align: bottom!important;
|
||||
font-weight: bold;
|
||||
/* text-shadow: 0 1px 1px rgba(255, 255, 255, .7); */
|
||||
/* border: 2px solid #999999; */
|
||||
}
|
||||
|
||||
.cellTableFirstColumnHeader {
|
||||
}
|
||||
|
||||
.cellTableLastColumnHeader {
|
||||
|
||||
}
|
||||
|
||||
.cellTableCell {
|
||||
padding: 4px;
|
||||
/* text-align: center !important; */
|
||||
vertical-align: middle !important;
|
||||
overflow: hidden;
|
||||
font-size: 12px;
|
||||
/* border: 1px dotted #999999; */
|
||||
}
|
||||
|
||||
.cellTableEvenRow {
|
||||
|
||||
}
|
||||
|
||||
.cellTableOddRow {
|
||||
|
||||
}
|
||||
|
||||
.cellTableSelectedRow {
|
||||
background: #628cd5;
|
||||
}
|
||||
|
||||
.cellTableSelectedRowCell {
|
||||
|
||||
}
|
||||
|
||||
.cellTableHoveredRow {
|
||||
|
||||
}
|
||||
|
||||
.cellTableHoveredRowCell {
|
||||
|
||||
}
|
||||
|
||||
.cellTableKeyboardSelectedRow {
|
||||
background: #c9c9c1;
|
||||
}
|
||||
|
||||
.cellTableKeyboardSelectedRowCell {
|
||||
border: none;
|
||||
}
|
||||
|
||||
.cellTableKeyboardSelectedCell {
|
||||
border: none;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
package org.gcube.portlets.admin.createusers.client.ui;
|
||||
|
||||
import com.github.gwtbootstrap.client.ui.CellTable;
|
||||
|
||||
public interface TableResources extends CellTable.Resources{
|
||||
|
||||
@Source({CellTable.Style.DEFAULT_CSS, "org/gcube/portlets/admin/createusers/client/ui/Table.css"})
|
||||
TableStyle cellTableStyle();
|
||||
|
||||
interface TableStyle extends CellTable.Style {}
|
||||
}
|
|
@ -0,0 +1,430 @@
|
|||
package org.gcube.portlets.admin.createusers.server;
|
||||
import java.sql.Connection;
|
||||
import java.sql.PreparedStatement;
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
import java.sql.Statement;
|
||||
import java.sql.Timestamp;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
|
||||
import org.gcube.application.framework.core.session.ASLSession;
|
||||
import org.gcube.application.framework.core.session.SessionManager;
|
||||
import org.gcube.common.homelibrary.home.HomeLibrary;
|
||||
import org.gcube.portal.custom.scopemanager.scopehelper.ScopeHelper;
|
||||
import org.gcube.portlets.admin.createusers.client.HandleUsersService;
|
||||
import org.gcube.portlets.admin.createusers.shared.VreUserBean;
|
||||
import org.gcube.vomanagement.usermanagement.exception.GroupRetrievalFault;
|
||||
import org.gcube.vomanagement.usermanagement.exception.UserManagementSystemException;
|
||||
import org.gcube.vomanagement.usermanagement.impl.liferay.LiferayGroupManager;
|
||||
import org.gcube.vomanagement.usermanagement.impl.liferay.LiferayUserManager;
|
||||
import org.gcube.vomanagement.usermanagement.model.GCubeUser;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import com.google.gwt.user.server.rpc.RemoteServiceServlet;
|
||||
import com.liferay.portal.kernel.dao.jdbc.DataAccess;
|
||||
import com.liferay.portal.service.UserLocalServiceUtil;
|
||||
|
||||
/**
|
||||
* The server side implementation of the RPC service.
|
||||
* @author Costantino Perciante at ISTI-CNR (costantino.perciante@isti.cnr.it)
|
||||
*/
|
||||
public class CreateUsersImpl extends RemoteServiceServlet implements HandleUsersService{
|
||||
|
||||
private final static Logger logger = LoggerFactory.getLogger(CreateUsersImpl.class);
|
||||
private static final long serialVersionUID = -3124676000683430170L;
|
||||
private static final String REGISTERED_USERS_TABLE = "registered_users";
|
||||
|
||||
//dev user
|
||||
public static final String userid = "test.user";
|
||||
|
||||
//dev vre
|
||||
private static final String vreID = "/gcube/devsec/devVRE";
|
||||
|
||||
// SQL TABLE FIELDS
|
||||
private static final String FIELD_EMAIL = "email";
|
||||
private static final String FIELD_NAME = "name";
|
||||
private static final String FIELD_SURNAME = "surname";
|
||||
private static final String FIELD_COMPANY = "company";
|
||||
private static final String FIELD_REGISTRATION_DATE = "registration_date";
|
||||
private static final String FIELD_VRE = "vre";
|
||||
|
||||
@Override
|
||||
public void init(){
|
||||
|
||||
logger.debug("Trying to get connect to liferay's DB from API");
|
||||
try {
|
||||
|
||||
Connection con = DataAccess.getConnection();
|
||||
logger.debug("Connected!");
|
||||
|
||||
// check if the table already exists
|
||||
boolean exists = tableExists(con);
|
||||
|
||||
if(exists){
|
||||
logger.debug("Table " + REGISTERED_USERS_TABLE + " already exists.");
|
||||
}
|
||||
else{
|
||||
initializeTable(con);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
logger.error("Failed to connect to liferay's DB");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* check if tables exist in the database
|
||||
* @param conn .
|
||||
* @throws SQLException
|
||||
*/
|
||||
private boolean tableExists(Connection con) throws SQLException {
|
||||
logger.debug("Looking for " + REGISTERED_USERS_TABLE + " table");
|
||||
Statement s = con.createStatement();
|
||||
ResultSet rs = s.executeQuery("SELECT * FROM pg_tables where schemaname='public' and tablename = '" + REGISTERED_USERS_TABLE +"' ");
|
||||
boolean toReturn = rs.next();
|
||||
if (toReturn)
|
||||
logger.debug("Auxiliary Table Found! Returning ... ");
|
||||
return toReturn;
|
||||
}
|
||||
|
||||
/**
|
||||
* create the table REGISTERED_USERS_TABLE
|
||||
* @throws SQLException
|
||||
*/
|
||||
private void initializeTable(Connection con) {
|
||||
try {
|
||||
|
||||
logger.debug("Creating table " + REGISTERED_USERS_TABLE);
|
||||
Statement s = con.createStatement();
|
||||
|
||||
s.execute("CREATE TABLE " + REGISTERED_USERS_TABLE
|
||||
+ " (id serial primary key, " // like autoincrement
|
||||
+ "email varchar(255) NOT NULL, "
|
||||
+ "name" + " varchar(255) NOT NULL, "
|
||||
+ "surname" + " varchar(255) NOT NULL, "
|
||||
+ "company" + " varchar(255) DEFAULT NULL, "
|
||||
+ "vre" + " varchar(255) NOT NULL, "
|
||||
+ "registration_date" + " TIMESTAMP NOT NULL)");
|
||||
|
||||
logger.debug(REGISTERED_USERS_TABLE + " created");
|
||||
|
||||
} catch (SQLException e) {
|
||||
logger.error("Error while creating table", e);
|
||||
}
|
||||
try {
|
||||
con.close();
|
||||
} catch (SQLException e1) {
|
||||
logger.error("Error while closing connection", e1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* the current ASLSession
|
||||
* @return the session
|
||||
*/
|
||||
private ASLSession getASLSession() {
|
||||
|
||||
String sessionID = this.getThreadLocalRequest().getSession().getId();
|
||||
String user = (String) this.getThreadLocalRequest().getSession().getAttribute(ScopeHelper.USERNAME_ATTRIBUTE);
|
||||
|
||||
if (user == null) {
|
||||
|
||||
logger.warn("USER IS NULL setting " + userid + " and Running OUTSIDE PORTAL");
|
||||
user = getDevelopmentUser();
|
||||
SessionManager.getInstance().getASLSession(sessionID, user).setScope(vreID);
|
||||
|
||||
}
|
||||
|
||||
return SessionManager.getInstance().getASLSession(sessionID, user);
|
||||
}
|
||||
|
||||
/**
|
||||
* Online or in development mode?
|
||||
* @return true if you're running into the portal, false if in development
|
||||
*/
|
||||
private boolean isWithinPortal() {
|
||||
try {
|
||||
UserLocalServiceUtil.getService();
|
||||
return true;
|
||||
}
|
||||
catch (com.liferay.portal.kernel.bean.BeanLocatorException ex) {
|
||||
logger.trace("Development Mode ON");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* when packaging test will fail if the user is not set to test.user
|
||||
* @return .
|
||||
*/
|
||||
public String getDevelopmentUser() {
|
||||
String user = userid;
|
||||
// user = "costantino.perciante";
|
||||
return user;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public VreUserBean register(String name, String surname, String company,
|
||||
String email, boolean sendEmail, boolean isMale) {
|
||||
|
||||
// if in dev mode return ok
|
||||
if (!isWithinPortal()) {
|
||||
|
||||
logger.debug("In dev mode.");
|
||||
return new VreUserBean(name, surname, company, email, false, System.currentTimeMillis(), isMale);
|
||||
|
||||
}else{
|
||||
|
||||
ASLSession session = getASLSession();
|
||||
String userName = session.getUsername();
|
||||
|
||||
//in case the portal is restarted and you have the social home open it will get test.user (no callback to set session info)
|
||||
//this check just return nothing if that happens
|
||||
if (userName.compareTo("test.user") == 0) {
|
||||
logger.debug("Found " + userName + " returning nothing");
|
||||
return null;
|
||||
}
|
||||
|
||||
String vre = session.getScopeName();
|
||||
long timestamp = System.currentTimeMillis();
|
||||
|
||||
//checking if the user has been already registered or is already in the portal
|
||||
LiferayUserManager userManager = new LiferayUserManager();
|
||||
boolean exists = userManager.userExistsByEmail(email);
|
||||
|
||||
if(exists){
|
||||
|
||||
logger.debug("User with this email already present in the portal.");
|
||||
return null;
|
||||
|
||||
}
|
||||
else{
|
||||
|
||||
logger.debug("Trying to add user: " + name + ", " + surname + ", " + email + ", " + company);
|
||||
Connection con = null;
|
||||
try{
|
||||
|
||||
con = DataAccess.getConnection();
|
||||
String insert = "INSERT into " + REGISTERED_USERS_TABLE +
|
||||
"("+ FIELD_EMAIL + ","
|
||||
+ FIELD_NAME +","
|
||||
+ FIELD_SURNAME + ","
|
||||
+ FIELD_COMPANY + ","
|
||||
+ FIELD_REGISTRATION_DATE + ","
|
||||
+ FIELD_VRE
|
||||
+ ") values(?, ?, ?, ?, ?, ?)";
|
||||
|
||||
PreparedStatement statement = con.prepareStatement(insert);
|
||||
|
||||
statement.setString(1, email);
|
||||
statement.setString(2, name);
|
||||
statement.setString(3, surname);
|
||||
statement.setString(4, company);
|
||||
statement.setTimestamp(5, new Timestamp(timestamp));
|
||||
statement.setString(6, vre);
|
||||
int res = statement.executeUpdate();
|
||||
|
||||
if(res != 0){
|
||||
|
||||
logger.debug("User added in " + REGISTERED_USERS_TABLE);
|
||||
|
||||
// add in liferay too
|
||||
try{
|
||||
GCubeUser user = userManager.createUser(
|
||||
true,
|
||||
"",
|
||||
email,
|
||||
name,
|
||||
"",
|
||||
surname,
|
||||
company,
|
||||
"",
|
||||
isMale,
|
||||
null,
|
||||
null,
|
||||
sendEmail, // determine if we need to send him/her an email
|
||||
true); // force the password reset
|
||||
|
||||
// adding to the current VRE
|
||||
userManager.assignUserToGroup(getCurrentGroupID(), userManager.getUserId(user.getUsername()));
|
||||
|
||||
//adding to the HL
|
||||
addUserToHLGroup(user.getUsername(), session.getScope());
|
||||
|
||||
}catch(Exception e){
|
||||
|
||||
// unable to create.. we need to delete it from the list of users
|
||||
logger.error("Unable to create the user " + email + " in liferay. Removing he/she from the table " +
|
||||
REGISTERED_USERS_TABLE, e);
|
||||
|
||||
deleteUserFromTable(email, con);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
else{
|
||||
|
||||
logger.debug("User NOT added in " + REGISTERED_USERS_TABLE);
|
||||
return null;
|
||||
}
|
||||
}catch(Exception e){
|
||||
logger.error("Unable to add user, sorry..", e);
|
||||
return null;
|
||||
}finally{
|
||||
try {
|
||||
if(con != null)
|
||||
con.close();
|
||||
} catch (SQLException e) {
|
||||
logger.error("Unable to close connection to the DB");
|
||||
}
|
||||
}
|
||||
|
||||
return new VreUserBean(name, surname, company, email, false, timestamp, isMale);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<VreUserBean> getAlreadyRegisterdUsers() {
|
||||
|
||||
List<VreUserBean> toReturn = new ArrayList<VreUserBean>();
|
||||
|
||||
// if in dev mode return some samples
|
||||
if (!isWithinPortal()) {
|
||||
|
||||
logger.debug("In dev mode.");
|
||||
toReturn.add(new VreUserBean("Dylan", "Dog", "ISTI-CNR", "dylan.dog@gmail.com", false, System.currentTimeMillis(), true));
|
||||
toReturn.add(new VreUserBean("Costantino", "Perciante", "ISTI-CNR", "costantino8@gmail.com", false, System.currentTimeMillis(), true));
|
||||
return toReturn;
|
||||
|
||||
}else{
|
||||
|
||||
LiferayUserManager userManager = new LiferayUserManager();
|
||||
ASLSession session = getASLSession();
|
||||
String userName = session.getUsername();
|
||||
|
||||
//in case the portal is restarted and you have the social home open it will get test.user (no callback to set session info)
|
||||
//this check just return nothing if that happens
|
||||
if (userName.compareTo("test.user") == 0) {
|
||||
logger.debug("Found " + userName + " returning nothing");
|
||||
return null;
|
||||
}
|
||||
|
||||
// evaluate current vre
|
||||
String vre = session.getScopeName();
|
||||
|
||||
Connection con = null;
|
||||
try{
|
||||
|
||||
con = DataAccess.getConnection();
|
||||
Statement stmt = con.createStatement();
|
||||
|
||||
String sql = "SELECT * FROM " + REGISTERED_USERS_TABLE + " WHERE " + FIELD_VRE + "='" + vre + "';";
|
||||
ResultSet rs = stmt.executeQuery(sql);
|
||||
|
||||
while(rs.next()){
|
||||
|
||||
String name = rs.getString(FIELD_NAME);
|
||||
String surname = rs.getString(FIELD_SURNAME);
|
||||
String company = rs.getString(FIELD_COMPANY);
|
||||
String email = rs.getString(FIELD_EMAIL);
|
||||
long registrationDate = rs.getTimestamp(FIELD_REGISTRATION_DATE).getTime();
|
||||
|
||||
// check if the password has been changed or not wrt the default one
|
||||
boolean passwordChanged = userManager.isPasswordChanged(email);
|
||||
|
||||
// the gender information is useless (set to false)
|
||||
toReturn.add(new VreUserBean(name, surname, company, email, passwordChanged, registrationDate, false));
|
||||
|
||||
}
|
||||
|
||||
// now, make sure these users are still on portal
|
||||
Iterator<VreUserBean> iterator = toReturn.iterator();
|
||||
while (iterator.hasNext()) {
|
||||
VreUserBean user = (VreUserBean) iterator.next();
|
||||
|
||||
if(!userManager.userExistsByEmail(user.getEmail())){
|
||||
|
||||
// remove from the table
|
||||
deleteUserFromTable(user.getEmail(), con);
|
||||
|
||||
// remove from this collection
|
||||
iterator.remove();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}catch(Exception e){
|
||||
logger.error("Unable to retrieve users list, sorry...", e);
|
||||
return null;
|
||||
}finally{
|
||||
try {
|
||||
if(con != null)
|
||||
con.close();
|
||||
} catch (SQLException e) {
|
||||
logger.error("Unable to close connection to the DB");
|
||||
}
|
||||
}
|
||||
|
||||
return toReturn;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove a row from the table of the registered users
|
||||
* @param email
|
||||
* @param con
|
||||
*/
|
||||
private void deleteUserFromTable(String email, Connection con) {
|
||||
|
||||
try{
|
||||
|
||||
logger.debug("Going to delete user with email " + email);
|
||||
|
||||
String remove = "DELETE FROM " + REGISTERED_USERS_TABLE + " WHERE " + FIELD_EMAIL + "= ?";
|
||||
PreparedStatement statementDelete = con.prepareStatement(remove);
|
||||
statementDelete.setString(1, email);
|
||||
statementDelete.executeUpdate();
|
||||
|
||||
}catch(Exception e){
|
||||
|
||||
logger.error("Error while deleting user=" + email + "from the table");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Add user to Home Library Group
|
||||
* @param username
|
||||
* @param group
|
||||
*/
|
||||
private void addUserToHLGroup(String username, String group) {
|
||||
try {
|
||||
org.gcube.common.homelibrary.home.workspace.usermanager.UserManager um = HomeLibrary.getHomeManagerFactory().getUserManager();
|
||||
um.associateUserToGroup(group, username);
|
||||
} catch (Exception e) {
|
||||
logger.error("Failed to get the usermanager from HL. Could not add user to the HL group");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the current group ID
|
||||
*
|
||||
* @return the current group ID or null if an exception is thrown
|
||||
* @throws Exception
|
||||
*/
|
||||
private String getCurrentGroupID() {
|
||||
ASLSession session = getASLSession();
|
||||
logger.debug("The current group NAME is --> " + session.getGroupName());
|
||||
String toReturn = null;
|
||||
try {
|
||||
toReturn = new LiferayGroupManager().getGroupId(session.getGroupName());
|
||||
} catch (UserManagementSystemException | GroupRetrievalFault e) {
|
||||
logger.error("Unable to retrieve id for group " + session.getGroupName());
|
||||
}
|
||||
return toReturn;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,28 @@
|
|||
|
||||
package org.gcube.portlets.admin.createusers.server.portlet;
|
||||
|
||||
import javax.portlet.GenericPortlet;
|
||||
import javax.portlet.ActionRequest;
|
||||
import javax.portlet.RenderRequest;
|
||||
import javax.portlet.ActionResponse;
|
||||
import javax.portlet.RenderResponse;
|
||||
import javax.portlet.PortletException;
|
||||
import java.io.IOException;
|
||||
import javax.portlet.PortletRequestDispatcher;
|
||||
import org.gcube.portal.custom.scopemanager.scopehelper.ScopeHelper;
|
||||
|
||||
/**
|
||||
* @author Costantino Perciante at ISTI-CNR (costantino.perciante@isti.cnr.it)
|
||||
*/
|
||||
public class CreateUsersPortlet extends GenericPortlet {
|
||||
public void doView(RenderRequest request, RenderResponse response) throws PortletException, IOException {
|
||||
response.setContentType("text/html");
|
||||
ScopeHelper.setContext(request);
|
||||
PortletRequestDispatcher dispatcher = getPortletContext().getRequestDispatcher("/WEB-INF/jsp/CreateUsers_view.jsp");
|
||||
dispatcher.include(request, response);
|
||||
}
|
||||
|
||||
public void processAction(ActionRequest request, ActionResponse response)
|
||||
throws PortletException, IOException {
|
||||
}
|
||||
}
|
|
@ -0,0 +1,117 @@
|
|||
package org.gcube.portlets.admin.createusers.shared;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* Information of an already registered user to the VRE.
|
||||
* @author Costantino Perciante at ISTI-CNR (costantino.perciante@isti.cnr.it)
|
||||
*/
|
||||
public class VreUserBean implements Serializable{
|
||||
|
||||
private static final long serialVersionUID = -8674087530839002999L;
|
||||
|
||||
|
||||
private String name;
|
||||
private String surname;
|
||||
private String company;
|
||||
private String email;
|
||||
private boolean passwordChanged;
|
||||
private long regisrationDate;
|
||||
private boolean isMale;
|
||||
|
||||
/**
|
||||
* Build a default user bean object.
|
||||
*/
|
||||
public VreUserBean(){
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Build a user bean object.
|
||||
* @param name
|
||||
* @param surname
|
||||
* @param company
|
||||
* @param email
|
||||
* @param passwordChanged
|
||||
* @param registrationDate
|
||||
* @param isMale
|
||||
*/
|
||||
public VreUserBean(String name, String surname, String company,
|
||||
String email, boolean passwordChanged, long registrationDate, boolean isMale) {
|
||||
super();
|
||||
this.name = name;
|
||||
this.surname = surname;
|
||||
this.company = company;
|
||||
this.email = email;
|
||||
this.passwordChanged = passwordChanged;
|
||||
this.regisrationDate = registrationDate;
|
||||
this.isMale = isMale;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getSurname() {
|
||||
return surname;
|
||||
}
|
||||
|
||||
public void setSurname(String surname) {
|
||||
this.surname = surname;
|
||||
}
|
||||
|
||||
public String getCompany() {
|
||||
return company;
|
||||
}
|
||||
|
||||
public void setCompany(String company) {
|
||||
this.company = company;
|
||||
}
|
||||
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
|
||||
public void setEmail(String email) {
|
||||
this.email = email;
|
||||
}
|
||||
|
||||
public boolean isPasswordChanged() {
|
||||
return passwordChanged;
|
||||
}
|
||||
|
||||
public void setPasswordChanged(boolean passwordChanged) {
|
||||
this.passwordChanged = passwordChanged;
|
||||
}
|
||||
|
||||
|
||||
public long getRegisrationDate() {
|
||||
return regisrationDate;
|
||||
}
|
||||
|
||||
public void setRegisrationDate(long regisrationDate) {
|
||||
this.regisrationDate = regisrationDate;
|
||||
}
|
||||
|
||||
|
||||
public boolean isMale() {
|
||||
return isMale;
|
||||
}
|
||||
|
||||
public void setMale(boolean isMale) {
|
||||
this.isMale = isMale;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "VreUserBean [name=" + name + ", surname=" + surname
|
||||
+ ", company=" + company + ", email=" + email
|
||||
+ ", passwordChanged=" + passwordChanged + ", regisrationDate="
|
||||
+ regisrationDate + ", isMale=" + isMale + "]";
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
log4j.rootLogger=DEBUG, A1
|
||||
log4j.appender.A1=org.apache.log4j.ConsoleAppender
|
||||
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
|
||||
|
||||
# Print the date in ISO 8601 format
|
||||
log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
|
||||
|
||||
# Print only messages of level TRACE or above in the package org.gcube
|
||||
log4j.logger.org.gcube=TRACE
|
||||
log4j.logger.org.gcube.application.framework.core.session=INFO
|
||||
log4j.logger.org.gcube.common.scope.impl.DefaultScopeProvider=ERROR
|
||||
log4j.logger.com.netflix.astyanax.connectionpool.impl.CountingConnectionPoolMonitor=ERROR
|
|
@ -0,0 +1,18 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module rename-to='createusers'>
|
||||
<!-- Inherit the core Web Toolkit stuff. -->
|
||||
<inherits name='com.google.gwt.user.User' />
|
||||
|
||||
<!-- Other module inherits -->
|
||||
<inherits name='com.google.gwt.activity.Activity' />
|
||||
<inherits name="com.github.gwtbootstrap.Bootstrap" />
|
||||
|
||||
<!-- Specify the app entry point class. -->
|
||||
<entry-point
|
||||
class='org.gcube.portlets.admin.createusers.client.CreateUsers' />
|
||||
|
||||
<!-- Specify the paths for translatable code -->
|
||||
<source path='client' />
|
||||
<source path='shared' />
|
||||
|
||||
</module>
|
|
@ -0,0 +1,12 @@
|
|||
/** Add css rules here for your application. */
|
||||
.portlet-title-style {
|
||||
display: block;
|
||||
font-size: 16px;
|
||||
color: #555;
|
||||
font-weight: bolder;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.table-style {
|
||||
margin-left: 10px;
|
||||
}
|
|
@ -0,0 +1,48 @@
|
|||
<!doctype html>
|
||||
<!-- The DOCTYPE declaration above will set the -->
|
||||
<!-- browser's rendering engine into -->
|
||||
<!-- "Standards Mode". Replacing this declaration -->
|
||||
<!-- with a "Quirks Mode" doctype may lead to some -->
|
||||
<!-- differences in layout. -->
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||
|
||||
<!-- -->
|
||||
<!-- Consider inlining CSS to reduce the number of requested files -->
|
||||
<!-- -->
|
||||
<link type="text/css" rel="stylesheet" href="CreateUsers.css">
|
||||
|
||||
<!-- -->
|
||||
<!-- Any title is fine -->
|
||||
<!-- -->
|
||||
<title>Create users portlet</title>
|
||||
|
||||
<!-- -->
|
||||
<!-- This script loads your compiled module. -->
|
||||
<!-- If you add any GWT meta tags, they must -->
|
||||
<!-- be added before this line. -->
|
||||
<!-- -->
|
||||
<script src='js/jquery.min.js'></script>
|
||||
<script src='js/jquery.autosize.js'></script>
|
||||
<script type="text/javascript"
|
||||
src="createusers/createusers.nocache.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!-- OPTIONAL: include this if you want history support -->
|
||||
<iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1'
|
||||
style="position: absolute; width: 0; height: 0; border: 0"></iframe>
|
||||
|
||||
<!-- RECOMMENDED if your web app will not function without JavaScript enabled -->
|
||||
<noscript>
|
||||
<div
|
||||
style="width: 22em; position: absolute; left: 50%; margin-left: -11em; color: red; background-color: white; border: 1px solid red; padding: 4px; font-family: sans-serif">
|
||||
Your web browser must have JavaScript enabled in order for this
|
||||
application to display correctly.</div>
|
||||
</noscript>
|
||||
|
||||
<div id="create-users-container"></div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,187 @@
|
|||
/*!
|
||||
jQuery Autosize v1.16.12
|
||||
(c) 2013 Jack Moore - jacklmoore.com
|
||||
updated: 2013-05-31
|
||||
license: http://www.opensource.org/licenses/mit-license.php
|
||||
*/
|
||||
|
||||
(function ($) {
|
||||
var
|
||||
defaults = {
|
||||
className: 'autosizejs',
|
||||
append: '',
|
||||
callback: false
|
||||
},
|
||||
hidden = 'hidden',
|
||||
borderBox = 'border-box',
|
||||
lineHeight = 'lineHeight',
|
||||
|
||||
// border:0 is unnecessary, but avoids a bug in FireFox on OSX
|
||||
copy = '<textarea tabindex="-1" style="position:absolute; top:-999px; left:0; right:auto; bottom:auto; border:0; -moz-box-sizing:content-box; -webkit-box-sizing:content-box; box-sizing:content-box; word-wrap:break-word; height:0 !important; min-height:0 !important; overflow:hidden;"/>',
|
||||
|
||||
// line-height is conditionally included because IE7/IE8/old Opera do not return the correct value.
|
||||
copyStyle = [
|
||||
'fontFamily',
|
||||
'fontSize',
|
||||
'fontWeight',
|
||||
'fontStyle',
|
||||
'letterSpacing',
|
||||
'textTransform',
|
||||
'wordSpacing',
|
||||
'textIndent'
|
||||
],
|
||||
oninput = 'oninput',
|
||||
onpropertychange = 'onpropertychange',
|
||||
|
||||
// to keep track which textarea is being mirrored when adjust() is called.
|
||||
mirrored,
|
||||
|
||||
// the mirror element, which is used to calculate what size the mirrored element should be.
|
||||
mirror = $(copy).data('autosize', true)[0];
|
||||
|
||||
// test that line-height can be accurately copied.
|
||||
mirror.style.lineHeight = '99px';
|
||||
if ($(mirror).css(lineHeight) === '99px') {
|
||||
copyStyle.push(lineHeight);
|
||||
}
|
||||
mirror.style.lineHeight = '';
|
||||
|
||||
$.fn.autosize = function (options) {
|
||||
options = $.extend({}, defaults, options || {});
|
||||
|
||||
if (mirror.parentNode !== document.body) {
|
||||
$(document.body).append(mirror);
|
||||
}
|
||||
|
||||
return this.each(function () {
|
||||
var
|
||||
ta = this,
|
||||
$ta = $(ta),
|
||||
minHeight,
|
||||
maxHeight,
|
||||
resize,
|
||||
boxOffset = 0,
|
||||
callback = $.isFunction(options.callback);
|
||||
|
||||
if ($ta.data('autosize')) {
|
||||
// exit if autosize has already been applied, or if the textarea is the mirror element.
|
||||
return;
|
||||
}
|
||||
|
||||
if ($ta.css('box-sizing') === borderBox || $ta.css('-moz-box-sizing') === borderBox || $ta.css('-webkit-box-sizing') === borderBox){
|
||||
boxOffset = $ta.outerHeight() - $ta.height();
|
||||
}
|
||||
|
||||
// IE8 and lower return 'auto', which parses to NaN, if no min-height is set.
|
||||
minHeight = Math.max(parseInt($ta.css('minHeight'), 10) - boxOffset || 0, $ta.height());
|
||||
|
||||
resize = ($ta.css('resize') === 'none' || $ta.css('resize') === 'vertical') ? 'none' : 'horizontal';
|
||||
|
||||
$ta.css({
|
||||
overflow: hidden,
|
||||
overflowY: hidden,
|
||||
wordWrap: 'break-word',
|
||||
resize: resize
|
||||
}).data('autosize', true);
|
||||
|
||||
function initMirror() {
|
||||
mirrored = ta;
|
||||
mirror.className = options.className;
|
||||
maxHeight = parseInt($ta.css('maxHeight'), 10);
|
||||
|
||||
// mirror is a duplicate textarea located off-screen that
|
||||
// is automatically updated to contain the same text as the
|
||||
// original textarea. mirror always has a height of 0.
|
||||
// This gives a cross-browser supported way getting the actual
|
||||
// height of the text, through the scrollTop property.
|
||||
$.each(copyStyle, function(i, val){
|
||||
mirror.style[val] = $ta.css(val);
|
||||
});
|
||||
|
||||
// The textarea overflow is probably now hidden, but Chrome doesn't reflow the text to account for the
|
||||
// new space made available by removing the scrollbars. This workaround causes Chrome to reflow the text.
|
||||
if (oninput in ta) {
|
||||
var value = ta.value;
|
||||
ta.value = '';
|
||||
ta.value = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Using mainly bare JS in this function because it is going
|
||||
// to fire very often while typing, and needs to very efficient.
|
||||
function adjust() {
|
||||
var height, overflow, original;
|
||||
|
||||
if (mirrored !== ta) {
|
||||
initMirror();
|
||||
}
|
||||
|
||||
mirror.value = ta.value + options.append;
|
||||
mirror.style.overflowY = ta.style.overflowY;
|
||||
original = parseInt(ta.style.height,10);
|
||||
|
||||
// Update the width in case the original textarea width has changed
|
||||
// A floor of 0 is needed because IE8 returns a negative value for hidden textareas, raising an error.
|
||||
mirror.style.width = Math.max($ta.width(), 0) + 'px';
|
||||
|
||||
// Needed for IE8 and lower to reliably return the correct scrollTop
|
||||
mirror.scrollTop = 0;
|
||||
|
||||
mirror.scrollTop = 9e4;
|
||||
|
||||
// Using scrollTop rather than scrollHeight because scrollHeight is non-standard and includes padding.
|
||||
height = mirror.scrollTop;
|
||||
|
||||
if (maxHeight && height > maxHeight) {
|
||||
height = maxHeight;
|
||||
overflow = 'scroll';
|
||||
} else if (height < minHeight) {
|
||||
height = minHeight;
|
||||
}
|
||||
|
||||
height += boxOffset;
|
||||
ta.style.overflowY = overflow || hidden;
|
||||
|
||||
if (original !== height) {
|
||||
ta.style.height = height + 'px';
|
||||
if (callback) {
|
||||
options.callback.call(ta,ta);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (onpropertychange in ta) {
|
||||
if (oninput in ta) {
|
||||
// Detects IE9. IE9 does not fire onpropertychange or oninput for deletions,
|
||||
// so binding to onkeyup to catch most of those occassions. There is no way that I
|
||||
// know of to detect something like 'cut' in IE9.
|
||||
ta[oninput] = ta.onkeyup = adjust;
|
||||
} else {
|
||||
// IE7 / IE8
|
||||
ta[onpropertychange] = function(){
|
||||
if(event.propertyName === 'value'){
|
||||
adjust();
|
||||
}
|
||||
};
|
||||
}
|
||||
} else {
|
||||
// Modern Browsers
|
||||
ta[oninput] = adjust;
|
||||
}
|
||||
|
||||
$(window).on('resize', function(){
|
||||
active = false;
|
||||
adjust();
|
||||
});
|
||||
|
||||
// Allow for manual triggering if needed.
|
||||
$ta.on('autosize', function(){
|
||||
active = false;
|
||||
adjust();
|
||||
});
|
||||
|
||||
// Call adjust in case the textarea already contains text.
|
||||
adjust();
|
||||
});
|
||||
};
|
||||
}(window.jQuery || window.Zepto));
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,182 @@
|
|||
/**
|
||||
* Copyright (c) 2006-2007, TIBCO Software Inc.
|
||||
* Use, modification, and distribution subject to terms of license.
|
||||
*
|
||||
* TIBCO(R) PageBus 1.1.0
|
||||
*/
|
||||
|
||||
if(typeof window.PageBus == 'undefined') {
|
||||
|
||||
PageBus = {
|
||||
version: "1.1.0",
|
||||
S: {c:{},s:[]},
|
||||
X: 0,
|
||||
P: 0,
|
||||
U: [],
|
||||
H: "undefined"
|
||||
};
|
||||
|
||||
PageBus.subscribe = function(name, scope, callback, subscriberData)
|
||||
{
|
||||
if(name == null)
|
||||
this._badName();
|
||||
if(scope == null)
|
||||
scope = window;
|
||||
var path = name.split(".");
|
||||
var sub = { f: callback, d: subscriberData, i: this.X++, p: path, w: scope };
|
||||
for(var i = 0; i < path.length; i++) {
|
||||
if((path[i].indexOf("*") != -1) && (path[i] != "*") && (path[i] != "**"))
|
||||
this._badName();
|
||||
}
|
||||
this._subscribe(this.S, path, 0, sub);
|
||||
return sub;
|
||||
}
|
||||
|
||||
PageBus.publish = function (name, message)
|
||||
{
|
||||
if((name == null) || (name.indexOf("*") != -1))
|
||||
this._badName();
|
||||
var path = name.split(".");
|
||||
if(this.P > 100)
|
||||
this._throw("StackOverflow");
|
||||
try {
|
||||
this.P++;
|
||||
this._publish(this.S, path, 0, name, message);
|
||||
}
|
||||
catch(err) {
|
||||
this.P--;
|
||||
throw err;
|
||||
}
|
||||
try {
|
||||
this.P--;
|
||||
if((this.U.length > 0) && (this.P == 0)) {
|
||||
for(var i = 0; i < this.U.length; i++)
|
||||
this.unsubscribe(this.U[i]);
|
||||
this.U = [];
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
// All unsubscribe exceptions should already have
|
||||
// been handled when unsubscribe was called in the
|
||||
// publish callback. This is a repeat appearance
|
||||
// of this exception. Discard it.
|
||||
}
|
||||
}
|
||||
|
||||
PageBus.unsubscribe = function(sub)
|
||||
{
|
||||
this._unsubscribe(this.S, sub.p, 0, sub.i);
|
||||
}
|
||||
|
||||
/*
|
||||
* @private @jsxobf-clobber
|
||||
*/
|
||||
PageBus._throw = function(n)
|
||||
{
|
||||
throw new Error("PageBus." + n);
|
||||
}
|
||||
|
||||
/*
|
||||
* @private @jsxobf-clobber
|
||||
*/
|
||||
PageBus._badName = function(n)
|
||||
{
|
||||
this._throw("BadName");
|
||||
}
|
||||
|
||||
/*
|
||||
* @private @jsxobf-clobber
|
||||
*/
|
||||
PageBus._subscribe = function(tree, path, index, sub)
|
||||
{
|
||||
var tok = path[index];
|
||||
if(tok == "")
|
||||
this._badName();
|
||||
if(index == path.length)
|
||||
tree.s.push(sub);
|
||||
else {
|
||||
if(typeof tree.c == this.H)
|
||||
tree.c = {};
|
||||
if(typeof tree.c[tok] == this.H) {
|
||||
try {
|
||||
tree.c[tok] = { c: {}, s: [] };
|
||||
this._subscribe(tree.c[tok], path, index + 1, sub);
|
||||
}
|
||||
catch(err) {
|
||||
delete tree.c[tok];
|
||||
throw err;
|
||||
}
|
||||
}
|
||||
else
|
||||
this._subscribe( tree.c[tok], path, index + 1, sub );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* @private @jsxobf-clobber
|
||||
*/
|
||||
PageBus._publish = function(tree, path, index, name, msg) {
|
||||
if(path[index] == "")
|
||||
this._badName();
|
||||
if(typeof tree != this.H) {
|
||||
if(index < path.length) {
|
||||
this._publish(tree.c[path[index]], path, index + 1, name, msg);
|
||||
this._publish(tree.c["*"], path, index + 1, name, msg);
|
||||
this._call(tree.c["**"], name, msg);
|
||||
}
|
||||
else
|
||||
this._call(tree, name, msg);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* @private @jsxobf-clobber
|
||||
*/
|
||||
PageBus._call = function(node, name, msg) {
|
||||
if(typeof node != this.H) {
|
||||
var callbacks = node.s;
|
||||
var max = callbacks.length;
|
||||
for(var i = 0; i < max; i++)
|
||||
if(callbacks[i].f != null)
|
||||
callbacks[i].f.apply(callbacks[i].w, [name, msg, callbacks[i].d]);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* @jsxobf-clobber
|
||||
*/
|
||||
PageBus._unsubscribe = function(tree, path, index, sid) {
|
||||
if(typeof tree != this.H) {
|
||||
if(index < path.length) {
|
||||
var childNode = tree.c[path[index]];
|
||||
this._unsubscribe(childNode, path, index + 1, sid);
|
||||
if(childNode.s.length == 0) {
|
||||
for(var x in childNode.c) // not empty. We're done.
|
||||
return;
|
||||
delete tree.c[path[index]]; // if we got here, c is empty
|
||||
}
|
||||
return;
|
||||
}
|
||||
else {
|
||||
var callbacks = tree.s;
|
||||
var max = callbacks.length;
|
||||
for(var i = 0; i < max; i++) {
|
||||
if(sid == callbacks[i].i) {
|
||||
if(this.P > 0) {
|
||||
if(callbacks[i].f == null)
|
||||
this._throw("BadParameter");
|
||||
callbacks[i].f = null;
|
||||
this.U.push(callbacks[i]);
|
||||
}
|
||||
else
|
||||
callbacks.splice(i, 1);
|
||||
return;
|
||||
}
|
||||
}
|
||||
// Not found. Fall through
|
||||
}
|
||||
}
|
||||
this._throw("BadParameter");
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
<%@page contentType="text/html"%>
|
||||
<%@page pageEncoding="UTF-8"%>
|
||||
|
||||
<%-- Uncomment below lines to add portlet taglibs to jsp
|
||||
<%@ page import="javax.portlet.*"%>
|
||||
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet"%>
|
||||
|
||||
<portlet:defineObjects />
|
||||
--%>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||
<script type="text/javascript" src="<%=request.getContextPath()%>/createusers/js/jquery-1.10.1.min.js"></script>
|
||||
<script type="text/javascript" src="<%=request.getContextPath()%>/createusers/js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src='<%=request.getContextPath()%>/createusers/createusers.nocache.js'></script>
|
||||
<div id="create-users-container"></div>
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE display PUBLIC "-//Liferay//DTD Display 6.2.0//EN" "http://www.liferay.com/dtd/liferay-display_6_2_0.dtd">
|
||||
|
||||
<display>
|
||||
<category name="gCube Enabling Apps">
|
||||
<portlet id="CreateUsers" />
|
||||
</category>
|
||||
</display>
|
|
@ -0,0 +1,9 @@
|
|||
name=CreateUsers
|
||||
module-group-id=liferay
|
||||
module-incremental-version=1
|
||||
tags=
|
||||
short-description=
|
||||
change-log=
|
||||
page-url=http://www.d4science.org
|
||||
author=D4Science Org.
|
||||
licenses=EUPL
|
|
@ -0,0 +1,29 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE liferay-portlet-app PUBLIC "-//Liferay//DTD Portlet Application 6.2.0//EN" "http://www.liferay.com/dtd/liferay-portlet-app_6_2_0.dtd">
|
||||
|
||||
<liferay-portlet-app>
|
||||
<portlet>
|
||||
<portlet-name>SubscribeUsers</portlet-name>
|
||||
<layout-cacheable>false</layout-cacheable>
|
||||
<instanceable>false</instanceable>
|
||||
<ajaxable>false</ajaxable>
|
||||
<!-- LOCATION CSS HERE -->
|
||||
<header-portlet-css>/CreateUsers.css</header-portlet-css>
|
||||
</portlet>
|
||||
<role-mapper>
|
||||
<role-name>administrator</role-name>
|
||||
<role-link>Administrator</role-link>
|
||||
</role-mapper>
|
||||
<role-mapper>
|
||||
<role-name>guest</role-name>
|
||||
<role-link>Guest</role-link>
|
||||
</role-mapper>
|
||||
<role-mapper>
|
||||
<role-name>power-user</role-name>
|
||||
<role-link>Power User</role-link>
|
||||
</role-mapper>
|
||||
<role-mapper>
|
||||
<role-name>user</role-name>
|
||||
<role-link>User</role-link>
|
||||
</role-mapper>
|
||||
</liferay-portlet-app>
|
|
@ -0,0 +1,34 @@
|
|||
<?xml version="1.0"?>
|
||||
|
||||
<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
|
||||
version="2.0">
|
||||
<portlet>
|
||||
<portlet-name>CreateUsers</portlet-name>
|
||||
<display-name>gCube Create Users</display-name>
|
||||
<portlet-class>org.gcube.portlets.admin.createusers.server.portlet.CreateUsersPortlet</portlet-class>
|
||||
<init-param>
|
||||
<name>view-jsp</name>
|
||||
<value>/view.jsp</value>
|
||||
</init-param>
|
||||
<expiration-cache>0</expiration-cache>
|
||||
<supports>
|
||||
<mime-type>text/html</mime-type>
|
||||
</supports>
|
||||
<portlet-info>
|
||||
<title>Create Users</title>
|
||||
<short-title>Create Users</short-title>
|
||||
<keywords>Create Users</keywords>
|
||||
</portlet-info>
|
||||
<portlet-preferences>
|
||||
<preference>
|
||||
<name>portlet-setup-show-borders</name>
|
||||
<value>true</value>
|
||||
</preference>
|
||||
</portlet-preferences>
|
||||
<security-role-ref>
|
||||
<role-name>administrator</role-name>
|
||||
</security-role-ref>
|
||||
</portlet>
|
||||
</portlet-app>
|
|
@ -0,0 +1,24 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!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>
|
||||
|
||||
<!-- Servlets -->
|
||||
<servlet>
|
||||
<servlet-name>servlet</servlet-name>
|
||||
<servlet-class>org.gcube.portlets.admin.createusers.server.CreateUsersImpl</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>servlet</servlet-name>
|
||||
<url-pattern>/createusers/usersservice</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<!-- Default page to serve -->
|
||||
<welcome-file-list>
|
||||
<welcome-file>CreateUsers.html</welcome-file>
|
||||
</welcome-file-list>
|
||||
|
||||
</web-app>
|
|
@ -0,0 +1,19 @@
|
|||
package org.gcube.portlets.admin.createusers.client;
|
||||
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
import org.gcube.portlets.admin.createusers.server.CreateUsersImpl;
|
||||
import org.junit.Test;
|
||||
|
||||
public class TestForDeploy {
|
||||
|
||||
@Test
|
||||
public void testUserIsTestUser() {
|
||||
CreateUsersImpl serviceImpl = new CreateUsersImpl();
|
||||
String username = serviceImpl.getDevelopmentUser();
|
||||
System.out.println("username for deploy is: " + username);
|
||||
assertTrue(username.compareTo("test.user") == 0);
|
||||
System.out.println("Test OK!");
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module rename-to="createusers">
|
||||
<!-- Inherit our applications main module. -->
|
||||
<inherits name='org.gcube.portlets.admin.createusers.CreateUsers' />
|
||||
|
||||
<!-- Specify the path to any remote services. -->
|
||||
<servlet path="/CreateUsers/greet" class="org.gcube.portlets.admin.createusers.server.GreetingServiceImpl" />
|
||||
|
||||
</module>
|
|
@ -0,0 +1,283 @@
|
|||
package com.github.gwtbootstrap.client.ui;
|
||||
|
||||
import com.google.gwt.core.client.GWT;
|
||||
import com.google.gwt.resources.client.ResourcePrototype;
|
||||
|
||||
public class CellTable_Resources_default_InlineClientBundleGenerator implements com.github.gwtbootstrap.client.ui.CellTable.Resources {
|
||||
private static CellTable_Resources_default_InlineClientBundleGenerator _instance0 = new CellTable_Resources_default_InlineClientBundleGenerator();
|
||||
private void cellTableFooterBackgroundInitializer() {
|
||||
cellTableFooterBackground = new com.google.gwt.resources.client.impl.ImageResourcePrototype(
|
||||
"cellTableFooterBackground",
|
||||
com.google.gwt.safehtml.shared.UriUtils.fromTrustedString(com.google.gwt.i18n.client.LocaleInfo.getCurrentLocale().isRTL() ?externalImage_rtl : externalImage),
|
||||
0, 0, 82, 23, false, false
|
||||
);
|
||||
}
|
||||
private static class cellTableFooterBackgroundInitializer {
|
||||
static {
|
||||
_instance0.cellTableFooterBackgroundInitializer();
|
||||
}
|
||||
static com.google.gwt.resources.client.ImageResource get() {
|
||||
return cellTableFooterBackground;
|
||||
}
|
||||
}
|
||||
public com.google.gwt.resources.client.ImageResource cellTableFooterBackground() {
|
||||
return cellTableFooterBackgroundInitializer.get();
|
||||
}
|
||||
private void cellTableHeaderBackgroundInitializer() {
|
||||
cellTableHeaderBackground = new com.google.gwt.resources.client.impl.ImageResourcePrototype(
|
||||
"cellTableHeaderBackground",
|
||||
com.google.gwt.safehtml.shared.UriUtils.fromTrustedString(com.google.gwt.i18n.client.LocaleInfo.getCurrentLocale().isRTL() ?externalImage_rtl0 : externalImage0),
|
||||
0, 0, 82, 23, false, false
|
||||
);
|
||||
}
|
||||
private static class cellTableHeaderBackgroundInitializer {
|
||||
static {
|
||||
_instance0.cellTableHeaderBackgroundInitializer();
|
||||
}
|
||||
static com.google.gwt.resources.client.ImageResource get() {
|
||||
return cellTableHeaderBackground;
|
||||
}
|
||||
}
|
||||
public com.google.gwt.resources.client.ImageResource cellTableHeaderBackground() {
|
||||
return cellTableHeaderBackgroundInitializer.get();
|
||||
}
|
||||
private void cellTableLoadingInitializer() {
|
||||
cellTableLoading = new com.google.gwt.resources.client.impl.ImageResourcePrototype(
|
||||
"cellTableLoading",
|
||||
com.google.gwt.safehtml.shared.UriUtils.fromTrustedString(com.google.gwt.i18n.client.LocaleInfo.getCurrentLocale().isRTL() ?externalImage_rtl1 : externalImage1),
|
||||
0, 0, 43, 11, true, false
|
||||
);
|
||||
}
|
||||
private static class cellTableLoadingInitializer {
|
||||
static {
|
||||
_instance0.cellTableLoadingInitializer();
|
||||
}
|
||||
static com.google.gwt.resources.client.ImageResource get() {
|
||||
return cellTableLoading;
|
||||
}
|
||||
}
|
||||
public com.google.gwt.resources.client.ImageResource cellTableLoading() {
|
||||
return cellTableLoadingInitializer.get();
|
||||
}
|
||||
private void cellTableSelectedBackgroundInitializer() {
|
||||
cellTableSelectedBackground = new com.google.gwt.resources.client.impl.ImageResourcePrototype(
|
||||
"cellTableSelectedBackground",
|
||||
com.google.gwt.safehtml.shared.UriUtils.fromTrustedString(com.google.gwt.i18n.client.LocaleInfo.getCurrentLocale().isRTL() ?externalImage_rtl2 : externalImage2),
|
||||
0, 0, 82, 26, false, false
|
||||
);
|
||||
}
|
||||
private static class cellTableSelectedBackgroundInitializer {
|
||||
static {
|
||||
_instance0.cellTableSelectedBackgroundInitializer();
|
||||
}
|
||||
static com.google.gwt.resources.client.ImageResource get() {
|
||||
return cellTableSelectedBackground;
|
||||
}
|
||||
}
|
||||
public com.google.gwt.resources.client.ImageResource cellTableSelectedBackground() {
|
||||
return cellTableSelectedBackgroundInitializer.get();
|
||||
}
|
||||
private void cellTableSortAscendingInitializer() {
|
||||
cellTableSortAscending = new com.google.gwt.resources.client.impl.ImageResourcePrototype(
|
||||
"cellTableSortAscending",
|
||||
com.google.gwt.safehtml.shared.UriUtils.fromTrustedString(com.google.gwt.i18n.client.LocaleInfo.getCurrentLocale().isRTL() ?externalImage_rtl3 : externalImage3),
|
||||
0, 0, 11, 7, false, false
|
||||
);
|
||||
}
|
||||
private static class cellTableSortAscendingInitializer {
|
||||
static {
|
||||
_instance0.cellTableSortAscendingInitializer();
|
||||
}
|
||||
static com.google.gwt.resources.client.ImageResource get() {
|
||||
return cellTableSortAscending;
|
||||
}
|
||||
}
|
||||
public com.google.gwt.resources.client.ImageResource cellTableSortAscending() {
|
||||
return cellTableSortAscendingInitializer.get();
|
||||
}
|
||||
private void cellTableSortDescendingInitializer() {
|
||||
cellTableSortDescending = new com.google.gwt.resources.client.impl.ImageResourcePrototype(
|
||||
"cellTableSortDescending",
|
||||
com.google.gwt.safehtml.shared.UriUtils.fromTrustedString(com.google.gwt.i18n.client.LocaleInfo.getCurrentLocale().isRTL() ?externalImage_rtl4 : externalImage4),
|
||||
0, 0, 11, 7, false, false
|
||||
);
|
||||
}
|
||||
private static class cellTableSortDescendingInitializer {
|
||||
static {
|
||||
_instance0.cellTableSortDescendingInitializer();
|
||||
}
|
||||
static com.google.gwt.resources.client.ImageResource get() {
|
||||
return cellTableSortDescending;
|
||||
}
|
||||
}
|
||||
public com.google.gwt.resources.client.ImageResource cellTableSortDescending() {
|
||||
return cellTableSortDescendingInitializer.get();
|
||||
}
|
||||
private void cellTableStyleInitializer() {
|
||||
cellTableStyle = new com.github.gwtbootstrap.client.ui.CellTable.Style() {
|
||||
private boolean injected;
|
||||
public boolean ensureInjected() {
|
||||
if (!injected) {
|
||||
injected = true;
|
||||
com.google.gwt.dom.client.StyleInjector.inject(getText());
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
public String getName() {
|
||||
return "cellTableStyle";
|
||||
}
|
||||
public String getText() {
|
||||
return (".GBK4L-TDJC{margin:" + ("30px") + ";}");
|
||||
}
|
||||
public java.lang.String cellTableCell() {
|
||||
return "GBK4L-TDJB";
|
||||
}
|
||||
public java.lang.String cellTableEvenRow() {
|
||||
return "GBK4L-TDKB";
|
||||
}
|
||||
public java.lang.String cellTableEvenRowCell() {
|
||||
return "GBK4L-TDLB";
|
||||
}
|
||||
public java.lang.String cellTableFirstColumn() {
|
||||
return "GBK4L-TDMB";
|
||||
}
|
||||
public java.lang.String cellTableFirstColumnFooter() {
|
||||
return "GBK4L-TDNB";
|
||||
}
|
||||
public java.lang.String cellTableFirstColumnHeader() {
|
||||
return "GBK4L-TDOB";
|
||||
}
|
||||
public java.lang.String cellTableFooter() {
|
||||
return "GBK4L-TDPB";
|
||||
}
|
||||
public java.lang.String cellTableHeader() {
|
||||
return "GBK4L-TDAC";
|
||||
}
|
||||
public java.lang.String cellTableHoveredRow() {
|
||||
return "GBK4L-TDBC";
|
||||
}
|
||||
public java.lang.String cellTableHoveredRowCell() {
|
||||
return "GBK4L-TDCC";
|
||||
}
|
||||
public java.lang.String cellTableKeyboardSelectedCell() {
|
||||
return "GBK4L-TDDC";
|
||||
}
|
||||
public java.lang.String cellTableKeyboardSelectedRow() {
|
||||
return "GBK4L-TDEC";
|
||||
}
|
||||
public java.lang.String cellTableKeyboardSelectedRowCell() {
|
||||
return "GBK4L-TDFC";
|
||||
}
|
||||
public java.lang.String cellTableLastColumn() {
|
||||
return "GBK4L-TDGC";
|
||||
}
|
||||
public java.lang.String cellTableLastColumnFooter() {
|
||||
return "GBK4L-TDHC";
|
||||
}
|
||||
public java.lang.String cellTableLastColumnHeader() {
|
||||
return "GBK4L-TDIC";
|
||||
}
|
||||
public java.lang.String cellTableLoading() {
|
||||
return "GBK4L-TDJC";
|
||||
}
|
||||
public java.lang.String cellTableOddRow() {
|
||||
return "GBK4L-TDKC";
|
||||
}
|
||||
public java.lang.String cellTableOddRowCell() {
|
||||
return "GBK4L-TDLC";
|
||||
}
|
||||
public java.lang.String cellTableSelectedRow() {
|
||||
return "GBK4L-TDMC";
|
||||
}
|
||||
public java.lang.String cellTableSelectedRowCell() {
|
||||
return "GBK4L-TDNC";
|
||||
}
|
||||
public java.lang.String cellTableSortableHeader() {
|
||||
return "GBK4L-TDOC";
|
||||
}
|
||||
public java.lang.String cellTableSortedHeaderAscending() {
|
||||
return "GBK4L-TDPC";
|
||||
}
|
||||
public java.lang.String cellTableSortedHeaderDescending() {
|
||||
return "GBK4L-TDAD";
|
||||
}
|
||||
public java.lang.String cellTableWidget() {
|
||||
return "GBK4L-TDBD";
|
||||
}
|
||||
}
|
||||
;
|
||||
}
|
||||
private static class cellTableStyleInitializer {
|
||||
static {
|
||||
_instance0.cellTableStyleInitializer();
|
||||
}
|
||||
static com.github.gwtbootstrap.client.ui.CellTable.Style get() {
|
||||
return cellTableStyle;
|
||||
}
|
||||
}
|
||||
public com.github.gwtbootstrap.client.ui.CellTable.Style cellTableStyle() {
|
||||
return cellTableStyleInitializer.get();
|
||||
}
|
||||
private static java.util.HashMap<java.lang.String, com.google.gwt.resources.client.ResourcePrototype> resourceMap;
|
||||
private static final java.lang.String externalImage = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFIAAAAXCAYAAACYuRhEAAAAj0lEQVR42u3EWwrCQBQE0d7/ekQEUUQEEQXjgxiMISI+cAW5M/los4f2swtOge4vof32NB2aYaZD/elpOlTvnqZD+co0Hc7PTNPh+Mg0HYphpsP+nmk67NpE02HbJJoOm1vQdFjXiabD6ho0HZZV0HRYXIKmw7wMmg6zsqPpMD0FTYfJMNNhfOhoOoyKoOl+PTDH5dhvR3oAAAAASUVORK5CYII=";
|
||||
private static final java.lang.String externalImage_rtl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFIAAAAXCAYAAACYuRhEAAAAj0lEQVR42u3EWwrCQBQE0d7/ekQEUUQEEQXjgxiMISI+cAW5M/los4f2swtOge4vof32NB2aYaZD/elpOlTvnqZD+co0Hc7PTNPh+Mg0HYphpsP+nmk67NpE02HbJJoOm1vQdFjXiabD6ho0HZZV0HRYXIKmw7wMmg6zsqPpMD0FTYfJMNNhfOhoOoyKoOl+PTDH5dhvR3oAAAAASUVORK5CYII=";
|
||||
private static final java.lang.String externalImage0 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFIAAAAXCAYAAACYuRhEAAAAj0lEQVR42u3EWwrCQBQE0d7/ekQEUUQEEQXjgxiMISI+cAW5M/los4f2swtOge4vof32NB2aYaZD/elpOlTvnqZD+co0Hc7PTNPh+Mg0HYphpsP+nmk67NpE02HbJJoOm1vQdFjXiabD6ho0HZZV0HRYXIKmw7wMmg6zsqPpMD0FTYfJMNNhfOhoOoyKoOl+PTDH5dhvR3oAAAAASUVORK5CYII=";
|
||||
private static final java.lang.String externalImage_rtl0 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFIAAAAXCAYAAACYuRhEAAAAj0lEQVR42u3EWwrCQBQE0d7/ekQEUUQEEQXjgxiMISI+cAW5M/los4f2swtOge4vof32NB2aYaZD/elpOlTvnqZD+co0Hc7PTNPh+Mg0HYphpsP+nmk67NpE02HbJJoOm1vQdFjXiabD6ho0HZZV0HRYXIKmw7wMmg6zsqPpMD0FTYfJMNNhfOhoOoyKoOl+PTDH5dhvR3oAAAAASUVORK5CYII=";
|
||||
private static final java.lang.String externalImage1 = "data:image/gif;base64,R0lGODlhKwALAPEAAP///0tKSqampktKSiH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCgAAACwAAAAAKwALAAACMoSOCMuW2diD88UKG95W88uF4DaGWFmhZid93pq+pwxnLUnXh8ou+sSz+T64oCAyTBUAACH5BAkKAAAALAAAAAArAAsAAAI9xI4IyyAPYWOxmoTHrHzzmGHe94xkmJifyqFKQ0pwLLgHa82xrekkDrIBZRQab1jyfY7KTtPimixiUsevAAAh+QQJCgAAACwAAAAAKwALAAACPYSOCMswD2FjqZpqW9xv4g8KE7d54XmMpNSgqLoOpgvC60xjNonnyc7p+VKamKw1zDCMR8rp8pksYlKorgAAIfkECQoAAAAsAAAAACsACwAAAkCEjgjLltnYmJS6Bxt+sfq5ZUyoNJ9HHlEqdCfFrqn7DrE2m7Wdj/2y45FkQ13t5itKdshFExC8YCLOEBX6AhQAADsAAAAAAAAAAAA=";
|
||||
private static final java.lang.String externalImage_rtl1 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACsAAAALCAYAAADm8XT2AAAAMElEQVR42mNgAIJly5b9J4QZ8AC66SdGIT4L6ap/1LGjjh117KhjRx1Le/1DpQYDAInICKwfCLm7AAAAAElFTkSuQmCC";
|
||||
private static final java.lang.String externalImage2 = "data:image/png;base64,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";
|
||||
private static final java.lang.String externalImage_rtl2 = "data:image/png;base64,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";
|
||||
private static final java.lang.String externalImage3 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAAHCAYAAADebrddAAAAiklEQVR42mNgwALyKrumFRf3iDAQAvmVXVVAxf/zKjq341WYV95hk1fZ+R+MK8C4HqtCkLW5FZ2PQYpyK6AaKjv/5VV1OmIozq3s3AFR0AXFUNMrO5/lV7WKI6yv6mxCksSGDyTU13Mw5JV2qeaWd54FWn0BRAMlLgPZl/NAuBKMz+dWdF0H2hwCAPwcZIjfOFLHAAAAAElFTkSuQmCC";
|
||||
private static final java.lang.String externalImage_rtl3 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAAHCAYAAADebrddAAAAiklEQVR42mNgQAPFxT0ieZVd0xiIAXkVnduBiv/nV3ZVEVJYD8T/8yqhuLzDBrvCqk5HoIJ/IEW5IA0VYPoxyFkoCvOrWsWBip4hTO2CYqCGys4dcIUJ9fUcQMEDcKuRMUxzVWcTWDFQZ0huRdd1oOB5IL4MVHAZaP1lEDu3vPMskH0BROeVdqkCAJLDZIgWLbFCAAAAAElFTkSuQmCC";
|
||||
private static final java.lang.String externalImage4 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAAHCAYAAADebrddAAAAiklEQVR42mPIrewMya3oup5X2XkeiC/nVXRezgViEDu3vPMskH0BROeVdqkyJNTXcwAlDgDxfwxcAaWrOpsYYCC/qlUcKPgMLlnZBcWd/4E272BAB0DdjkDJf2AFFRBTgfTj4uIeEQZsAKigHmE6EJd32DDgA0DF20FOyK/sqmIgBEDWAhVPwyYHAJAqZIiNwsHKAAAAAElFTkSuQmCC";
|
||||
private static final java.lang.String externalImage_rtl4 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAAHCAYAAADebrddAAAAiElEQVR42mPIK+1SzS3vPJtb0XkBROdVdl4Gsi/ngXAlGJ/Prei6nlvZGcIAAnlVnU1Awf9ABf/BNCY+kFBfz8EAA0CdOyASXVAM1/wsv6pVnAEZFBf3iACtfwxSkIuw4R/QVkcGbCCvvMMGbnUFGNcz4AP5lV1VYGdUdG5nIAYAFU8DOQtdHAD5g2SIRShEoQAAAABJRU5ErkJggg==";
|
||||
private static com.google.gwt.resources.client.ImageResource cellTableFooterBackground;
|
||||
private static com.google.gwt.resources.client.ImageResource cellTableHeaderBackground;
|
||||
private static com.google.gwt.resources.client.ImageResource cellTableLoading;
|
||||
private static com.google.gwt.resources.client.ImageResource cellTableSelectedBackground;
|
||||
private static com.google.gwt.resources.client.ImageResource cellTableSortAscending;
|
||||
private static com.google.gwt.resources.client.ImageResource cellTableSortDescending;
|
||||
private static com.github.gwtbootstrap.client.ui.CellTable.Style cellTableStyle;
|
||||
|
||||
public ResourcePrototype[] getResources() {
|
||||
return new ResourcePrototype[] {
|
||||
cellTableFooterBackground(),
|
||||
cellTableHeaderBackground(),
|
||||
cellTableLoading(),
|
||||
cellTableSelectedBackground(),
|
||||
cellTableSortAscending(),
|
||||
cellTableSortDescending(),
|
||||
cellTableStyle(),
|
||||
};
|
||||
}
|
||||
public ResourcePrototype getResource(String name) {
|
||||
if (GWT.isScript()) {
|
||||
return getResourceNative(name);
|
||||
} else {
|
||||
if (resourceMap == null) {
|
||||
resourceMap = new java.util.HashMap<java.lang.String, com.google.gwt.resources.client.ResourcePrototype>();
|
||||
resourceMap.put("cellTableFooterBackground", cellTableFooterBackground());
|
||||
resourceMap.put("cellTableHeaderBackground", cellTableHeaderBackground());
|
||||
resourceMap.put("cellTableLoading", cellTableLoading());
|
||||
resourceMap.put("cellTableSelectedBackground", cellTableSelectedBackground());
|
||||
resourceMap.put("cellTableSortAscending", cellTableSortAscending());
|
||||
resourceMap.put("cellTableSortDescending", cellTableSortDescending());
|
||||
resourceMap.put("cellTableStyle", cellTableStyle());
|
||||
}
|
||||
return resourceMap.get(name);
|
||||
}
|
||||
}
|
||||
private native ResourcePrototype getResourceNative(String name) /*-{
|
||||
switch (name) {
|
||||
case 'cellTableFooterBackground': return this.@com.google.gwt.user.cellview.client.CellTable.Resources::cellTableFooterBackground()();
|
||||
case 'cellTableHeaderBackground': return this.@com.google.gwt.user.cellview.client.CellTable.Resources::cellTableHeaderBackground()();
|
||||
case 'cellTableLoading': return this.@com.google.gwt.user.cellview.client.CellTable.Resources::cellTableLoading()();
|
||||
case 'cellTableSelectedBackground': return this.@com.google.gwt.user.cellview.client.CellTable.Resources::cellTableSelectedBackground()();
|
||||
case 'cellTableSortAscending': return this.@com.google.gwt.user.cellview.client.CellTable.Resources::cellTableSortAscending()();
|
||||
case 'cellTableSortDescending': return this.@com.google.gwt.user.cellview.client.CellTable.Resources::cellTableSortDescending()();
|
||||
case 'cellTableStyle': return this.@com.github.gwtbootstrap.client.ui.CellTable.Resources::cellTableStyle()();
|
||||
}
|
||||
return null;
|
||||
}-*/;
|
||||
}
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,80 @@
|
|||
package com.google.gwt.i18n.client.constants;
|
||||
|
||||
public class NumberConstantsImpl_ implements com.google.gwt.i18n.client.constants.NumberConstantsImpl {
|
||||
|
||||
public java.lang.String notANumber() {
|
||||
return "NaN";
|
||||
}
|
||||
|
||||
public java.lang.String currencyPattern() {
|
||||
return "¤#,##0.00";
|
||||
}
|
||||
|
||||
public java.lang.String decimalPattern() {
|
||||
return "#,##0.###";
|
||||
}
|
||||
|
||||
public java.lang.String decimalSeparator() {
|
||||
return ".";
|
||||
}
|
||||
|
||||
public java.lang.String defCurrencyCode() {
|
||||
return "USD";
|
||||
}
|
||||
|
||||
public java.lang.String exponentialSymbol() {
|
||||
return "E";
|
||||
}
|
||||
|
||||
public java.lang.String globalCurrencyPattern() {
|
||||
return "¤¤¤¤#,##0.00 ¤¤";
|
||||
}
|
||||
|
||||
public java.lang.String groupingSeparator() {
|
||||
return ",";
|
||||
}
|
||||
|
||||
public java.lang.String infinity() {
|
||||
return "∞";
|
||||
}
|
||||
|
||||
public java.lang.String minusSign() {
|
||||
return "-";
|
||||
}
|
||||
|
||||
public java.lang.String monetaryGroupingSeparator() {
|
||||
return ",";
|
||||
}
|
||||
|
||||
public java.lang.String monetarySeparator() {
|
||||
return ".";
|
||||
}
|
||||
|
||||
public java.lang.String percent() {
|
||||
return "%";
|
||||
}
|
||||
|
||||
public java.lang.String percentPattern() {
|
||||
return "#,##0%";
|
||||
}
|
||||
|
||||
public java.lang.String perMill() {
|
||||
return "‰";
|
||||
}
|
||||
|
||||
public java.lang.String plusSign() {
|
||||
return "+";
|
||||
}
|
||||
|
||||
public java.lang.String scientificPattern() {
|
||||
return "#E0";
|
||||
}
|
||||
|
||||
public java.lang.String simpleCurrencyPattern() {
|
||||
return "¤¤¤¤#,##0.00";
|
||||
}
|
||||
|
||||
public java.lang.String zeroDigit() {
|
||||
return "0";
|
||||
}
|
||||
}
|
|
@ -0,0 +1,30 @@
|
|||
package com.google.gwt.i18n.client.impl;
|
||||
|
||||
import com.google.gwt.core.client.GWT;
|
||||
import com.google.gwt.i18n.client.LocaleInfo;
|
||||
import com.google.gwt.i18n.client.constants.NumberConstants;
|
||||
import com.google.gwt.i18n.client.constants.NumberConstantsImpl;
|
||||
import com.google.gwt.i18n.client.DateTimeFormatInfo;
|
||||
import com.google.gwt.i18n.client.impl.cldr.DateTimeFormatInfoImpl;
|
||||
|
||||
public class LocaleInfoImpl_ extends LocaleInfoImpl_shared {
|
||||
@Override
|
||||
public String getLocaleName() {
|
||||
return "default";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getLocaleQueryParam() {
|
||||
return "locale";
|
||||
}
|
||||
|
||||
@Override
|
||||
public DateTimeFormatInfo getDateTimeFormatInfo() {
|
||||
return GWT.create(com.google.gwt.i18n.client.impl.cldr.DateTimeFormatInfoImpl.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public NumberConstants getNumberConstants() {
|
||||
return GWT.create(com.google.gwt.i18n.client.constants.NumberConstantsImpl.class);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,47 @@
|
|||
package com.google.gwt.i18n.client.impl;
|
||||
|
||||
import com.google.gwt.core.client.GWT;
|
||||
import com.google.gwt.core.client.JavaScriptObject;
|
||||
import java.util.HashMap;
|
||||
|
||||
public class LocaleInfoImpl_shared extends com.google.gwt.i18n.client.impl.LocaleInfoImpl {
|
||||
private static native String getLocaleNativeDisplayName(
|
||||
JavaScriptObject nativeDisplayNamesNative,String localeName) /*-{
|
||||
return nativeDisplayNamesNative[localeName];
|
||||
}-*/;
|
||||
|
||||
HashMap<String,String> nativeDisplayNamesJava;
|
||||
private JavaScriptObject nativeDisplayNamesNative;
|
||||
|
||||
@Override
|
||||
public String[] getAvailableLocaleNames() {
|
||||
return new String[] {
|
||||
"default",
|
||||
};
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getLocaleNativeDisplayName(String localeName) {
|
||||
if (GWT.isScript()) {
|
||||
if (nativeDisplayNamesNative == null) {
|
||||
nativeDisplayNamesNative = loadNativeDisplayNamesNative();
|
||||
}
|
||||
return getLocaleNativeDisplayName(nativeDisplayNamesNative, localeName);
|
||||
} else {
|
||||
if (nativeDisplayNamesJava == null) {
|
||||
nativeDisplayNamesJava = new HashMap<String, String>();
|
||||
}
|
||||
return nativeDisplayNamesJava.get(localeName);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasAnyRTL() {
|
||||
return false;
|
||||
}
|
||||
|
||||
private native JavaScriptObject loadNativeDisplayNamesNative() /*-{
|
||||
return {
|
||||
};
|
||||
}-*/;
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
package com.google.gwt.lang;
|
||||
public class org_00046gcube_00046portlets_00046admin_00046createusers_00046CreateUsers__EntryMethodHolder {
|
||||
public static final void init() {
|
||||
// to be synthesized later
|
||||
}
|
||||
}
|
|
@ -0,0 +1,94 @@
|
|||
package com.google.gwt.user.cellview.client;
|
||||
|
||||
public class AbstractCellTable_TemplateImpl implements com.google.gwt.user.cellview.client.AbstractCellTable.Template {
|
||||
|
||||
public com.google.gwt.safehtml.shared.SafeHtml div(com.google.gwt.safehtml.shared.SafeHtml arg0) {
|
||||
StringBuilder sb = new java.lang.StringBuilder();
|
||||
sb.append("<div style=\"outline:none;\">");
|
||||
sb.append(arg0.asString());
|
||||
sb.append("</div>");
|
||||
return new com.google.gwt.safehtml.shared.OnlyToBeUsedInGeneratedCodeStringBlessedAsSafeHtml(sb.toString());
|
||||
}
|
||||
|
||||
public com.google.gwt.safehtml.shared.SafeHtml tbody(com.google.gwt.safehtml.shared.SafeHtml arg0) {
|
||||
StringBuilder sb = new java.lang.StringBuilder();
|
||||
sb.append("<table><tbody>");
|
||||
sb.append(arg0.asString());
|
||||
sb.append("</tbody></table>");
|
||||
return new com.google.gwt.safehtml.shared.OnlyToBeUsedInGeneratedCodeStringBlessedAsSafeHtml(sb.toString());
|
||||
}
|
||||
|
||||
public com.google.gwt.safehtml.shared.SafeHtml td(java.lang.String arg0,com.google.gwt.safehtml.shared.SafeHtml arg1) {
|
||||
StringBuilder sb = new java.lang.StringBuilder();
|
||||
sb.append("<td class=\"");
|
||||
sb.append(com.google.gwt.safehtml.shared.SafeHtmlUtils.htmlEscape(arg0));
|
||||
sb.append("\">");
|
||||
sb.append(arg1.asString());
|
||||
sb.append("</td>");
|
||||
return new com.google.gwt.safehtml.shared.OnlyToBeUsedInGeneratedCodeStringBlessedAsSafeHtml(sb.toString());
|
||||
}
|
||||
|
||||
public com.google.gwt.safehtml.shared.SafeHtml tdBothAlign(java.lang.String arg0,java.lang.String arg1,java.lang.String arg2,com.google.gwt.safehtml.shared.SafeHtml arg3) {
|
||||
StringBuilder sb = new java.lang.StringBuilder();
|
||||
sb.append("<td class=\"");
|
||||
sb.append(com.google.gwt.safehtml.shared.SafeHtmlUtils.htmlEscape(arg0));
|
||||
sb.append("\" align=\"");
|
||||
sb.append(com.google.gwt.safehtml.shared.SafeHtmlUtils.htmlEscape(arg1));
|
||||
sb.append("\" valign=\"");
|
||||
sb.append(com.google.gwt.safehtml.shared.SafeHtmlUtils.htmlEscape(arg2));
|
||||
sb.append("\">");
|
||||
sb.append(arg3.asString());
|
||||
sb.append("</td>");
|
||||
return new com.google.gwt.safehtml.shared.OnlyToBeUsedInGeneratedCodeStringBlessedAsSafeHtml(sb.toString());
|
||||
}
|
||||
|
||||
public com.google.gwt.safehtml.shared.SafeHtml tdHorizontalAlign(java.lang.String arg0,java.lang.String arg1,com.google.gwt.safehtml.shared.SafeHtml arg2) {
|
||||
StringBuilder sb = new java.lang.StringBuilder();
|
||||
sb.append("<td class=\"");
|
||||
sb.append(com.google.gwt.safehtml.shared.SafeHtmlUtils.htmlEscape(arg0));
|
||||
sb.append("\" align=\"");
|
||||
sb.append(com.google.gwt.safehtml.shared.SafeHtmlUtils.htmlEscape(arg1));
|
||||
sb.append("\">");
|
||||
sb.append(arg2.asString());
|
||||
sb.append("</td>");
|
||||
return new com.google.gwt.safehtml.shared.OnlyToBeUsedInGeneratedCodeStringBlessedAsSafeHtml(sb.toString());
|
||||
}
|
||||
|
||||
public com.google.gwt.safehtml.shared.SafeHtml tdVerticalAlign(java.lang.String arg0,java.lang.String arg1,com.google.gwt.safehtml.shared.SafeHtml arg2) {
|
||||
StringBuilder sb = new java.lang.StringBuilder();
|
||||
sb.append("<td class=\"");
|
||||
sb.append(com.google.gwt.safehtml.shared.SafeHtmlUtils.htmlEscape(arg0));
|
||||
sb.append("\" valign=\"");
|
||||
sb.append(com.google.gwt.safehtml.shared.SafeHtmlUtils.htmlEscape(arg1));
|
||||
sb.append("\">");
|
||||
sb.append(arg2.asString());
|
||||
sb.append("</td>");
|
||||
return new com.google.gwt.safehtml.shared.OnlyToBeUsedInGeneratedCodeStringBlessedAsSafeHtml(sb.toString());
|
||||
}
|
||||
|
||||
public com.google.gwt.safehtml.shared.SafeHtml tfoot(com.google.gwt.safehtml.shared.SafeHtml arg0) {
|
||||
StringBuilder sb = new java.lang.StringBuilder();
|
||||
sb.append("<table><tfoot>");
|
||||
sb.append(arg0.asString());
|
||||
sb.append("</tfoot></table>");
|
||||
return new com.google.gwt.safehtml.shared.OnlyToBeUsedInGeneratedCodeStringBlessedAsSafeHtml(sb.toString());
|
||||
}
|
||||
|
||||
public com.google.gwt.safehtml.shared.SafeHtml thead(com.google.gwt.safehtml.shared.SafeHtml arg0) {
|
||||
StringBuilder sb = new java.lang.StringBuilder();
|
||||
sb.append("<table><thead>");
|
||||
sb.append(arg0.asString());
|
||||
sb.append("</thead></table>");
|
||||
return new com.google.gwt.safehtml.shared.OnlyToBeUsedInGeneratedCodeStringBlessedAsSafeHtml(sb.toString());
|
||||
}
|
||||
|
||||
public com.google.gwt.safehtml.shared.SafeHtml tr(java.lang.String arg0,com.google.gwt.safehtml.shared.SafeHtml arg1) {
|
||||
StringBuilder sb = new java.lang.StringBuilder();
|
||||
sb.append("<tr onclick=\"\" class=\"");
|
||||
sb.append(com.google.gwt.safehtml.shared.SafeHtmlUtils.htmlEscape(arg0));
|
||||
sb.append("\">");
|
||||
sb.append(arg1.asString());
|
||||
sb.append("</tr>");
|
||||
return new com.google.gwt.safehtml.shared.OnlyToBeUsedInGeneratedCodeStringBlessedAsSafeHtml(sb.toString());
|
||||
}
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
package com.google.gwt.user.client;
|
||||
|
||||
import com.google.gwt.user.client.DocumentModeAsserter.Severity;
|
||||
|
||||
public class DocumentModeAsserter_DocumentModeProperty implements com.google.gwt.user.client.DocumentModeAsserter.DocumentModeProperty {
|
||||
|
||||
public String[] getAllowedDocumentModes() {
|
||||
return new String[] {
|
||||
"CSS1Compat",
|
||||
};
|
||||
}
|
||||
|
||||
public Severity getDocumentModeSeverity() {
|
||||
return Severity.WARN;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,110 @@
|
|||
package com.google.gwt.user.client.impl;
|
||||
|
||||
import com.google.gwt.core.client.GWT;
|
||||
import com.google.gwt.resources.client.ResourcePrototype;
|
||||
|
||||
public class WindowImplIE_Resources_default_InlineClientBundleGenerator implements com.google.gwt.user.client.impl.WindowImplIE.Resources {
|
||||
private static WindowImplIE_Resources_default_InlineClientBundleGenerator _instance0 = new WindowImplIE_Resources_default_InlineClientBundleGenerator();
|
||||
private void initWindowCloseHandlerInitializer() {
|
||||
initWindowCloseHandler = new com.google.gwt.resources.client.TextResource() {
|
||||
// jar:file:/home/costantino/.m2/repository/com/google/gwt/gwt-user/2.7.0/gwt-user-2.7.0.jar!/com/google/gwt/user/client/impl/initWindowCloseHandler.js
|
||||
public String getText() {
|
||||
return "function __gwt_initWindowCloseHandler(beforeunload, unload) {\n var wnd = window\n , oldOnBeforeUnload = wnd.onbeforeunload\n , oldOnUnload = wnd.onunload;\n \n wnd.onbeforeunload = function(evt) {\n var ret, oldRet;\n try {\n ret = beforeunload();\n } finally {\n oldRet = oldOnBeforeUnload && oldOnBeforeUnload(evt);\n }\n // Avoid returning null as IE6 will coerce it into a string.\n // Ensure that \"\" gets returned properly.\n if (ret != null) {\n return ret;\n }\n if (oldRet != null) {\n return oldRet;\n }\n // returns undefined.\n };\n \n wnd.onunload = function(evt) {\n try {\n unload();\n } finally {\n oldOnUnload && oldOnUnload(evt);\n wnd.onresize = null;\n wnd.onscroll = null;\n wnd.onbeforeunload = null;\n wnd.onunload = null;\n }\n };\n \n // Remove the reference once we've initialize the handler\n wnd.__gwt_initWindowCloseHandler = undefined;\n}\n";
|
||||
}
|
||||
public String getName() {
|
||||
return "initWindowCloseHandler";
|
||||
}
|
||||
}
|
||||
;
|
||||
}
|
||||
private static class initWindowCloseHandlerInitializer {
|
||||
static {
|
||||
_instance0.initWindowCloseHandlerInitializer();
|
||||
}
|
||||
static com.google.gwt.resources.client.TextResource get() {
|
||||
return initWindowCloseHandler;
|
||||
}
|
||||
}
|
||||
public com.google.gwt.resources.client.TextResource initWindowCloseHandler() {
|
||||
return initWindowCloseHandlerInitializer.get();
|
||||
}
|
||||
private void initWindowResizeHandlerInitializer() {
|
||||
initWindowResizeHandler = new com.google.gwt.resources.client.TextResource() {
|
||||
// jar:file:/home/costantino/.m2/repository/com/google/gwt/gwt-user/2.7.0/gwt-user-2.7.0.jar!/com/google/gwt/user/client/impl/initWindowResizeHandler.js
|
||||
public String getText() {
|
||||
return "function __gwt_initWindowResizeHandler(resize) {\n var wnd = window, oldOnResize = wnd.onresize;\n \n wnd.onresize = function(evt) {\n try {\n resize();\n } finally {\n oldOnResize && oldOnResize(evt);\n }\n };\n \n // Remove the reference once we've initialize the handler\n wnd.__gwt_initWindowResizeHandler = undefined;\n}\n";
|
||||
}
|
||||
public String getName() {
|
||||
return "initWindowResizeHandler";
|
||||
}
|
||||
}
|
||||
;
|
||||
}
|
||||
private static class initWindowResizeHandlerInitializer {
|
||||
static {
|
||||
_instance0.initWindowResizeHandlerInitializer();
|
||||
}
|
||||
static com.google.gwt.resources.client.TextResource get() {
|
||||
return initWindowResizeHandler;
|
||||
}
|
||||
}
|
||||
public com.google.gwt.resources.client.TextResource initWindowResizeHandler() {
|
||||
return initWindowResizeHandlerInitializer.get();
|
||||
}
|
||||
private void initWindowScrollHandlerInitializer() {
|
||||
initWindowScrollHandler = new com.google.gwt.resources.client.TextResource() {
|
||||
// jar:file:/home/costantino/.m2/repository/com/google/gwt/gwt-user/2.7.0/gwt-user-2.7.0.jar!/com/google/gwt/user/client/impl/initWindowScrollHandler.js
|
||||
public String getText() {
|
||||
return "function __gwt_initWindowScrollHandler(scroll) {\n var wnd = window, oldOnScroll = wnd.onscroll;\n \n wnd.onscroll = function(evt) {\n try {\n scroll();\n } finally {\n oldOnScroll && oldOnScroll(evt);\n }\n };\n \n // Remove the reference once we've initialize the handler\n wnd.__gwt_initWindowScrollHandler = undefined;\n}\n";
|
||||
}
|
||||
public String getName() {
|
||||
return "initWindowScrollHandler";
|
||||
}
|
||||
}
|
||||
;
|
||||
}
|
||||
private static class initWindowScrollHandlerInitializer {
|
||||
static {
|
||||
_instance0.initWindowScrollHandlerInitializer();
|
||||
}
|
||||
static com.google.gwt.resources.client.TextResource get() {
|
||||
return initWindowScrollHandler;
|
||||
}
|
||||
}
|
||||
public com.google.gwt.resources.client.TextResource initWindowScrollHandler() {
|
||||
return initWindowScrollHandlerInitializer.get();
|
||||
}
|
||||
private static java.util.HashMap<java.lang.String, com.google.gwt.resources.client.ResourcePrototype> resourceMap;
|
||||
private static com.google.gwt.resources.client.TextResource initWindowCloseHandler;
|
||||
private static com.google.gwt.resources.client.TextResource initWindowResizeHandler;
|
||||
private static com.google.gwt.resources.client.TextResource initWindowScrollHandler;
|
||||
|
||||
public ResourcePrototype[] getResources() {
|
||||
return new ResourcePrototype[] {
|
||||
initWindowCloseHandler(),
|
||||
initWindowResizeHandler(),
|
||||
initWindowScrollHandler(),
|
||||
};
|
||||
}
|
||||
public ResourcePrototype getResource(String name) {
|
||||
if (GWT.isScript()) {
|
||||
return getResourceNative(name);
|
||||
} else {
|
||||
if (resourceMap == null) {
|
||||
resourceMap = new java.util.HashMap<java.lang.String, com.google.gwt.resources.client.ResourcePrototype>();
|
||||
resourceMap.put("initWindowCloseHandler", initWindowCloseHandler());
|
||||
resourceMap.put("initWindowResizeHandler", initWindowResizeHandler());
|
||||
resourceMap.put("initWindowScrollHandler", initWindowScrollHandler());
|
||||
}
|
||||
return resourceMap.get(name);
|
||||
}
|
||||
}
|
||||
private native ResourcePrototype getResourceNative(String name) /*-{
|
||||
switch (name) {
|
||||
case 'initWindowCloseHandler': return this.@com.google.gwt.user.client.impl.WindowImplIE.Resources::initWindowCloseHandler()();
|
||||
case 'initWindowResizeHandler': return this.@com.google.gwt.user.client.impl.WindowImplIE.Resources::initWindowResizeHandler()();
|
||||
case 'initWindowScrollHandler': return this.@com.google.gwt.user.client.impl.WindowImplIE.Resources::initWindowScrollHandler()();
|
||||
}
|
||||
return null;
|
||||
}-*/;
|
||||
}
|
|
@ -0,0 +1,36 @@
|
|||
package com.google.gwt.user.client.rpc;
|
||||
|
||||
import com.google.gwt.user.client.rpc.SerializationException;
|
||||
import com.google.gwt.user.client.rpc.SerializationStreamReader;
|
||||
import com.google.gwt.user.client.rpc.SerializationStreamWriter;
|
||||
import com.google.gwt.user.client.rpc.impl.ReflectionHelper;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class IncompatibleRemoteServiceException_FieldSerializer implements com.google.gwt.user.client.rpc.impl.TypeHandler {
|
||||
public static void deserialize(SerializationStreamReader streamReader, com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException instance) throws SerializationException {
|
||||
|
||||
com.google.gwt.user.client.rpc.core.java.lang.RuntimeException_FieldSerializer.deserialize(streamReader, instance);
|
||||
}
|
||||
|
||||
public static com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException instantiate(SerializationStreamReader streamReader) throws SerializationException {
|
||||
return new com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException();
|
||||
}
|
||||
|
||||
public static void serialize(SerializationStreamWriter streamWriter, com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException instance) throws SerializationException {
|
||||
|
||||
com.google.gwt.user.client.rpc.core.java.lang.RuntimeException_FieldSerializer.serialize(streamWriter, instance);
|
||||
}
|
||||
|
||||
public Object create(SerializationStreamReader reader) throws SerializationException {
|
||||
return com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException_FieldSerializer.instantiate(reader);
|
||||
}
|
||||
|
||||
public void deserial(SerializationStreamReader reader, Object object) throws SerializationException {
|
||||
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException_FieldSerializer.deserialize(reader, (com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException)object);
|
||||
}
|
||||
|
||||
public void serial(SerializationStreamWriter writer, Object object) throws SerializationException {
|
||||
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException_FieldSerializer.serialize(writer, (com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException)object);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,36 @@
|
|||
package com.google.gwt.user.client.rpc;
|
||||
|
||||
import com.google.gwt.user.client.rpc.SerializationException;
|
||||
import com.google.gwt.user.client.rpc.SerializationStreamReader;
|
||||
import com.google.gwt.user.client.rpc.SerializationStreamWriter;
|
||||
import com.google.gwt.user.client.rpc.impl.ReflectionHelper;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class RpcTokenException_FieldSerializer implements com.google.gwt.user.client.rpc.impl.TypeHandler {
|
||||
public static void deserialize(SerializationStreamReader streamReader, com.google.gwt.user.client.rpc.RpcTokenException instance) throws SerializationException {
|
||||
|
||||
com.google.gwt.user.client.rpc.core.java.lang.RuntimeException_FieldSerializer.deserialize(streamReader, instance);
|
||||
}
|
||||
|
||||
public static com.google.gwt.user.client.rpc.RpcTokenException instantiate(SerializationStreamReader streamReader) throws SerializationException {
|
||||
return new com.google.gwt.user.client.rpc.RpcTokenException();
|
||||
}
|
||||
|
||||
public static void serialize(SerializationStreamWriter streamWriter, com.google.gwt.user.client.rpc.RpcTokenException instance) throws SerializationException {
|
||||
|
||||
com.google.gwt.user.client.rpc.core.java.lang.RuntimeException_FieldSerializer.serialize(streamWriter, instance);
|
||||
}
|
||||
|
||||
public Object create(SerializationStreamReader reader) throws SerializationException {
|
||||
return com.google.gwt.user.client.rpc.RpcTokenException_FieldSerializer.instantiate(reader);
|
||||
}
|
||||
|
||||
public void deserial(SerializationStreamReader reader, Object object) throws SerializationException {
|
||||
com.google.gwt.user.client.rpc.RpcTokenException_FieldSerializer.deserialize(reader, (com.google.gwt.user.client.rpc.RpcTokenException)object);
|
||||
}
|
||||
|
||||
public void serial(SerializationStreamWriter writer, Object object) throws SerializationException {
|
||||
com.google.gwt.user.client.rpc.RpcTokenException_FieldSerializer.serialize(writer, (com.google.gwt.user.client.rpc.RpcTokenException)object);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,45 @@
|
|||
package com.google.gwt.user.client.rpc;
|
||||
|
||||
import com.google.gwt.user.client.rpc.SerializationException;
|
||||
import com.google.gwt.user.client.rpc.SerializationStreamReader;
|
||||
import com.google.gwt.user.client.rpc.SerializationStreamWriter;
|
||||
import com.google.gwt.user.client.rpc.impl.ReflectionHelper;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class XsrfToken_FieldSerializer implements com.google.gwt.user.client.rpc.impl.TypeHandler {
|
||||
private static native java.lang.String getToken(com.google.gwt.user.client.rpc.XsrfToken instance) /*-{
|
||||
return instance.@com.google.gwt.user.client.rpc.XsrfToken::token;
|
||||
}-*/;
|
||||
|
||||
private static native void setToken(com.google.gwt.user.client.rpc.XsrfToken instance, java.lang.String value)
|
||||
/*-{
|
||||
instance.@com.google.gwt.user.client.rpc.XsrfToken::token = value;
|
||||
}-*/;
|
||||
|
||||
public static void deserialize(SerializationStreamReader streamReader, com.google.gwt.user.client.rpc.XsrfToken instance) throws SerializationException {
|
||||
setToken(instance, streamReader.readString());
|
||||
|
||||
}
|
||||
|
||||
public static com.google.gwt.user.client.rpc.XsrfToken instantiate(SerializationStreamReader streamReader) throws SerializationException {
|
||||
return new com.google.gwt.user.client.rpc.XsrfToken();
|
||||
}
|
||||
|
||||
public static void serialize(SerializationStreamWriter streamWriter, com.google.gwt.user.client.rpc.XsrfToken instance) throws SerializationException {
|
||||
streamWriter.writeString(getToken(instance));
|
||||
|
||||
}
|
||||
|
||||
public Object create(SerializationStreamReader reader) throws SerializationException {
|
||||
return com.google.gwt.user.client.rpc.XsrfToken_FieldSerializer.instantiate(reader);
|
||||
}
|
||||
|
||||
public void deserial(SerializationStreamReader reader, Object object) throws SerializationException {
|
||||
com.google.gwt.user.client.rpc.XsrfToken_FieldSerializer.deserialize(reader, (com.google.gwt.user.client.rpc.XsrfToken)object);
|
||||
}
|
||||
|
||||
public void serial(SerializationStreamWriter writer, Object object) throws SerializationException {
|
||||
com.google.gwt.user.client.rpc.XsrfToken_FieldSerializer.serialize(writer, (com.google.gwt.user.client.rpc.XsrfToken)object);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,36 @@
|
|||
package com.google.gwt.user.client.rpc.core.java.lang;
|
||||
|
||||
import com.google.gwt.user.client.rpc.SerializationException;
|
||||
import com.google.gwt.user.client.rpc.SerializationStreamReader;
|
||||
import com.google.gwt.user.client.rpc.SerializationStreamWriter;
|
||||
import com.google.gwt.user.client.rpc.impl.ReflectionHelper;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Exception_FieldSerializer implements com.google.gwt.user.client.rpc.impl.TypeHandler {
|
||||
public static void deserialize(SerializationStreamReader streamReader, java.lang.Exception instance) throws SerializationException {
|
||||
|
||||
com.google.gwt.user.client.rpc.core.java.lang.Throwable_FieldSerializer.deserialize(streamReader, instance);
|
||||
}
|
||||
|
||||
public static java.lang.Exception instantiate(SerializationStreamReader streamReader) throws SerializationException {
|
||||
return new java.lang.Exception();
|
||||
}
|
||||
|
||||
public static void serialize(SerializationStreamWriter streamWriter, java.lang.Exception instance) throws SerializationException {
|
||||
|
||||
com.google.gwt.user.client.rpc.core.java.lang.Throwable_FieldSerializer.serialize(streamWriter, instance);
|
||||
}
|
||||
|
||||
public Object create(SerializationStreamReader reader) throws SerializationException {
|
||||
return com.google.gwt.user.client.rpc.core.java.lang.Exception_FieldSerializer.instantiate(reader);
|
||||
}
|
||||
|
||||
public void deserial(SerializationStreamReader reader, Object object) throws SerializationException {
|
||||
com.google.gwt.user.client.rpc.core.java.lang.Exception_FieldSerializer.deserialize(reader, (java.lang.Exception)object);
|
||||
}
|
||||
|
||||
public void serial(SerializationStreamWriter writer, Object object) throws SerializationException {
|
||||
com.google.gwt.user.client.rpc.core.java.lang.Exception_FieldSerializer.serialize(writer, (java.lang.Exception)object);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,36 @@
|
|||
package com.google.gwt.user.client.rpc.core.java.lang;
|
||||
|
||||
import com.google.gwt.user.client.rpc.SerializationException;
|
||||
import com.google.gwt.user.client.rpc.SerializationStreamReader;
|
||||
import com.google.gwt.user.client.rpc.SerializationStreamWriter;
|
||||
import com.google.gwt.user.client.rpc.impl.ReflectionHelper;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class RuntimeException_FieldSerializer implements com.google.gwt.user.client.rpc.impl.TypeHandler {
|
||||
public static void deserialize(SerializationStreamReader streamReader, java.lang.RuntimeException instance) throws SerializationException {
|
||||
|
||||
com.google.gwt.user.client.rpc.core.java.lang.Exception_FieldSerializer.deserialize(streamReader, instance);
|
||||
}
|
||||
|
||||
public static java.lang.RuntimeException instantiate(SerializationStreamReader streamReader) throws SerializationException {
|
||||
return new java.lang.RuntimeException();
|
||||
}
|
||||
|
||||
public static void serialize(SerializationStreamWriter streamWriter, java.lang.RuntimeException instance) throws SerializationException {
|
||||
|
||||
com.google.gwt.user.client.rpc.core.java.lang.Exception_FieldSerializer.serialize(streamWriter, instance);
|
||||
}
|
||||
|
||||
public Object create(SerializationStreamReader reader) throws SerializationException {
|
||||
return com.google.gwt.user.client.rpc.core.java.lang.RuntimeException_FieldSerializer.instantiate(reader);
|
||||
}
|
||||
|
||||
public void deserial(SerializationStreamReader reader, Object object) throws SerializationException {
|
||||
com.google.gwt.user.client.rpc.core.java.lang.RuntimeException_FieldSerializer.deserialize(reader, (java.lang.RuntimeException)object);
|
||||
}
|
||||
|
||||
public void serial(SerializationStreamWriter writer, Object object) throws SerializationException {
|
||||
com.google.gwt.user.client.rpc.core.java.lang.RuntimeException_FieldSerializer.serialize(writer, (java.lang.RuntimeException)object);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
package com.google.gwt.user.client.rpc.core.java.lang;
|
||||
|
||||
import com.google.gwt.user.client.rpc.SerializationException;
|
||||
import com.google.gwt.user.client.rpc.SerializationStreamReader;
|
||||
import com.google.gwt.user.client.rpc.SerializationStreamWriter;
|
||||
import com.google.gwt.user.client.rpc.impl.ReflectionHelper;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class String_FieldSerializer implements com.google.gwt.user.client.rpc.impl.TypeHandler {
|
||||
public Object create(SerializationStreamReader reader) throws SerializationException {
|
||||
return com.google.gwt.user.client.rpc.core.java.lang.String_CustomFieldSerializer.instantiate(reader);
|
||||
}
|
||||
|
||||
public void deserial(SerializationStreamReader reader, Object object) throws SerializationException {
|
||||
com.google.gwt.user.client.rpc.core.java.lang.String_CustomFieldSerializer.deserialize(reader, (java.lang.String)object);
|
||||
}
|
||||
|
||||
public void serial(SerializationStreamWriter writer, Object object) throws SerializationException {
|
||||
com.google.gwt.user.client.rpc.core.java.lang.String_CustomFieldSerializer.serialize(writer, (java.lang.String)object);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,45 @@
|
|||
package com.google.gwt.user.client.rpc.core.java.lang;
|
||||
|
||||
import com.google.gwt.user.client.rpc.SerializationException;
|
||||
import com.google.gwt.user.client.rpc.SerializationStreamReader;
|
||||
import com.google.gwt.user.client.rpc.SerializationStreamWriter;
|
||||
import com.google.gwt.user.client.rpc.impl.ReflectionHelper;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Throwable_FieldSerializer implements com.google.gwt.user.client.rpc.impl.TypeHandler {
|
||||
private static native java.lang.String getDetailMessage(java.lang.Throwable instance) /*-{
|
||||
return instance.@java.lang.Throwable::detailMessage;
|
||||
}-*/;
|
||||
|
||||
private static native void setDetailMessage(java.lang.Throwable instance, java.lang.String value)
|
||||
/*-{
|
||||
instance.@java.lang.Throwable::detailMessage = value;
|
||||
}-*/;
|
||||
|
||||
public static void deserialize(SerializationStreamReader streamReader, java.lang.Throwable instance) throws SerializationException {
|
||||
setDetailMessage(instance, streamReader.readString());
|
||||
|
||||
}
|
||||
|
||||
public static java.lang.Throwable instantiate(SerializationStreamReader streamReader) throws SerializationException {
|
||||
return new java.lang.Throwable();
|
||||
}
|
||||
|
||||
public static void serialize(SerializationStreamWriter streamWriter, java.lang.Throwable instance) throws SerializationException {
|
||||
streamWriter.writeString(getDetailMessage(instance));
|
||||
|
||||
}
|
||||
|
||||
public Object create(SerializationStreamReader reader) throws SerializationException {
|
||||
return com.google.gwt.user.client.rpc.core.java.lang.Throwable_FieldSerializer.instantiate(reader);
|
||||
}
|
||||
|
||||
public void deserial(SerializationStreamReader reader, Object object) throws SerializationException {
|
||||
com.google.gwt.user.client.rpc.core.java.lang.Throwable_FieldSerializer.deserialize(reader, (java.lang.Throwable)object);
|
||||
}
|
||||
|
||||
public void serial(SerializationStreamWriter writer, Object object) throws SerializationException {
|
||||
com.google.gwt.user.client.rpc.core.java.lang.Throwable_FieldSerializer.serialize(writer, (java.lang.Throwable)object);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
package com.google.gwt.user.client.rpc.core.java.util;
|
||||
|
||||
import com.google.gwt.user.client.rpc.SerializationException;
|
||||
import com.google.gwt.user.client.rpc.SerializationStreamReader;
|
||||
import com.google.gwt.user.client.rpc.SerializationStreamWriter;
|
||||
import com.google.gwt.user.client.rpc.impl.ReflectionHelper;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class ArrayList_FieldSerializer implements com.google.gwt.user.client.rpc.impl.TypeHandler {
|
||||
public static java.util.ArrayList instantiate(SerializationStreamReader streamReader) throws SerializationException {
|
||||
return new java.util.ArrayList();
|
||||
}
|
||||
|
||||
public Object create(SerializationStreamReader reader) throws SerializationException {
|
||||
return com.google.gwt.user.client.rpc.core.java.util.ArrayList_FieldSerializer.instantiate(reader);
|
||||
}
|
||||
|
||||
public void deserial(SerializationStreamReader reader, Object object) throws SerializationException {
|
||||
com.google.gwt.user.client.rpc.core.java.util.ArrayList_CustomFieldSerializer.deserialize(reader, (java.util.ArrayList)object);
|
||||
}
|
||||
|
||||
public void serial(SerializationStreamWriter writer, Object object) throws SerializationException {
|
||||
com.google.gwt.user.client.rpc.core.java.util.ArrayList_CustomFieldSerializer.serialize(writer, (java.util.ArrayList)object);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
package com.google.gwt.user.client.rpc.core.java.util;
|
||||
|
||||
import com.google.gwt.user.client.rpc.SerializationException;
|
||||
import com.google.gwt.user.client.rpc.SerializationStreamReader;
|
||||
import com.google.gwt.user.client.rpc.SerializationStreamWriter;
|
||||
import com.google.gwt.user.client.rpc.impl.ReflectionHelper;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Arrays_ArrayList_FieldSerializer implements com.google.gwt.user.client.rpc.impl.TypeHandler {
|
||||
public Object create(SerializationStreamReader reader) throws SerializationException {
|
||||
return com.google.gwt.user.client.rpc.core.java.util.Arrays.ArrayList_CustomFieldSerializer.instantiate(reader);
|
||||
}
|
||||
|
||||
public void deserial(SerializationStreamReader reader, Object object) throws SerializationException {
|
||||
com.google.gwt.user.client.rpc.core.java.util.Arrays.ArrayList_CustomFieldSerializer.deserialize(reader, (java.util.List)object);
|
||||
}
|
||||
|
||||
public void serial(SerializationStreamWriter writer, Object object) throws SerializationException {
|
||||
com.google.gwt.user.client.rpc.core.java.util.Arrays.ArrayList_CustomFieldSerializer.serialize(writer, (java.util.List)object);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
package com.google.gwt.user.client.rpc.core.java.util;
|
||||
|
||||
import com.google.gwt.user.client.rpc.SerializationException;
|
||||
import com.google.gwt.user.client.rpc.SerializationStreamReader;
|
||||
import com.google.gwt.user.client.rpc.SerializationStreamWriter;
|
||||
import com.google.gwt.user.client.rpc.impl.ReflectionHelper;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Collections_EmptyList_FieldSerializer implements com.google.gwt.user.client.rpc.impl.TypeHandler {
|
||||
public Object create(SerializationStreamReader reader) throws SerializationException {
|
||||
return com.google.gwt.user.client.rpc.core.java.util.Collections.EmptyList_CustomFieldSerializer.instantiate(reader);
|
||||
}
|
||||
|
||||
public void deserial(SerializationStreamReader reader, Object object) throws SerializationException {
|
||||
com.google.gwt.user.client.rpc.core.java.util.Collections.EmptyList_CustomFieldSerializer.deserialize(reader, (java.util.List)object);
|
||||
}
|
||||
|
||||
public void serial(SerializationStreamWriter writer, Object object) throws SerializationException {
|
||||
com.google.gwt.user.client.rpc.core.java.util.Collections.EmptyList_CustomFieldSerializer.serialize(writer, (java.util.List)object);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
package com.google.gwt.user.client.rpc.core.java.util;
|
||||
|
||||
import com.google.gwt.user.client.rpc.SerializationException;
|
||||
import com.google.gwt.user.client.rpc.SerializationStreamReader;
|
||||
import com.google.gwt.user.client.rpc.SerializationStreamWriter;
|
||||
import com.google.gwt.user.client.rpc.impl.ReflectionHelper;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Collections_SingletonList_FieldSerializer implements com.google.gwt.user.client.rpc.impl.TypeHandler {
|
||||
public Object create(SerializationStreamReader reader) throws SerializationException {
|
||||
return com.google.gwt.user.client.rpc.core.java.util.Collections.SingletonList_CustomFieldSerializer.instantiate(reader);
|
||||
}
|
||||
|
||||
public void deserial(SerializationStreamReader reader, Object object) throws SerializationException {
|
||||
com.google.gwt.user.client.rpc.core.java.util.Collections.SingletonList_CustomFieldSerializer.deserialize(reader, (java.util.List)object);
|
||||
}
|
||||
|
||||
public void serial(SerializationStreamWriter writer, Object object) throws SerializationException {
|
||||
com.google.gwt.user.client.rpc.core.java.util.Collections.SingletonList_CustomFieldSerializer.serialize(writer, (java.util.List)object);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
package com.google.gwt.user.client.rpc.core.java.util;
|
||||
|
||||
import com.google.gwt.user.client.rpc.SerializationException;
|
||||
import com.google.gwt.user.client.rpc.SerializationStreamReader;
|
||||
import com.google.gwt.user.client.rpc.SerializationStreamWriter;
|
||||
import com.google.gwt.user.client.rpc.impl.ReflectionHelper;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class LinkedList_FieldSerializer implements com.google.gwt.user.client.rpc.impl.TypeHandler {
|
||||
public static java.util.LinkedList instantiate(SerializationStreamReader streamReader) throws SerializationException {
|
||||
return new java.util.LinkedList();
|
||||
}
|
||||
|
||||
public Object create(SerializationStreamReader reader) throws SerializationException {
|
||||
return com.google.gwt.user.client.rpc.core.java.util.LinkedList_FieldSerializer.instantiate(reader);
|
||||
}
|
||||
|
||||
public void deserial(SerializationStreamReader reader, Object object) throws SerializationException {
|
||||
com.google.gwt.user.client.rpc.core.java.util.LinkedList_CustomFieldSerializer.deserialize(reader, (java.util.LinkedList)object);
|
||||
}
|
||||
|
||||
public void serial(SerializationStreamWriter writer, Object object) throws SerializationException {
|
||||
com.google.gwt.user.client.rpc.core.java.util.LinkedList_CustomFieldSerializer.serialize(writer, (java.util.LinkedList)object);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,36 @@
|
|||
package com.google.gwt.user.client.rpc.core.java.util;
|
||||
|
||||
import com.google.gwt.user.client.rpc.SerializationException;
|
||||
import com.google.gwt.user.client.rpc.SerializationStreamReader;
|
||||
import com.google.gwt.user.client.rpc.SerializationStreamWriter;
|
||||
import com.google.gwt.user.client.rpc.impl.ReflectionHelper;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Stack_FieldSerializer implements com.google.gwt.user.client.rpc.impl.TypeHandler {
|
||||
public static void deserialize(SerializationStreamReader streamReader, java.util.Stack instance) throws SerializationException {
|
||||
|
||||
com.google.gwt.user.client.rpc.core.java.util.Vector_CustomFieldSerializer.deserialize(streamReader, instance);
|
||||
}
|
||||
|
||||
public static java.util.Stack instantiate(SerializationStreamReader streamReader) throws SerializationException {
|
||||
return new java.util.Stack();
|
||||
}
|
||||
|
||||
public static void serialize(SerializationStreamWriter streamWriter, java.util.Stack instance) throws SerializationException {
|
||||
|
||||
com.google.gwt.user.client.rpc.core.java.util.Vector_CustomFieldSerializer.serialize(streamWriter, instance);
|
||||
}
|
||||
|
||||
public Object create(SerializationStreamReader reader) throws SerializationException {
|
||||
return com.google.gwt.user.client.rpc.core.java.util.Stack_FieldSerializer.instantiate(reader);
|
||||
}
|
||||
|
||||
public void deserial(SerializationStreamReader reader, Object object) throws SerializationException {
|
||||
com.google.gwt.user.client.rpc.core.java.util.Stack_FieldSerializer.deserialize(reader, (java.util.Stack)object);
|
||||
}
|
||||
|
||||
public void serial(SerializationStreamWriter writer, Object object) throws SerializationException {
|
||||
com.google.gwt.user.client.rpc.core.java.util.Stack_FieldSerializer.serialize(writer, (java.util.Stack)object);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
package com.google.gwt.user.client.rpc.core.java.util;
|
||||
|
||||
import com.google.gwt.user.client.rpc.SerializationException;
|
||||
import com.google.gwt.user.client.rpc.SerializationStreamReader;
|
||||
import com.google.gwt.user.client.rpc.SerializationStreamWriter;
|
||||
import com.google.gwt.user.client.rpc.impl.ReflectionHelper;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Vector_FieldSerializer implements com.google.gwt.user.client.rpc.impl.TypeHandler {
|
||||
public static java.util.Vector instantiate(SerializationStreamReader streamReader) throws SerializationException {
|
||||
return new java.util.Vector();
|
||||
}
|
||||
|
||||
public Object create(SerializationStreamReader reader) throws SerializationException {
|
||||
return com.google.gwt.user.client.rpc.core.java.util.Vector_FieldSerializer.instantiate(reader);
|
||||
}
|
||||
|
||||
public void deserial(SerializationStreamReader reader, Object object) throws SerializationException {
|
||||
com.google.gwt.user.client.rpc.core.java.util.Vector_CustomFieldSerializer.deserialize(reader, (java.util.Vector)object);
|
||||
}
|
||||
|
||||
public void serial(SerializationStreamWriter writer, Object object) throws SerializationException {
|
||||
com.google.gwt.user.client.rpc.core.java.util.Vector_CustomFieldSerializer.serialize(writer, (java.util.Vector)object);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
package com.google.gwt.user.client.ui.impl;
|
||||
|
||||
public class ClippedImageImpl_DraggableTemplateImpl implements com.google.gwt.user.client.ui.impl.ClippedImageImpl.DraggableTemplate {
|
||||
|
||||
public com.google.gwt.safehtml.shared.SafeHtml image(com.google.gwt.safehtml.shared.SafeUri arg0,com.google.gwt.safecss.shared.SafeStyles arg1) {
|
||||
StringBuilder sb = new java.lang.StringBuilder();
|
||||
sb.append("<img onload='this.__gwtLastUnhandledEvent=\"load\";' src='");
|
||||
sb.append(com.google.gwt.safehtml.shared.SafeHtmlUtils.htmlEscape(arg0.asString()));
|
||||
sb.append("' style='");
|
||||
sb.append(com.google.gwt.safehtml.shared.SafeHtmlUtils.htmlEscape(arg1.asString()));
|
||||
sb.append("' border='0' draggable='true'>");
|
||||
return new com.google.gwt.safehtml.shared.OnlyToBeUsedInGeneratedCodeStringBlessedAsSafeHtml(sb.toString());
|
||||
}
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
package com.google.gwt.user.client.ui.impl;
|
||||
|
||||
public class ClippedImageImpl_TemplateImpl implements com.google.gwt.user.client.ui.impl.ClippedImageImpl.Template {
|
||||
|
||||
public com.google.gwt.safehtml.shared.SafeHtml image(com.google.gwt.safehtml.shared.SafeUri arg0,com.google.gwt.safecss.shared.SafeStyles arg1) {
|
||||
StringBuilder sb = new java.lang.StringBuilder();
|
||||
sb.append("<img onload='this.__gwtLastUnhandledEvent=\"load\";' src='");
|
||||
sb.append(com.google.gwt.safehtml.shared.SafeHtmlUtils.htmlEscape(arg0.asString()));
|
||||
sb.append("' style='");
|
||||
sb.append(com.google.gwt.safehtml.shared.SafeHtmlUtils.htmlEscape(arg1.asString()));
|
||||
sb.append("' border='0'>");
|
||||
return new com.google.gwt.safehtml.shared.OnlyToBeUsedInGeneratedCodeStringBlessedAsSafeHtml(sb.toString());
|
||||
}
|
||||
}
|
|
@ -0,0 +1,30 @@
|
|||
package com.google.gwt.useragent.client;
|
||||
|
||||
public class UserAgentImplGecko1_8 implements com.google.gwt.useragent.client.UserAgent {
|
||||
|
||||
public native String getRuntimeValue() /*-{
|
||||
var ua = navigator.userAgent.toLowerCase();
|
||||
var docMode = $doc.documentMode;
|
||||
if ((function() {
|
||||
return (ua.indexOf('webkit') != -1);
|
||||
})()) return 'safari';
|
||||
if ((function() {
|
||||
return (ua.indexOf('msie') != -1 && (docMode >= 10 && docMode < 11));
|
||||
})()) return 'ie10';
|
||||
if ((function() {
|
||||
return (ua.indexOf('msie') != -1 && (docMode >= 9 && docMode < 11));
|
||||
})()) return 'ie9';
|
||||
if ((function() {
|
||||
return (ua.indexOf('msie') != -1 && (docMode >= 8 && docMode < 11));
|
||||
})()) return 'ie8';
|
||||
if ((function() {
|
||||
return (ua.indexOf('gecko') != -1 || docMode >= 11);
|
||||
})()) return 'gecko1_8';
|
||||
return 'unknown';
|
||||
}-*/;
|
||||
|
||||
|
||||
public String getCompileTimeValue() {
|
||||
return "gecko1_8";
|
||||
}
|
||||
}
|
|
@ -0,0 +1,30 @@
|
|||
package com.google.gwt.useragent.client;
|
||||
|
||||
public class UserAgentImplIe10 implements com.google.gwt.useragent.client.UserAgent {
|
||||
|
||||
public native String getRuntimeValue() /*-{
|
||||
var ua = navigator.userAgent.toLowerCase();
|
||||
var docMode = $doc.documentMode;
|
||||
if ((function() {
|
||||
return (ua.indexOf('webkit') != -1);
|
||||
})()) return 'safari';
|
||||
if ((function() {
|
||||
return (ua.indexOf('msie') != -1 && (docMode >= 10 && docMode < 11));
|
||||
})()) return 'ie10';
|
||||
if ((function() {
|
||||
return (ua.indexOf('msie') != -1 && (docMode >= 9 && docMode < 11));
|
||||
})()) return 'ie9';
|
||||
if ((function() {
|
||||
return (ua.indexOf('msie') != -1 && (docMode >= 8 && docMode < 11));
|
||||
})()) return 'ie8';
|
||||
if ((function() {
|
||||
return (ua.indexOf('gecko') != -1 || docMode >= 11);
|
||||
})()) return 'gecko1_8';
|
||||
return 'unknown';
|
||||
}-*/;
|
||||
|
||||
|
||||
public String getCompileTimeValue() {
|
||||
return "ie10";
|
||||
}
|
||||
}
|
|
@ -0,0 +1,30 @@
|
|||
package com.google.gwt.useragent.client;
|
||||
|
||||
public class UserAgentImplIe8 implements com.google.gwt.useragent.client.UserAgent {
|
||||
|
||||
public native String getRuntimeValue() /*-{
|
||||
var ua = navigator.userAgent.toLowerCase();
|
||||
var docMode = $doc.documentMode;
|
||||
if ((function() {
|
||||
return (ua.indexOf('webkit') != -1);
|
||||
})()) return 'safari';
|
||||
if ((function() {
|
||||
return (ua.indexOf('msie') != -1 && (docMode >= 10 && docMode < 11));
|
||||
})()) return 'ie10';
|
||||
if ((function() {
|
||||
return (ua.indexOf('msie') != -1 && (docMode >= 9 && docMode < 11));
|
||||
})()) return 'ie9';
|
||||
if ((function() {
|
||||
return (ua.indexOf('msie') != -1 && (docMode >= 8 && docMode < 11));
|
||||
})()) return 'ie8';
|
||||
if ((function() {
|
||||
return (ua.indexOf('gecko') != -1 || docMode >= 11);
|
||||
})()) return 'gecko1_8';
|
||||
return 'unknown';
|
||||
}-*/;
|
||||
|
||||
|
||||
public String getCompileTimeValue() {
|
||||
return "ie8";
|
||||
}
|
||||
}
|
|
@ -0,0 +1,30 @@
|
|||
package com.google.gwt.useragent.client;
|
||||
|
||||
public class UserAgentImplIe9 implements com.google.gwt.useragent.client.UserAgent {
|
||||
|
||||
public native String getRuntimeValue() /*-{
|
||||
var ua = navigator.userAgent.toLowerCase();
|
||||
var docMode = $doc.documentMode;
|
||||
if ((function() {
|
||||
return (ua.indexOf('webkit') != -1);
|
||||
})()) return 'safari';
|
||||
if ((function() {
|
||||
return (ua.indexOf('msie') != -1 && (docMode >= 10 && docMode < 11));
|
||||
})()) return 'ie10';
|
||||
if ((function() {
|
||||
return (ua.indexOf('msie') != -1 && (docMode >= 9 && docMode < 11));
|
||||
})()) return 'ie9';
|
||||
if ((function() {
|
||||
return (ua.indexOf('msie') != -1 && (docMode >= 8 && docMode < 11));
|
||||
})()) return 'ie8';
|
||||
if ((function() {
|
||||
return (ua.indexOf('gecko') != -1 || docMode >= 11);
|
||||
})()) return 'gecko1_8';
|
||||
return 'unknown';
|
||||
}-*/;
|
||||
|
||||
|
||||
public String getCompileTimeValue() {
|
||||
return "ie9";
|
||||
}
|
||||
}
|
|
@ -0,0 +1,30 @@
|
|||
package com.google.gwt.useragent.client;
|
||||
|
||||
public class UserAgentImplSafari implements com.google.gwt.useragent.client.UserAgent {
|
||||
|
||||
public native String getRuntimeValue() /*-{
|
||||
var ua = navigator.userAgent.toLowerCase();
|
||||
var docMode = $doc.documentMode;
|
||||
if ((function() {
|
||||
return (ua.indexOf('webkit') != -1);
|
||||
})()) return 'safari';
|
||||
if ((function() {
|
||||
return (ua.indexOf('msie') != -1 && (docMode >= 10 && docMode < 11));
|
||||
})()) return 'ie10';
|
||||
if ((function() {
|
||||
return (ua.indexOf('msie') != -1 && (docMode >= 9 && docMode < 11));
|
||||
})()) return 'ie9';
|
||||
if ((function() {
|
||||
return (ua.indexOf('msie') != -1 && (docMode >= 8 && docMode < 11));
|
||||
})()) return 'ie8';
|
||||
if ((function() {
|
||||
return (ua.indexOf('gecko') != -1 || docMode >= 11);
|
||||
})()) return 'gecko1_8';
|
||||
return 'unknown';
|
||||
}-*/;
|
||||
|
||||
|
||||
public String getCompileTimeValue() {
|
||||
return "safari";
|
||||
}
|
||||
}
|
|
@ -0,0 +1,72 @@
|
|||
package org.gcube.portlets.admin.createusers.client;
|
||||
|
||||
import com.google.gwt.user.client.rpc.impl.RemoteServiceProxy;
|
||||
import com.google.gwt.user.client.rpc.impl.ClientSerializationStreamWriter;
|
||||
import com.google.gwt.user.client.rpc.SerializationStreamWriter;
|
||||
import com.google.gwt.core.client.GWT;
|
||||
import com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.ResponseReader;
|
||||
import com.google.gwt.user.client.rpc.SerializationException;
|
||||
import com.google.gwt.user.client.rpc.RpcToken;
|
||||
import com.google.gwt.user.client.rpc.RpcTokenException;
|
||||
import com.google.gwt.core.client.impl.Impl;
|
||||
import com.google.gwt.user.client.rpc.impl.RpcStatsContext;
|
||||
|
||||
public class HandleUsersService_Proxy extends RemoteServiceProxy implements org.gcube.portlets.admin.createusers.client.HandleUsersServiceAsync {
|
||||
private static final String REMOTE_SERVICE_INTERFACE_NAME = "org.gcube.portlets.admin.createusers.client.HandleUsersService";
|
||||
private static final String SERIALIZATION_POLICY ="8B972F00FB49849AD6752BE168EE2733";
|
||||
private static final org.gcube.portlets.admin.createusers.client.HandleUsersService_TypeSerializer SERIALIZER = new org.gcube.portlets.admin.createusers.client.HandleUsersService_TypeSerializer();
|
||||
|
||||
public HandleUsersService_Proxy() {
|
||||
super(GWT.getModuleBaseURL(),
|
||||
"usersservice",
|
||||
SERIALIZATION_POLICY,
|
||||
SERIALIZER);
|
||||
}
|
||||
|
||||
public void getAlreadyRegisterdUsers(com.google.gwt.user.client.rpc.AsyncCallback callback) {
|
||||
com.google.gwt.user.client.rpc.impl.RemoteServiceProxy.ServiceHelper helper = new com.google.gwt.user.client.rpc.impl.RemoteServiceProxy.ServiceHelper("HandleUsersService_Proxy", "getAlreadyRegisterdUsers");
|
||||
try {
|
||||
SerializationStreamWriter streamWriter = helper.start(REMOTE_SERVICE_INTERFACE_NAME, 0);
|
||||
helper.finish(callback, ResponseReader.OBJECT);
|
||||
} catch (SerializationException ex) {
|
||||
callback.onFailure(ex);
|
||||
}
|
||||
}
|
||||
|
||||
public void register(java.lang.String name, java.lang.String surname, java.lang.String company, java.lang.String email, boolean sendEmail, boolean isMale, com.google.gwt.user.client.rpc.AsyncCallback callback) {
|
||||
com.google.gwt.user.client.rpc.impl.RemoteServiceProxy.ServiceHelper helper = new com.google.gwt.user.client.rpc.impl.RemoteServiceProxy.ServiceHelper("HandleUsersService_Proxy", "register");
|
||||
try {
|
||||
SerializationStreamWriter streamWriter = helper.start(REMOTE_SERVICE_INTERFACE_NAME, 6);
|
||||
streamWriter.writeString("java.lang.String/2004016611");
|
||||
streamWriter.writeString("java.lang.String/2004016611");
|
||||
streamWriter.writeString("java.lang.String/2004016611");
|
||||
streamWriter.writeString("java.lang.String/2004016611");
|
||||
streamWriter.writeString("Z");
|
||||
streamWriter.writeString("Z");
|
||||
streamWriter.writeString(name);
|
||||
streamWriter.writeString(surname);
|
||||
streamWriter.writeString(company);
|
||||
streamWriter.writeString(email);
|
||||
streamWriter.writeBoolean(sendEmail);
|
||||
streamWriter.writeBoolean(isMale);
|
||||
helper.finish(callback, ResponseReader.OBJECT);
|
||||
} catch (SerializationException ex) {
|
||||
callback.onFailure(ex);
|
||||
}
|
||||
}
|
||||
@Override
|
||||
public SerializationStreamWriter createStreamWriter() {
|
||||
ClientSerializationStreamWriter toReturn =
|
||||
(ClientSerializationStreamWriter) super.createStreamWriter();
|
||||
if (getRpcToken() != null) {
|
||||
toReturn.addFlags(ClientSerializationStreamWriter.FLAG_RPC_TOKEN_INCLUDED);
|
||||
}
|
||||
return toReturn;
|
||||
}
|
||||
@Override
|
||||
protected void checkRpcTokenType(RpcToken token) {
|
||||
if (!(token instanceof com.google.gwt.user.client.rpc.XsrfToken)) {
|
||||
throw new RpcTokenException("Invalid RpcToken type: expected 'com.google.gwt.user.client.rpc.XsrfToken' but got '" + token.getClass() + "'");
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,118 @@
|
|||
package org.gcube.portlets.admin.createusers.client;
|
||||
|
||||
import com.google.gwt.core.client.GWT;
|
||||
import com.google.gwt.core.client.JsArrayString;
|
||||
import com.google.gwt.user.client.rpc.impl.TypeHandler;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import com.google.gwt.core.client.GwtScriptOnly;
|
||||
|
||||
public class HandleUsersService_TypeSerializer extends com.google.gwt.user.client.rpc.impl.SerializerBase {
|
||||
private static final MethodMap methodMapNative;
|
||||
private static final JsArrayString signatureMapNative;
|
||||
|
||||
static {
|
||||
methodMapNative = loadMethodsNative();
|
||||
signatureMapNative = loadSignaturesNative();
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
@GwtScriptOnly
|
||||
private static native MethodMap loadMethodsNative() /*-{
|
||||
var result = {};
|
||||
result["com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException/3936916533"] = [
|
||||
@com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException_FieldSerializer::instantiate(Lcom/google/gwt/user/client/rpc/SerializationStreamReader;),
|
||||
@com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException_FieldSerializer::deserialize(Lcom/google/gwt/user/client/rpc/SerializationStreamReader;Lcom/google/gwt/user/client/rpc/IncompatibleRemoteServiceException;),
|
||||
@com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException_FieldSerializer::serialize(Lcom/google/gwt/user/client/rpc/SerializationStreamWriter;Lcom/google/gwt/user/client/rpc/IncompatibleRemoteServiceException;)
|
||||
];
|
||||
|
||||
result["com.google.gwt.user.client.rpc.RpcTokenException/2345075298"] = [
|
||||
@com.google.gwt.user.client.rpc.RpcTokenException_FieldSerializer::instantiate(Lcom/google/gwt/user/client/rpc/SerializationStreamReader;),
|
||||
@com.google.gwt.user.client.rpc.RpcTokenException_FieldSerializer::deserialize(Lcom/google/gwt/user/client/rpc/SerializationStreamReader;Lcom/google/gwt/user/client/rpc/RpcTokenException;),
|
||||
];
|
||||
|
||||
result["com.google.gwt.user.client.rpc.XsrfToken/4254043109"] = [
|
||||
,
|
||||
,
|
||||
@com.google.gwt.user.client.rpc.XsrfToken_FieldSerializer::serialize(Lcom/google/gwt/user/client/rpc/SerializationStreamWriter;Lcom/google/gwt/user/client/rpc/XsrfToken;)
|
||||
];
|
||||
|
||||
result["java.lang.String/2004016611"] = [
|
||||
@com.google.gwt.user.client.rpc.core.java.lang.String_CustomFieldSerializer::instantiate(Lcom/google/gwt/user/client/rpc/SerializationStreamReader;),
|
||||
@com.google.gwt.user.client.rpc.core.java.lang.String_CustomFieldSerializer::deserialize(Lcom/google/gwt/user/client/rpc/SerializationStreamReader;Ljava/lang/String;),
|
||||
@com.google.gwt.user.client.rpc.core.java.lang.String_CustomFieldSerializer::serialize(Lcom/google/gwt/user/client/rpc/SerializationStreamWriter;Ljava/lang/String;)
|
||||
];
|
||||
|
||||
result["java.util.ArrayList/4159755760"] = [
|
||||
@com.google.gwt.user.client.rpc.core.java.util.ArrayList_FieldSerializer::instantiate(Lcom/google/gwt/user/client/rpc/SerializationStreamReader;),
|
||||
@com.google.gwt.user.client.rpc.core.java.util.ArrayList_CustomFieldSerializer::deserialize(Lcom/google/gwt/user/client/rpc/SerializationStreamReader;Ljava/util/ArrayList;),
|
||||
];
|
||||
|
||||
result["java.util.Arrays$ArrayList/2507071751"] = [
|
||||
@com.google.gwt.user.client.rpc.core.java.util.Arrays.ArrayList_CustomFieldSerializer::instantiate(Lcom/google/gwt/user/client/rpc/SerializationStreamReader;),
|
||||
@com.google.gwt.user.client.rpc.core.java.util.Arrays.ArrayList_CustomFieldSerializer::deserialize(Lcom/google/gwt/user/client/rpc/SerializationStreamReader;Ljava/util/List;),
|
||||
];
|
||||
|
||||
result["java.util.Collections$EmptyList/4157118744"] = [
|
||||
@com.google.gwt.user.client.rpc.core.java.util.Collections.EmptyList_CustomFieldSerializer::instantiate(Lcom/google/gwt/user/client/rpc/SerializationStreamReader;),
|
||||
@com.google.gwt.user.client.rpc.core.java.util.Collections.EmptyList_CustomFieldSerializer::deserialize(Lcom/google/gwt/user/client/rpc/SerializationStreamReader;Ljava/util/List;),
|
||||
];
|
||||
|
||||
result["java.util.Collections$SingletonList/1586180994"] = [
|
||||
@com.google.gwt.user.client.rpc.core.java.util.Collections.SingletonList_CustomFieldSerializer::instantiate(Lcom/google/gwt/user/client/rpc/SerializationStreamReader;),
|
||||
@com.google.gwt.user.client.rpc.core.java.util.Collections.SingletonList_CustomFieldSerializer::deserialize(Lcom/google/gwt/user/client/rpc/SerializationStreamReader;Ljava/util/List;),
|
||||
];
|
||||
|
||||
result["java.util.LinkedList/3953877921"] = [
|
||||
@com.google.gwt.user.client.rpc.core.java.util.LinkedList_FieldSerializer::instantiate(Lcom/google/gwt/user/client/rpc/SerializationStreamReader;),
|
||||
@com.google.gwt.user.client.rpc.core.java.util.LinkedList_CustomFieldSerializer::deserialize(Lcom/google/gwt/user/client/rpc/SerializationStreamReader;Ljava/util/LinkedList;),
|
||||
];
|
||||
|
||||
result["java.util.Stack/1346942793"] = [
|
||||
@com.google.gwt.user.client.rpc.core.java.util.Stack_FieldSerializer::instantiate(Lcom/google/gwt/user/client/rpc/SerializationStreamReader;),
|
||||
@com.google.gwt.user.client.rpc.core.java.util.Stack_FieldSerializer::deserialize(Lcom/google/gwt/user/client/rpc/SerializationStreamReader;Ljava/util/Stack;),
|
||||
];
|
||||
|
||||
result["java.util.Vector/3057315478"] = [
|
||||
@com.google.gwt.user.client.rpc.core.java.util.Vector_FieldSerializer::instantiate(Lcom/google/gwt/user/client/rpc/SerializationStreamReader;),
|
||||
@com.google.gwt.user.client.rpc.core.java.util.Vector_CustomFieldSerializer::deserialize(Lcom/google/gwt/user/client/rpc/SerializationStreamReader;Ljava/util/Vector;),
|
||||
];
|
||||
|
||||
result["org.gcube.portlets.admin.createusers.shared.VreUserBean/2611311623"] = [
|
||||
@org.gcube.portlets.admin.createusers.shared.VreUserBean_FieldSerializer::instantiate(Lcom/google/gwt/user/client/rpc/SerializationStreamReader;),
|
||||
@org.gcube.portlets.admin.createusers.shared.VreUserBean_FieldSerializer::deserialize(Lcom/google/gwt/user/client/rpc/SerializationStreamReader;Lorg/gcube/portlets/admin/createusers/shared/VreUserBean;),
|
||||
];
|
||||
|
||||
result["[Lorg.gcube.portlets.admin.createusers.shared.VreUserBean;/2412273238"] = [
|
||||
@org.gcube.portlets.admin.createusers.shared.VreUserBean_Array_Rank_1_FieldSerializer::instantiate(Lcom/google/gwt/user/client/rpc/SerializationStreamReader;),
|
||||
@org.gcube.portlets.admin.createusers.shared.VreUserBean_Array_Rank_1_FieldSerializer::deserialize(Lcom/google/gwt/user/client/rpc/SerializationStreamReader;[Lorg/gcube/portlets/admin/createusers/shared/VreUserBean;),
|
||||
];
|
||||
|
||||
return result;
|
||||
}-*/;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
@GwtScriptOnly
|
||||
private static native JsArrayString loadSignaturesNative() /*-{
|
||||
var result = [];
|
||||
result[@com.google.gwt.core.client.impl.Impl::getHashCode(Ljava/lang/Object;)(@com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException::class)] = "com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException/3936916533";
|
||||
result[@com.google.gwt.core.client.impl.Impl::getHashCode(Ljava/lang/Object;)(@com.google.gwt.user.client.rpc.RpcTokenException::class)] = "com.google.gwt.user.client.rpc.RpcTokenException/2345075298";
|
||||
result[@com.google.gwt.core.client.impl.Impl::getHashCode(Ljava/lang/Object;)(@com.google.gwt.user.client.rpc.XsrfToken::class)] = "com.google.gwt.user.client.rpc.XsrfToken/4254043109";
|
||||
result[@com.google.gwt.core.client.impl.Impl::getHashCode(Ljava/lang/Object;)(@java.lang.String::class)] = "java.lang.String/2004016611";
|
||||
result[@com.google.gwt.core.client.impl.Impl::getHashCode(Ljava/lang/Object;)(@java.util.ArrayList::class)] = "java.util.ArrayList/4159755760";
|
||||
result[@com.google.gwt.core.client.impl.Impl::getHashCode(Ljava/lang/Object;)(@java.util.Arrays.ArrayList::class)] = "java.util.Arrays$ArrayList/2507071751";
|
||||
result[@com.google.gwt.core.client.impl.Impl::getHashCode(Ljava/lang/Object;)(@java.util.Collections.EmptyList::class)] = "java.util.Collections$EmptyList/4157118744";
|
||||
result[@com.google.gwt.core.client.impl.Impl::getHashCode(Ljava/lang/Object;)(@java.util.Collections.SingletonList::class)] = "java.util.Collections$SingletonList/1586180994";
|
||||
result[@com.google.gwt.core.client.impl.Impl::getHashCode(Ljava/lang/Object;)(@java.util.LinkedList::class)] = "java.util.LinkedList/3953877921";
|
||||
result[@com.google.gwt.core.client.impl.Impl::getHashCode(Ljava/lang/Object;)(@java.util.Stack::class)] = "java.util.Stack/1346942793";
|
||||
result[@com.google.gwt.core.client.impl.Impl::getHashCode(Ljava/lang/Object;)(@java.util.Vector::class)] = "java.util.Vector/3057315478";
|
||||
result[@com.google.gwt.core.client.impl.Impl::getHashCode(Ljava/lang/Object;)(@org.gcube.portlets.admin.createusers.shared.VreUserBean::class)] = "org.gcube.portlets.admin.createusers.shared.VreUserBean/2611311623";
|
||||
result[@com.google.gwt.core.client.impl.Impl::getHashCode(Ljava/lang/Object;)(@org.gcube.portlets.admin.createusers.shared.VreUserBean[]::class)] = "[Lorg.gcube.portlets.admin.createusers.shared.VreUserBean;/2412273238";
|
||||
return result;
|
||||
}-*/;
|
||||
|
||||
public HandleUsersService_TypeSerializer() {
|
||||
super(null, methodMapNative, null, signatureMapNative);
|
||||
}
|
||||
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,15 @@
|
|||
package org.gcube.portlets.admin.createusers.client.ui;
|
||||
|
||||
import com.google.gwt.resources.client.ClientBundle;
|
||||
import com.google.gwt.resources.client.DataResource;
|
||||
import com.google.gwt.resources.client.DataResource.DoNotEmbed;
|
||||
import com.google.gwt.resources.client.DataResource.MimeType;
|
||||
import com.google.gwt.resources.client.ImageResource;
|
||||
import com.google.gwt.resources.client.ImageResource.ImageOptions;
|
||||
import com.google.gwt.resources.client.CssResource.Import;
|
||||
|
||||
public interface AddUserForm_AddUserFormUiBinderImpl_GenBundle extends ClientBundle {
|
||||
@Source("uibinder.org.gcube.portlets.admin.createusers.client.ui.AddUserForm_AddUserFormUiBinderImpl_GenCss_style.css")
|
||||
AddUserForm_AddUserFormUiBinderImpl_GenCss_style style();
|
||||
|
||||
}
|
|
@ -0,0 +1,85 @@
|
|||
package org.gcube.portlets.admin.createusers.client.ui;
|
||||
|
||||
import com.google.gwt.core.client.GWT;
|
||||
import com.google.gwt.resources.client.ResourcePrototype;
|
||||
|
||||
public class AddUserForm_AddUserFormUiBinderImpl_GenBundle_default_InlineClientBundleGenerator implements org.gcube.portlets.admin.createusers.client.ui.AddUserForm_AddUserFormUiBinderImpl_GenBundle {
|
||||
private static AddUserForm_AddUserFormUiBinderImpl_GenBundle_default_InlineClientBundleGenerator _instance0 = new AddUserForm_AddUserFormUiBinderImpl_GenBundle_default_InlineClientBundleGenerator();
|
||||
private void styleInitializer() {
|
||||
style = new org.gcube.portlets.admin.createusers.client.ui.AddUserForm_AddUserFormUiBinderImpl_GenCss_style() {
|
||||
private boolean injected;
|
||||
public boolean ensureInjected() {
|
||||
if (!injected) {
|
||||
injected = true;
|
||||
com.google.gwt.dom.client.StyleInjector.inject(getText());
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
public String getName() {
|
||||
return "style";
|
||||
}
|
||||
public String getText() {
|
||||
return com.google.gwt.i18n.client.LocaleInfo.getCurrentLocale().isRTL() ? ((".GBK4L-TDKO{margin-right:" + ("10px") + ";}.GBK4L-TDIO{border:" + ("1px"+ " " +"groove"+ " " +"#444") + ";-webkit-box-shadow:" + ("0"+ " " +"0"+ " " +"0"+ " " +"0"+ " " +"#000") + ";box-shadow:" + ("0"+ " " +"0"+ " " +"0"+ " " +"0"+ " " +"#000") + ";padding:" + ("10px") + ";}.GBK4L-TDMO{width:" + ("auto") + ";padding:" + ("10px") + ";margin-bottom:" + ("0") + ";}.form-horizontal .control-label{margin-bottom:" + ("15px") + ";text-align:" + ("right") + ";}.form-horizontal .input-large{width:") + (("95%") + ";margin-bottom:" + ("15px") + ";}.GBK4L-TDGO{margin-top:" + ("10px") + ";padding:" + ("10px") + ";}")) : ((".GBK4L-TDKO{margin-left:" + ("10px") + ";}.GBK4L-TDIO{border:" + ("1px"+ " " +"groove"+ " " +"#444") + ";-webkit-box-shadow:" + ("0"+ " " +"0"+ " " +"0"+ " " +"0"+ " " +"#000") + ";box-shadow:" + ("0"+ " " +"0"+ " " +"0"+ " " +"0"+ " " +"#000") + ";padding:" + ("10px") + ";}.GBK4L-TDMO{width:" + ("auto") + ";padding:" + ("10px") + ";margin-bottom:" + ("0") + ";}.form-horizontal .control-label{margin-bottom:" + ("15px") + ";text-align:" + ("left") + ";}.form-horizontal .input-large{width:") + (("95%") + ";margin-bottom:" + ("15px") + ";}.GBK4L-TDGO{margin-top:" + ("10px") + ";padding:" + ("10px") + ";}"));
|
||||
}
|
||||
public java.lang.String blockAlertStyle() {
|
||||
return "GBK4L-TDGO";
|
||||
}
|
||||
public java.lang.String controlLabel() {
|
||||
return "control-label";
|
||||
}
|
||||
public java.lang.String fieldsetBorderStyle() {
|
||||
return "GBK4L-TDIO";
|
||||
}
|
||||
public java.lang.String formHorizontal() {
|
||||
return "form-horizontal";
|
||||
}
|
||||
public java.lang.String formMainStyle() {
|
||||
return "GBK4L-TDKO";
|
||||
}
|
||||
public java.lang.String inputLarge() {
|
||||
return "input-large";
|
||||
}
|
||||
public java.lang.String legendStyle() {
|
||||
return "GBK4L-TDMO";
|
||||
}
|
||||
}
|
||||
;
|
||||
}
|
||||
private static class styleInitializer {
|
||||
static {
|
||||
_instance0.styleInitializer();
|
||||
}
|
||||
static org.gcube.portlets.admin.createusers.client.ui.AddUserForm_AddUserFormUiBinderImpl_GenCss_style get() {
|
||||
return style;
|
||||
}
|
||||
}
|
||||
public org.gcube.portlets.admin.createusers.client.ui.AddUserForm_AddUserFormUiBinderImpl_GenCss_style style() {
|
||||
return styleInitializer.get();
|
||||
}
|
||||
private static java.util.HashMap<java.lang.String, com.google.gwt.resources.client.ResourcePrototype> resourceMap;
|
||||
private static org.gcube.portlets.admin.createusers.client.ui.AddUserForm_AddUserFormUiBinderImpl_GenCss_style style;
|
||||
|
||||
public ResourcePrototype[] getResources() {
|
||||
return new ResourcePrototype[] {
|
||||
style(),
|
||||
};
|
||||
}
|
||||
public ResourcePrototype getResource(String name) {
|
||||
if (GWT.isScript()) {
|
||||
return getResourceNative(name);
|
||||
} else {
|
||||
if (resourceMap == null) {
|
||||
resourceMap = new java.util.HashMap<java.lang.String, com.google.gwt.resources.client.ResourcePrototype>();
|
||||
resourceMap.put("style", style());
|
||||
}
|
||||
return resourceMap.get(name);
|
||||
}
|
||||
}
|
||||
private native ResourcePrototype getResourceNative(String name) /*-{
|
||||
switch (name) {
|
||||
case 'style': return this.@org.gcube.portlets.admin.createusers.client.ui.AddUserForm_AddUserFormUiBinderImpl_GenBundle::style()();
|
||||
}
|
||||
return null;
|
||||
}-*/;
|
||||
}
|
|
@ -0,0 +1,20 @@
|
|||
package org.gcube.portlets.admin.createusers.client.ui;
|
||||
|
||||
import com.google.gwt.resources.client.CssResource;
|
||||
|
||||
public interface AddUserForm_AddUserFormUiBinderImpl_GenCss_style extends CssResource {
|
||||
@ClassName("form-main-style")
|
||||
String formMainStyle();
|
||||
@ClassName("block-alert-style")
|
||||
String blockAlertStyle();
|
||||
@ClassName("input-large")
|
||||
String inputLarge();
|
||||
@ClassName("control-label")
|
||||
String controlLabel();
|
||||
@ClassName("legend-style")
|
||||
String legendStyle();
|
||||
@ClassName("fieldset-border-style")
|
||||
String fieldsetBorderStyle();
|
||||
@ClassName("form-horizontal")
|
||||
String formHorizontal();
|
||||
}
|
|
@ -0,0 +1,138 @@
|
|||
package org.gcube.portlets.admin.createusers.client.ui;
|
||||
|
||||
public class AddUserForm_AddUserFormUiBinderImpl_TemplateImpl implements org.gcube.portlets.admin.createusers.client.ui.AddUserForm_AddUserFormUiBinderImpl.Template {
|
||||
|
||||
public com.google.gwt.safehtml.shared.SafeHtml html1() {
|
||||
StringBuilder sb = new java.lang.StringBuilder();
|
||||
sb.append("Insert User Information <small>* is required</small>");
|
||||
return new com.google.gwt.safehtml.shared.OnlyToBeUsedInGeneratedCodeStringBlessedAsSafeHtml(sb.toString());
|
||||
}
|
||||
|
||||
public com.google.gwt.safehtml.shared.SafeHtml html2() {
|
||||
StringBuilder sb = new java.lang.StringBuilder();
|
||||
sb.append("<font color='red'>*</font> E-mail:");
|
||||
return new com.google.gwt.safehtml.shared.OnlyToBeUsedInGeneratedCodeStringBlessedAsSafeHtml(sb.toString());
|
||||
}
|
||||
|
||||
public com.google.gwt.safehtml.shared.SafeHtml html3(java.lang.String arg0) {
|
||||
StringBuilder sb = new java.lang.StringBuilder();
|
||||
sb.append("<span id='");
|
||||
sb.append(com.google.gwt.safehtml.shared.SafeHtmlUtils.htmlEscape(arg0));
|
||||
sb.append("'></span>");
|
||||
return new com.google.gwt.safehtml.shared.OnlyToBeUsedInGeneratedCodeStringBlessedAsSafeHtml(sb.toString());
|
||||
}
|
||||
|
||||
public com.google.gwt.safehtml.shared.SafeHtml html4() {
|
||||
StringBuilder sb = new java.lang.StringBuilder();
|
||||
sb.append("<font color='red'>*</font> Name:");
|
||||
return new com.google.gwt.safehtml.shared.OnlyToBeUsedInGeneratedCodeStringBlessedAsSafeHtml(sb.toString());
|
||||
}
|
||||
|
||||
public com.google.gwt.safehtml.shared.SafeHtml html5(java.lang.String arg0) {
|
||||
StringBuilder sb = new java.lang.StringBuilder();
|
||||
sb.append("<span id='");
|
||||
sb.append(com.google.gwt.safehtml.shared.SafeHtmlUtils.htmlEscape(arg0));
|
||||
sb.append("'></span>");
|
||||
return new com.google.gwt.safehtml.shared.OnlyToBeUsedInGeneratedCodeStringBlessedAsSafeHtml(sb.toString());
|
||||
}
|
||||
|
||||
public com.google.gwt.safehtml.shared.SafeHtml html6() {
|
||||
StringBuilder sb = new java.lang.StringBuilder();
|
||||
sb.append("<font color='red'>*</font> Surname:");
|
||||
return new com.google.gwt.safehtml.shared.OnlyToBeUsedInGeneratedCodeStringBlessedAsSafeHtml(sb.toString());
|
||||
}
|
||||
|
||||
public com.google.gwt.safehtml.shared.SafeHtml html7(java.lang.String arg0) {
|
||||
StringBuilder sb = new java.lang.StringBuilder();
|
||||
sb.append("<span id='");
|
||||
sb.append(com.google.gwt.safehtml.shared.SafeHtmlUtils.htmlEscape(arg0));
|
||||
sb.append("'></span>");
|
||||
return new com.google.gwt.safehtml.shared.OnlyToBeUsedInGeneratedCodeStringBlessedAsSafeHtml(sb.toString());
|
||||
}
|
||||
|
||||
public com.google.gwt.safehtml.shared.SafeHtml html8() {
|
||||
StringBuilder sb = new java.lang.StringBuilder();
|
||||
sb.append("Company:");
|
||||
return new com.google.gwt.safehtml.shared.OnlyToBeUsedInGeneratedCodeStringBlessedAsSafeHtml(sb.toString());
|
||||
}
|
||||
|
||||
public com.google.gwt.safehtml.shared.SafeHtml html9(java.lang.String arg0) {
|
||||
StringBuilder sb = new java.lang.StringBuilder();
|
||||
sb.append("<span id='");
|
||||
sb.append(com.google.gwt.safehtml.shared.SafeHtmlUtils.htmlEscape(arg0));
|
||||
sb.append("'></span>");
|
||||
return new com.google.gwt.safehtml.shared.OnlyToBeUsedInGeneratedCodeStringBlessedAsSafeHtml(sb.toString());
|
||||
}
|
||||
|
||||
public com.google.gwt.safehtml.shared.SafeHtml html10() {
|
||||
StringBuilder sb = new java.lang.StringBuilder();
|
||||
sb.append("Send mail:");
|
||||
return new com.google.gwt.safehtml.shared.OnlyToBeUsedInGeneratedCodeStringBlessedAsSafeHtml(sb.toString());
|
||||
}
|
||||
|
||||
public com.google.gwt.safehtml.shared.SafeHtml html11(java.lang.String arg0) {
|
||||
StringBuilder sb = new java.lang.StringBuilder();
|
||||
sb.append("<span id='");
|
||||
sb.append(com.google.gwt.safehtml.shared.SafeHtmlUtils.htmlEscape(arg0));
|
||||
sb.append("'></span>");
|
||||
return new com.google.gwt.safehtml.shared.OnlyToBeUsedInGeneratedCodeStringBlessedAsSafeHtml(sb.toString());
|
||||
}
|
||||
|
||||
public com.google.gwt.safehtml.shared.SafeHtml html12(java.lang.String arg0) {
|
||||
StringBuilder sb = new java.lang.StringBuilder();
|
||||
sb.append("<span id='");
|
||||
sb.append(com.google.gwt.safehtml.shared.SafeHtmlUtils.htmlEscape(arg0));
|
||||
sb.append("'></span>");
|
||||
return new com.google.gwt.safehtml.shared.OnlyToBeUsedInGeneratedCodeStringBlessedAsSafeHtml(sb.toString());
|
||||
}
|
||||
|
||||
public com.google.gwt.safehtml.shared.SafeHtml html13() {
|
||||
StringBuilder sb = new java.lang.StringBuilder();
|
||||
return new com.google.gwt.safehtml.shared.OnlyToBeUsedInGeneratedCodeStringBlessedAsSafeHtml(sb.toString());
|
||||
}
|
||||
|
||||
public com.google.gwt.safehtml.shared.SafeHtml html14() {
|
||||
StringBuilder sb = new java.lang.StringBuilder();
|
||||
return new com.google.gwt.safehtml.shared.OnlyToBeUsedInGeneratedCodeStringBlessedAsSafeHtml(sb.toString());
|
||||
}
|
||||
|
||||
public com.google.gwt.safehtml.shared.SafeHtml html15(java.lang.String arg0,java.lang.String arg1,java.lang.String arg2,java.lang.String arg3,java.lang.String arg4,java.lang.String arg5,java.lang.String arg6,java.lang.String arg7,java.lang.String arg8,java.lang.String arg9,java.lang.String arg10,java.lang.String arg11,java.lang.String arg12) {
|
||||
StringBuilder sb = new java.lang.StringBuilder();
|
||||
sb.append("<span id='");
|
||||
sb.append(com.google.gwt.safehtml.shared.SafeHtmlUtils.htmlEscape(arg0));
|
||||
sb.append("'></span> <span id='");
|
||||
sb.append(com.google.gwt.safehtml.shared.SafeHtmlUtils.htmlEscape(arg1));
|
||||
sb.append("'></span> <span id='");
|
||||
sb.append(com.google.gwt.safehtml.shared.SafeHtmlUtils.htmlEscape(arg2));
|
||||
sb.append("'></span> <span id='");
|
||||
sb.append(com.google.gwt.safehtml.shared.SafeHtmlUtils.htmlEscape(arg3));
|
||||
sb.append("'></span> <span id='");
|
||||
sb.append(com.google.gwt.safehtml.shared.SafeHtmlUtils.htmlEscape(arg4));
|
||||
sb.append("'></span> <span id='");
|
||||
sb.append(com.google.gwt.safehtml.shared.SafeHtmlUtils.htmlEscape(arg5));
|
||||
sb.append("'></span> <span id='");
|
||||
sb.append(com.google.gwt.safehtml.shared.SafeHtmlUtils.htmlEscape(arg6));
|
||||
sb.append("'></span> <span id='");
|
||||
sb.append(com.google.gwt.safehtml.shared.SafeHtmlUtils.htmlEscape(arg7));
|
||||
sb.append("'></span> <span id='");
|
||||
sb.append(com.google.gwt.safehtml.shared.SafeHtmlUtils.htmlEscape(arg8));
|
||||
sb.append("'></span> <span id='");
|
||||
sb.append(com.google.gwt.safehtml.shared.SafeHtmlUtils.htmlEscape(arg9));
|
||||
sb.append("'></span> <br> <span id='");
|
||||
sb.append(com.google.gwt.safehtml.shared.SafeHtmlUtils.htmlEscape(arg10));
|
||||
sb.append("'></span> <br> <span id='");
|
||||
sb.append(com.google.gwt.safehtml.shared.SafeHtmlUtils.htmlEscape(arg11));
|
||||
sb.append("'></span> <span id='");
|
||||
sb.append(com.google.gwt.safehtml.shared.SafeHtmlUtils.htmlEscape(arg12));
|
||||
sb.append("'></span>");
|
||||
return new com.google.gwt.safehtml.shared.OnlyToBeUsedInGeneratedCodeStringBlessedAsSafeHtml(sb.toString());
|
||||
}
|
||||
|
||||
public com.google.gwt.safehtml.shared.SafeHtml html16(java.lang.String arg0) {
|
||||
StringBuilder sb = new java.lang.StringBuilder();
|
||||
sb.append("<span id='");
|
||||
sb.append(com.google.gwt.safehtml.shared.SafeHtmlUtils.htmlEscape(arg0));
|
||||
sb.append("'></span>");
|
||||
return new com.google.gwt.safehtml.shared.OnlyToBeUsedInGeneratedCodeStringBlessedAsSafeHtml(sb.toString());
|
||||
}
|
||||
}
|
|
@ -0,0 +1,223 @@
|
|||
// .ui.xml template last modified: 1457703426000
|
||||
package org.gcube.portlets.admin.createusers.client.ui;
|
||||
|
||||
import com.google.gwt.core.client.GWT;
|
||||
import com.google.gwt.dom.client.Element;
|
||||
import com.google.gwt.safehtml.client.SafeHtmlTemplates;
|
||||
import com.google.gwt.safehtml.shared.SafeHtml;
|
||||
import com.google.gwt.safehtml.shared.SafeHtmlUtils;
|
||||
import com.google.gwt.safehtml.shared.SafeHtmlBuilder;
|
||||
import com.google.gwt.safehtml.shared.SafeUri;
|
||||
import com.google.gwt.safehtml.shared.UriUtils;
|
||||
import com.google.gwt.uibinder.client.UiBinderUtil;
|
||||
import com.google.gwt.uibinder.client.UiBinder;
|
||||
import com.google.gwt.uibinder.client.UiBinderUtil;
|
||||
import com.google.gwt.user.client.ui.Widget;
|
||||
|
||||
public class LoadingText_LoadingTextUiBinderImpl implements UiBinder<com.google.gwt.user.client.ui.Widget, org.gcube.portlets.admin.createusers.client.ui.LoadingText>, org.gcube.portlets.admin.createusers.client.ui.LoadingText.LoadingTextUiBinder {
|
||||
|
||||
interface Template extends SafeHtmlTemplates {
|
||||
@Template("Contacting database...")
|
||||
SafeHtml html1();
|
||||
|
||||
@Template("<span id='{0}'></span> <span id='{1}'></span>")
|
||||
SafeHtml html2(String arg0, String arg1);
|
||||
|
||||
}
|
||||
|
||||
Template template = GWT.create(Template.class);
|
||||
|
||||
|
||||
public com.google.gwt.user.client.ui.Widget createAndBindUi(final org.gcube.portlets.admin.createusers.client.ui.LoadingText owner) {
|
||||
|
||||
|
||||
return new Widgets(owner).get_f_VerticalPanel1();
|
||||
}
|
||||
|
||||
/**
|
||||
* Encapsulates the access to all inner widgets
|
||||
*/
|
||||
class Widgets {
|
||||
private final org.gcube.portlets.admin.createusers.client.ui.LoadingText owner;
|
||||
|
||||
|
||||
public Widgets(final org.gcube.portlets.admin.createusers.client.ui.LoadingText owner) {
|
||||
this.owner = owner;
|
||||
build_domId0(); // more than one getter call detected. Type: DOM_ID_HOLDER, precedence: 3
|
||||
build_domId1(); // more than one getter call detected. Type: DOM_ID_HOLDER, precedence: 3
|
||||
build_domId0Element(); // more than one getter call detected. Type: DEFAULT, precedence: 3
|
||||
build_domId1Element(); // more than one getter call detected. Type: DEFAULT, precedence: 3
|
||||
}
|
||||
|
||||
SafeHtml template_html1() {
|
||||
return template.html1();
|
||||
}
|
||||
SafeHtml template_html2() {
|
||||
return template.html2(get_domId0(), get_domId1());
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for clientBundleFieldNameUnlikelyToCollideWithUserSpecifiedFieldOkay called 0 times. Type: GENERATED_BUNDLE. Build precedence: 1.
|
||||
*/
|
||||
private org.gcube.portlets.admin.createusers.client.ui.LoadingText_LoadingTextUiBinderImpl_GenBundle get_clientBundleFieldNameUnlikelyToCollideWithUserSpecifiedFieldOkay() {
|
||||
return build_clientBundleFieldNameUnlikelyToCollideWithUserSpecifiedFieldOkay();
|
||||
}
|
||||
private org.gcube.portlets.admin.createusers.client.ui.LoadingText_LoadingTextUiBinderImpl_GenBundle build_clientBundleFieldNameUnlikelyToCollideWithUserSpecifiedFieldOkay() {
|
||||
// Creation section.
|
||||
final org.gcube.portlets.admin.createusers.client.ui.LoadingText_LoadingTextUiBinderImpl_GenBundle clientBundleFieldNameUnlikelyToCollideWithUserSpecifiedFieldOkay = (org.gcube.portlets.admin.createusers.client.ui.LoadingText_LoadingTextUiBinderImpl_GenBundle) GWT.create(org.gcube.portlets.admin.createusers.client.ui.LoadingText_LoadingTextUiBinderImpl_GenBundle.class);
|
||||
// Setup section.
|
||||
|
||||
return clientBundleFieldNameUnlikelyToCollideWithUserSpecifiedFieldOkay;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for f_VerticalPanel1 called 1 times. Type: DEFAULT. Build precedence: 1.
|
||||
*/
|
||||
private com.google.gwt.user.client.ui.VerticalPanel get_f_VerticalPanel1() {
|
||||
return build_f_VerticalPanel1();
|
||||
}
|
||||
private com.google.gwt.user.client.ui.VerticalPanel build_f_VerticalPanel1() {
|
||||
// Creation section.
|
||||
final com.google.gwt.user.client.ui.VerticalPanel f_VerticalPanel1 = (com.google.gwt.user.client.ui.VerticalPanel) GWT.create(com.google.gwt.user.client.ui.VerticalPanel.class);
|
||||
// Setup section.
|
||||
f_VerticalPanel1.setHorizontalAlignment(com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_CENTER);
|
||||
f_VerticalPanel1.add(get_f_Icon2());
|
||||
f_VerticalPanel1.add(get_f_Caption3());
|
||||
f_VerticalPanel1.setWidth("100%");
|
||||
|
||||
return f_VerticalPanel1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for f_Icon2 called 1 times. Type: DEFAULT. Build precedence: 2.
|
||||
*/
|
||||
private com.github.gwtbootstrap.client.ui.Icon get_f_Icon2() {
|
||||
return build_f_Icon2();
|
||||
}
|
||||
private com.github.gwtbootstrap.client.ui.Icon build_f_Icon2() {
|
||||
// Creation section.
|
||||
final com.github.gwtbootstrap.client.ui.Icon f_Icon2 = new com.github.gwtbootstrap.client.ui.Icon(com.github.gwtbootstrap.client.ui.constants.IconType.GEAR);
|
||||
// Setup section.
|
||||
f_Icon2.setSpin(true);
|
||||
f_Icon2.setSize(com.github.gwtbootstrap.client.ui.constants.IconSize.FOUR_TIMES);
|
||||
|
||||
return f_Icon2;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for f_Caption3 called 1 times. Type: DEFAULT. Build precedence: 2.
|
||||
*/
|
||||
private com.github.gwtbootstrap.client.ui.Caption get_f_Caption3() {
|
||||
return build_f_Caption3();
|
||||
}
|
||||
private com.github.gwtbootstrap.client.ui.Caption build_f_Caption3() {
|
||||
// Creation section.
|
||||
final com.github.gwtbootstrap.client.ui.Caption f_Caption3 = new com.github.gwtbootstrap.client.ui.Caption(template_html2().asString());
|
||||
// Setup section.
|
||||
|
||||
{
|
||||
// Attach section.
|
||||
UiBinderUtil.TempAttachment __attachRecord__ = UiBinderUtil.attachToDom(f_Caption3.getElement());
|
||||
|
||||
get_domId0Element().get();
|
||||
get_domId1Element().get();
|
||||
|
||||
// Detach section.
|
||||
__attachRecord__.detach();
|
||||
}
|
||||
f_Caption3.addAndReplaceElement(get_f_Heading4(), get_domId0Element().get());
|
||||
f_Caption3.addAndReplaceElement(get_f_Paragraph5(), get_domId1Element().get());
|
||||
|
||||
return f_Caption3;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for domId0 called 2 times. Type: DOM_ID_HOLDER. Build precedence: 3.
|
||||
*/
|
||||
private java.lang.String domId0;
|
||||
private java.lang.String get_domId0() {
|
||||
return domId0;
|
||||
}
|
||||
private java.lang.String build_domId0() {
|
||||
// Creation section.
|
||||
domId0 = com.google.gwt.dom.client.Document.get().createUniqueId();
|
||||
// Setup section.
|
||||
|
||||
return domId0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for f_Heading4 called 1 times. Type: DEFAULT. Build precedence: 3.
|
||||
*/
|
||||
private com.github.gwtbootstrap.client.ui.Heading get_f_Heading4() {
|
||||
return build_f_Heading4();
|
||||
}
|
||||
private com.github.gwtbootstrap.client.ui.Heading build_f_Heading4() {
|
||||
// Creation section.
|
||||
final com.github.gwtbootstrap.client.ui.Heading f_Heading4 = new com.github.gwtbootstrap.client.ui.Heading(4);
|
||||
// Setup section.
|
||||
f_Heading4.setText("Please wait");
|
||||
|
||||
return f_Heading4;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for domId0Element called 2 times. Type: DEFAULT. Build precedence: 3.
|
||||
*/
|
||||
private com.google.gwt.uibinder.client.LazyDomElement domId0Element;
|
||||
private com.google.gwt.uibinder.client.LazyDomElement get_domId0Element() {
|
||||
return domId0Element;
|
||||
}
|
||||
private com.google.gwt.uibinder.client.LazyDomElement build_domId0Element() {
|
||||
// Creation section.
|
||||
domId0Element = new com.google.gwt.uibinder.client.LazyDomElement<Element>(get_domId0());
|
||||
// Setup section.
|
||||
|
||||
return domId0Element;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for domId1 called 2 times. Type: DOM_ID_HOLDER. Build precedence: 3.
|
||||
*/
|
||||
private java.lang.String domId1;
|
||||
private java.lang.String get_domId1() {
|
||||
return domId1;
|
||||
}
|
||||
private java.lang.String build_domId1() {
|
||||
// Creation section.
|
||||
domId1 = com.google.gwt.dom.client.Document.get().createUniqueId();
|
||||
// Setup section.
|
||||
|
||||
return domId1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for f_Paragraph5 called 1 times. Type: DEFAULT. Build precedence: 3.
|
||||
*/
|
||||
private com.github.gwtbootstrap.client.ui.Paragraph get_f_Paragraph5() {
|
||||
return build_f_Paragraph5();
|
||||
}
|
||||
private com.github.gwtbootstrap.client.ui.Paragraph build_f_Paragraph5() {
|
||||
// Creation section.
|
||||
final com.github.gwtbootstrap.client.ui.Paragraph f_Paragraph5 = new com.github.gwtbootstrap.client.ui.Paragraph(template_html1().asString());
|
||||
// Setup section.
|
||||
|
||||
return f_Paragraph5;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for domId1Element called 2 times. Type: DEFAULT. Build precedence: 3.
|
||||
*/
|
||||
private com.google.gwt.uibinder.client.LazyDomElement domId1Element;
|
||||
private com.google.gwt.uibinder.client.LazyDomElement get_domId1Element() {
|
||||
return domId1Element;
|
||||
}
|
||||
private com.google.gwt.uibinder.client.LazyDomElement build_domId1Element() {
|
||||
// Creation section.
|
||||
domId1Element = new com.google.gwt.uibinder.client.LazyDomElement<Element>(get_domId1());
|
||||
// Setup section.
|
||||
|
||||
return domId1Element;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
package org.gcube.portlets.admin.createusers.client.ui;
|
||||
|
||||
import com.google.gwt.resources.client.ClientBundle;
|
||||
import com.google.gwt.resources.client.DataResource;
|
||||
import com.google.gwt.resources.client.DataResource.DoNotEmbed;
|
||||
import com.google.gwt.resources.client.DataResource.MimeType;
|
||||
import com.google.gwt.resources.client.ImageResource;
|
||||
import com.google.gwt.resources.client.ImageResource.ImageOptions;
|
||||
import com.google.gwt.resources.client.CssResource.Import;
|
||||
|
||||
public interface LoadingText_LoadingTextUiBinderImpl_GenBundle extends ClientBundle {
|
||||
}
|
|
@ -0,0 +1,20 @@
|
|||
package org.gcube.portlets.admin.createusers.client.ui;
|
||||
|
||||
public class LoadingText_LoadingTextUiBinderImpl_TemplateImpl implements org.gcube.portlets.admin.createusers.client.ui.LoadingText_LoadingTextUiBinderImpl.Template {
|
||||
|
||||
public com.google.gwt.safehtml.shared.SafeHtml html1() {
|
||||
StringBuilder sb = new java.lang.StringBuilder();
|
||||
sb.append("Contacting database...");
|
||||
return new com.google.gwt.safehtml.shared.OnlyToBeUsedInGeneratedCodeStringBlessedAsSafeHtml(sb.toString());
|
||||
}
|
||||
|
||||
public com.google.gwt.safehtml.shared.SafeHtml html2(java.lang.String arg0,java.lang.String arg1) {
|
||||
StringBuilder sb = new java.lang.StringBuilder();
|
||||
sb.append("<span id='");
|
||||
sb.append(com.google.gwt.safehtml.shared.SafeHtmlUtils.htmlEscape(arg0));
|
||||
sb.append("'></span> <span id='");
|
||||
sb.append(com.google.gwt.safehtml.shared.SafeHtmlUtils.htmlEscape(arg1));
|
||||
sb.append("'></span>");
|
||||
return new com.google.gwt.safehtml.shared.OnlyToBeUsedInGeneratedCodeStringBlessedAsSafeHtml(sb.toString());
|
||||
}
|
||||
}
|
|
@ -0,0 +1,283 @@
|
|||
package org.gcube.portlets.admin.createusers.client.ui;
|
||||
|
||||
import com.google.gwt.core.client.GWT;
|
||||
import com.google.gwt.resources.client.ResourcePrototype;
|
||||
|
||||
public class TableResources_default_InlineClientBundleGenerator implements org.gcube.portlets.admin.createusers.client.ui.TableResources {
|
||||
private static TableResources_default_InlineClientBundleGenerator _instance0 = new TableResources_default_InlineClientBundleGenerator();
|
||||
private void cellTableFooterBackgroundInitializer() {
|
||||
cellTableFooterBackground = new com.google.gwt.resources.client.impl.ImageResourcePrototype(
|
||||
"cellTableFooterBackground",
|
||||
com.google.gwt.safehtml.shared.UriUtils.fromTrustedString(com.google.gwt.i18n.client.LocaleInfo.getCurrentLocale().isRTL() ?externalImage_rtl : externalImage),
|
||||
0, 0, 82, 23, false, false
|
||||
);
|
||||
}
|
||||
private static class cellTableFooterBackgroundInitializer {
|
||||
static {
|
||||
_instance0.cellTableFooterBackgroundInitializer();
|
||||
}
|
||||
static com.google.gwt.resources.client.ImageResource get() {
|
||||
return cellTableFooterBackground;
|
||||
}
|
||||
}
|
||||
public com.google.gwt.resources.client.ImageResource cellTableFooterBackground() {
|
||||
return cellTableFooterBackgroundInitializer.get();
|
||||
}
|
||||
private void cellTableHeaderBackgroundInitializer() {
|
||||
cellTableHeaderBackground = new com.google.gwt.resources.client.impl.ImageResourcePrototype(
|
||||
"cellTableHeaderBackground",
|
||||
com.google.gwt.safehtml.shared.UriUtils.fromTrustedString(com.google.gwt.i18n.client.LocaleInfo.getCurrentLocale().isRTL() ?externalImage_rtl0 : externalImage0),
|
||||
0, 0, 82, 23, false, false
|
||||
);
|
||||
}
|
||||
private static class cellTableHeaderBackgroundInitializer {
|
||||
static {
|
||||
_instance0.cellTableHeaderBackgroundInitializer();
|
||||
}
|
||||
static com.google.gwt.resources.client.ImageResource get() {
|
||||
return cellTableHeaderBackground;
|
||||
}
|
||||
}
|
||||
public com.google.gwt.resources.client.ImageResource cellTableHeaderBackground() {
|
||||
return cellTableHeaderBackgroundInitializer.get();
|
||||
}
|
||||
private void cellTableLoadingInitializer() {
|
||||
cellTableLoading = new com.google.gwt.resources.client.impl.ImageResourcePrototype(
|
||||
"cellTableLoading",
|
||||
com.google.gwt.safehtml.shared.UriUtils.fromTrustedString(com.google.gwt.i18n.client.LocaleInfo.getCurrentLocale().isRTL() ?externalImage_rtl1 : externalImage1),
|
||||
0, 0, 43, 11, true, false
|
||||
);
|
||||
}
|
||||
private static class cellTableLoadingInitializer {
|
||||
static {
|
||||
_instance0.cellTableLoadingInitializer();
|
||||
}
|
||||
static com.google.gwt.resources.client.ImageResource get() {
|
||||
return cellTableLoading;
|
||||
}
|
||||
}
|
||||
public com.google.gwt.resources.client.ImageResource cellTableLoading() {
|
||||
return cellTableLoadingInitializer.get();
|
||||
}
|
||||
private void cellTableSelectedBackgroundInitializer() {
|
||||
cellTableSelectedBackground = new com.google.gwt.resources.client.impl.ImageResourcePrototype(
|
||||
"cellTableSelectedBackground",
|
||||
com.google.gwt.safehtml.shared.UriUtils.fromTrustedString(com.google.gwt.i18n.client.LocaleInfo.getCurrentLocale().isRTL() ?externalImage_rtl2 : externalImage2),
|
||||
0, 0, 82, 26, false, false
|
||||
);
|
||||
}
|
||||
private static class cellTableSelectedBackgroundInitializer {
|
||||
static {
|
||||
_instance0.cellTableSelectedBackgroundInitializer();
|
||||
}
|
||||
static com.google.gwt.resources.client.ImageResource get() {
|
||||
return cellTableSelectedBackground;
|
||||
}
|
||||
}
|
||||
public com.google.gwt.resources.client.ImageResource cellTableSelectedBackground() {
|
||||
return cellTableSelectedBackgroundInitializer.get();
|
||||
}
|
||||
private void cellTableSortAscendingInitializer() {
|
||||
cellTableSortAscending = new com.google.gwt.resources.client.impl.ImageResourcePrototype(
|
||||
"cellTableSortAscending",
|
||||
com.google.gwt.safehtml.shared.UriUtils.fromTrustedString(com.google.gwt.i18n.client.LocaleInfo.getCurrentLocale().isRTL() ?externalImage_rtl3 : externalImage3),
|
||||
0, 0, 11, 7, false, false
|
||||
);
|
||||
}
|
||||
private static class cellTableSortAscendingInitializer {
|
||||
static {
|
||||
_instance0.cellTableSortAscendingInitializer();
|
||||
}
|
||||
static com.google.gwt.resources.client.ImageResource get() {
|
||||
return cellTableSortAscending;
|
||||
}
|
||||
}
|
||||
public com.google.gwt.resources.client.ImageResource cellTableSortAscending() {
|
||||
return cellTableSortAscendingInitializer.get();
|
||||
}
|
||||
private void cellTableSortDescendingInitializer() {
|
||||
cellTableSortDescending = new com.google.gwt.resources.client.impl.ImageResourcePrototype(
|
||||
"cellTableSortDescending",
|
||||
com.google.gwt.safehtml.shared.UriUtils.fromTrustedString(com.google.gwt.i18n.client.LocaleInfo.getCurrentLocale().isRTL() ?externalImage_rtl4 : externalImage4),
|
||||
0, 0, 11, 7, false, false
|
||||
);
|
||||
}
|
||||
private static class cellTableSortDescendingInitializer {
|
||||
static {
|
||||
_instance0.cellTableSortDescendingInitializer();
|
||||
}
|
||||
static com.google.gwt.resources.client.ImageResource get() {
|
||||
return cellTableSortDescending;
|
||||
}
|
||||
}
|
||||
public com.google.gwt.resources.client.ImageResource cellTableSortDescending() {
|
||||
return cellTableSortDescendingInitializer.get();
|
||||
}
|
||||
private void cellTableStyleInitializer() {
|
||||
cellTableStyle = new org.gcube.portlets.admin.createusers.client.ui.TableResources.TableStyle() {
|
||||
private boolean injected;
|
||||
public boolean ensureInjected() {
|
||||
if (!injected) {
|
||||
injected = true;
|
||||
com.google.gwt.dom.client.StyleInjector.inject(getText());
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
public String getName() {
|
||||
return "cellTableStyle";
|
||||
}
|
||||
public String getText() {
|
||||
return (".GBK4L-TDEP{vertical-align:" + ("bottom") + " !important;font-weight:" + ("bold") + ";}.GBK4L-TDNO{padding:" + ("4px") + ";vertical-align:" + ("middle") + " !important;overflow:" + ("hidden") + ";font-size:" + ("12px") + ";}.GBK4L-TDJP,.GBK4L-TDHP{border:" + ("none") + ";}.GBK4L-TDAQ{background:" + ("#628cd5") + ";}.GBK4L-TDNP{margin:" + ("30px") + ";}.GBK4L-TDIP{background:" + ("#c9c9c1") + ";}");
|
||||
}
|
||||
public java.lang.String cellTableCell() {
|
||||
return "GBK4L-TDNO";
|
||||
}
|
||||
public java.lang.String cellTableEvenRow() {
|
||||
return "GBK4L-TDOO";
|
||||
}
|
||||
public java.lang.String cellTableEvenRowCell() {
|
||||
return "GBK4L-TDPO";
|
||||
}
|
||||
public java.lang.String cellTableFirstColumn() {
|
||||
return "GBK4L-TDAP";
|
||||
}
|
||||
public java.lang.String cellTableFirstColumnFooter() {
|
||||
return "GBK4L-TDBP";
|
||||
}
|
||||
public java.lang.String cellTableFirstColumnHeader() {
|
||||
return "GBK4L-TDCP";
|
||||
}
|
||||
public java.lang.String cellTableFooter() {
|
||||
return "GBK4L-TDDP";
|
||||
}
|
||||
public java.lang.String cellTableHeader() {
|
||||
return "GBK4L-TDEP";
|
||||
}
|
||||
public java.lang.String cellTableHoveredRow() {
|
||||
return "GBK4L-TDFP";
|
||||
}
|
||||
public java.lang.String cellTableHoveredRowCell() {
|
||||
return "GBK4L-TDGP";
|
||||
}
|
||||
public java.lang.String cellTableKeyboardSelectedCell() {
|
||||
return "GBK4L-TDHP";
|
||||
}
|
||||
public java.lang.String cellTableKeyboardSelectedRow() {
|
||||
return "GBK4L-TDIP";
|
||||
}
|
||||
public java.lang.String cellTableKeyboardSelectedRowCell() {
|
||||
return "GBK4L-TDJP";
|
||||
}
|
||||
public java.lang.String cellTableLastColumn() {
|
||||
return "GBK4L-TDKP";
|
||||
}
|
||||
public java.lang.String cellTableLastColumnFooter() {
|
||||
return "GBK4L-TDLP";
|
||||
}
|
||||
public java.lang.String cellTableLastColumnHeader() {
|
||||
return "GBK4L-TDMP";
|
||||
}
|
||||
public java.lang.String cellTableLoading() {
|
||||
return "GBK4L-TDNP";
|
||||
}
|
||||
public java.lang.String cellTableOddRow() {
|
||||
return "GBK4L-TDOP";
|
||||
}
|
||||
public java.lang.String cellTableOddRowCell() {
|
||||
return "GBK4L-TDPP";
|
||||
}
|
||||
public java.lang.String cellTableSelectedRow() {
|
||||
return "GBK4L-TDAQ";
|
||||
}
|
||||
public java.lang.String cellTableSelectedRowCell() {
|
||||
return "GBK4L-TDBQ";
|
||||
}
|
||||
public java.lang.String cellTableSortableHeader() {
|
||||
return "GBK4L-TDCQ";
|
||||
}
|
||||
public java.lang.String cellTableSortedHeaderAscending() {
|
||||
return "GBK4L-TDDQ";
|
||||
}
|
||||
public java.lang.String cellTableSortedHeaderDescending() {
|
||||
return "GBK4L-TDEQ";
|
||||
}
|
||||
public java.lang.String cellTableWidget() {
|
||||
return "GBK4L-TDFQ";
|
||||
}
|
||||
}
|
||||
;
|
||||
}
|
||||
private static class cellTableStyleInitializer {
|
||||
static {
|
||||
_instance0.cellTableStyleInitializer();
|
||||
}
|
||||
static org.gcube.portlets.admin.createusers.client.ui.TableResources.TableStyle get() {
|
||||
return cellTableStyle;
|
||||
}
|
||||
}
|
||||
public org.gcube.portlets.admin.createusers.client.ui.TableResources.TableStyle cellTableStyle() {
|
||||
return cellTableStyleInitializer.get();
|
||||
}
|
||||
private static java.util.HashMap<java.lang.String, com.google.gwt.resources.client.ResourcePrototype> resourceMap;
|
||||
private static final java.lang.String externalImage = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFIAAAAXCAYAAACYuRhEAAAAj0lEQVR42u3EWwrCQBQE0d7/ekQEUUQEEQXjgxiMISI+cAW5M/los4f2swtOge4vof32NB2aYaZD/elpOlTvnqZD+co0Hc7PTNPh+Mg0HYphpsP+nmk67NpE02HbJJoOm1vQdFjXiabD6ho0HZZV0HRYXIKmw7wMmg6zsqPpMD0FTYfJMNNhfOhoOoyKoOl+PTDH5dhvR3oAAAAASUVORK5CYII=";
|
||||
private static final java.lang.String externalImage_rtl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFIAAAAXCAYAAACYuRhEAAAAj0lEQVR42u3EWwrCQBQE0d7/ekQEUUQEEQXjgxiMISI+cAW5M/los4f2swtOge4vof32NB2aYaZD/elpOlTvnqZD+co0Hc7PTNPh+Mg0HYphpsP+nmk67NpE02HbJJoOm1vQdFjXiabD6ho0HZZV0HRYXIKmw7wMmg6zsqPpMD0FTYfJMNNhfOhoOoyKoOl+PTDH5dhvR3oAAAAASUVORK5CYII=";
|
||||
private static final java.lang.String externalImage0 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFIAAAAXCAYAAACYuRhEAAAAj0lEQVR42u3EWwrCQBQE0d7/ekQEUUQEEQXjgxiMISI+cAW5M/los4f2swtOge4vof32NB2aYaZD/elpOlTvnqZD+co0Hc7PTNPh+Mg0HYphpsP+nmk67NpE02HbJJoOm1vQdFjXiabD6ho0HZZV0HRYXIKmw7wMmg6zsqPpMD0FTYfJMNNhfOhoOoyKoOl+PTDH5dhvR3oAAAAASUVORK5CYII=";
|
||||
private static final java.lang.String externalImage_rtl0 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFIAAAAXCAYAAACYuRhEAAAAj0lEQVR42u3EWwrCQBQE0d7/ekQEUUQEEQXjgxiMISI+cAW5M/los4f2swtOge4vof32NB2aYaZD/elpOlTvnqZD+co0Hc7PTNPh+Mg0HYphpsP+nmk67NpE02HbJJoOm1vQdFjXiabD6ho0HZZV0HRYXIKmw7wMmg6zsqPpMD0FTYfJMNNhfOhoOoyKoOl+PTDH5dhvR3oAAAAASUVORK5CYII=";
|
||||
private static final java.lang.String externalImage1 = "data:image/gif;base64,R0lGODlhKwALAPEAAP///0tKSqampktKSiH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCgAAACwAAAAAKwALAAACMoSOCMuW2diD88UKG95W88uF4DaGWFmhZid93pq+pwxnLUnXh8ou+sSz+T64oCAyTBUAACH5BAkKAAAALAAAAAArAAsAAAI9xI4IyyAPYWOxmoTHrHzzmGHe94xkmJifyqFKQ0pwLLgHa82xrekkDrIBZRQab1jyfY7KTtPimixiUsevAAAh+QQJCgAAACwAAAAAKwALAAACPYSOCMswD2FjqZpqW9xv4g8KE7d54XmMpNSgqLoOpgvC60xjNonnyc7p+VKamKw1zDCMR8rp8pksYlKorgAAIfkECQoAAAAsAAAAACsACwAAAkCEjgjLltnYmJS6Bxt+sfq5ZUyoNJ9HHlEqdCfFrqn7DrE2m7Wdj/2y45FkQ13t5itKdshFExC8YCLOEBX6AhQAADsAAAAAAAAAAAA=";
|
||||
private static final java.lang.String externalImage_rtl1 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACsAAAALCAYAAADm8XT2AAAAMElEQVR42mNgAIJly5b9J4QZ8AC66SdGIT4L6ap/1LGjjh117KhjRx1Le/1DpQYDAInICKwfCLm7AAAAAElFTkSuQmCC";
|
||||
private static final java.lang.String externalImage2 = "data:image/png;base64,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";
|
||||
private static final java.lang.String externalImage_rtl2 = "data:image/png;base64,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";
|
||||
private static final java.lang.String externalImage3 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAAHCAYAAADebrddAAAAiklEQVR42mNgwALyKrumFRf3iDAQAvmVXVVAxf/zKjq341WYV95hk1fZ+R+MK8C4HqtCkLW5FZ2PQYpyK6AaKjv/5VV1OmIozq3s3AFR0AXFUNMrO5/lV7WKI6yv6mxCksSGDyTU13Mw5JV2qeaWd54FWn0BRAMlLgPZl/NAuBKMz+dWdF0H2hwCAPwcZIjfOFLHAAAAAElFTkSuQmCC";
|
||||
private static final java.lang.String externalImage_rtl3 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAAHCAYAAADebrddAAAAiklEQVR42mNgQAPFxT0ieZVd0xiIAXkVnduBiv/nV3ZVEVJYD8T/8yqhuLzDBrvCqk5HoIJ/IEW5IA0VYPoxyFkoCvOrWsWBip4hTO2CYqCGys4dcIUJ9fUcQMEDcKuRMUxzVWcTWDFQZ0huRdd1oOB5IL4MVHAZaP1lEDu3vPMskH0BROeVdqkCAJLDZIgWLbFCAAAAAElFTkSuQmCC";
|
||||
private static final java.lang.String externalImage4 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAAHCAYAAADebrddAAAAiklEQVR42mPIrewMya3oup5X2XkeiC/nVXRezgViEDu3vPMskH0BROeVdqkyJNTXcwAlDgDxfwxcAaWrOpsYYCC/qlUcKPgMLlnZBcWd/4E272BAB0DdjkDJf2AFFRBTgfTj4uIeEQZsAKigHmE6EJd32DDgA0DF20FOyK/sqmIgBEDWAhVPwyYHAJAqZIiNwsHKAAAAAElFTkSuQmCC";
|
||||
private static final java.lang.String externalImage_rtl4 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAAHCAYAAADebrddAAAAiElEQVR42mPIK+1SzS3vPJtb0XkBROdVdl4Gsi/ngXAlGJ/Prei6nlvZGcIAAnlVnU1Awf9ABf/BNCY+kFBfz8EAA0CdOyASXVAM1/wsv6pVnAEZFBf3iACtfwxSkIuw4R/QVkcGbCCvvMMGbnUFGNcz4AP5lV1VYGdUdG5nIAYAFU8DOQtdHAD5g2SIRShEoQAAAABJRU5ErkJggg==";
|
||||
private static com.google.gwt.resources.client.ImageResource cellTableFooterBackground;
|
||||
private static com.google.gwt.resources.client.ImageResource cellTableHeaderBackground;
|
||||
private static com.google.gwt.resources.client.ImageResource cellTableLoading;
|
||||
private static com.google.gwt.resources.client.ImageResource cellTableSelectedBackground;
|
||||
private static com.google.gwt.resources.client.ImageResource cellTableSortAscending;
|
||||
private static com.google.gwt.resources.client.ImageResource cellTableSortDescending;
|
||||
private static org.gcube.portlets.admin.createusers.client.ui.TableResources.TableStyle cellTableStyle;
|
||||
|
||||
public ResourcePrototype[] getResources() {
|
||||
return new ResourcePrototype[] {
|
||||
cellTableFooterBackground(),
|
||||
cellTableHeaderBackground(),
|
||||
cellTableLoading(),
|
||||
cellTableSelectedBackground(),
|
||||
cellTableSortAscending(),
|
||||
cellTableSortDescending(),
|
||||
cellTableStyle(),
|
||||
};
|
||||
}
|
||||
public ResourcePrototype getResource(String name) {
|
||||
if (GWT.isScript()) {
|
||||
return getResourceNative(name);
|
||||
} else {
|
||||
if (resourceMap == null) {
|
||||
resourceMap = new java.util.HashMap<java.lang.String, com.google.gwt.resources.client.ResourcePrototype>();
|
||||
resourceMap.put("cellTableFooterBackground", cellTableFooterBackground());
|
||||
resourceMap.put("cellTableHeaderBackground", cellTableHeaderBackground());
|
||||
resourceMap.put("cellTableLoading", cellTableLoading());
|
||||
resourceMap.put("cellTableSelectedBackground", cellTableSelectedBackground());
|
||||
resourceMap.put("cellTableSortAscending", cellTableSortAscending());
|
||||
resourceMap.put("cellTableSortDescending", cellTableSortDescending());
|
||||
resourceMap.put("cellTableStyle", cellTableStyle());
|
||||
}
|
||||
return resourceMap.get(name);
|
||||
}
|
||||
}
|
||||
private native ResourcePrototype getResourceNative(String name) /*-{
|
||||
switch (name) {
|
||||
case 'cellTableFooterBackground': return this.@com.google.gwt.user.cellview.client.CellTable.Resources::cellTableFooterBackground()();
|
||||
case 'cellTableHeaderBackground': return this.@com.google.gwt.user.cellview.client.CellTable.Resources::cellTableHeaderBackground()();
|
||||
case 'cellTableLoading': return this.@com.google.gwt.user.cellview.client.CellTable.Resources::cellTableLoading()();
|
||||
case 'cellTableSelectedBackground': return this.@com.google.gwt.user.cellview.client.CellTable.Resources::cellTableSelectedBackground()();
|
||||
case 'cellTableSortAscending': return this.@com.google.gwt.user.cellview.client.CellTable.Resources::cellTableSortAscending()();
|
||||
case 'cellTableSortDescending': return this.@com.google.gwt.user.cellview.client.CellTable.Resources::cellTableSortDescending()();
|
||||
case 'cellTableStyle': return this.@org.gcube.portlets.admin.createusers.client.ui.TableResources::cellTableStyle()();
|
||||
}
|
||||
return null;
|
||||
}-*/;
|
||||
}
|
|
@ -0,0 +1,35 @@
|
|||
package org.gcube.portlets.admin.createusers.shared;
|
||||
|
||||
import com.google.gwt.user.client.rpc.SerializationException;
|
||||
import com.google.gwt.user.client.rpc.SerializationStreamReader;
|
||||
import com.google.gwt.user.client.rpc.SerializationStreamWriter;
|
||||
import com.google.gwt.user.client.rpc.impl.ReflectionHelper;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class VreUserBean_Array_Rank_1_FieldSerializer implements com.google.gwt.user.client.rpc.impl.TypeHandler {
|
||||
public static void deserialize(SerializationStreamReader streamReader, org.gcube.portlets.admin.createusers.shared.VreUserBean[] instance) throws SerializationException {
|
||||
com.google.gwt.user.client.rpc.core.java.lang.Object_Array_CustomFieldSerializer.deserialize(streamReader, instance);
|
||||
}
|
||||
|
||||
public static org.gcube.portlets.admin.createusers.shared.VreUserBean[] instantiate(SerializationStreamReader streamReader) throws SerializationException {
|
||||
int size = streamReader.readInt();
|
||||
return new org.gcube.portlets.admin.createusers.shared.VreUserBean[size];
|
||||
}
|
||||
|
||||
public static void serialize(SerializationStreamWriter streamWriter, org.gcube.portlets.admin.createusers.shared.VreUserBean[] instance) throws SerializationException {
|
||||
com.google.gwt.user.client.rpc.core.java.lang.Object_Array_CustomFieldSerializer.serialize(streamWriter, instance);
|
||||
}
|
||||
|
||||
public Object create(SerializationStreamReader reader) throws SerializationException {
|
||||
return org.gcube.portlets.admin.createusers.shared.VreUserBean_Array_Rank_1_FieldSerializer.instantiate(reader);
|
||||
}
|
||||
|
||||
public void deserial(SerializationStreamReader reader, Object object) throws SerializationException {
|
||||
org.gcube.portlets.admin.createusers.shared.VreUserBean_Array_Rank_1_FieldSerializer.deserialize(reader, (org.gcube.portlets.admin.createusers.shared.VreUserBean[])object);
|
||||
}
|
||||
|
||||
public void serial(SerializationStreamWriter writer, Object object) throws SerializationException {
|
||||
org.gcube.portlets.admin.createusers.shared.VreUserBean_Array_Rank_1_FieldSerializer.serialize(writer, (org.gcube.portlets.admin.createusers.shared.VreUserBean[])object);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,113 @@
|
|||
package org.gcube.portlets.admin.createusers.shared;
|
||||
|
||||
import com.google.gwt.user.client.rpc.SerializationException;
|
||||
import com.google.gwt.user.client.rpc.SerializationStreamReader;
|
||||
import com.google.gwt.user.client.rpc.SerializationStreamWriter;
|
||||
import com.google.gwt.user.client.rpc.impl.ReflectionHelper;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class VreUserBean_FieldSerializer implements com.google.gwt.user.client.rpc.impl.TypeHandler {
|
||||
private static native java.lang.String getCompany(org.gcube.portlets.admin.createusers.shared.VreUserBean instance) /*-{
|
||||
return instance.@org.gcube.portlets.admin.createusers.shared.VreUserBean::company;
|
||||
}-*/;
|
||||
|
||||
private static native void setCompany(org.gcube.portlets.admin.createusers.shared.VreUserBean instance, java.lang.String value)
|
||||
/*-{
|
||||
instance.@org.gcube.portlets.admin.createusers.shared.VreUserBean::company = value;
|
||||
}-*/;
|
||||
|
||||
private static native java.lang.String getEmail(org.gcube.portlets.admin.createusers.shared.VreUserBean instance) /*-{
|
||||
return instance.@org.gcube.portlets.admin.createusers.shared.VreUserBean::email;
|
||||
}-*/;
|
||||
|
||||
private static native void setEmail(org.gcube.portlets.admin.createusers.shared.VreUserBean instance, java.lang.String value)
|
||||
/*-{
|
||||
instance.@org.gcube.portlets.admin.createusers.shared.VreUserBean::email = value;
|
||||
}-*/;
|
||||
|
||||
private static native boolean getIsMale(org.gcube.portlets.admin.createusers.shared.VreUserBean instance) /*-{
|
||||
return instance.@org.gcube.portlets.admin.createusers.shared.VreUserBean::isMale;
|
||||
}-*/;
|
||||
|
||||
private static native void setIsMale(org.gcube.portlets.admin.createusers.shared.VreUserBean instance, boolean value)
|
||||
/*-{
|
||||
instance.@org.gcube.portlets.admin.createusers.shared.VreUserBean::isMale = value;
|
||||
}-*/;
|
||||
|
||||
private static native java.lang.String getName(org.gcube.portlets.admin.createusers.shared.VreUserBean instance) /*-{
|
||||
return instance.@org.gcube.portlets.admin.createusers.shared.VreUserBean::name;
|
||||
}-*/;
|
||||
|
||||
private static native void setName(org.gcube.portlets.admin.createusers.shared.VreUserBean instance, java.lang.String value)
|
||||
/*-{
|
||||
instance.@org.gcube.portlets.admin.createusers.shared.VreUserBean::name = value;
|
||||
}-*/;
|
||||
|
||||
private static native boolean getPasswordChanged(org.gcube.portlets.admin.createusers.shared.VreUserBean instance) /*-{
|
||||
return instance.@org.gcube.portlets.admin.createusers.shared.VreUserBean::passwordChanged;
|
||||
}-*/;
|
||||
|
||||
private static native void setPasswordChanged(org.gcube.portlets.admin.createusers.shared.VreUserBean instance, boolean value)
|
||||
/*-{
|
||||
instance.@org.gcube.portlets.admin.createusers.shared.VreUserBean::passwordChanged = value;
|
||||
}-*/;
|
||||
|
||||
@com.google.gwt.core.client.UnsafeNativeLong
|
||||
private static native long getRegisrationDate(org.gcube.portlets.admin.createusers.shared.VreUserBean instance) /*-{
|
||||
return instance.@org.gcube.portlets.admin.createusers.shared.VreUserBean::regisrationDate;
|
||||
}-*/;
|
||||
|
||||
@com.google.gwt.core.client.UnsafeNativeLong
|
||||
private static native void setRegisrationDate(org.gcube.portlets.admin.createusers.shared.VreUserBean instance, long value)
|
||||
/*-{
|
||||
instance.@org.gcube.portlets.admin.createusers.shared.VreUserBean::regisrationDate = value;
|
||||
}-*/;
|
||||
|
||||
private static native java.lang.String getSurname(org.gcube.portlets.admin.createusers.shared.VreUserBean instance) /*-{
|
||||
return instance.@org.gcube.portlets.admin.createusers.shared.VreUserBean::surname;
|
||||
}-*/;
|
||||
|
||||
private static native void setSurname(org.gcube.portlets.admin.createusers.shared.VreUserBean instance, java.lang.String value)
|
||||
/*-{
|
||||
instance.@org.gcube.portlets.admin.createusers.shared.VreUserBean::surname = value;
|
||||
}-*/;
|
||||
|
||||
public static void deserialize(SerializationStreamReader streamReader, org.gcube.portlets.admin.createusers.shared.VreUserBean instance) throws SerializationException {
|
||||
setCompany(instance, streamReader.readString());
|
||||
setEmail(instance, streamReader.readString());
|
||||
setIsMale(instance, streamReader.readBoolean());
|
||||
setName(instance, streamReader.readString());
|
||||
setPasswordChanged(instance, streamReader.readBoolean());
|
||||
setRegisrationDate(instance, streamReader.readLong());
|
||||
setSurname(instance, streamReader.readString());
|
||||
|
||||
}
|
||||
|
||||
public static org.gcube.portlets.admin.createusers.shared.VreUserBean instantiate(SerializationStreamReader streamReader) throws SerializationException {
|
||||
return new org.gcube.portlets.admin.createusers.shared.VreUserBean();
|
||||
}
|
||||
|
||||
public static void serialize(SerializationStreamWriter streamWriter, org.gcube.portlets.admin.createusers.shared.VreUserBean instance) throws SerializationException {
|
||||
streamWriter.writeString(getCompany(instance));
|
||||
streamWriter.writeString(getEmail(instance));
|
||||
streamWriter.writeBoolean(getIsMale(instance));
|
||||
streamWriter.writeString(getName(instance));
|
||||
streamWriter.writeBoolean(getPasswordChanged(instance));
|
||||
streamWriter.writeLong(getRegisrationDate(instance));
|
||||
streamWriter.writeString(getSurname(instance));
|
||||
|
||||
}
|
||||
|
||||
public Object create(SerializationStreamReader reader) throws SerializationException {
|
||||
return org.gcube.portlets.admin.createusers.shared.VreUserBean_FieldSerializer.instantiate(reader);
|
||||
}
|
||||
|
||||
public void deserial(SerializationStreamReader reader, Object object) throws SerializationException {
|
||||
org.gcube.portlets.admin.createusers.shared.VreUserBean_FieldSerializer.deserialize(reader, (org.gcube.portlets.admin.createusers.shared.VreUserBean)object);
|
||||
}
|
||||
|
||||
public void serial(SerializationStreamWriter writer, Object object) throws SerializationException {
|
||||
org.gcube.portlets.admin.createusers.shared.VreUserBean_FieldSerializer.serialize(writer, (org.gcube.portlets.admin.createusers.shared.VreUserBean)object);
|
||||
}
|
||||
|
||||
}
|
Binary file not shown.
|
@ -0,0 +1,12 @@
|
|||
/** Add css rules here for your application. */
|
||||
.portlet-title-style {
|
||||
display: block;
|
||||
font-size: 16px;
|
||||
color: #555;
|
||||
font-weight: bolder;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.table-style {
|
||||
margin-left: 10px;
|
||||
}
|
|
@ -0,0 +1,48 @@
|
|||
<!doctype html>
|
||||
<!-- The DOCTYPE declaration above will set the -->
|
||||
<!-- browser's rendering engine into -->
|
||||
<!-- "Standards Mode". Replacing this declaration -->
|
||||
<!-- with a "Quirks Mode" doctype may lead to some -->
|
||||
<!-- differences in layout. -->
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||
|
||||
<!-- -->
|
||||
<!-- Consider inlining CSS to reduce the number of requested files -->
|
||||
<!-- -->
|
||||
<link type="text/css" rel="stylesheet" href="CreateUsers.css">
|
||||
|
||||
<!-- -->
|
||||
<!-- Any title is fine -->
|
||||
<!-- -->
|
||||
<title>Create users portlet</title>
|
||||
|
||||
<!-- -->
|
||||
<!-- This script loads your compiled module. -->
|
||||
<!-- If you add any GWT meta tags, they must -->
|
||||
<!-- be added before this line. -->
|
||||
<!-- -->
|
||||
<script src='js/jquery.min.js'></script>
|
||||
<script src='js/jquery.autosize.js'></script>
|
||||
<script type="text/javascript"
|
||||
src="createusers/createusers.nocache.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!-- OPTIONAL: include this if you want history support -->
|
||||
<iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1'
|
||||
style="position: absolute; width: 0; height: 0; border: 0"></iframe>
|
||||
|
||||
<!-- RECOMMENDED if your web app will not function without JavaScript enabled -->
|
||||
<noscript>
|
||||
<div
|
||||
style="width: 22em; position: absolute; left: 50%; margin-left: -11em; color: red; background-color: white; border: 1px solid red; padding: 4px; font-family: sans-serif">
|
||||
Your web browser must have JavaScript enabled in order for this
|
||||
application to display correctly.</div>
|
||||
</noscript>
|
||||
|
||||
<div id="create-users-container"></div>
|
||||
</body>
|
||||
</html>
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue