001/* 002 * Copyright (c) 2006-2011 Nuxeo SA (http://nuxeo.com/) and others. 003 * 004 * All rights reserved. This program and the accompanying materials 005 * are made available under the terms of the Eclipse Public License v1.0 006 * which accompanies this distribution, and is available at 007 * http://www.eclipse.org/legal/epl-v10.html 008 * 009 * Contributors: 010 * dragos 011 * 012 * $Id$ 013 */ 014 015package org.nuxeo.ecm.core.api; 016 017import java.io.Serializable; 018import java.security.Principal; 019 020/** 021 * Used to change permission in connect. 022 */ 023// FIXME remove this when connect will be changed to use SystemPrincipal 024public class SimplePrincipal implements Principal, Serializable { 025 026 private static final long serialVersionUID = 4899743263998931844L; 027 028 final String id; 029 030 public SimplePrincipal(String id) { 031 this.id = id; 032 } 033 034 @Override 035 public String getName() { 036 return id; 037 } 038 039}