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:
Eduard Heimbuch
2024-02-08 14:18:16 +01:00
parent 5d280a1531
commit 89c4a20dd5
19 changed files with 384 additions and 61 deletions

View File

@@ -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}
*/

View File

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