mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
RM-4391: Support for non-electronic records.
This commit is contained in:
@@ -85,6 +85,9 @@ public class FilePlanComponent
|
||||
@JsonProperty (value = ALLOWABLE_OPERATIONS)
|
||||
private List<String> allowableOperations;
|
||||
|
||||
@JsonProperty (required = false)
|
||||
private FilePlanComponentContent content;
|
||||
|
||||
private FilePlanComponentPath path;
|
||||
|
||||
@JsonProperty (required = true)
|
||||
|
@@ -0,0 +1,98 @@
|
||||
/*
|
||||
* #%L
|
||||
* Alfresco Records Management Module
|
||||
* %%
|
||||
* Copyright (C) 2005 - 2016 Alfresco Software Limited
|
||||
* %%
|
||||
* License rights for this program may be obtained from Alfresco Software, Ltd.
|
||||
* pursuant to a written agreement and any use of this program without such an
|
||||
* agreement is prohibited.
|
||||
* #L%
|
||||
*/
|
||||
package org.alfresco.rest.rm.community.model.fileplancomponents;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
/**
|
||||
* POJO for FilePlanComponent content field
|
||||
* @author Kristijan Conkas
|
||||
* @since 2.6
|
||||
*/
|
||||
public class FilePlanComponentContent
|
||||
{
|
||||
@JsonProperty (required = true)
|
||||
private String encoding;
|
||||
|
||||
@JsonProperty (required = true)
|
||||
private String mimeType;
|
||||
|
||||
@JsonProperty (required = true)
|
||||
private String mimeTypeName;
|
||||
|
||||
@JsonProperty (required = true)
|
||||
private Integer sizeInBytes;
|
||||
|
||||
/**
|
||||
* @return the encoding
|
||||
*/
|
||||
public String getEncoding()
|
||||
{
|
||||
return this.encoding;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param encoding the encoding to set
|
||||
*/
|
||||
public void setEncoding(String encoding)
|
||||
{
|
||||
this.encoding = encoding;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the mimeType
|
||||
*/
|
||||
public String getMimeType()
|
||||
{
|
||||
return this.mimeType;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mimeType the mimeType to set
|
||||
*/
|
||||
public void setMimeType(String mimeType)
|
||||
{
|
||||
this.mimeType = mimeType;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the mimeTypeName
|
||||
*/
|
||||
public String getMimeTypeName()
|
||||
{
|
||||
return this.mimeTypeName;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mimeTypeName the mimeTypeName to set
|
||||
*/
|
||||
public void setMimeTypeName(String mimeTypeName)
|
||||
{
|
||||
this.mimeTypeName = mimeTypeName;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the sizeInBytes
|
||||
*/
|
||||
public Integer getSizeInBytes()
|
||||
{
|
||||
return this.sizeInBytes;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param sizeInBytes the sizeInBytes to set
|
||||
*/
|
||||
public void setSizeInBytes(Integer sizeInBytes)
|
||||
{
|
||||
this.sizeInBytes = sizeInBytes;
|
||||
}
|
||||
}
|
@@ -45,7 +45,16 @@ public class FilePlanComponentFields
|
||||
public static final String PROPERTIES_DESCRIPTION = "cm:description";
|
||||
public static final String PROPERTIES_SUPPLEMENTAL_MARKING_LIST = "rmc:supplementalMarkingList";
|
||||
public static final String ALLOWABLE_OPERATIONS = "allowableOperations";
|
||||
public static final String IS_CLOSED="isClosed";
|
||||
public static final String PROPERTIES_REVIEW_PERIOD="rma:reviewPeriod";
|
||||
public static final String PROPERTIES_LOCATION="rma:location";
|
||||
public static final String IS_CLOSED = "isClosed";
|
||||
public static final String PROPERTIES_REVIEW_PERIOD = "rma:reviewPeriod";
|
||||
public static final String PROPERTIES_LOCATION = "rma:location";
|
||||
|
||||
// for non-electronic records
|
||||
public static final String PROPERTIES_BOX = "rma:box";
|
||||
public static final String PROPERTIES_FILE = "rma:file";
|
||||
public static final String PROPERTIES_NUMBER_OF_COPIES = "rma:numberOfCopies";
|
||||
public static final String PROPERTIES_PHYSICAL_SIZE = "rma:physicalSize";
|
||||
public static final String PROPERTIES_SHELF = "rma:shelf";
|
||||
public static final String PROPERTIES_STORAGE_LOCATION = "rma:storageLocation";
|
||||
|
||||
}
|
||||
|
@@ -26,10 +26,15 @@
|
||||
*/
|
||||
package org.alfresco.rest.rm.community.model.fileplancomponents;
|
||||
|
||||
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_BOX;
|
||||
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_DESCRIPTION;
|
||||
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_FILE;
|
||||
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_HOLD_REASON;
|
||||
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_LOCATION;
|
||||
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_NUMBER_OF_COPIES;
|
||||
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_PHYSICAL_SIZE;
|
||||
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_REVIEW_PERIOD;
|
||||
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_SHELF;
|
||||
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_SUPPLEMENTAL_MARKING_LIST;
|
||||
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_TITLE;
|
||||
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_VITAL_RECORD_INDICATOR;
|
||||
@@ -75,6 +80,22 @@ public class FilePlanComponentProperties
|
||||
@JsonProperty(PROPERTIES_LOCATION)
|
||||
private String location;
|
||||
|
||||
@JsonProperty(value = PROPERTIES_BOX, required = false)
|
||||
private String box;
|
||||
|
||||
@JsonProperty(value = PROPERTIES_FILE, required = false)
|
||||
private String file;
|
||||
|
||||
@JsonProperty(value = PROPERTIES_SHELF, required = false)
|
||||
private String shelf;
|
||||
|
||||
@JsonProperty(value = PROPERTIES_NUMBER_OF_COPIES, required = false)
|
||||
private Integer numberOfCopies;
|
||||
|
||||
@JsonProperty(value = PROPERTIES_PHYSICAL_SIZE, required = false)
|
||||
private Integer physicalSize;
|
||||
|
||||
|
||||
public FilePlanComponentProperties(String title, String description)
|
||||
{
|
||||
this.title = title;
|
||||
@@ -203,4 +224,83 @@ public class FilePlanComponentProperties
|
||||
this.location = location;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the box
|
||||
*/
|
||||
public String getBox()
|
||||
{
|
||||
return this.box;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param box the box to set
|
||||
*/
|
||||
public void setBox(String box)
|
||||
{
|
||||
this.box = box;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the file
|
||||
*/
|
||||
public String getFile()
|
||||
{
|
||||
return this.file;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param file the file to set
|
||||
*/
|
||||
public void setFile(String file)
|
||||
{
|
||||
this.file = file;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the shelf
|
||||
*/
|
||||
public String getShelf()
|
||||
{
|
||||
return this.shelf;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param shelf the shelf to set
|
||||
*/
|
||||
public void setShelf(String shelf)
|
||||
{
|
||||
this.shelf = shelf;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the numberOfCopies
|
||||
*/
|
||||
public Integer getNumberOfCopies()
|
||||
{
|
||||
return this.numberOfCopies;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param numberOfCopies the numberOfCopies to set
|
||||
*/
|
||||
public void setNumberOfCopies(Integer numberOfCopies)
|
||||
{
|
||||
this.numberOfCopies = numberOfCopies;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the physicalSize
|
||||
*/
|
||||
public Integer getPhysicalSize()
|
||||
{
|
||||
return this.physicalSize;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param physicalSize the physicalSize to set
|
||||
*/
|
||||
public void setPhysicalSize(Integer physicalSize)
|
||||
{
|
||||
this.physicalSize = physicalSize;
|
||||
}
|
||||
}
|
||||
|
@@ -46,7 +46,8 @@ public enum FilePlanComponentType
|
||||
TRANSFER_CONTAINER_TYPE("rma:transferContainer"),
|
||||
UNFILED_CONTAINER_TYPE("rma:unfiledRecordContainer"),
|
||||
FOLDER_TYPE("cm:folder"),
|
||||
CONTENT_TYPE("cm:content");
|
||||
CONTENT_TYPE("cm:content"),
|
||||
NON_ELECTRONIC_RECORD_TYPE("rma:nonElectronicDocument");
|
||||
|
||||
private String type;
|
||||
|
||||
|
Reference in New Issue
Block a user