Class SetParentContentClientSideElement

All Implemented Interfaces:
ClientSideElement, ClientSideRelation, LogEnabled, PluginAware, Component, Configurable, Serviceable

Set the "parent" attribute of a simple content
  • Field Details

  • Constructor Details

  • Method Details

    • service

      public void service(ServiceManager manager) throws ServiceException
      Specified by:
      service in interface Serviceable
      Overrides:
      service in class SetContentAttributeClientSideElement
      Throws:
      ServiceException
    • areValidMoves

      public Map<String,Object> areValidMoves(List<String> contentIdsToMove, String newParentContentId, String leafContentTypeId)
      Tells if the given simple contents can have their parent attribute changed for the given new simple content parent.
      Parameters:
      contentIdsToMove - The identifiers of the simple contents willing to change their parent attribute
      newParentContentId - The identifier of the new parent simple content. Can be "root" if it is the root of simple contents
      leafContentTypeId - If newParentContentId is equal to "root", is the identifier of the content type of the leaves of the tree. Otherwise, must be null
      Returns:
      A map with a key 'validContents' for the ids of valid contents for the move, a key 'invalidContents' for the ids of invalid contents for the move and key 'noRightContents' for the ids of contents with no read access, among contentIdsToMove