1 /*
2 * Licensed to The Apereo Foundation under one or more contributor license
3 * agreements. See the NOTICE file distributed with this work for additional
4 * information regarding copyright ownership.
5 *
6 *
7 * The Apereo Foundation licenses this file to you under the Educational
8 * Community License, Version 2.0 (the "License"); you may not use this file
9 * except in compliance with the License. You may obtain a copy of the License
10 * at:
11 *
12 * http://opensource.org/licenses/ecl2.txt
13 *
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
16 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
17 * License for the specific language governing permissions and limitations under
18 * the License.
19 *
20 */
21
22 package org.opencastproject.authorization.xacml.manager.impl;
23
24 import org.opencastproject.authorization.xacml.manager.api.ManagedAcl;
25 import org.opencastproject.security.api.AccessControlList;
26
27 public final class ManagedAclImpl implements ManagedAcl {
28
29 private Long id;
30
31 private String organizationId;
32
33 private String name;
34
35 private AccessControlList acl;
36
37 /**
38 * Create a managed acl
39 *
40 * @param id
41 * an id
42 * @param name
43 * display name
44 * @param acl
45 * ACL
46 */
47 public ManagedAclImpl(Long id, String name, String organizationId, AccessControlList acl) {
48 this.id = id;
49 this.name = name;
50 this.organizationId = organizationId;
51 this.acl = acl;
52 }
53
54 @Override
55 public Long getId() {
56 return id;
57 }
58
59 @Override
60 public String getName() {
61 return name;
62 }
63
64 @Override
65 public AccessControlList getAcl() {
66 return acl;
67 }
68
69 @Override
70 public String getOrganizationId() {
71 return organizationId;
72 }
73
74 }