コード例 #1
0
 /**
  * Creates a new profile entity relationship between the provided work and the given profile.
  *
  * @param orcid The profile id
  * @param workId The work id
  * @param visibility The work visibility
  * @return true if the profile work relationship was created
  */
 public boolean addProfileWork(
     String orcid, long workId, Visibility visibility, String sourceOrcid) {
   return profileWorkDao.addProfileWork(orcid, workId, visibility, sourceOrcid);
 }
コード例 #2
0
 /**
  * Updates the visibility of an existing profile work relationship
  *
  * @param clientOrcid The client orcid
  * @param workId The id of the work that will be updated
  * @param visibility The new visibility value for the profile work relationship
  * @return true if the relationship was updated
  */
 public boolean updateWork(String clientOrcid, String workId, Visibility visibility) {
   return profileWorkDao.updateWork(clientOrcid, workId, visibility);
 }
コード例 #3
0
 /**
  * Get the profile work associated with the client orcid and the workId
  *
  * @param clientOrcid The client orcid
  * @param workId The id of the work that will be updated
  * @return the profileWork object
  */
 public ProfileWorkEntity getProfileWork(String clientOrcid, String workId) {
   return profileWorkDao.getProfileWork(clientOrcid, workId);
 }
コード例 #4
0
 /**
  * Removes the relationship that exists between a work and a profile.
  *
  * @param clientOrcid The client orcid
  * @param workId The id of the work that will be removed from the client profile
  * @return true if the relationship was deleted
  */
 @Override
 public boolean removeWork(String clientOrcid, String workId) {
   return profileWorkDao.removeWork(clientOrcid, workId);
 }