Collection extends DSpaceObject implements DSpaceObjectLegacySupport { public void setWorkflowGroup(Context context, int step, Group g) throws SQLException, AuthorizeException { getCollectionService().setWorkflowGroup(context, this, step, g); } protected  Collection(); @Override String getName(); Bitstream getLogo(); Group getSubmitters(); Group getAdministrators(); Group getWorkflowStep1(Context context); Group getWorkflowStep2(Context context); Group getWorkflowStep3(Context context); String getLicenseCollection(); void setLicense(Context context, String license); Item getTemplateItem(); List<Community> getCommunities(); @Override boolean equals(Object other); @Override int hashCode(); @Override int getType(); void setWorkflowGroup(Context context, int step, Group g); @Override Integer getLegacyId(); @Transient
    static final String COPYRIGHT_TEXT; @Transient
    static final String INTRODUCTORY_TEXT; @Transient
    static final String SHORT_DESCRIPTION; @Transient
    static final String SIDEBAR_TEXT; @Transient
    static final String PROVENANCE_TEXT; }
@Test public void testSetWorkflowGroup() throws SQLException, AuthorizeException { context.turnOffAuthorisationSystem(); int step = 1; Group g = groupService.create(context); context.restoreAuthSystemState(); collection.setWorkflowGroup(context, step, g); assertThat("testSetWorkflowGroup 0", collectionService.getWorkflowGroup(context, collection, step), notNullValue()); assertThat("testSetWorkflowGroup 1", collectionService.getWorkflowGroup(context, collection, step), equalTo(g)); }
@Test public void testChangeWorkflowGroup() throws SQLException, AuthorizeException { context.turnOffAuthorisationSystem(); int step = 1; Group g1 = groupService.create(context); Group g2 = groupService.create(context); context.restoreAuthSystemState(); collection.setWorkflowGroup(context, step, g1); collection.setWorkflowGroup(context, step, g2); assertThat("testSetWorkflowGroup 0", collectionService.getWorkflowGroup(context, collection, step), notNullValue()); assertThat("testSetWorkflowGroup 1", collectionService.getWorkflowGroup(context, collection, step), equalTo(g2)); }