Package ome.services.blitz.impl
Class ShareI
- java.lang.Object
-
- ome.services.blitz.impl.AbstractAmdServant
-
- ome.services.blitz.impl.ShareI
-
- All Implemented Interfaces:
_IShareOperations,_ServiceInterfaceOperations,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class ShareI extends AbstractAmdServant implements _IShareOperations
Implementation of the IShare service.- Since:
- 3.0-Beta4
- See Also:
IShare
-
-
Constructor Summary
Constructors Constructor Description ShareI(ome.api.IShare service, BlitzExecutor be)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivate_async(AMD_IShare_activate __cb, long shareId, Ice.Current __current)Turns on the access control lists attached to the given share for the current session.voidaddComment_async(AMD_IShare_addComment __cb, long shareId, java.lang.String comment, Ice.Current __current)CreatesTextAnnotationcomment forSessionshare.voidaddGuest_async(AMD_IShare_addGuest __cb, long shareId, java.lang.String emailAddress, Ice.Current __current)Adds guest email address to the share.voidaddGuests_async(AMD_IShare_addGuests __cb, long shareId, java.util.List<java.lang.String> emailAddresses, Ice.Current __current)Adds guest email addresses to the share.voidaddObject_async(AMD_IShare_addObject __cb, long shareId, IObject iobject, Ice.Current __current)voidaddObjects_async(AMD_IShare_addObjects __cb, long shareId, java.util.List<IObject> iobjects, Ice.Current __current)voidaddReply_async(AMD_IShare_addReply __cb, long shareId, java.lang.String comment, TextAnnotation replyTo, Ice.Current __current)CreatesTextAnnotationcomment which replies to an existing comment.voidaddUser_async(AMD_IShare_addUser __cb, long shareId, Experimenter exp, Ice.Current __current)AddsExperimenterexperimenter toSessionshare.voidaddUsers_async(AMD_IShare_addUsers __cb, long shareId, java.util.List<Experimenter> exps, Ice.Current __current)AddsExperimenterexperimenters toSessionshare.voidcloseShare_async(AMD_IShare_closeShare __cb, long shareId, Ice.Current __current)ClosesSessionshare.voidcreateShare_async(AMD_IShare_createShare __cb, java.lang.String description, RTime expiration, java.util.List<IObject> items, java.util.List<Experimenter> exps, java.util.List<java.lang.String> guests, boolean enabled, Ice.Current __current)voiddeactivate_async(AMD_IShare_deactivate __cb, Ice.Current __current)Turns off the access control lists with the current share.voiddeleteComment_async(AMD_IShare_deleteComment __cb, Annotation comment, Ice.Current __current)DeletesAnnotationcomment from the database.voidgetActiveConnections_async(AMD_IShare_getActiveConnections __cb, long shareId, Ice.Current __current)Gets actual active connections toSessionshare.voidgetAllGuests_async(AMD_IShare_getAllGuests __cb, long shareId, Ice.Current __current)Get the email addresses for all share guests.voidgetAllMembers_async(AMD_IShare_getAllMembers __cb, long shareId, Ice.Current __current)Get allExperimenterusers who are a member of the share.voidgetAllUsers_async(AMD_IShare_getAllUsers __cb, long shareId, Ice.Current __current)Get a single set containing theomero.model.Experimenter.getOmeNamelogin names of the users as well email addresses for guests.voidgetCommentCount_async(AMD_IShare_getCommentCount __cb, java.util.List<java.lang.Long> shareIds, Ice.Current __current)Returns a map from share id to comment count.voidgetComments_async(AMD_IShare_getComments __cb, long shareId, Ice.Current __current)Looks up allAnnotationcomments which belong to theSessionshare.voidgetContentMap_async(AMD_IShare_getContentMap __cb, long shareId, Ice.Current __current)Returns the contents of the share keyed by type.voidgetContents_async(AMD_IShare_getContents __cb, long shareId, Ice.Current __current)voidgetContentSize_async(AMD_IShare_getContentSize __cb, long shareId, Ice.Current __current)Returns the number of items in the share.voidgetContentSubList_async(AMD_IShare_getContentSubList __cb, long shareId, int start, int finish, Ice.Current __current)Returns a range of items from the share.voidgetEvents_async(AMD_IShare_getEvents __cb, long shareId, Experimenter exp, RTime from, RTime to, Ice.Current __current)Gets events forSessionshare perExperimenterexperimenter for period of time.voidgetMemberCount_async(AMD_IShare_getMemberCount __cb, java.util.List<java.lang.Long> shareIds, Ice.Current __current)Returns a map from share id to the count of total members (including the owner).voidgetMemberShares_async(AMD_IShare_getMemberShares __cb, boolean active, Ice.Current __current)Gets all shares where currentExperimenteris a member.voidgetMemberSharesFor_async(AMD_IShare_getMemberSharesFor __cb, Experimenter user, boolean active, Ice.Current __current)Gets all shares where givenExperimenteris a member.voidgetOwnShares_async(AMD_IShare_getOwnShares __cb, boolean active, Ice.Current __current)Gets all owned shares for the currentExperimenter.voidgetPastConnections_async(AMD_IShare_getPastConnections __cb, long shareId, Ice.Current __current)Gets previous connections toSessionshare.voidgetShare_async(AMD_IShare_getShare __cb, long shareId, Ice.Current __current)Gets a share as aSessionwith all related:Annotationcomments,Experimentermembers, fully loaded.voidgetSharesOwnedBy_async(AMD_IShare_getSharesOwnedBy __cb, Experimenter user, boolean active, Ice.Current __current)Gets all shares owned by the givenExperimenter.voidinvalidateConnection_async(AMD_IShare_invalidateConnection __cb, long shareId, Experimenter exp, Ice.Current __current)Makes the connection invalid forSessionshare for specified user.voidnotifyMembersOfShare_async(AMD_IShare_notifyMembersOfShare __cb, long shareId, java.lang.String subject, java.lang.String message, boolean html, Ice.Current __current)Notifies via email selected members of share.voidremoveGuest_async(AMD_IShare_removeGuest __cb, long shareId, java.lang.String emailAddress, Ice.Current __current)Removes guest email address from share.voidremoveGuests_async(AMD_IShare_removeGuests __cb, long shareId, java.util.List<java.lang.String> emailAddresses, Ice.Current __current)Removes guest email addresses from the share.voidremoveObject_async(AMD_IShare_removeObject __cb, long shareId, IObject iobject, Ice.Current __current)voidremoveObjects_async(AMD_IShare_removeObjects __cb, long shareId, java.util.List<IObject> iobjects, Ice.Current __current)Remove existing items from the share.voidremoveUser_async(AMD_IShare_removeUser __cb, long shareId, Experimenter exp, Ice.Current __current)RemovesExperimenterexperimenter fromSessionshare.voidremoveUsers_async(AMD_IShare_removeUsers __cb, long shareId, java.util.List<Experimenter> exps, Ice.Current __current)RemovesExperimenterexperimenters fromSessionshare.voidsetActive_async(AMD_IShare_setActive __cb, long shareId, boolean active, Ice.Current __current)voidsetDescription_async(AMD_IShare_setDescription __cb, long shareId, java.lang.String description, Ice.Current __current)voidsetExpiration_async(AMD_IShare_setExpiration __cb, long shareId, RTime expiration, Ice.Current __current)-
Methods inherited from class ome.services.blitz.impl.AbstractAmdServant
activate_async, applyHardWiredInterceptors, callInvokerOnMappedArgs, callInvokerOnRawArgs, executorWorkCall, getCurrentEventContext_async, onSetOmeroContext, passivate_async, runnableCall, safeRunnableCall, setApplicationContext, setHolder
-
-
-
-
Constructor Detail
-
ShareI
public ShareI(ome.api.IShare service, BlitzExecutor be)
-
-
Method Detail
-
activate_async
public void activate_async(AMD_IShare_activate __cb, long shareId, Ice.Current __current)
Description copied from interface:_IShareOperationsTurns on the access control lists attached to the given share for the current session. Warning: this will slow down the execution of the current session for all database reads. Writing to the database will not be allowed. If share does not exist or is not accessible (non-members) or is disabled, then anValidationExceptionis thrown.- Specified by:
activate_asyncin interface_IShareOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.
-
deactivate_async
public void deactivate_async(AMD_IShare_deactivate __cb, Ice.Current __current)
Description copied from interface:_IShareOperationsTurns off the access control lists with the current share.- Specified by:
deactivate_asyncin interface_IShareOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.
-
addComment_async
public void addComment_async(AMD_IShare_addComment __cb, long shareId, java.lang.String comment, Ice.Current __current)
Description copied from interface:_IShareOperationsCreatesTextAnnotationcomment forSessionshare.- Specified by:
addComment_asyncin interface_IShareOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.
-
addGuest_async
public void addGuest_async(AMD_IShare_addGuest __cb, long shareId, java.lang.String emailAddress, Ice.Current __current)
Description copied from interface:_IShareOperationsAdds guest email address to the share.- Specified by:
addGuest_asyncin interface_IShareOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.
-
addObject_async
public void addObject_async(AMD_IShare_addObject __cb, long shareId, IObject iobject, Ice.Current __current)
Description copied from interface:_IShareOperationsAdds newIObjectitem toSessionshare. The entire object graph with the exception of all Details will be loaded into the share. If you would like to load a single object, then pass an unloaded reference.- Specified by:
addObject_asyncin interface_IShareOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.
-
addObjects_async
public void addObjects_async(AMD_IShare_addObjects __cb, long shareId, java.util.List<IObject> iobjects, Ice.Current __current)
Description copied from interface:_IShareOperationsAdds newIObjectitems toSessionshare. Conceptually callsaddObjectsfor every argument passed, but the graphs will be merged.- Specified by:
addObjects_asyncin interface_IShareOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.
-
addReply_async
public void addReply_async(AMD_IShare_addReply __cb, long shareId, java.lang.String comment, TextAnnotation replyTo, Ice.Current __current)
Description copied from interface:_IShareOperationsCreatesTextAnnotationcomment which replies to an existing comment.- Specified by:
addReply_asyncin interface_IShareOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.
-
addUser_async
public void addUser_async(AMD_IShare_addUser __cb, long shareId, Experimenter exp, Ice.Current __current)
Description copied from interface:_IShareOperationsAddsExperimenterexperimenter toSessionshare.- Specified by:
addUser_asyncin interface_IShareOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.
-
addUsers_async
public void addUsers_async(AMD_IShare_addUsers __cb, long shareId, java.util.List<Experimenter> exps, Ice.Current __current)
Description copied from interface:_IShareOperationsAddsExperimenterexperimenters toSessionshare.- Specified by:
addUsers_asyncin interface_IShareOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.
-
closeShare_async
public void closeShare_async(AMD_IShare_closeShare __cb, long shareId, Ice.Current __current)
Description copied from interface:_IShareOperationsClosesSessionshare. No further logins will be possible and all getters (e.g.getMemberShares,getOwnShares, ...) will filter these results ifonlyActiveis true.- Specified by:
closeShare_asyncin interface_IShareOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.
-
deleteComment_async
public void deleteComment_async(AMD_IShare_deleteComment __cb, Annotation comment, Ice.Current __current)
Description copied from interface:_IShareOperationsDeletesAnnotationcomment from the database.- Specified by:
deleteComment_asyncin interface_IShareOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.
-
getAllGuests_async
public void getAllGuests_async(AMD_IShare_getAllGuests __cb, long shareId, Ice.Current __current)
Description copied from interface:_IShareOperationsGet the email addresses for all share guests.- Specified by:
getAllGuests_asyncin interface_IShareOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.
-
getAllMembers_async
public void getAllMembers_async(AMD_IShare_getAllMembers __cb, long shareId, Ice.Current __current)
Description copied from interface:_IShareOperationsGet allExperimenterusers who are a member of the share.- Specified by:
getAllMembers_asyncin interface_IShareOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.
-
getAllUsers_async
public void getAllUsers_async(AMD_IShare_getAllUsers __cb, long shareId, Ice.Current __current) throws ValidationException
Description copied from interface:_IShareOperationsGet a single set containing theomero.model.Experimenter.getOmeNamelogin names of the users as well email addresses for guests.- Specified by:
getAllUsers_asyncin interface_IShareOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ValidationException
-
getCommentCount_async
public void getCommentCount_async(AMD_IShare_getCommentCount __cb, java.util.List<java.lang.Long> shareIds, Ice.Current __current) throws ServerError
Description copied from interface:_IShareOperationsReturns a map from share id to comment count.- Specified by:
getCommentCount_asyncin interface_IShareOperations- Parameters:
__cb- The callback object for the operation.shareIds- Not null.__current- The Current object for the invocation.- Throws:
ServerError
-
getComments_async
public void getComments_async(AMD_IShare_getComments __cb, long shareId, Ice.Current __current)
Description copied from interface:_IShareOperationsLooks up allAnnotationcomments which belong to theSessionshare.- Specified by:
getComments_asyncin interface_IShareOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.
-
getContentMap_async
public void getContentMap_async(AMD_IShare_getContentMap __cb, long shareId, Ice.Current __current)
Description copied from interface:_IShareOperationsReturns the contents of the share keyed by type.- Specified by:
getContentMap_asyncin interface_IShareOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.
-
getContentSize_async
public void getContentSize_async(AMD_IShare_getContentSize __cb, long shareId, Ice.Current __current)
Description copied from interface:_IShareOperationsReturns the number of items in the share.- Specified by:
getContentSize_asyncin interface_IShareOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.
-
getContentSubList_async
public void getContentSubList_async(AMD_IShare_getContentSubList __cb, long shareId, int start, int finish, Ice.Current __current)
Description copied from interface:_IShareOperationsReturns a range of items from the share.- Specified by:
getContentSubList_asyncin interface_IShareOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.
-
getContents_async
public void getContents_async(AMD_IShare_getContents __cb, long shareId, Ice.Current __current)
Description copied from interface:_IShareOperations- Specified by:
getContents_asyncin interface_IShareOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.
-
getMemberCount_async
public void getMemberCount_async(AMD_IShare_getMemberCount __cb, java.util.List<java.lang.Long> shareIds, Ice.Current __current) throws ServerError
Description copied from interface:_IShareOperationsReturns a map from share id to the count of total members (including the owner). This is represented byShareMemberlinks.- Specified by:
getMemberCount_asyncin interface_IShareOperations- Parameters:
__cb- The callback object for the operation.shareIds- Not null.__current- The Current object for the invocation.- Throws:
ServerError
-
getMemberSharesFor_async
public void getMemberSharesFor_async(AMD_IShare_getMemberSharesFor __cb, Experimenter user, boolean active, Ice.Current __current)
Description copied from interface:_IShareOperationsGets all shares where givenExperimenteris a member.- Specified by:
getMemberSharesFor_asyncin interface_IShareOperations- Parameters:
__cb- The callback object for the operation.user- the experimenteractive- if true, then only shares which can be used for login will be returned. All draft shares (seecreateShare) and closed shares (seecloseShare) will be filtered.__current- The Current object for the invocation.
-
getMemberShares_async
public void getMemberShares_async(AMD_IShare_getMemberShares __cb, boolean active, Ice.Current __current)
Description copied from interface:_IShareOperationsGets all shares where currentExperimenteris a member.- Specified by:
getMemberShares_asyncin interface_IShareOperations- Parameters:
__cb- The callback object for the operation.active- if true, then only shares which can be used for login will be returned. All draft shares (seecreateShare) and closed shares (seecloseShare) will be filtered.__current- The Current object for the invocation.
-
getOwnShares_async
public void getOwnShares_async(AMD_IShare_getOwnShares __cb, boolean active, Ice.Current __current)
Description copied from interface:_IShareOperationsGets all owned shares for the currentExperimenter.- Specified by:
getOwnShares_asyncin interface_IShareOperations- Parameters:
__cb- The callback object for the operation.active- if true, then only shares which can be used for login will be returned. All draft shares (seecreateShare) and closed shares (seecloseShare) will be filtered.__current- The Current object for the invocation.
-
getShare_async
public void getShare_async(AMD_IShare_getShare __cb, long shareId, Ice.Current __current)
Description copied from interface:_IShareOperationsGets a share as aSessionwith all related:Annotationcomments,Experimentermembers, fully loaded. Unlike the other methods on this interface, if the sessionId is unknown, does not throw aValidationException.- Specified by:
getShare_asyncin interface_IShareOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.
-
getSharesOwnedBy_async
public void getSharesOwnedBy_async(AMD_IShare_getSharesOwnedBy __cb, Experimenter user, boolean active, Ice.Current __current)
Description copied from interface:_IShareOperationsGets all shares owned by the givenExperimenter.- Specified by:
getSharesOwnedBy_asyncin interface_IShareOperations- Parameters:
__cb- The callback object for the operation.user- the experimenteractive- if true, then only shares which can be used for login will be returned. All draft shares (seecreateShare) and closed shares (seecloseShare) will be filtered.__current- The Current object for the invocation.
-
removeGuest_async
public void removeGuest_async(AMD_IShare_removeGuest __cb, long shareId, java.lang.String emailAddress, Ice.Current __current)
Description copied from interface:_IShareOperationsRemoves guest email address from share.- Specified by:
removeGuest_asyncin interface_IShareOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.
-
removeObject_async
public void removeObject_async(AMD_IShare_removeObject __cb, long shareId, IObject iobject, Ice.Current __current)
Description copied from interface:_IShareOperations- Specified by:
removeObject_asyncin interface_IShareOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.
-
removeObjects_async
public void removeObjects_async(AMD_IShare_removeObjects __cb, long shareId, java.util.List<IObject> iobjects, Ice.Current __current)
Description copied from interface:_IShareOperationsRemove existing items from the share.- Specified by:
removeObjects_asyncin interface_IShareOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.
-
removeUser_async
public void removeUser_async(AMD_IShare_removeUser __cb, long shareId, Experimenter exp, Ice.Current __current)
Description copied from interface:_IShareOperationsRemovesExperimenterexperimenter fromSessionshare.- Specified by:
removeUser_asyncin interface_IShareOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.
-
removeUsers_async
public void removeUsers_async(AMD_IShare_removeUsers __cb, long shareId, java.util.List<Experimenter> exps, Ice.Current __current)
Description copied from interface:_IShareOperationsRemovesExperimenterexperimenters fromSessionshare.- Specified by:
removeUsers_asyncin interface_IShareOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.
-
setActive_async
public void setActive_async(AMD_IShare_setActive __cb, long shareId, boolean active, Ice.Current __current)
- Specified by:
setActive_asyncin interface_IShareOperations
-
setDescription_async
public void setDescription_async(AMD_IShare_setDescription __cb, long shareId, java.lang.String description, Ice.Current __current)
- Specified by:
setDescription_asyncin interface_IShareOperations
-
setExpiration_async
public void setExpiration_async(AMD_IShare_setExpiration __cb, long shareId, RTime expiration, Ice.Current __current)
- Specified by:
setExpiration_asyncin interface_IShareOperations
-
addGuests_async
public void addGuests_async(AMD_IShare_addGuests __cb, long shareId, java.util.List<java.lang.String> emailAddresses, Ice.Current __current) throws ServerError
Description copied from interface:_IShareOperationsAdds guest email addresses to the share.- Specified by:
addGuests_asyncin interface_IShareOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
createShare_async
public void createShare_async(AMD_IShare_createShare __cb, java.lang.String description, RTime expiration, java.util.List<IObject> items, java.util.List<Experimenter> exps, java.util.List<java.lang.String> guests, boolean enabled, Ice.Current __current) throws ServerError
Description copied from interface:_IShareOperations- Specified by:
createShare_asyncin interface_IShareOperations- Parameters:
__cb- The callback object for the operation.enabled- if true, then the share is immediately available for use. If false, then the share is in draft state. All methods on this interface will work for shares exceptactivate. Similarly, the share password cannot be used by guests to login.__current- The Current object for the invocation.- Throws:
ServerError
-
getActiveConnections_async
public void getActiveConnections_async(AMD_IShare_getActiveConnections __cb, long shareId, Ice.Current __current) throws ServerError
Description copied from interface:_IShareOperationsGets actual active connections toSessionshare.- Specified by:
getActiveConnections_asyncin interface_IShareOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
getEvents_async
public void getEvents_async(AMD_IShare_getEvents __cb, long shareId, Experimenter exp, RTime from, RTime to, Ice.Current __current) throws ServerError
Description copied from interface:_IShareOperationsGets events forSessionshare perExperimenterexperimenter for period of time.- Specified by:
getEvents_asyncin interface_IShareOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
getPastConnections_async
public void getPastConnections_async(AMD_IShare_getPastConnections __cb, long shareId, Ice.Current __current) throws ServerError
Description copied from interface:_IShareOperationsGets previous connections toSessionshare.- Specified by:
getPastConnections_asyncin interface_IShareOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
invalidateConnection_async
public void invalidateConnection_async(AMD_IShare_invalidateConnection __cb, long shareId, Experimenter exp, Ice.Current __current) throws ServerError
Description copied from interface:_IShareOperationsMakes the connection invalid forSessionshare for specified user.- Specified by:
invalidateConnection_asyncin interface_IShareOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
notifyMembersOfShare_async
public void notifyMembersOfShare_async(AMD_IShare_notifyMembersOfShare __cb, long shareId, java.lang.String subject, java.lang.String message, boolean html, Ice.Current __current) throws ServerError
Description copied from interface:_IShareOperationsNotifies via email selected members of share.- Specified by:
notifyMembersOfShare_asyncin interface_IShareOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
removeGuests_async
public void removeGuests_async(AMD_IShare_removeGuests __cb, long shareId, java.util.List<java.lang.String> emailAddresses, Ice.Current __current) throws ServerError
Description copied from interface:_IShareOperationsRemoves guest email addresses from the share.- Specified by:
removeGuests_asyncin interface_IShareOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
-