Skip to content
This repository has been archived by the owner on Jul 29, 2021. It is now read-only.

Commit

Permalink
feat(groups): create default group for api and apps
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasGeraud authored and brasseld committed Sep 7, 2017
1 parent bed3435 commit 1fea014
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/main/java/io/gravitee/repository/management/model/Group.java
Expand Up @@ -38,6 +38,12 @@ public class Group {
* administrators of the group. May be null
*/
private List<String> administrators;

/**
* events
*/
private List<GroupEventRule> eventRules;

/**
* Creation date
*/
Expand Down Expand Up @@ -87,4 +93,12 @@ public Date getUpdatedAt() {
public void setUpdatedAt(Date updatedAt) {
this.updatedAt = updatedAt;
}

public List<GroupEventRule> getEventRules() {
return eventRules;
}

public void setEventRules(List<GroupEventRule> eventRules) {
this.eventRules = eventRules;
}
}
@@ -0,0 +1,25 @@
/**
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.gravitee.repository.management.model;

/**
* @author Nicolas GERAUD (nicolas.geraud at graviteesource.com)
* @author GraviteeSource Team
*/
public enum GroupEvent {
API_CREATE,
APPLICATION_CREATE
}
@@ -0,0 +1,39 @@
/**
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.gravitee.repository.management.model;

/**
* @author Nicolas GERAUD (nicolas.geraud at graviteesource.com)
* @author GraviteeSource Team
*/
public class GroupEventRule {
private GroupEvent event;

public GroupEventRule() {
}

public GroupEventRule(GroupEvent event) {
this.event = event;
}

public GroupEvent getEvent() {
return event;
}

public void setEvent(GroupEvent event) {
this.event = event;
}
}

0 comments on commit 1fea014

Please sign in to comment.