Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
506 commits
Select commit Hold shift + click to select a range
528efe8
Fix login/logout shortcut configuration
sbesson Oct 30, 2012
154131b
Add addowner and removeowner subcommand to CLI group plugin
sbesson Oct 30, 2012
a116709
Add addtogroup and removefromgroup user subcommands
sbesson Oct 31, 2012
383bbfb
Improve CLI help for group plugin subcommands
sbesson Oct 31, 2012
c76730e
Create UserGroupControl class and to move utility functions
sbesson Nov 1, 2012
d152112
Rename insert/remove/copy subcommands and fix help messages
sbesson Nov 1, 2012
f437dd9
Fix user command help messages
sbesson Nov 1, 2012
62c803e
Add copyowners subcommand
sbesson Nov 1, 2012
551788a
Refactor joingroup/leavegroup subcommands
sbesson Nov 2, 2012
749b538
Refactor user copyusers/adduser/removuser subcommands
sbesson Nov 2, 2012
12a8d0b
Move getids utility functions to UserGroupControl class
sbesson Nov 2, 2012
35e00a4
Fix find_user & find_group functions when specifying id or name
sbesson Nov 5, 2012
990b18d
Replace --owner optional argument by --as-owner
sbesson Nov 12, 2012
dbed7c4
Allow to process subcommands if some users/groups are not found
sbesson Nov 13, 2012
67032d8
Refactor die_* methods into more generic error_* methods
sbesson Nov 15, 2012
daedbc5
Prompt for password if not input when creating user using CLI
sbesson Nov 15, 2012
f6292c4
Use list_groups() method in user addition function
sbesson Nov 15, 2012
614adec
Fix argument parsing bug due to renamed password variable
sbesson Nov 16, 2012
79165c4
Add login arguments to user/group subcommand parsers
sbesson Nov 19, 2012
139b9e9
Add login arguments to mutliple subcommand parsers
sbesson Nov 21, 2012
c6766c8
Add help for optional login arguments
sbesson Nov 21, 2012
32b96ce
Add login arguments for subcommands (user, group, script, sessions)
sbesson Nov 22, 2012
b73fc6f
Fix #9803 in Insight: adjust tree viewer update of metadata.
mtbc Nov 23, 2012
07cdead
Pass max per columns to figure scripts (see #9931)
jburel Nov 23, 2012
f323152
Set the parent and grand parent of well sample (see #9882)
jburel Nov 23, 2012
2c02166
Blitz createImageFromNumpySeq() uses conn.SERVICE_OPTS. See #9953
Nov 24, 2012
8437e94
Save one rating per object for plate acquisition (see #9881)
jburel Nov 25, 2012
e8813de
Correct code style
Nov 23, 2012
ad2e134
Merge pull request #503 from bpindelski/insight_admin_fix_dev_4_4
joshmoore Nov 26, 2012
4c2e438
Preview and Acq tabs enabled when Wells selected. Noticed in PR 501
Nov 27, 2012
868f399
container.py 'acquisition' doesn't load plate too. See PR 491
Nov 27, 2012
603e45f
Merge pull request #499 from mtbc/9803
jburel Nov 27, 2012
4ec4034
Merge pull request #500 from jburel/figure-bugs
joshmoore Nov 27, 2012
7c71e54
Merge pull request #501 from jburel/apply-to-all
joshmoore Nov 27, 2012
937fcfc
Replace = by equals for string.
jburel Sep 27, 2012
e3ce9d2
Names updated in History & Search tables when edited. See PR 488
Nov 28, 2012
7778b24
Merge pull request #498 from sbesson/2571_cli_improvements
joshmoore Nov 29, 2012
0287963
Merge pull request #508 from sbesson/matlab_import
jburel Nov 29, 2012
6fee2dc
Right-panel name edits update thumbnails name & tooltip. PR 488
Nov 29, 2012
6fc1842
Fix ROI intensity results view (trac #9925).
mtbc Nov 28, 2012
af61ed1
Fix trac #9802 and comment on PR #499: make tree viewer event handlin…
mtbc Nov 29, 2012
7cc531e
Replace plate-> plate acquisition.
jburel Nov 29, 2012
48c79f8
Name editinplace updates Search & History tooltips.
Nov 30, 2012
fba5e7b
ImportCandidates: catch Throwable instead of Exception
melissalinkert Nov 30, 2012
415013c
Only wrap Throwable in an Exception if it was not already an Exception
melissalinkert Dec 1, 2012
8362b53
Allow user/group list subcommands to be sorted by ID or name
sbesson Dec 2, 2012
e2a6ef7
Unify choice between count/long for user/group list subcommands
sbesson Dec 2, 2012
4dd176c
Create dictionary of exposed permissions for add and perms
sbesson Dec 2, 2012
a54ff9b
Merge pull request #504 from jburel/rating-9881
joshmoore Dec 3, 2012
1040537
Do not override data previously loaded.
jburel Dec 3, 2012
44abea7
plate.html uses manager.getPermsCss(). Fixes right-hand panel for wel…
Dec 3, 2012
90acb8a
Merge pull request #476 from chris-allan/populate-metadata-fixes
jburel Dec 4, 2012
c32501b
Merge pull request #509 from mtbc/trac-9925
joshmoore Dec 4, 2012
5289eb7
Merge pull request #510 from mtbc/trac-9802
joshmoore Dec 4, 2012
e11d2a2
Review users and group selection. (see #9959)
jburel Dec 4, 2012
248b39d
Update display after selection (see #9959)
jburel Dec 4, 2012
d9754d8
Add new method to return the members who are not owners.
jburel Dec 4, 2012
70d7baf
Return null instead of throwing an exception if no collection set.
jburel Dec 4, 2012
784b977
Remove imports and clean up code.
jburel Dec 4, 2012
0cc5898
Add support for users in one group only.
jburel Dec 4, 2012
a7ca8c7
Review size and location of the menu.
jburel Dec 4, 2012
bf21c37
Set correctly the type if the dataset is selected (see #9986)
jburel Dec 4, 2012
d511e96
Merge pull request #514 from sbesson/cli_improvements_2
jburel Dec 4, 2012
33ce336
Do not clear the channel if same image is updated (see #9985)
jburel Dec 4, 2012
9321be4
Load the plate/plate annotations links (see #9984)
jburel Dec 4, 2012
da04224
Fix multi-selection and annotations (see #9989)
jburel Dec 4, 2012
01464c6
Add arguments to sort user list by fields (login, name, email...)
sbesson Dec 4, 2012
21f78b7
Merge pull request #511 from melissalinkert/9872
joshmoore Dec 5, 2012
9d9adf3
Merge pull request #488 from will-moore/sprint3-web-bugs-19Nov
joshmoore Dec 5, 2012
3a62aae
Handle private group for members only
jburel Dec 5, 2012
e315c27
Allow to add more than one group.
jburel Dec 5, 2012
9a3495b
Modify the icon to remove group/user.
jburel Dec 5, 2012
a549562
Remove commented out references to old icons.
jburel Dec 5, 2012
8741e1b
Roll back changes.
jburel Dec 5, 2012
85a8b51
Trac #9924: fix dialogue box wording for adding users to groups.
mtbc Dec 5, 2012
b85e5b2
Do not reset the parent if it is the same object.
jburel Dec 5, 2012
baa4c26
Reset correctly the rating value.
jburel Dec 5, 2012
0277cd0
Remove commented out code.
jburel Dec 5, 2012
bea5c8e
Make sure parent's details are not removed.
jburel Dec 5, 2012
3587a7e
Merge pull request #521 from jburel/bug-tagging
jburel Dec 5, 2012
4304368
Fix loading of annotations for well.
jburel Dec 5, 2012
4d207e6
Load bulk annotations in image information for full viewer
knabar Nov 12, 2012
7c9d945
Generalized table query API, change bulk annotation retrieval to use API
knabar Nov 12, 2012
b65f016
Hide bulk annotations when loading
knabar Nov 12, 2012
a322a15
Add shortcut API call to query table associated with given object
knabar Nov 13, 2012
728e185
Fix bug that returned WellSample ID instead of Well ID
knabar Nov 14, 2012
937ff3e
Simplify retrieval of well ID
knabar Nov 14, 2012
f095561
Add traversal of object graph on table queries to reduce number of calls
knabar Nov 14, 2012
526e618
Add context to query and table open
knabar Nov 27, 2012
001f3e0
Add documentation to new bulk annotation related webgateway calls
knabar Nov 30, 2012
5b9ea98
Move URL definitions in source file to avoid conflict with PR 491
knabar Dec 6, 2012
aecadfd
Fix pop up size and location.
jburel Dec 6, 2012
5953c6d
Fix refresh of user's data.
jburel Dec 6, 2012
7f00b33
Fix location.
jburel Dec 6, 2012
3d875b7
Fix javadoc.
jburel Dec 6, 2012
50e03fa
Fix channels' display.
jburel Dec 6, 2012
1373fc1
Merge pull request #523 from mtbc/trac-9924
jburel Dec 6, 2012
a13e208
Add orphaned images smart folder.
jburel Dec 6, 2012
4eea0ab
Fixed #9970: allow selected ROI notification in all cases
mtbc Dec 6, 2012
f4b53a6
Prepare code to load orphaned images.
jburel Dec 6, 2012
54f2c6d
Add smart folder support to refresh action.
jburel Dec 6, 2012
788eb83
Merge pull request #518 from jburel/bugs-thumbnail-figure
joshmoore Dec 6, 2012
453f11b
Add method to load orphaned images (see #9999)
jburel Dec 6, 2012
a7a157a
Do not show menu if component is not enabled.
jburel Dec 6, 2012
a72e278
Reactivate isSessionAlive().
jburel Sep 26, 2012
bb1d060
Fix doc and remove print out.
jburel Sep 26, 2012
3dbd0f6
Do no specify services to keep alive.
jburel Sep 26, 2012
1d6597a
Remove usage of ping when accessing a service.
jburel Sep 26, 2012
8e6f8e4
Check if session is still alive in rnd proxy (see #9673)
jburel Sep 26, 2012
201208e
Review handleConnectionError method.
jburel Sep 26, 2012
e2c8ec1
Add isSessionAlive to all methods.
jburel Sep 26, 2012
d3066bf
Remove usage of ice_ping. (see #9673)
jburel Sep 26, 2012
b40a858
Remove usage of getEventContext to check server status.
jburel Sep 26, 2012
546ef6b
Remove unused imports. (see #6973)
jburel Sep 26, 2012
99c9cdb
Try to reconnect w/o prompting dialog. (see #6973)
jburel Sep 26, 2012
2d3d3d2
Do not handle twice error when initializing services.
jburel Oct 4, 2012
6831b6a
Modify service init and error handling.
jburel Oct 4, 2012
01368f9
Add exception thrown.
jburel Oct 4, 2012
d463978
Handle Socket Exception (see #9762)
jburel Oct 22, 2012
4c5348a
Remove commented out code.
jburel Oct 22, 2012
5a2b52c
Modify handling of error.
jburel Oct 22, 2012
36a6c59
Check if network is up.
jburel Oct 23, 2012
c4dd822
Modify handling of network drop.
jburel Oct 30, 2012
ae64750
Allow user to cancel shutdown.
jburel Oct 31, 2012
7682c29
Implement shut down cancellation.
jburel Oct 31, 2012
b0383d0
Add setFastShutdown method to client.java (See #9673)
joshmoore Nov 15, 2012
e06caf1
Set the "fastShutdown" flag.
jburel Nov 15, 2012
868a43e
Do not block if the network goes down
jburel Nov 16, 2012
5ecdc2a
Tmp code to work using java 1.5
jburel Nov 23, 2012
7383fde
Replace Java icon by OME icon for warning dialog.
jburel Nov 23, 2012
ce0e04f
Set the timer correctly.
jburel Nov 26, 2012
5b5e96a
Fix disconnection and settings changes.
jburel Nov 26, 2012
a6d5fba
Refactor code to fix build
jburel Nov 28, 2012
55cff5c
Check if the image is large asynch.
jburel Nov 28, 2012
ef24054
Modify so only one dialog shows up.
jburel Nov 28, 2012
8e596c2
Check if the network is still down during countdown.
jburel Nov 29, 2012
e326ba5
Check the size of the image when the rnd is loaded.
jburel Nov 29, 2012
947cf0b
Remove unused import
jburel Nov 29, 2012
68174e2
Fix duplicate window when the connection is lost.
jburel Nov 29, 2012
e485e6c
Modify network check so it can be run using remote deskop.
jburel Dec 3, 2012
8b57115
Modify handling for call made in quick succession.
jburel Dec 3, 2012
4be5aae
Do not register a viewer when not fully loaded.
jburel Dec 3, 2012
e0d0544
Remove system.err.println
jburel Dec 3, 2012
878da40
Review re loading sequence.
jburel Dec 3, 2012
bf7e6ef
Remove option to cancel. No longer required.
jburel Dec 4, 2012
af93f0c
Modify shut down message.
jburel Dec 5, 2012
3f879f3
Remove .DS_Store file
Dec 7, 2012
e2f128b
Add case sensitive flag.
jburel Dec 7, 2012
cb5b144
-1 was still specified instead of groupId. (see #9997)
jburel Dec 7, 2012
0eb0075
Review loading of annotations and other metadata.
jburel Dec 7, 2012
ed5b790
Modify loading methods. (see #8151)
jburel Dec 7, 2012
a5b97fb
Merge pull request #528 from mtbc/trac-9970
jburel Dec 7, 2012
1493eae
Add call for multi-selection
jburel Dec 7, 2012
8d269f8
Handle tags display when several objects are selected.
jburel Dec 7, 2012
26e84cc
Handle display of file annotations.
jburel Dec 7, 2012
bdbc4e9
Fix annotation saving when multi-selection (see #8151)
jburel Dec 8, 2012
2f4500f
Hide popup menu when info dialog is displayed.
jburel Dec 8, 2012
1c4a497
Display message when several objects are selected.
jburel Dec 8, 2012
8c3c812
Review display of rating annotations.
jburel Dec 8, 2012
24a9bfe
Fix rating display when several nodes selected (#see 8151)
jburel Dec 8, 2012
169eb94
Merge pull request #535 from bpindelski/ds-store-dev_4_4
joshmoore Dec 10, 2012
5d65b67
Merge pull request #520 from jburel/bugs-annotations
joshmoore Dec 10, 2012
4bc7a4f
Correcting the URL for permissions page
qidane Dec 10, 2012
f4b94aa
Fix text in users' menu.
jburel Dec 10, 2012
46cb3e2
Add show group option to the pop-up menu.
jburel Dec 10, 2012
edbaaae
Remove commented out code.
jburel Dec 10, 2012
bc77c21
Make sure relevant ```getXService``` calls are out of try/catch
jburel Dec 10, 2012
98e631f
Fix typo.
jburel Dec 10, 2012
65001a4
Unlink annotation from several objects.
jburel Dec 10, 2012
6b8022f
Only Add to "Selected" pane the common tags. (see #8151)
jburel Dec 10, 2012
935c83e
Same for the attachments.
jburel Dec 10, 2012
0c73336
Remove commented out code.
jburel Dec 10, 2012
3326211
Fix saving of annotation.
jburel Dec 10, 2012
0de7ce9
Add/remove annotation using selection wizard.
jburel Dec 10, 2012
0a48115
Use common method.
jburel Dec 10, 2012
14aca5b
Add support for multi-selection.
jburel Dec 10, 2012
79adf76
Indicate that the annotation can be unlinked.
jburel Dec 10, 2012
0304391
split 'show' on %7C OR |
Dec 10, 2012
2b740b4
Use Icon in tooltip
jburel Dec 10, 2012
7e4636f
Merge pull request #537 from jburel/import-bugs
joshmoore Dec 11, 2012
8dc90eb
Review link removal for multi-selection (see #8151)
jburel Dec 11, 2012
fa3a567
Review the cancellation approach.
jburel Dec 11, 2012
8bfabbe
Merge remote-tracking branch 'official/dev_4_4' into multi-annotations
jburel Dec 11, 2012
cdaa807
Remove window listener for the shutdown dialog.
jburel Dec 11, 2012
7ac3735
Do nothing on close.
jburel Dec 11, 2012
614df52
Set the visible flag in the cancel method.
jburel Dec 11, 2012
0d6cdba
Merge pull request #517 from jburel/groups-menu
joshmoore Dec 11, 2012
a15b66e
Clear data when new node is selected (see #10017)
jburel Dec 11, 2012
17a806d
Fix isSameObject method.
jburel Dec 11, 2012
76d57b3
Fix annotation display for WellSample (see #8151)
jburel Dec 11, 2012
7eeab8d
Remove choices list for permissions string optional argument
sbesson Dec 12, 2012
2102595
Fail-fast on bad permission strings
joshmoore Dec 12, 2012
26cfdf3
Merge pull request #491 from will-moore/post_4_4_5_fixes
joshmoore Dec 12, 2012
7296bd9
Fix retrieval of common attachments (see #10021)
jburel Dec 12, 2012
7d159fe
Attach the file annotations to several files.
jburel Dec 12, 2012
13608fa
Review removal of attachments/tags.
jburel Dec 12, 2012
7f4f335
Merge pull request #541 from qidane/fix-permissions-url
joshmoore Dec 12, 2012
9433777
Fix layout of tags/attachments
jburel Dec 12, 2012
f34d8f2
Fix removal for admin/group owner.
jburel Dec 12, 2012
685fd04
Review analysis result display.
jburel Dec 12, 2012
6f7856f
Review saving of tags for admin/group leader.
jburel Dec 12, 2012
6a3f81c
Refresh display fro single and multi-selection.
jburel Dec 12, 2012
26bfbe9
Remove commented out code (multi-annotations)
jburel Dec 12, 2012
bd355ee
Clean code.
jburel Dec 12, 2012
3e79555
Merge pull request #532 from jburel/connection_dev_4_4
joshmoore Dec 13, 2012
1a38225
Change delimiter for object path traversal in bulk annotation query API
knabar Dec 13, 2012
844bb3e
Merge remote-tracking branch 'official/dev_4_4' into orphan
jburel Dec 13, 2012
49727d2
Use unwrap() to get annotation namespace to handle None values
knabar Dec 13, 2012
b820039
Support cleaner query strings for simple queries
knabar Dec 13, 2012
81b1c0e
Fix whitespace
knabar Dec 13, 2012
f5a0269
Change error responses to 404 in query API
knabar Dec 13, 2012
f3a5801
Display thumbnails when "orphaned" folder is expanded.
jburel Dec 13, 2012
1ba50ad
Improve help messages of all and def subcommands
sbesson Dec 13, 2012
c07b4b5
Always return the current active profile in the stdout
sbesson Dec 13, 2012
7993e18
Review code.
jburel Dec 13, 2012
e471fc1
Recycle the data browser for "orphaned" folder.
jburel Dec 13, 2012
09b2c34
Handle image selection contained in "orphaned" folder.
jburel Dec 13, 2012
a639186
Set up failing test to reproduce Simon's bug
sbesson Dec 13, 2012
d0cfb95
Set the omero.config.version property when creating a new profile
sbesson Dec 13, 2012
7fb967d
Fix testLoad unit test for `config load`
sbesson Dec 13, 2012
39f2f6d
Allow to read profile from standard in if no input specified
sbesson Dec 13, 2012
03022e1
Fail-fast if reading from empty standard in
sbesson Dec 13, 2012
82f4118
Fix warning by using explicit 'properties is None' test
sbesson Dec 13, 2012
31ac5a5
Fix indent
knabar Dec 13, 2012
52ac8ff
Add "left outer" to join to avoid misleading error message
knabar Dec 13, 2012
84aeabc
Improve input file test in config load
sbesson Dec 13, 2012
ecc3d63
Do not try to reset selection when browser selection changes.
jburel Dec 13, 2012
55a7953
Merge pull request #546 from sbesson/cli_group_permissions
joshmoore Dec 14, 2012
d13aa9c
remove System.err.println()
jburel Dec 14, 2012
09209d1
Support - passed as an input argument to config load
sbesson Dec 14, 2012
b29e573
Fix recycling of the "orphaned" folder after refresh.
jburel Dec 14, 2012
e22bc77
Review handling of image selection after refresh
jburel Dec 14, 2012
720e3b4
Set correctly the selection when nodes are selected in Browser.
jburel Dec 14, 2012
b91eac4
Modify the linkage of tags to object.
jburel Dec 14, 2012
40f37cb
Annotate selection with tag already used.
jburel Dec 14, 2012
00dda38
Remove System.err.println
jburel Dec 14, 2012
0899892
Merge pull request #550 from sbesson/cli_improvements_3
joshmoore Dec 17, 2012
4776b90
Load annotations from most recent file
knabar Dec 17, 2012
e38c66a
Correct small typo in CLI group help.
mtbc Dec 17, 2012
a50e907
Indicate who annotated the objects.
jburel Dec 17, 2012
6622dcd
Fix refresh issue.
jburel Dec 17, 2012
d17a7d7
Merge pull request #512 from knabar/tables-api
joshmoore Dec 18, 2012
b55dea5
Merge pull request #530 from jburel/orphan
joshmoore Dec 18, 2012
22e70a9
Merge pull request #555 from mtbc/py-group-typo
joshmoore Dec 18, 2012
535e254
Merge pull request #548 from jburel/multi-annotations
joshmoore Dec 18, 2012
737750b
Clean code before upgrade.
jburel Dec 19, 2012
4117f5e
Add TIFF as an output format.
jburel Dec 19, 2012
ff033be
Clean code.
jburel Dec 19, 2012
3cf6de7
Add PNG and TIFF to the "Save As" option.
jburel Dec 19, 2012
dd215f3
Fix download bug after save as (see #10000)
jburel Dec 19, 2012
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions README.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
For a quick start-up guide, see docs/QUICKSTART.txt

For the impatient, see docs/QUICKSTART.txt

For extensive information on installation and developing omero,
please see the OMERO development Trac:

http://trac.openmicroscopy.org.uk/ome/wiki/OmeroInstall
http://trac.openmicroscopy.org.uk/ome/wiki/OmeroBuild
Full developer documentation is available from http://www.openmicroscopy.org/site/support/omero4/developers/index.html

If you are looking for something else, please refer to the main OME website http://www.openmicroscopy.org/site
5 changes: 3 additions & 2 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,7 @@ To get started using Eclipse, execute "./build.py build-dev" and import the top-
<gitdescribe select="\2"> </gitdescribe>

<exec executable="make" failonerror="true" dir="${sphinx.dir}">
<env key="SOURCE_BRANCH" value="v.${version.describe}"/>
<env key="OMERO_RELEASE" value="${version.describe}"/>
<arg line="clean html latexpdf"/>
</exec>
Expand Down Expand Up @@ -885,7 +886,7 @@ omero.version=${omero.version}
</target>

<target name="webstart-sign">
<signjar alias="${jarsign.alias}" keystore="${jarsign.keystore}" storepass="${jarsign.storepass}" preservelastmodified="true">
<signjar alias="${jarsign.alias}" keystore="${jarsign.keystore}" storepass="${jarsign.storepass}" preservelastmodified="false">
<path>
<fileset dir="${dist.dir}/lib/insight" includes="*.jar"/>
</path>
Expand All @@ -899,7 +900,7 @@ omero.version=${omero.version}
</apply>
</target>

<target name="release-webstart" depends="init">
<target name="release-webstart" depends="init" description="Generates webstart jars under dist/lib/insight">
<unzip src="components/insight/OUT/dist/OMERO.insight-${omero.version}.zip" dest="${dist.dir}/lib/insight">
<patternset>
<include name="**/*.jar"/>
Expand Down
2 changes: 1 addition & 1 deletion components/bioformats
Submodule bioformats updated from 96c615 to 03770c
1 change: 1 addition & 0 deletions components/blitz/resources/omero/Constants.ice
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ module omero {
const string NSCOMPANIONFILE = "openmicroscopy.org/omero/import/companionFile";
const string NSEXPERIMENTERPHOTO = "openmicroscopy.org/omero/experimenter/photo";
const string NSBULKANNOTATIONS = "openmicroscopy.org/omero/bulk_annotations";
const string NSOMETIFF = "openmicroscopy.org/omero/ome_tiff";
//
// omero.grid.Param.namespaces in Scripts.ice
//
Expand Down
59 changes: 17 additions & 42 deletions components/blitz/src/ome/formats/OMEROMetadataStoreClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -1510,15 +1510,11 @@ private File createSeriesMetadataFile(String suffix)
}

/**
* Populates archive flags on all images currently processed links
* relevant original metadata files as requested and performs graph logic
* to have the scafolding in place for later original file upload if
* Links relevant companion files for later original file upload if
* we are of the HCS domain.
* @param archive Whether or not the user requested the original files to
* be archived.
* @return A list of the temporary metadata files created on local disk.
*/
public List<File> setArchiveScreeningDomain(boolean archive)
public List<File> setArchiveScreeningDomain()
{
List<File> metadataFiles = new ArrayList<File>();
String[] usedFiles = reader.getUsedFiles();
Expand All @@ -1529,55 +1525,34 @@ public List<File> setArchiveScreeningDomain(boolean archive)
formatString = formatString.replace("class loci.formats.in.", "");
formatString = formatString.replace("Reader", "");
LSID plateKey = new LSID(Plate.class, 0);
// Populate the archived flag on the image. This inadvertently
// ensures that an Image object (and corresponding container)
// exists.
// Set the archived flag to false as archiving is disabled for screens
for (int series = 0; series < reader.getSeriesCount(); series++)
{
LinkedHashMap<Index, Integer> imageIndexes =
new LinkedHashMap<Index, Integer>();
imageIndexes.put(Index.IMAGE_INDEX, series);
Image image = getSourceObject(Image.class, imageIndexes);
image.setArchived(toRType(archive));
image.setArchived(toRType(false));
}
// Create all original file objects for later population based on
// the existence or abscence of companion files and the archive
// flag. This increments the original file count by the number of
// files to actually be created.
// Create original file objects for later population for companion
// files. This increments the original file count by the
// number of files to actually be created.
int originalFileIndex = 0;
for (String usedFilename : usedFiles)
{
File usedFile = new File(usedFilename);
boolean isCompanionFile = companionFiles == null? false :
companionFiles.contains(usedFilename);
if (archive || isCompanionFile)
{
LinkedHashMap<Index, Integer> indexes =
companionFiles.contains(usedFilename);
LinkedHashMap<Index, Integer> indexes =
new LinkedHashMap<Index, Integer>();
indexes.put(Index.ORIGINAL_FILE_INDEX, originalFileIndex);
if (isCompanionFile)
{
// PATH 1: The file is a companion file, create it,
// and increment the next original file's index.
String format = "Companion/" + formatString;
createOriginalFileFromFile(usedFile, indexes, format);
addCompanionFileAnnotationTo(plateKey, indexes,
originalFileIndex);
originalFileIndex++;
}
else
{
// PATH 2: We're archiving and the file is not a
// companion file, create it, and increment the next
// original file's index.
createOriginalFileFromFile(usedFile, indexes,
formatString);
LSID originalFileKey =
new LSID(OriginalFile.class, originalFileIndex);
addReference(plateKey, originalFileKey);
originalFileIndex++;
}
}
indexes.put(Index.ORIGINAL_FILE_INDEX, originalFileIndex);
// The file is a companion file, create it,
// and increment the next original file's index.
String format = "Companion/" + formatString;
createOriginalFileFromFile(usedFile, indexes, format);
addCompanionFileAnnotationTo(plateKey, indexes,
originalFileIndex);
originalFileIndex++;
}
return metadataFiles;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -457,8 +457,15 @@ protected ImportContainer singleFile(File file, ImportConfig config)
} catch (MissingLibraryException mle)
{
safeUpdate(new ErrorHandler.MISSING_LIBRARY(path, mle, usedFiles, format));
} catch (Exception e)
} catch (Throwable t)
{
Exception e = null;
if (t instanceof Exception) {
e = (Exception) t;
}
else {
e = new Exception(t);
}
safeUpdate(new ErrorHandler.FILE_EXCEPTION(path, e, usedFiles, format));
}

Expand Down
18 changes: 15 additions & 3 deletions components/blitz/src/ome/formats/importer/ImportLibrary.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@ public class ImportLibrary implements IObservable
{
private static Log log = LogFactory.getLog(ImportLibrary.class);

/** The class used to identify the dataset target.*/
private static final String DATASET_CLASS = "omero.model.Dataset";

/** The class used to identify the screen target.*/
private static final String SCREEN_CLASS = "omero.model.Screen";

/** Default arraybuf size for planar data transfer. (1MB) */
public static final int DEFAULT_ARRAYBUF_SIZE = 1048576;

Expand Down Expand Up @@ -266,6 +272,9 @@ public void notifyObservers(ImportEvent event)

/**
* Primary user method for importing a number
*
* @param config The configuration information.
* @param candidates Hosts information about the files to import.
*/
public boolean importCandidates(ImportConfig config, ImportCandidates candidates)
{
Expand All @@ -274,12 +283,12 @@ public boolean importCandidates(ImportConfig config, ImportCandidates candidates
int numDone = 0;
for (int index = 0; index < containers.size(); index++) {
ImportContainer ic = containers.get(index);
if (config.targetClass.get() == "omero.model.Dataset")
if (DATASET_CLASS.equals(config.targetClass.get()))
{
ic.setTarget(store.getTarget(
Dataset.class, config.targetId.get()));
}
else if (config.targetClass.get() == "omero.model.Screen")
else if (SCREEN_CLASS.equals(config.targetClass.get()))
{
ic.setTarget(store.getTarget(
Screen.class, config.targetId.get()));
Expand All @@ -289,6 +298,9 @@ else if (config.targetClass.get() == "omero.model.Screen")
importImage(ic, index, numDone, containers.size());
numDone++;
} catch (Throwable t) {
notifyObservers(new ErrorHandler.INTERNAL_EXCEPTION(
ic.getFile().toString(), new RuntimeException(t),
ic.getUsedFiles(), ic.getReader()));
if (!config.contOnError.get()) {
log.info("Exiting on error");
return false;
Expand Down Expand Up @@ -527,7 +539,7 @@ public List<Pixels> importImage(ImportContainer container, int index,
{
log.info("Reader is of HCS domain, disabling metafile.");

metadataFiles = store.setArchiveScreeningDomain(archive);
metadataFiles = store.setArchiveScreeningDomain();
}
else
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public String getLogFile() {
*/
public String getHomeUrl()
{
return staticPref("General", "url", "http://www.openmicroscopy.org/site/support/omero4/products/feature-list");
return staticPref("General", "url", "http://www.openmicroscopy.org/site/products/omero/feature-list");
}

/**
Expand Down
28 changes: 26 additions & 2 deletions components/blitz/src/omero/client.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import java.util.Properties;
import java.util.Set;
import java.util.UUID;
import java.util.concurrent.atomic.AtomicBoolean;

import ome.util.Utils;
import omero.api.ClientCallback;
Expand Down Expand Up @@ -153,6 +154,17 @@ public void run() {
*/
private volatile Resources __resources;

/**
* Whether or not remote calls are allowed during shutdown.
* If false (the default), then the instance will try to
* connect to the server and free any resources. Otherwise,
* a fastShutdown will take place. The most common reason
* to perform a fast shutdown is the loss of network
* connection. Calling "waitForShutdown" on the Ice stack
* without the proper connection will hang. (See #9673)
*/
private AtomicBoolean fastShutdown = new AtomicBoolean(false);

/**
* @see #isSecure()
*/
Expand Down Expand Up @@ -370,6 +382,15 @@ private void init(Ice.InitializationData id) {

}

/**
* Sets the {@link #fastShutdown} flag. By setting this
* to true, you will prevent proper clean up. This should
* only be used in the case of network loss (or similar).
*/
public boolean setFastShutdown(boolean fastShutdown) {
return this.fastShutdown.getAndSet(fastShutdown);
}

/**
* Sets the {@link omero.model.Session#getUserAgent() user agent} string for
* this client. Every session creation will be passed this argument. Finding
Expand Down Expand Up @@ -831,8 +852,9 @@ public void closeSession() {
}
}

final boolean fast = this.fastShutdown.get();
try {
if (oldSf != null) {
if (oldSf != null && !fast) {
oldSf = ServiceFactoryPrxHelper.uncheckedCast(oldSf.ice_oneway());
}
} catch (Ice.ConnectionLostException cle) {
Expand All @@ -847,7 +869,9 @@ public void closeSession() {
// ok. client is having network issues
} finally {
try {
oldIc.destroy();
if (oldIc != null && !fast) {
oldIc.destroy();
}
} finally {
CLIENTS.remove(this);
}
Expand Down
16 changes: 16 additions & 0 deletions components/blitz/src/pojos/ExperimenterData.java
Original file line number Diff line number Diff line change
Expand Up @@ -298,4 +298,20 @@ public long getGroupId() {
return g.getId();
}

/**
* Checks if supplied group id matches any group to which the current
* experimenter belongs to.
* @param long groupId
* @return bolean <code>true</code>/<code>false</code> depending if matching
* id found
*/
public boolean isMemberOfGroup(long groupId) {
for (GroupData group : this.getGroups()) {
if (group.getId() == groupId) {
return true;
}
}
return false;
}

}
31 changes: 31 additions & 0 deletions components/blitz/src/pojos/GroupData.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@


//Java imports
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Set;

Expand Down Expand Up @@ -114,6 +116,9 @@ public class GroupData extends DataObject {
/** The leaders of the group. */
private Set leaders;

/** The users that belong to the group who are not owners.*/
private Set members;

/** Creates a new instance. */
public GroupData() {
setDirty(true);
Expand Down Expand Up @@ -234,6 +239,32 @@ && asGroup().sizeOfGroupExperimenterMap() >= 0) {
}

/**
* Returns the list of experimenters that are not owners of the group.
*
* @return See above.
*/
public Set getMembersOnly() {
Set leaders = getLeaders();
Set experimenters = getExperimenters();
if (leaders == null || leaders.size() == 0) return experimenters;
if (experimenters == null || experimenters.size() == 0)
return leaders;
List<Long> ids = new ArrayList<Long>(leaders.size());
Iterator i = leaders.iterator();
while (i.hasNext()) {
ids.add(((ExperimenterData) i.next()).getId());
}
Set members = new HashSet();
i = experimenters.iterator();
ExperimenterData exp;
while (i.hasNext()) {
exp = (ExperimenterData) i.next();
if (!ids.contains(exp.getId()))
members.add(exp);
}
return members;
}
/**
* Overridden to return the id of the object.
* @see DataObject#getGroupId()
*/
Expand Down
14 changes: 0 additions & 14 deletions components/common/src/ome/util/package.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,6 @@
object model</a>.
</p>

<h2>Related Documentation</h2>

For more information, please see:
<ul>
<li>
<a href="http://trac.openmicroscopy.org.uk/ome/wiki/FilterPattern">
wiki:FilterPattern</a>
</li>
<li>
<a href="http://trac.openmicroscopy.org.uk/ome/wiki/ModelMapping">
wiki:ModelMapping</a>
</li>
</ul>

<!-- Put @see and @since tags down here. -->
@see ome.util.Filter
</body>
Expand Down
Loading