mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 18:14:26 +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
|
// First, Unregister the role
|
||||||
if (ROLE_ADMIN.equals(roleName))
|
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))
|
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))
|
else if (ROLE_WF_STEP1.equals(roleName))
|
||||||
{
|
{
|
||||||
|
@@ -344,7 +344,7 @@ public class FlowGroupUtils {
|
|||||||
* @param groupIDs A list of groups to be removed.
|
* @param groupIDs A list of groups to be removed.
|
||||||
* @return A results object.
|
* @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();
|
FlowResult result = new FlowResult();
|
||||||
result.setContinue(true);
|
result.setContinue(true);
|
||||||
@@ -364,13 +364,21 @@ public class FlowGroupUtils {
|
|||||||
{
|
{
|
||||||
if (role == Role.Administrators)
|
if (role == Role.Administrators)
|
||||||
{
|
{
|
||||||
collection.removeAdministrators();
|
// FIXME: This should unregister this role from the collection
|
||||||
collection.update();
|
// 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)
|
else if (role == Role.Submitters)
|
||||||
{
|
{
|
||||||
collection.removeSubmitters();
|
// FIXME: This should unregister this role from the collection
|
||||||
collection.update();
|
// 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)
|
else if (role == Role.WorkflowStep1)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user