@Deprecated public interface IShare extends ServiceInterface
| Modifier and Type | Method and Description | 
|---|---|
void | 
activate(long shareId)
Deprecated.  
Turns on the access control lists attached to the given share for the
 current session. 
 | 
ome.model.annotations.CommentAnnotation | 
addComment(long shareId,
          java.lang.String comment)
Deprecated.  
Creates  
comment for
 share. | 
void | 
addGuest(long shareId,
        java.lang.String emailAddress)
Deprecated.  
Add guest email address to the share. 
 | 
void | 
addGuests(long shareId,
         java.lang.String... emailAddresses)
Deprecated.  
Adds guest email addresses to the share. 
 | 
<T extends ome.model.IObject> | 
addObject(long shareId,
         T object)
Deprecated.  
Adds new  
item to share. | 
<T extends ome.model.IObject> | 
addObjects(long shareId,
          T... objects)
Deprecated.  
Adds new  
items to
 share. | 
ome.model.annotations.CommentAnnotation | 
addReply(long shareId,
        java.lang.String comment,
        ome.model.annotations.CommentAnnotation replyTo)
Deprecated.  
Creates  
comment which replies to an existing
 comment. | 
void | 
addUser(long shareId,
       ome.model.meta.Experimenter exp)
Deprecated.  
Adds  
experimenter to
 share | 
void | 
addUsers(long shareId,
        ome.model.meta.Experimenter... exps)
Deprecated.  
Adds  
experimenters to
 share | 
void | 
closeShare(long shareId)
Deprecated.  
Closes  
share. | 
<T extends ome.model.IObject> | 
createShare(java.lang.String description,
           java.sql.Timestamp expiration,
           java.util.List<T> items,
           java.util.List<ome.model.meta.Experimenter> exps,
           java.util.List<java.lang.String> guests,
           boolean enabled)
Deprecated.  
Creates  
share with all related:
 items, members, and guests. | 
void | 
deactivate()
Deprecated.  
Turns off the access control lists with the current share. 
 | 
void | 
deleteComment(ome.model.annotations.Annotation comment)
Deprecated.  
Deletes  
comment from the
 database. | 
java.util.Map<java.lang.String,ome.model.meta.Experimenter> | 
getActiveConnections(long shareId)
Deprecated.  
Gets actual active connections to  
share. | 
java.util.Set<java.lang.String> | 
getAllGuests(long shareId)
Deprecated.  
Get the email addresses for all share guests. 
 | 
java.util.Set<ome.model.meta.Experimenter> | 
getAllMembers(long shareId)
Deprecated.  
Get all  
users who are a member of the share. | 
java.util.Set<java.lang.String> | 
getAllUsers(long shareId)
Deprecated.  
Get a single set containing the
  
login names
 of the users as well email addresses for guests. | 
java.util.Map<java.lang.Long,java.lang.Long> | 
getCommentCount(java.util.Set<java.lang.Long> shareIds)
Deprecated.  
Returns a map from share id to comment count. 
 | 
java.util.List<ome.model.annotations.Annotation> | 
getComments(long shareId)
Deprecated.  
Looks up all  
comments which
 belong to the share. | 
<T extends ome.model.IObject> | 
getContentMap(long shareId)
Deprecated.  
Returns the contents of the share keyed by type. 
 | 
<T extends ome.model.IObject> | 
getContents(long shareId)
Deprecated.  
Looks up all  
items belong to the
 share. | 
int | 
getContentSize(long shareId)
Deprecated.  
Returns the number of items in the share. 
 | 
<T extends ome.model.IObject> | 
getContentSubList(long shareId,
                 int start,
                 int finish)
Deprecated.  
Returns a range of items from the share. 
 | 
java.util.List<ome.model.meta.Event> | 
getEvents(long shareId,
         ome.model.meta.Experimenter experimenter,
         java.sql.Timestamp from,
         java.sql.Timestamp to)
Deprecated.  
Gets events for  
share per
 experimenter for period of time. | 
java.util.Map<java.lang.Long,java.lang.Long> | 
getMemberCount(java.util.Set<java.lang.Long> shareIds)
Deprecated.  
Returns a map from share id to the count of total members (including the
 owner). 
 | 
java.util.Set<ome.model.meta.Session> | 
getMemberShares(boolean onlyActive)
Deprecated.  
Gets all shares where current  
Experimenter is a member. | 
java.util.Set<ome.model.meta.Session> | 
getMemberSharesFor(ome.model.meta.Experimenter user,
                  boolean onlyActive)
Deprecated.  
Gets all shares where given  
Experimenter is a member. | 
java.util.Set<ome.model.meta.Session> | 
getOwnShares(boolean onlyActive)
Deprecated.  
Gets all owned shares for the current  
Experimenter | 
java.util.Map<java.lang.String,ome.model.meta.Experimenter> | 
getPastConnections(long shareId)
Deprecated.  
Gets previous connections to  
share. | 
ome.model.meta.Share | 
getShare(long sessionId)
Deprecated.  
Gets a share as a  
Session with all related:
 comments,
 members, fully loaded. | 
java.util.Set<ome.model.meta.Session> | 
getSharesOwnedBy(ome.model.meta.Experimenter user,
                boolean onlyActive)
Deprecated.  
Gets all shares owned by the given  
Experimenter. | 
void | 
invalidateConnection(long shareId,
                    ome.model.meta.Experimenter exp)
Deprecated.  
Makes the connection invalid for  
share for
 specifiec user. | 
void | 
notifyMembersOfShare(long shareId,
                    java.lang.String subject,
                    java.lang.String message,
                    boolean html)
Deprecated.  
Notify via email selected members of share. 
 | 
void | 
removeGuest(long shareId,
           java.lang.String emailAddress)
Deprecated.  
Removes guest email address from share. 
 | 
void | 
removeGuests(long shareId,
            java.lang.String... emailAddresses)
Deprecated.  
Removes guest email addresses from the share. 
 | 
<T extends ome.model.IObject> | 
removeObject(long shareId,
            T object)
Deprecated.  
Removes existing  
object from the
 share. | 
<T extends ome.model.IObject> | 
removeObjects(long shareId,
             T... objects)
Deprecated.  
Remove existing items from the share. 
 | 
void | 
removeUser(long shareId,
          ome.model.meta.Experimenter exp)
Deprecated.  
Removes  
experimenter from
 share | 
void | 
removeUsers(long shareId,
           java.util.List<ome.model.meta.Experimenter> exps)
Deprecated.  
Removes  
experimenters from
 share | 
void | 
setActive(long shareId,
         boolean active)
Deprecated.  
  | 
void | 
setDescription(long shareId,
              java.lang.String description)
Deprecated.  
  | 
void | 
setExpiration(long shareId,
             java.sql.Timestamp expiration)
Deprecated.  
  | 
void activate(long shareId)
ValidationException is thrown.shareId - void deactivate()
java.util.Map<java.lang.Long,java.lang.Long> getCommentCount(java.util.Set<java.lang.Long> shareIds)
shareIds - Not null.ome.conditions.ValidationException - if a given share does not existjava.util.Set<ome.model.meta.Session> getOwnShares(boolean onlyActive)
ExperimenteronlyActive - if true, then only shares which can be used for login will be
            returned. All "draft" shares (see
            createShare(String, Timestamp, List, List, List, boolean)
            and closed shares will be filtered.java.util.Set<ome.model.meta.Session> getMemberShares(boolean onlyActive)
Experimenter is a member.onlyActive - if true, then only shares which can be used for login will be
            returned. All "draft" shares (see
            createShare(String, Timestamp, List, List, List, boolean)
            and closed shares will be filtered.java.util.Set<ome.model.meta.Session> getSharesOwnedBy(ome.model.meta.Experimenter user,
                                                       boolean onlyActive)
Experimenter.onlyActive - if true, then only shares which can be used for login will be
            returned. All "draft" shares (see
            createShare(String, Timestamp, List, List, List, boolean)
            and closed shares will be filtered.java.util.Set<ome.model.meta.Session> getMemberSharesFor(ome.model.meta.Experimenter user,
                                                         boolean onlyActive)
Experimenter is a member.onlyActive - if true, then only shares which can be used for login will be
            returned. All "draft" shares (see
            createShare(String, Timestamp, List, List, List, boolean)
            and closed shares will be filtered.ome.model.meta.Share getShare(long sessionId)
Session with all related:
 comments,
 members, fully loaded. Unlike the
 other methods on this interface, if the sessionId is unknown, does not
 throw a ValidationException.sessionId - Session with id and Details set or null.
         The owner in
         the Details object is the true owner, and the group in the
         Details has all member users linked. Annotation instances
         of the share are linked to the Session. Missing is a list
         of share guests.<T extends ome.model.IObject> java.util.List<T> getContents(long shareId)
items belong to the
 share.shareId - <T extends ome.model.IObject> java.util.List<T> getContentSubList(long shareId,
                                                                  int start,
                                                                  int finish)
getContents(long)int getContentSize(long shareId)
<T extends ome.model.IObject> java.util.Map<java.lang.Class<T>,java.util.List<java.lang.Long>> getContentMap(long shareId)
<T extends ome.model.IObject> long createShare(java.lang.String description,
                                               java.sql.Timestamp expiration,
                                               java.util.List<T> items,
                                               java.util.List<ome.model.meta.Experimenter> exps,
                                               java.util.List<java.lang.String> guests,
                                               boolean enabled)
share with all related:
 items, members, and guests.description - expiration - exps - guests - 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 except
            activate(long). Similarly, the share password cannot
            be used by guests to login.void setDescription(long shareId,
                    java.lang.String description)
void setExpiration(long shareId,
                   java.sql.Timestamp expiration)
void setActive(long shareId,
               boolean active)
void closeShare(long shareId)
share. No further logins will be
 possible and all getters (e.g. getMemberShares(boolean),
 getOwnShares(boolean), ...) will filter these results if
 onlyActive is true.shareId - <T extends ome.model.IObject> void addObjects(long shareId,
                                              T... objects)
items to
 share. Conceptually calls
 addObjects(long, IObject...) for every argument passed, but the
 graphs will be merged.shareId - objects - <T extends ome.model.IObject> void addObject(long shareId,
                                             T object)
item to share. 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.shareId - object - <T extends ome.model.IObject> void removeObjects(long shareId,
                                                 T... objects)
shareId - objects - <T extends ome.model.IObject> void removeObject(long shareId,
                                                T object)
object from the
 share.shareId - object - java.util.List<ome.model.annotations.Annotation> getComments(long shareId)
comments which
 belong to the share.shareId - java.util.Map<java.lang.Long,java.lang.Long> getMemberCount(java.util.Set<java.lang.Long> shareIds)
ShareMember links.shareIds - Not null.ome.conditions.ValidationException - if a given share does not existome.model.annotations.CommentAnnotation addComment(long shareId,
                                                   java.lang.String comment)
comment for
 share.shareId - comment - ome.model.annotations.CommentAnnotation addReply(long shareId,
                                                 java.lang.String comment,
                                                 ome.model.annotations.CommentAnnotation replyTo)
comment which replies to an existing
 comment.shareId - comment - replyTo - CommentAnnotationvoid deleteComment(ome.model.annotations.Annotation comment)
comment from the
 database.comment - java.util.Set<ome.model.meta.Experimenter> getAllMembers(long shareId)
users who are a member of the share.java.util.Set<java.lang.String> getAllGuests(long shareId)
java.util.Set<java.lang.String> getAllUsers(long shareId)
                                     throws ome.conditions.ValidationException
login names
 of the users as well email addresses for guests.shareId - Set containing the login of all usersome.conditions.ValidationException - if there is a conflict between email addresses and user
             names.void addUsers(long shareId,
              ome.model.meta.Experimenter... exps)
experimenters to
 shareshareId - exps - void addGuests(long shareId,
               java.lang.String... emailAddresses)
shareId - emailAddresses - void removeUsers(long shareId,
                 java.util.List<ome.model.meta.Experimenter> exps)
experimenters from
 shareshareId - exps - void removeGuests(long shareId,
                  java.lang.String... emailAddresses)
shareId - emailAddresses - void addUser(long shareId,
             ome.model.meta.Experimenter exp)
experimenter to
 shareshareId - exp - void addGuest(long shareId,
              java.lang.String emailAddress)
shareId - emailAddress - void removeUser(long shareId,
                ome.model.meta.Experimenter exp)
experimenter from
 shareshareId - exp - void removeGuest(long shareId,
                 java.lang.String emailAddress)
shareId - emailAddress - java.util.Map<java.lang.String,ome.model.meta.Experimenter> getActiveConnections(long shareId)
share.shareId - java.util.Map<java.lang.String,ome.model.meta.Experimenter> getPastConnections(long shareId)
share.shareId - void invalidateConnection(long shareId,
                          ome.model.meta.Experimenter exp)
share for
 specifiec user.shareId - exp - - connectionjava.util.List<ome.model.meta.Event> getEvents(long shareId,
                                               ome.model.meta.Experimenter experimenter,
                                               java.sql.Timestamp from,
                                               java.sql.Timestamp to)
share per
 experimenter for period of time.shareId - experimenter - from - - timeto - - timevoid notifyMembersOfShare(long shareId,
                          java.lang.String subject,
                          java.lang.String message,
                          boolean html)
shareId - subject - message - html -