mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-05-07 14:36:22 +02:00
Add namespace owner on namespace creation
Namespace owner may see the namespace configuration page. Committed-by: René Pfeuffer<rene.pfeuffer@cloudogu.com>
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
|
||||
package sonia.scm;
|
||||
|
||||
import java.util.Collection;
|
||||
@@ -65,12 +65,23 @@ public interface Manager<T extends ModelObject>
|
||||
*/
|
||||
Collection<T> getAll();
|
||||
|
||||
/**
|
||||
* Returns all object of the store unsorted
|
||||
*
|
||||
* @param filter to filter the returned objects
|
||||
* @since 3.1.0
|
||||
* @return all object of the store sorted by the given {@link java.util.Comparator}
|
||||
*/
|
||||
default Collection<T> getAll(Predicate<T> filter) {
|
||||
return getAll(filter, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns all object of the store sorted by the given {@link java.util.Comparator}
|
||||
*
|
||||
*
|
||||
* @param filter to filter the returned objects
|
||||
* @param comparator to sort the returned objects
|
||||
* @param comparator to sort the returned objects (may be null if no sorting is needed)
|
||||
* @since 1.4
|
||||
* @return all object of the store sorted by the given {@link java.util.Comparator}
|
||||
*/
|
||||
|
||||
@@ -41,8 +41,7 @@ import static java.util.Collections.unmodifiableCollection;
|
||||
|
||||
@StaticPermissions(
|
||||
value = "namespace",
|
||||
globalPermissions = {"permissionRead", "permissionWrite"},
|
||||
permissions = {},
|
||||
permissions = {"permissionRead", "permissionWrite"},
|
||||
custom = true, customGlobal = true
|
||||
)
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
|
||||
Reference in New Issue
Block a user