/*******************************************************************************
 * Copyright (c) 2016 IBH SYSTEMS GmbH and others.
 * 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:
 *     IBH SYSTEMS GmbH - initial API and implementation
 *******************************************************************************/
package org.eclipse.packagedrone.utils.rpm.build;

import java.time.Instant;

public class FileInformation
{
    private Instant timestamp = Instant.now ();

    private String user = BuilderContext.DEFAULT_USER;

    private String group = BuilderContext.DEFAULT_GROUP;

    private boolean configuration = false;

    private short mode = 0644;

    public void setTimestamp ( final Instant timestamp )
    {
        this.timestamp = timestamp;
    }

    public Instant getTimestamp ()
    {
        return timestamp;
    }

    public void setConfiguration ( final boolean configuration )
    {
        this.configuration = configuration;
    }

    public boolean isConfiguration ()
    {
        return configuration;
    }

    public void setUser ( final String user )
    {
        this.user = user;
    }

    public String getUser ()
    {
        return user;
    }

    public void setGroup ( final String group )
    {
        this.group = group;
    }

    public String getGroup ()
    {
        return group;
    }

    public void setMode ( final short mode )
    {
        this.mode = mode;
    }

    public short getMode ()
    {
        return mode;
    }
}
@@ -1040,16 +1040,21 @@
  return 
+this.
 timestam
@@ -1244,16 +1244,21 @@
  return 
+this.
 configur
@@ -1406,16 +1406,21 @@
  return 
+this.
 user;%0A  
@@ -1564,16 +1564,21 @@
  return 
+this.
 group;%0A 
@@ -1716,16 +1716,21 @@
  return 
+this.
 mode;%0A  
@@ -1733,9 +1733,219 @@
 ;%0A    %7D%0A
-%7D
+%0A    @Override%0A    public String toString ()%0A    %7B%0A        return String.format ( %22%5BFileInformation - user: %25s, group: %25s, mode: 0%2504o, cfg: %25s%5D%22, this.user, this.group, this.mode, this.configuration );%0A    %7D%0A%7D%0A

implement FileInformation::toString