This repository has been archived by the owner on Nov 30, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added default group id field to organizational unit management (parti…
…al fix for BZ-1169622).
- Loading branch information
Showing
21 changed files
with
503 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ | |
import com.google.gwt.user.client.Command; | ||
import org.guvnor.structure.organizationalunit.OrganizationalUnit; | ||
import org.guvnor.structure.repositories.Repository; | ||
import org.jboss.errai.common.client.api.RemoteCallback; | ||
|
||
public interface OrganizationalUnitManagerPresenter { | ||
|
||
|
@@ -28,12 +29,14 @@ public interface OrganizationalUnitManagerPresenter { | |
void addNewOrganizationalUnit(); | ||
|
||
void createNewOrganizationalUnit( final String organizationalUnitName, | ||
final String organizationalUnitOwner ); | ||
final String organizationalUnitOwner, | ||
final String defaultGroupId ); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
jrenaat
Author
Contributor
|
||
|
||
void editOrganizationalUnit( final OrganizationalUnit organizationalUnit ); | ||
|
||
void saveOrganizationalUnit( final String organizationalUnitName, | ||
final String organizationalUnitOwner ); | ||
final String organizationalUnitOwner, | ||
final String defaultGroupId ); | ||
|
||
void deleteOrganizationalUnit( final OrganizationalUnit organizationalUnit ); | ||
|
||
|
@@ -47,4 +50,7 @@ void checkIfOrganizationalUnitExists( final String organizationalUnitName, | |
final Command onSuccessCommand, | ||
final Command onFailureCommand ); | ||
|
||
void checkValidGroupId( final String proposedGroupId, RemoteCallback<Boolean> callback ); | ||
|
||
void getSanitizedGroupId( final String proposedGroupId, RemoteCallback<String> callback ); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
It might have been easier to overload the createNewOrganizationalUnit method; with parameters: String organizationalUnitName, String organizationalUnitOwner, String defaultGroupId and have the implementation of the 2 parameter version simply call the 3 parameter version with null as the defaultGroupId.. that way you wouldn't have had to change every AppSetup, only the OrganizationalUnitManagement screens (and we wouldn't need a magic "null" value in the method calls)... my 2c :)