mkjsf-moved-to-github.git
10 years agoFixes vararg issue in Glassfish EL glassfish-version
Niels Erik G. Nielsen [Tue, 25 Jun 2013 17:49:40 +0000 (13:49 -0400)]
Fixes vararg issue in Glassfish EL

The JSF 2.0 expression language in Glassfish does not support Java
varargs. Converted to a semicolon separated list.

10 years agoFixes injection of configuration reader object
Niels Erik G. Nielsen [Tue, 25 Jun 2013 17:47:40 +0000 (13:47 -0400)]
Fixes injection of configuration reader object

10 years agoMerge branch 'master' into glassfish-version
Niels Erik G. Nielsen [Tue, 25 Jun 2013 16:56:36 +0000 (12:56 -0400)]
Merge branch 'master' into glassfish-version

Conflicts:
pom.xml

10 years agoFixes npe and return type of auth.run()
Niels Erik G. Nielsen [Tue, 25 Jun 2013 16:37:33 +0000 (12:37 -0400)]
Fixes npe and return type of auth.run()

10 years ago[maven-release-plugin] prepare for next development iteration
Niels Erik G. Nielsen [Wed, 19 Jun 2013 16:35:31 +0000 (18:35 +0200)]
[maven-release-plugin] prepare for next development iteration

10 years ago[maven-release-plugin] prepare release v0.0.5
Niels Erik G. Nielsen [Wed, 19 Jun 2013 16:35:30 +0000 (18:35 +0200)]
[maven-release-plugin] prepare release v0.0.5

10 years agoAdds LICENSE
Niels Erik G. Nielsen [Wed, 19 Jun 2013 15:38:07 +0000 (11:38 -0400)]
Adds LICENSE

10 years agoFixes git project path in scm
Niels Erik G. Nielsen [Wed, 19 Jun 2013 01:37:30 +0000 (03:37 +0200)]
Fixes git project path in scm

10 years ago[maven-release-plugin] prepare for next development iteration
Niels Erik G. Nielsen [Wed, 19 Jun 2013 01:06:50 +0000 (03:06 +0200)]
[maven-release-plugin] prepare for next development iteration

10 years ago[maven-release-plugin] prepare release v0.0.4
Niels Erik G. Nielsen [Wed, 19 Jun 2013 01:06:49 +0000 (03:06 +0200)]
[maven-release-plugin] prepare release v0.0.4

10 years agoChanges
Niels Erik G. Nielsen [Wed, 19 Jun 2013 00:56:26 +0000 (20:56 -0400)]
Changes

10 years agojavadoc
Niels Erik G. Nielsen [Wed, 19 Jun 2013 00:52:36 +0000 (20:52 -0400)]
javadoc

10 years agoAdds windowid parameter to applicable commands
Niels Erik G. Nielsen [Wed, 19 Jun 2013 00:51:55 +0000 (20:51 -0400)]
Adds windowid parameter to applicable commands

10 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/pub/mkjsf
Niels Erik G. Nielsen [Wed, 12 Jun 2013 12:50:46 +0000 (14:50 +0200)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/mkjsf

10 years agoAdds Changes file
Niels Erik G. Nielsen [Wed, 12 Jun 2013 12:47:41 +0000 (08:47 -0400)]
Adds Changes file

10 years agoAdds windowid parameter to SP init command
Niels Erik G. Nielsen [Wed, 12 Jun 2013 00:58:09 +0000 (20:58 -0400)]
Adds windowid parameter to SP init command

10 years agoFixes bug in state mutation in record command
Niels Erik G. Nielsen [Wed, 12 Jun 2013 00:55:30 +0000 (20:55 -0400)]
Fixes bug in state mutation in record command

10 years agoFixing web.xml based config example
Niels Erik G. Nielsen [Mon, 10 Jun 2013 23:09:09 +0000 (19:09 -0400)]
Fixing web.xml based config example

10 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/private/mkjsf.git into...
Niels Erik G. Nielsen [Fri, 7 Jun 2013 16:53:21 +0000 (12:53 -0400)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/private/mkjsf.git into glassfish-version

Conflicts:
pom.xml

10 years ago[maven-release-plugin] prepare for next development iteration
Niels Erik G. Nielsen [Fri, 7 Jun 2013 10:24:58 +0000 (12:24 +0200)]
[maven-release-plugin] prepare for next development iteration

10 years ago[maven-release-plugin] prepare release v0.0.3
Niels Erik G. Nielsen [Fri, 7 Jun 2013 10:24:58 +0000 (12:24 +0200)]
[maven-release-plugin] prepare release v0.0.3

10 years ago[maven-release-plugin] prepare for next development iteration
Niels Erik G. Nielsen [Fri, 7 Jun 2013 00:57:08 +0000 (20:57 -0400)]
[maven-release-plugin] prepare for next development iteration

10 years ago[maven-release-plugin] prepare release v0.0.2
Niels Erik G. Nielsen [Fri, 7 Jun 2013 00:57:08 +0000 (20:57 -0400)]
[maven-release-plugin] prepare release v0.0.2

10 years ago[maven-release-plugin] prepare for next development iteration
Niels Erik G. Nielsen [Fri, 7 Jun 2013 00:51:13 +0000 (20:51 -0400)]
[maven-release-plugin] prepare for next development iteration

10 years ago[maven-release-plugin] prepare release v0.0.1
Niels Erik G. Nielsen [Fri, 7 Jun 2013 00:51:13 +0000 (20:51 -0400)]
[maven-release-plugin] prepare release v0.0.1

10 years agoMore experiments with pom
Niels Erik G. Nielsen [Fri, 7 Jun 2013 00:50:14 +0000 (20:50 -0400)]
More experiments with pom

10 years agoExperiments with pom
Niels Erik G. Nielsen [Fri, 7 Jun 2013 00:36:56 +0000 (20:36 -0400)]
Experiments with pom

10 years agojavadoc
Niels Erik G. Nielsen [Fri, 7 Jun 2013 00:18:26 +0000 (20:18 -0400)]
javadoc

10 years agoJavadoc
Niels Erik G. Nielsen [Thu, 6 Jun 2013 21:55:53 +0000 (17:55 -0400)]
Javadoc

10 years agoRenames class, removes obsolete, javadoc
Niels Erik G. Nielsen [Thu, 6 Jun 2013 19:56:05 +0000 (15:56 -0400)]
Renames class, removes obsolete, javadoc

10 years agoJavadoc
Niels Erik G. Nielsen [Thu, 6 Jun 2013 17:14:49 +0000 (13:14 -0400)]
Javadoc

10 years agoJavadoc
Niels Erik G. Nielsen [Thu, 6 Jun 2013 15:34:49 +0000 (11:34 -0400)]
Javadoc

10 years agoFixes cce with new QueryParameter type
Niels Erik G. Nielsen [Thu, 6 Jun 2013 14:52:46 +0000 (10:52 -0400)]
Fixes cce with new QueryParameter type

10 years agoJavadoc
Niels Erik G. Nielsen [Thu, 6 Jun 2013 14:15:44 +0000 (10:15 -0400)]
Javadoc

10 years agoJavadoc
Niels Erik G. Nielsen [Thu, 6 Jun 2013 12:48:27 +0000 (08:48 -0400)]
Javadoc

10 years agoJavadoc
Niels Erik G. Nielsen [Thu, 6 Jun 2013 01:30:52 +0000 (21:30 -0400)]
Javadoc

10 years agoJavadoc, and fixes some issues found along the way
Niels Erik G. Nielsen [Wed, 5 Jun 2013 21:50:59 +0000 (17:50 -0400)]
Javadoc, and fixes some issues found along the way

10 years agoIncludes sp extension in cloning of record cmd
Niels Erik G. Nielsen [Wed, 5 Jun 2013 20:00:22 +0000 (16:00 -0400)]
Includes sp extension in cloning of record cmd

10 years agoFixes search state bug
Niels Erik G. Nielsen [Wed, 5 Jun 2013 02:10:27 +0000 (22:10 -0400)]
Fixes search state bug

10 years agoFixes authentication issues
Niels Erik G. Nielsen [Tue, 4 Jun 2013 17:20:42 +0000 (13:20 -0400)]
Fixes authentication issues

- avoids Weld injection exception when (authentication) servlet filter is
  run before a Faces context has been established
  (MissingConfigurationContextException) The mkjsf core itself has no
  such filter, but mk2jsf-demo has.
- avoids redirect to given app page on auth failure

10 years agoClean-up
Niels Erik G. Nielsen [Tue, 4 Jun 2013 10:11:05 +0000 (06:11 -0400)]
Clean-up

Removes obsolete interface, obsolete class, obsolete methods

10 years agoAdds support for parsing diff. expression operators
Niels Erik G. Nielsen [Tue, 4 Jun 2013 10:10:16 +0000 (06:10 -0400)]
Adds support for parsing diff. expression operators

.. and for removing expressions for a field by supplying empty value

10 years agoAdds generic filter logic, target-filter logic obsolete
Niels Erik G. Nielsen [Mon, 3 Jun 2013 21:04:55 +0000 (17:04 -0400)]
Adds generic filter logic, target-filter logic obsolete

10 years agoAdds methods handling 'filter' and 'limit' expressions
Niels Erik G. Nielsen [Mon, 3 Jun 2013 19:44:07 +0000 (15:44 -0400)]
Adds methods handling 'filter' and 'limit' expressions

10 years agoRenames method. Javadoc.
Niels Erik G. Nielsen [Fri, 31 May 2013 14:31:33 +0000 (10:31 -0400)]
Renames method. Javadoc.

10 years agoMoves UI convenience methods to UiUtils class
Niels Erik G. Nielsen [Fri, 31 May 2013 14:12:55 +0000 (10:12 -0400)]
Moves UI convenience methods to UiUtils class

Object exposed to JSF pages as 'pzui'

10 years agoAdds convenience methods for UI pages
Niels Erik G. Nielsen [Fri, 31 May 2013 00:40:04 +0000 (20:40 -0400)]
Adds convenience methods for UI pages

Renames one method and add others for conveniently getting data
from response data objects.

Adds utility method for concatenating strings in EL expressions
(no such built-in function in JSF EL)

10 years agoAdds more 'standard' fields to hit data object
Niels Erik G. Nielsen [Thu, 30 May 2013 13:11:54 +0000 (09:11 -0400)]
Adds more 'standard' fields to hit data object

10 years agoFixes bug in return of non-record XML response
Niels Erik G. Nielsen [Wed, 29 May 2013 17:12:26 +0000 (13:12 -0400)]
Fixes bug in return of non-record XML response

10 years agoFixes termlist command parameter bug
Niels Erik G. Nielsen [Wed, 29 May 2013 15:58:11 +0000 (11:58 -0400)]
Fixes termlist command parameter bug

10 years agoTentatively adds JSF navigation method
Niels Erik G. Nielsen [Wed, 29 May 2013 15:57:50 +0000 (11:57 -0400)]
Tentatively adds JSF navigation method

10 years agoMoves init doc upload to InitCommandSp (sp ext of init)
Niels Erik G. Nielsen [Tue, 28 May 2013 00:58:13 +0000 (20:58 -0400)]
Moves init doc upload to InitCommandSp (sp ext of init)

.. effectively making ServiceProxyExtensions bean and interface obsolete

10 years agoAdds rank parameter to show command
Niels Erik G. Nielsen [Tue, 28 May 2013 00:55:49 +0000 (20:55 -0400)]
Adds rank parameter to show command

10 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/private/mkjsf
Niels Erik G. Nielsen [Sat, 25 May 2013 02:36:30 +0000 (22:36 -0400)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/private/mkjsf

10 years agoRenames Pz2Bean to Pz2Service
Niels Erik G. Nielsen [Sat, 25 May 2013 02:35:46 +0000 (22:35 -0400)]
Renames Pz2Bean to Pz2Service

Name exposed to UI is still just 'pz2'

10 years agoRenames Pz2Bean to Pz2Service
Niels Erik G. Nielsen [Sat, 25 May 2013 02:31:13 +0000 (22:31 -0400)]
Renames Pz2Bean to Pz2Service

Name exposes to UI is still just 'pz2'

10 years agoCleans up SP extension commands
Niels Erik G. Nielsen [Sat, 25 May 2013 02:24:26 +0000 (22:24 -0400)]
Cleans up SP extension commands

.. as for straight pz2 commands, request logic is moved from the main
SP extensions bean into individual commands.

Also adds options (pz2 and sp) for adding service command parameters as
parameters to the run() command itself.
Useful for this approach in a form: <submit action="auth.run('action=login')">

10 years agoReduces logging
Niels Erik G. Nielsen [Fri, 24 May 2013 19:57:06 +0000 (15:57 -0400)]
Reduces logging

10 years agoMoves request logic from pz2bean to individual commands
Niels Erik G. Nielsen [Fri, 24 May 2013 19:42:49 +0000 (15:42 -0400)]
Moves request logic from pz2bean to individual commands

Simplifies the main bean and makes command execution from UI
more intuitive

10 years agoRefactors commands and injection
Niels Erik G. Nielsen [Fri, 24 May 2013 17:41:51 +0000 (13:41 -0400)]
Refactors commands and injection

Trying to have command execute themselves (rather than pz2bean
executing them) by giving them the request environment. That caused
problems with injection - complex injection graphs and dependencies
that were null at first use, so refactors this as well.

10 years agoAdds checks for unsupported commands
Niels Erik G. Nielsen [Wed, 22 May 2013 17:56:56 +0000 (13:56 -0400)]
Adds checks for unsupported commands

Avoids running unsupported 'categories' repeatedly.
Warns in log about unsupported 'auth' command.

10 years agoAdds distinction between pz2 and sp errors
Niels Erik G. Nielsen [Wed, 22 May 2013 16:43:16 +0000 (12:43 -0400)]
Adds distinction between pz2 and sp errors

.. and checks for SP command fall-through to Pazpar2 (unsupported SP commands)

10 years agoRenames variable
Niels Erik G. Nielsen [Wed, 22 May 2013 16:07:59 +0000 (12:07 -0400)]
Renames variable

10 years agoCreates SP response data object
Niels Erik G. Nielsen [Wed, 22 May 2013 16:07:25 +0000 (12:07 -0400)]
Creates SP response data object

.. for the purpose of detecting unsupported SP commands on execution

10 years agoAdds mergekey parameter to search and show
Niels Erik G. Nielsen [Wed, 22 May 2013 11:16:14 +0000 (07:16 -0400)]
Adds mergekey parameter to search and show

10 years agoAdds support for rank parameter on search command
Niels Erik G. Nielsen [Tue, 21 May 2013 23:17:55 +0000 (19:17 -0400)]
Adds support for rank parameter on search command

10 years agoFurther reducing auth code
Niels Erik G. Nielsen [Tue, 21 May 2013 20:43:22 +0000 (16:43 -0400)]
Further reducing auth code

10 years agoCleans up auth logic
Niels Erik G. Nielsen [Tue, 21 May 2013 16:55:03 +0000 (12:55 -0400)]
Cleans up auth logic

  Removes special classes (ie ServiceProxyUser) and associated
  method calls for auth logic, basically treating the auth commands
  more like any other commands.

10 years agoOrganizes SP specific responses in separate class
Niels Erik G. Nielsen [Tue, 21 May 2013 15:17:40 +0000 (11:17 -0400)]
Organizes SP specific responses in separate class

Also: introduces reset-levels:
      all from search and beyond
      all fron init and beyond
      all from auth and beyond
for clarity when switching service URL's and service IDs

10 years agoMoves Auth response class to SP data package
Niels Erik G. Nielsen [Tue, 21 May 2013 13:21:18 +0000 (09:21 -0400)]
Moves Auth response class to SP data package

10 years agoAdds check for SP only commands.
Niels Erik G. Nielsen [Tue, 21 May 2013 12:49:48 +0000 (08:49 -0400)]
Adds check for SP only commands.

Also:
 Adds support for setting Pazpar2 service ID
 Tweaks log levels

10 years agoAdds support for downloading binary record response
Niels Erik G. Nielsen [Mon, 20 May 2013 18:42:42 +0000 (14:42 -0400)]
Adds support for downloading binary record response

10 years agoDocumentation
Niels Erik G. Nielsen [Wed, 15 May 2013 21:51:48 +0000 (17:51 -0400)]
Documentation

10 years agoBugfixes for browser history management. Documentation.
Niels Erik G. Nielsen [Wed, 15 May 2013 16:45:14 +0000 (12:45 -0400)]
Bugfixes for browser history management. Documentation.

10 years agoTweak to support for state mgmt across xhtml pages
Niels Erik G. Nielsen [Wed, 15 May 2013 01:25:07 +0000 (21:25 -0400)]
Tweak to support for state mgmt across xhtml pages

10 years agoExcludes auth info from state key.
Niels Erik G. Nielsen [Tue, 14 May 2013 18:50:21 +0000 (14:50 -0400)]
Excludes auth info from state key.

10 years agoHacks login method to make mk2jsf demo work for now.
Niels Erik G. Nielsen [Tue, 14 May 2013 18:32:43 +0000 (14:32 -0400)]
Hacks login method to make mk2jsf demo work for now.

10 years agoLogs missing client type decision (SP/PZ2) when searching.
Niels Erik G. Nielsen [Tue, 14 May 2013 18:32:03 +0000 (14:32 -0400)]
Logs missing client type decision (SP/PZ2) when searching.

10 years agoAttempts to fix state handling accross XHTML pages.
Niels Erik G. Nielsen [Tue, 14 May 2013 18:31:06 +0000 (14:31 -0400)]
Attempts to fix state handling accross XHTML pages.

Approach may also handle UI generated locationhashes - to be seen though.

10 years agoRemoves timing from thread object
Niels Erik G. Nielsen [Tue, 14 May 2013 16:36:41 +0000 (12:36 -0400)]
Removes timing from thread object

Not all commands routed through this class anymore.

10 years agoRemoves last piece of business logic from thread object
Niels Erik G. Nielsen [Tue, 14 May 2013 16:31:34 +0000 (12:31 -0400)]
Removes last piece of business logic from thread object

.. making a purely technical class, just for executing pz2 requests
   asynchronously

10 years agoFixes missing search command instruction to pz2 client
Niels Erik G. Nielsen [Tue, 14 May 2013 16:29:35 +0000 (12:29 -0400)]
Fixes missing search command instruction to pz2 client

10 years agoAdds support for target category command - 'categories'
Niels Erik G. Nielsen [Tue, 14 May 2013 01:32:01 +0000 (21:32 -0400)]
Adds support for target category command - 'categories'

.. includes some further work on the disentanglement of the
logic/methods for different types of commands

10 years agoFixes err msg bug. Adds status field to error xml.
Niels Erik G. Nielsen [Mon, 13 May 2013 19:18:23 +0000 (15:18 -0400)]
Fixes err msg bug. Adds status field to error xml.

Fixes bug that failed to write error xml for pazpar2 417.
Adds status field to error xml so the ui can do, say,
search.status=='OK' even in case of a search error response.

10 years agoDisentangles update() logic. Adds option for early feedback.
Niels Erik G. Nielsen [Mon, 13 May 2013 18:36:05 +0000 (14:36 -0400)]
Disentangles update() logic. Adds option for early feedback.

'search' and 'record' commands are disentangled from the general update()
logic, in particular there is no longer recursion into update() in cases
where a 'search' is needed before a 'show', say. Dedicated doSearch and
doRecord methods are added with the intention of clarifying things.

Also adds an option for feedback right after 'search' returns, by having
update(show,stat,bytarget,termlist) skip processing on the first
round-trip. The UI thus have a change to detect that a search has started
and notify the user (before it would need to wait for the first update of
show,stat,.. etc). For setups with dozens or even hundreds of targets the
wait for the first sign of activity can otherwise be many seconds.

10 years agoGets the greater activeclients from stat or show
Niels Erik G. Nielsen [Mon, 13 May 2013 16:09:13 +0000 (12:09 -0400)]
Gets the greater activeclients from stat or show

.. to keep polling until they are in synch

10 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/private/mkjsf
Niels Erik G. Nielsen [Mon, 13 May 2013 15:59:47 +0000 (11:59 -0400)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/private/mkjsf

Conflicts:
src/main/java/com/indexdata/mkjsf/pazpar2/Pz2Bean.java

10 years agoPrevents automatic show,stat,.. updates on search errors
Niels Erik G. Nielsen [Mon, 13 May 2013 15:57:51 +0000 (11:57 -0400)]
Prevents automatic show,stat,.. updates on search errors

10 years agoPrevents automatic show,stat,.. updates on search errors
Niels Erik G. Nielsen [Mon, 13 May 2013 15:43:25 +0000 (11:43 -0400)]
Prevents automatic show,stat,.. updates on search errors

10 years agoTweaks error catching and messages.
Niels Erik G. Nielsen [Mon, 13 May 2013 15:41:51 +0000 (11:41 -0400)]
Tweaks error catching and messages.

10 years agoTries to pick up wrong Pazpar2 address errors for errxml
Niels Erik G. Nielsen [Sun, 12 May 2013 20:24:33 +0000 (16:24 -0400)]
Tries to pick up wrong Pazpar2 address errors for errxml

For the search command those are hidden in masterkey commons pz2client
 under a generic "cannot parse session id".

For other commands it can come back in various shapes and forms -
 for instance as a HTML page with domain name adds.

10 years agoMore error handling/reporting. Normalizing auth resp
Niels Erik G. Nielsen [Sun, 12 May 2013 17:49:16 +0000 (13:49 -0400)]
More error handling/reporting. Normalizing auth resp

Parses HTML reponses where XML were expected, for instance HTML pages
returned when domain is not found or HTML error pages from servlet
container when service-proxy app not found.

Also normalizes auth responses, renaming the document element 'response'
to 'auth' before handing the XML string to the parser (other responses
are named by their corresponding command, which is what the parser
expects). Thie original auth response is still preserved, though.

10 years agoCleans up SP auth, parse resps, store for display, etc
Niels Erik G. Nielsen [Fri, 10 May 2013 22:48:54 +0000 (18:48 -0400)]
Cleans up SP auth, parse resps, store for display, etc

10 years agoCatches init doc upload errors
Niels Erik G. Nielsen [Fri, 10 May 2013 20:37:10 +0000 (16:37 -0400)]
Catches init doc upload errors

.. embeds them in init reponse, i.e. for display in UI

10 years agoAdds option to download any command respond
Niels Erik G. Nielsen [Thu, 9 May 2013 19:10:40 +0000 (15:10 -0400)]
Adds option to download any command respond

.. changes init doc response download to use generic download method

10 years agoTweaks init command and init doc submission.
Niels Erik G. Nielsen [Thu, 9 May 2013 17:52:56 +0000 (13:52 -0400)]
Tweaks init command and init doc submission.

Makes submitting SP init docs available directly on "pz2x"
(SP extension bean) and puts the init response into the regular
flow of processing for display as any other response.

Makes it optional to reset the init response when resetting
search/record/show data. As before, search data are reset on renewed
search or when the server or authentication changes. Init response
is now only reset on changed init (whether it happens implicit or
explicit).

10 years agoRenames variable
Niels Erik G. Nielsen [Thu, 9 May 2013 17:44:22 +0000 (13:44 -0400)]
Renames variable

10 years agoPicks up more info for ajax error alert box
Niels Erik G. Nielsen [Thu, 9 May 2013 17:43:30 +0000 (13:43 -0400)]
Picks up more info for ajax error alert box

10 years agoFixes some log levels, typos.
Niels Erik G. Nielsen [Thu, 9 May 2013 13:58:42 +0000 (09:58 -0400)]
Fixes some log levels, typos.

10 years agoRenames data classes that are no longer pz2 only
Niels Erik G. Nielsen [Thu, 9 May 2013 13:54:46 +0000 (09:54 -0400)]
Renames data classes that are no longer pz2 only

.. to reflect that they handle SP-only responses too