How to create a curation task that checks which EPersons are only in the anonymous group in dspace?











up vote
1
down vote

favorite












I need to implement a curation task that checks the group of every eperson. I understand that every eperson is a dspace object so they have an ID, given an ID I can check that eperson's group. My question is then, how to iterate over the Epersons.










share|improve this question




























    up vote
    1
    down vote

    favorite












    I need to implement a curation task that checks the group of every eperson. I understand that every eperson is a dspace object so they have an ID, given an ID I can check that eperson's group. My question is then, how to iterate over the Epersons.










    share|improve this question


























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I need to implement a curation task that checks the group of every eperson. I understand that every eperson is a dspace object so they have an ID, given an ID I can check that eperson's group. My question is then, how to iterate over the Epersons.










      share|improve this question















      I need to implement a curation task that checks the group of every eperson. I understand that every eperson is a dspace object so they have an ID, given an ID I can check that eperson's group. My question is then, how to iterate over the Epersons.







      dspace






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 15 at 21:07

























      asked Nov 9 at 3:03









      Inthemist

      62




      62
























          2 Answers
          2






          active

          oldest

          votes

















          up vote
          1
          down vote













          Your question's title refers to the anonymous group - every user is in the anonymous group, so I'm not quite sure why you would want a curation task for this. Furthermore, curation tasks are generally designed to run over DSpace content objects (communities/collections/items) not users.



          If you do really want a curation task, your method depends on your DSpace version. In DSpace 5, use Eperson.findAll. In DSpace 6, use EPersonService.findAll. In current master, you should use the paginated version of the findAll method in the EPersonService class.






          share|improve this answer





















          • Thanks your for answer, I had a misunderstanding. What I want is a task that check if any user is only in the anonymous group so that they can be assigned to the registered users group. Is there a better way (other than curation tasks) to implement this type of tasks and run them from the website?
            – Inthemist
            Nov 9 at 22:06












          • Thanks for clarifying (you might like to edit your question to help others if they ever want to know the same thing). If you want to be able to run it through the user interface then the curation task does sound like the best option.
            – schweerelos
            Nov 11 at 20:12


















          up vote
          1
          down vote













          First, to make it clear: the curation system only operates on the content hierarchy. It has no code to enumerate EPersons or Groups.



          The answer above gives the best starting point for enumerating EPersons. findAll will return a List of EPerson. There is nothing in place to fit this into the web UIs. The easiest approach will be to make a console application that you run while logged in on the server.



          The Anonymous group has no members; membership is implicit for all existing EPerson. Being a registered user is implicit in the fact that an EPerson exists. We may be able to give more help if you will more fully describe the problem that you are trying to solve.






          share|improve this answer





















          • I had a misunderstanding, what I want to know is which users are only in the Anonymous group (so that they are not "floating" around). If I decided to make a console application where should I program it?
            – Inthemist
            Nov 15 at 21:35











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53219262%2fhow-to-create-a-curation-task-that-checks-which-epersons-are-only-in-the-anonymo%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          1
          down vote













          Your question's title refers to the anonymous group - every user is in the anonymous group, so I'm not quite sure why you would want a curation task for this. Furthermore, curation tasks are generally designed to run over DSpace content objects (communities/collections/items) not users.



          If you do really want a curation task, your method depends on your DSpace version. In DSpace 5, use Eperson.findAll. In DSpace 6, use EPersonService.findAll. In current master, you should use the paginated version of the findAll method in the EPersonService class.






          share|improve this answer





















          • Thanks your for answer, I had a misunderstanding. What I want is a task that check if any user is only in the anonymous group so that they can be assigned to the registered users group. Is there a better way (other than curation tasks) to implement this type of tasks and run them from the website?
            – Inthemist
            Nov 9 at 22:06












          • Thanks for clarifying (you might like to edit your question to help others if they ever want to know the same thing). If you want to be able to run it through the user interface then the curation task does sound like the best option.
            – schweerelos
            Nov 11 at 20:12















          up vote
          1
          down vote













          Your question's title refers to the anonymous group - every user is in the anonymous group, so I'm not quite sure why you would want a curation task for this. Furthermore, curation tasks are generally designed to run over DSpace content objects (communities/collections/items) not users.



          If you do really want a curation task, your method depends on your DSpace version. In DSpace 5, use Eperson.findAll. In DSpace 6, use EPersonService.findAll. In current master, you should use the paginated version of the findAll method in the EPersonService class.






          share|improve this answer





















          • Thanks your for answer, I had a misunderstanding. What I want is a task that check if any user is only in the anonymous group so that they can be assigned to the registered users group. Is there a better way (other than curation tasks) to implement this type of tasks and run them from the website?
            – Inthemist
            Nov 9 at 22:06












          • Thanks for clarifying (you might like to edit your question to help others if they ever want to know the same thing). If you want to be able to run it through the user interface then the curation task does sound like the best option.
            – schweerelos
            Nov 11 at 20:12













          up vote
          1
          down vote










          up vote
          1
          down vote









          Your question's title refers to the anonymous group - every user is in the anonymous group, so I'm not quite sure why you would want a curation task for this. Furthermore, curation tasks are generally designed to run over DSpace content objects (communities/collections/items) not users.



          If you do really want a curation task, your method depends on your DSpace version. In DSpace 5, use Eperson.findAll. In DSpace 6, use EPersonService.findAll. In current master, you should use the paginated version of the findAll method in the EPersonService class.






          share|improve this answer












          Your question's title refers to the anonymous group - every user is in the anonymous group, so I'm not quite sure why you would want a curation task for this. Furthermore, curation tasks are generally designed to run over DSpace content objects (communities/collections/items) not users.



          If you do really want a curation task, your method depends on your DSpace version. In DSpace 5, use Eperson.findAll. In DSpace 6, use EPersonService.findAll. In current master, you should use the paginated version of the findAll method in the EPersonService class.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 9 at 3:48









          schweerelos

          1,87121722




          1,87121722












          • Thanks your for answer, I had a misunderstanding. What I want is a task that check if any user is only in the anonymous group so that they can be assigned to the registered users group. Is there a better way (other than curation tasks) to implement this type of tasks and run them from the website?
            – Inthemist
            Nov 9 at 22:06












          • Thanks for clarifying (you might like to edit your question to help others if they ever want to know the same thing). If you want to be able to run it through the user interface then the curation task does sound like the best option.
            – schweerelos
            Nov 11 at 20:12


















          • Thanks your for answer, I had a misunderstanding. What I want is a task that check if any user is only in the anonymous group so that they can be assigned to the registered users group. Is there a better way (other than curation tasks) to implement this type of tasks and run them from the website?
            – Inthemist
            Nov 9 at 22:06












          • Thanks for clarifying (you might like to edit your question to help others if they ever want to know the same thing). If you want to be able to run it through the user interface then the curation task does sound like the best option.
            – schweerelos
            Nov 11 at 20:12
















          Thanks your for answer, I had a misunderstanding. What I want is a task that check if any user is only in the anonymous group so that they can be assigned to the registered users group. Is there a better way (other than curation tasks) to implement this type of tasks and run them from the website?
          – Inthemist
          Nov 9 at 22:06






          Thanks your for answer, I had a misunderstanding. What I want is a task that check if any user is only in the anonymous group so that they can be assigned to the registered users group. Is there a better way (other than curation tasks) to implement this type of tasks and run them from the website?
          – Inthemist
          Nov 9 at 22:06














          Thanks for clarifying (you might like to edit your question to help others if they ever want to know the same thing). If you want to be able to run it through the user interface then the curation task does sound like the best option.
          – schweerelos
          Nov 11 at 20:12




          Thanks for clarifying (you might like to edit your question to help others if they ever want to know the same thing). If you want to be able to run it through the user interface then the curation task does sound like the best option.
          – schweerelos
          Nov 11 at 20:12












          up vote
          1
          down vote













          First, to make it clear: the curation system only operates on the content hierarchy. It has no code to enumerate EPersons or Groups.



          The answer above gives the best starting point for enumerating EPersons. findAll will return a List of EPerson. There is nothing in place to fit this into the web UIs. The easiest approach will be to make a console application that you run while logged in on the server.



          The Anonymous group has no members; membership is implicit for all existing EPerson. Being a registered user is implicit in the fact that an EPerson exists. We may be able to give more help if you will more fully describe the problem that you are trying to solve.






          share|improve this answer





















          • I had a misunderstanding, what I want to know is which users are only in the Anonymous group (so that they are not "floating" around). If I decided to make a console application where should I program it?
            – Inthemist
            Nov 15 at 21:35















          up vote
          1
          down vote













          First, to make it clear: the curation system only operates on the content hierarchy. It has no code to enumerate EPersons or Groups.



          The answer above gives the best starting point for enumerating EPersons. findAll will return a List of EPerson. There is nothing in place to fit this into the web UIs. The easiest approach will be to make a console application that you run while logged in on the server.



          The Anonymous group has no members; membership is implicit for all existing EPerson. Being a registered user is implicit in the fact that an EPerson exists. We may be able to give more help if you will more fully describe the problem that you are trying to solve.






          share|improve this answer





















          • I had a misunderstanding, what I want to know is which users are only in the Anonymous group (so that they are not "floating" around). If I decided to make a console application where should I program it?
            – Inthemist
            Nov 15 at 21:35













          up vote
          1
          down vote










          up vote
          1
          down vote









          First, to make it clear: the curation system only operates on the content hierarchy. It has no code to enumerate EPersons or Groups.



          The answer above gives the best starting point for enumerating EPersons. findAll will return a List of EPerson. There is nothing in place to fit this into the web UIs. The easiest approach will be to make a console application that you run while logged in on the server.



          The Anonymous group has no members; membership is implicit for all existing EPerson. Being a registered user is implicit in the fact that an EPerson exists. We may be able to give more help if you will more fully describe the problem that you are trying to solve.






          share|improve this answer












          First, to make it clear: the curation system only operates on the content hierarchy. It has no code to enumerate EPersons or Groups.



          The answer above gives the best starting point for enumerating EPersons. findAll will return a List of EPerson. There is nothing in place to fit this into the web UIs. The easiest approach will be to make a console application that you run while logged in on the server.



          The Anonymous group has no members; membership is implicit for all existing EPerson. Being a registered user is implicit in the fact that an EPerson exists. We may be able to give more help if you will more fully describe the problem that you are trying to solve.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 11 at 12:28









          Mark Wood

          1645




          1645












          • I had a misunderstanding, what I want to know is which users are only in the Anonymous group (so that they are not "floating" around). If I decided to make a console application where should I program it?
            – Inthemist
            Nov 15 at 21:35


















          • I had a misunderstanding, what I want to know is which users are only in the Anonymous group (so that they are not "floating" around). If I decided to make a console application where should I program it?
            – Inthemist
            Nov 15 at 21:35
















          I had a misunderstanding, what I want to know is which users are only in the Anonymous group (so that they are not "floating" around). If I decided to make a console application where should I program it?
          – Inthemist
          Nov 15 at 21:35




          I had a misunderstanding, what I want to know is which users are only in the Anonymous group (so that they are not "floating" around). If I decided to make a console application where should I program it?
          – Inthemist
          Nov 15 at 21:35


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53219262%2fhow-to-create-a-curation-task-that-checks-which-epersons-are-only-in-the-anonymo%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Bressuire

          Vorschmack

          Quarantine