/* * Copyright 2010 JBoss Inc * * 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. */ package org.drools.guvnor.client.rpc; import java.util.Date; import com.google.gwt.user.client.rpc.IsSerializable; /** * A single row of a page of an assets table. This is an asset summary/header. * @author Geoffrey De Smet */ public class AssetPageRow implements IsSerializable, Comparable<AssetPageRow> { private String uuid; private String format; // TODO should be an enum private String packageName; private String name; private String description; private String stateName; private String creator; private Date createdDate; private String lastContributor; private Date lastModified; private String categorySummary; private String externalSource; public int compareTo(AssetPageRow other) { return uuid.compareTo(other.uuid); } // ************************************************************************ // Getters and setters // ************************************************************************ public String getUuid() { return uuid; } public void setUuid(String uuid) { this.uuid = uuid; } public String getFormat() { return format; } public void setFormat(String format) { this.format = format; } public String getPackageName() { return packageName; } public void setPackageName(String packageName) { this.packageName = packageName; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public String getStateName() { return stateName; } public void setStateName(String stateName) { this.stateName = stateName; } public String getCreator() { return creator; } public void setCreator(String creator) { this.creator = creator; } public Date getCreatedDate() { return createdDate; } public void setCreatedDate(Date createdDate) { this.createdDate = createdDate; } public String getLastContributor() { return lastContributor; } public void setLastContributor(String lastContributor) { this.lastContributor = lastContributor; } public Date getLastModified() { return lastModified; } public void setLastModified(Date lastModified) { this.lastModified = lastModified; } public String getCategorySummary() { return categorySummary; } public void setCategorySummary(String categorySummary) { this.categorySummary = categorySummary; } public String getExternalSource() { return externalSource; } public void setExternalSource(String externalSource) { this.externalSource = externalSource; } }