mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
Block out these methods until the dspace-api merge issues can be properly resolved.
git-svn-id: http://scm.dspace.org/svn/repo/trunk@2916 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -273,11 +273,21 @@ public class FlowContainerUtils
|
||||
// First, Unregister the role
|
||||
if (ROLE_ADMIN.equals(roleName))
|
||||
{
|
||||
collection.removeAdministrators();
|
||||
// FIXME: This should unregister this role from the collection
|
||||
// object however there is no method available to do this. Once
|
||||
// Manakin is integrated into dspace this situatiotion should be
|
||||
// resolved.
|
||||
|
||||
throw new UIException("This operation can not be preformed untill the DSpace API is modified to enable the removal of collection administrators.");
|
||||
}
|
||||
else if (ROLE_SUBMIT.equals(roleName))
|
||||
{
|
||||
collection.removeSubmitters();
|
||||
// FIXME: This should unregister this role from the collection
|
||||
// object however there is no method available to do this. Once
|
||||
// Manakin is integrated into dspace this situatiotion should be
|
||||
// resolved.
|
||||
|
||||
throw new UIException("This operation can not be preformed untill the DSpace API is modified to enable the removal of collection submitters.");
|
||||
}
|
||||
else if (ROLE_WF_STEP1.equals(roleName))
|
||||
{
|
||||
|
@@ -344,7 +344,7 @@ public class FlowGroupUtils {
|
||||
* @param groupIDs A list of groups to be removed.
|
||||
* @return A results object.
|
||||
*/
|
||||
public static FlowResult processDeleteGroups(Context context, String[] groupIDs) throws AuthorizeException, IOException
|
||||
public static FlowResult processDeleteGroups(Context context, String[] groupIDs) throws AuthorizeException, UIException, IOException
|
||||
{
|
||||
FlowResult result = new FlowResult();
|
||||
result.setContinue(true);
|
||||
@@ -364,13 +364,21 @@ public class FlowGroupUtils {
|
||||
{
|
||||
if (role == Role.Administrators)
|
||||
{
|
||||
collection.removeAdministrators();
|
||||
collection.update();
|
||||
}
|
||||
// FIXME: This should unregister this role from the collection
|
||||
// object however there is no method available to do this. Once
|
||||
// Manakin is integrated into dspace this situatiotion should be
|
||||
// resolved.
|
||||
|
||||
throw new UIException("This operation can not be preformed untill the DSpace API is modified to enable the removal of collection administrators.");
|
||||
}
|
||||
else if (role == Role.Submitters)
|
||||
{
|
||||
collection.removeSubmitters();
|
||||
collection.update();
|
||||
// FIXME: This should unregister this role from the collection
|
||||
// object however there is no method available to do this. Once
|
||||
// Manakin is integrated into dspace this situatiotion should be
|
||||
// resolved.
|
||||
|
||||
throw new UIException("This operation can not be preformed untill the DSpace API is modified to enable the removal of collection submitters.");
|
||||
}
|
||||
else if (role == Role.WorkflowStep1)
|
||||
{
|
||||
|
Reference in New Issue
Block a user