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:
Mark Diggory
2008-04-17 06:04:52 +00:00
parent caa5061308
commit e46f93dab1
2 changed files with 26 additions and 8 deletions

View File

@@ -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))
{

View File

@@ -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)
{