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.
dspace
add a comment |
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.
dspace
add a comment |
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.
dspace
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
dspace
edited Nov 15 at 21:07
asked Nov 9 at 3:03
Inthemist
62
62
add a comment |
add a comment |
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.
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
add a comment |
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.
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
add a comment |
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.
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
add a comment |
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.
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
add a comment |
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.
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.
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
add a comment |
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
add a comment |
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.
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
add a comment |
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.
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
add a comment |
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.
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.
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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