package org.openengsb.core.security.model;

import java.util.Collection;

import org.springframework.security.core.GrantedAuthority;

/**
 * Copyright 2010 OpenEngSB Division, Vienna University of Technology
 *
 * 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.
 */

public class ServiceAuthorizedList {
    private String serviceId;
    private Collection<GrantedAuthority> authorities;

    public ServiceAuthorizedList(String serviceId, Collection<GrantedAuthority> authorities) {
        this.serviceId = serviceId;
        this.authorities = authorities;
    }

    public ServiceAuthorizedList(String serviceId) {
        this.serviceId = serviceId;
    }

    public String getServiceId() {
        return this.serviceId;
    }

    public void setServiceId(String serviceId) {
        this.serviceId = serviceId;
    }

    public Collection<GrantedAuthority> getAuthorities() {
        return this.authorities;
    }

    public void setAuthorities(Collection<GrantedAuthority> authorities) {
        this.authorities = authorities;
    }

}

@@ -1,138 +1,4 @@
-package org.openengsb.core.security.model;%0A%0Aimport java.util.Collection;%0A%0Aimport org.springframework.security.core.GrantedAuthority;%0A%0A
 /**%0A
@@ -136,16 +136,19 @@
 cense%22);
+%0A *
  you may
@@ -191,19 +191,16 @@
 nce with
-%0A *
  the Lic
@@ -204,16 +204,19 @@
 License.
+%0A *
  You may
@@ -253,16 +253,18 @@
 at%0A *%0A *
+  
  http://
@@ -372,16 +372,19 @@
 software
+%0A *
  distrib
@@ -423,19 +423,16 @@
 buted on
-%0A *
  an %22AS 
@@ -441,16 +441,19 @@
 %22 BASIS,
+%0A *
  WITHOUT
@@ -517,16 +517,19 @@
 implied.
+%0A *
  See the
@@ -544,19 +544,16 @@
  for the
-%0A *
  specifi
@@ -588,16 +588,19 @@
 ions and
+%0A *
  limitat
@@ -628,16 +628,150 @@
 e.%0A */%0A%0A
+package org.openengsb.core.security.model;%0A%0Aimport java.util.Collection;%0A%0Aimport org.springframework.security.core.GrantedAuthority;%0A%0A
 public c

fix licence