View Javadoc
1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements.  See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership.  The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License.  You may obtain a copy of the License at
9    *
10   *   http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing,
13   * software distributed under the License is distributed on an
14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   * KIND, either express or implied.  See the License for the
16   * specific language governing permissions and limitations
17   * under the License.
18   */
19  package org.apache.syncope.client.console.commons;
20  
21  import java.util.List;
22  import org.apache.syncope.client.console.panels.AnyObjectDirectoryPanel;
23  import org.apache.syncope.client.console.panels.GroupDirectoryPanel;
24  import org.apache.syncope.client.console.panels.UserDirectoryPanel;
25  import org.apache.syncope.client.console.wicket.markup.html.bootstrap.dialog.BaseModal;
26  import org.apache.syncope.client.console.wicket.markup.html.form.Action;
27  import org.apache.syncope.client.ui.commons.wizards.any.AnyWrapper;
28  import org.apache.syncope.common.lib.to.AnyObjectTO;
29  import org.apache.syncope.common.lib.to.GroupTO;
30  import org.apache.syncope.common.lib.to.UserTO;
31  import org.apache.wicket.PageReference;
32  import org.apache.wicket.model.IModel;
33  
34  public class IdRepoAnyDirectoryPanelAdditionalActionLinksProvider
35          implements AnyDirectoryPanelAdditionalActionLinksProvider {
36  
37      private static final long serialVersionUID = 121356001392126568L;
38  
39      @Override
40      public List<Action<UserTO>> get(
41              final IModel<UserTO> model,
42              final String realm,
43              final BaseModal<AnyWrapper<UserTO>> modal,
44              final String header,
45              final UserDirectoryPanel parentPanel,
46              final PageReference pageRef) {
47  
48          return List.of();
49      }
50  
51      @Override
52      public List<Action<GroupTO>> get(
53              final GroupTO modelObject,
54              final String realm,
55              final BaseModal<AnyWrapper<GroupTO>> modal,
56              final String header,
57              final GroupDirectoryPanel parentPanel,
58              final PageReference pageRef) {
59  
60          return List.of();
61      }
62  
63      @Override
64      public List<Action<AnyObjectTO>> get(
65              final String type,
66              final AnyObjectTO modelObject,
67              final String realm,
68              final BaseModal<AnyWrapper<AnyObjectTO>> modal,
69              final String header,
70              final AnyObjectDirectoryPanel parentPanel,
71              final PageReference pageRef) {
72  
73          return List.of();
74      }
75  }