mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
add tests for WORM Restrictions
This commit is contained in:
@@ -132,4 +132,7 @@ public class FilePlanComponentFields
|
||||
public static final String IS_COMPLETED = "isCompleted";
|
||||
public static final String CONTENT = "content";
|
||||
public static final String PATH = "path";
|
||||
/** CONTENT STORE property */
|
||||
//public static final String PROPERTIES_STORE = "cm:storeName";
|
||||
public static final String PROPERTIES_STORE = "rm:wormStore";
|
||||
}
|
||||
|
@@ -70,6 +70,7 @@ import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanCo
|
||||
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_SHELF;
|
||||
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_SOFTWARE;
|
||||
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_STORAGE_LOCATION;
|
||||
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_STORE;
|
||||
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_TITLE;
|
||||
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_VERSIONED_NODEREF;
|
||||
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_VERSION_LABEL;
|
||||
@@ -257,4 +258,7 @@ public class RecordProperties extends TestModel
|
||||
|
||||
@JsonProperty(PROPERTIES_REVIEW_AS_OF)
|
||||
private Date reviewAsOf;
|
||||
|
||||
@JsonProperty (PROPERTIES_STORE)
|
||||
private String store;
|
||||
}
|
||||
|
@@ -337,7 +337,7 @@ public class RMRolesAndActionsAPI extends BaseAPI
|
||||
* @param contentName the content name
|
||||
* @return The HTTP response.
|
||||
*/
|
||||
public HttpResponse executeAction(String user, String password, String contentName, RM_ACTIONS action,
|
||||
public HttpResponse executeActionAndExpectResponseCode(String user, String password, String contentName, RM_ACTIONS action,
|
||||
int status)
|
||||
{
|
||||
return executeAction(user, password, contentName, action, null, status);
|
||||
|
Reference in New Issue
Block a user