/******************************************************************************* * Copyright (c) 2012-2017 Codenvy, S.A. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Codenvy, S.A. - initial API and implementation *******************************************************************************/ package org.eclipse.che.api.factory.shared.dto; import org.eclipse.che.api.core.factory.FactoryParameter; import org.eclipse.che.api.core.model.factory.Author; import org.eclipse.che.dto.shared.DTO; import static org.eclipse.che.api.core.factory.FactoryParameter.Obligation.OPTIONAL; /** * Describes author of the factory * * @author Alexander Garagatyi */ @DTO public interface AuthorDto extends Author { /** * Id of user that create factory, set by the server */ @Override @FactoryParameter(obligation = OPTIONAL, setByServer = true) String getUserId(); void setUserId(String userId); AuthorDto withUserId(String userId); /** * @return Creation time of factory, set by the server (in milliseconds, from Unix epoch, no timezone) */ @Override @FactoryParameter(obligation = OPTIONAL, setByServer = true) Long getCreated(); void setCreated(Long created); AuthorDto withCreated(Long created); /** * Name of the author */ @FactoryParameter(obligation = OPTIONAL) String getName(); void setName(String name); AuthorDto withName(String name); /** * Email of the author */ @FactoryParameter(obligation = OPTIONAL) String getEmail(); void setEmail(String email); AuthorDto withEmail(String email); }