Package org.alfresco.rest.v0
Class NodePropertiesAPI
- java.lang.Object
-
- org.alfresco.rest.core.v0.BaseAPI
-
- org.alfresco.rest.v0.NodePropertiesAPI
-
@Component public class NodePropertiesAPI extends BaseAPI
The v0 API to get the node properties- Since:
- AGS 3.4
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.alfresco.rest.core.v0.BaseAPI
BaseAPI.PermissionType, BaseAPI.RETENTION_SCHEDULE, BaseAPI.RM_ACTIONS, BaseAPI.RMProperty
-
-
Field Summary
-
Fields inherited from class org.alfresco.rest.core.v0.BaseAPI
ACTIONS_API, contentService, LOGGER, NODE_PREFIX, NODE_REF_WORKSPACE_SPACES_STORE, RM_ACTIONS_API, RM_SITE_ID, SHARE_ACTION_API, UPDATE_METADATA_API
-
-
Constructor Summary
Constructors Constructor Description NodePropertiesAPI()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContentProperty(org.alfresco.utility.model.UserModel userModel, String nodeId)Get the content property for a nodeStringgetContentUrl(org.alfresco.utility.model.UserModel userModel, String nodeId)Get the content url (bin name) for a nodeprotected org.json.simple.JSONArraygetNodeProperties(String username, String password, String nodeId)Get the node properties-
Methods inherited from class org.alfresco.rest.core.v0.BaseAPI
addPropertyToRequest, deleteItem, doDeleteRequest, doGetRequest, doPostJsonRequest, doPostRequest, doPutJsonRequest, doPutRequest, doSlingshotPostJsonRequest, facetedRequest, getFilePlanPath, getItemNodeRef, getNodeRefSpacesStore, getObjectByPath, getPropertyValue, getPropertyValue, getPropertyValues, getPropertyValuesByUniquePropertyValue
-
-
-
-
Method Detail
-
getNodeProperties
protected org.json.simple.JSONArray getNodeProperties(String username, String password, String nodeId)
Get the node properties- Parameters:
username-password-nodeId-- Returns:
- JSONArray object
-
getContentUrl
public String getContentUrl(org.alfresco.utility.model.UserModel userModel, String nodeId)
Get the content url (bin name) for a node- Parameters:
userModel-nodeId-- Returns:
- Return the content url string
-
-