Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-132910

Create the basic custom view management REST API


    • Type: Task
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Dataset Display
    • Labels:


      Goal of this task is to expose the custom view basic management methods in the REST api using REST Builder:

      • createCustomView(name, owner, entityId, state): creates a new custom view with the given name and associated state data, owned by the supplied owner user. Custom view is compatible in all datasets associated to the entityId. If name already exists for that user and entity type, custom view would not be created and an error message would be returned.
      • saveCustomView(name, entityId, state): updates the existing named custom view a new state provided data. If custom view does not exist, an error message is returned
      • deleteCustomView(name, entityId): deletes the custom view indicated by name
      • getCurrentCustomView(user, datasetDisplayId, portletId, plid): returns the state corresponding to the current custom view in use for the user in the dataset display instance. Note this state may differ from the one returned by getActiveViewSettings()
      • getAvailableCustomViews(user, entityId) returns the available custom views user can select for the datasets compatible with entityId. Returned array contains the necessary items to display the entry in the view selector (name, author...), i.e. does not contain the state.
      • selectCustomView(user, datasetDisplayId, portletId, plid, entityId, name): sets the named custom view as current view the user in the dataset instance denoted by the id, persising this choice in the DB. Returns the state associated to the selected custom view, so that the frontend can set it and re-render itself. If name does not exist, then it returns an error message




            support-lep@liferay.com SE Support
            daniel.sanz Daniel Sanz
            Recent user:
            Daniel Sanz
            Participants of an Issue:
            0 Vote for this issue
            0 Start watching this issue




                Version Package