Class ShareTypeServiceImpl

    • Constructor Detail

      • ShareTypeServiceImpl

        public ShareTypeServiceImpl()
    • Method Detail

      • create

        public ShareType create​(ShareTypeCreate shareTypeCreate)
        Creates a share type.
        Specified by:
        create in interface ShareTypeService
        Parameters:
        shareTypeCreate - the share type to create
        Returns:
        the created share type
      • delete

        public ActionResponse delete​(String shareTypeId)
        Deletes a share type.
        Specified by:
        delete in interface ShareTypeService
        Parameters:
        shareTypeId - the share type ID
        Returns:
        the action response
      • listExtraSpecs

        public ExtraSpecs listExtraSpecs​(String shareTypeId)
        Lists the extra specifications for a share type.
        Specified by:
        listExtraSpecs in interface ShareTypeService
        Parameters:
        shareTypeId - the share type ID
        Returns:
        a list of the extra specifications of a share type
      • setExtraSpec

        public ExtraSpecs setExtraSpec​(String shareTypeId,
                                       ExtraSpecs extraSpecs)
        Sets an extra specification for the share type.
        Specified by:
        setExtraSpec in interface ShareTypeService
        Parameters:
        shareTypeId - the share type ID
        extraSpecs - the extra specifications to set
        Returns:
        the extra specifications of the share type
      • unsetExtraSpec

        public ActionResponse unsetExtraSpec​(String shareTypeId,
                                             String extraSpecKey)
        Unsets an extra specification for the share type.
        Specified by:
        unsetExtraSpec in interface ShareTypeService
        Parameters:
        shareTypeId - the share type ID
        extraSpecKey - the key of the extra specification to unset
        Returns:
        the action response
      • addShareTypeAccess

        public ActionResponse addShareTypeAccess​(String shareTypeId,
                                                 String projectId)
        Adds share type access for a project.
        Specified by:
        addShareTypeAccess in interface ShareTypeService
        Parameters:
        shareTypeId - the share type ID
        projectId - the project ID
        Returns:
        the action response
      • removeShareTypeAccess

        public ActionResponse removeShareTypeAccess​(String shareTypeId,
                                                    String projectId)
        Removes share type access from a project.
        Specified by:
        removeShareTypeAccess in interface ShareTypeService
        Parameters:
        shareTypeId - the share type ID
        projectId - the project ID
        Returns:
        the action response
      • shareTypeAccessDetails

        public List<? extends ShareTypeAccess> shareTypeAccessDetails​(String shareTypeId)
        Shows access details for a share type.
        Specified by:
        shareTypeAccessDetails in interface ShareTypeService
        Parameters:
        shareTypeId - the share type ID
        Returns:
        a list of all access etails of a share type