public interface ShareTypeService extends RestService
Modifier and Type | Method and Description |
---|---|
ActionResponse |
addShareTypeAccess(String shareTypeId,
String projectId)
Adds share type access for a project.
|
ShareType |
create(ShareTypeCreate shareTypeCreate)
Creates a share type.
|
ActionResponse |
delete(String shareTypeId)
Deletes a share type.
|
List<? extends ShareType> |
list()
Lists all share types.
|
ShareType |
listDefaults()
Lists default share types.
|
ExtraSpecs |
listExtraSpecs(String shareTypeId)
Lists the extra specifications for a share type.
|
ActionResponse |
removeShareTypeAccess(String shareTypeId,
String projectId)
Removes share type access from a project.
|
ExtraSpecs |
setExtraSpec(String shareTypeId,
ExtraSpecs extraSpecs)
Sets an extra specification for the share type.
|
List<? extends ShareTypeAccess> |
shareTypeAccessDetails(String shareTypeId)
Shows access details for a share type.
|
ActionResponse |
unsetExtraSpec(String shareTypeId,
String extraSpecKey)
Unsets an extra specification for the share type.
|
ShareType create(ShareTypeCreate shareTypeCreate)
shareTypeCreate
- the share type to createShareType listDefaults()
ActionResponse delete(String shareTypeId)
shareTypeId
- the share type IDExtraSpecs listExtraSpecs(String shareTypeId)
shareTypeId
- the share type IDExtraSpecs setExtraSpec(String shareTypeId, ExtraSpecs extraSpecs)
shareTypeId
- the share type IDextraSpecs
- the extra specifications to setActionResponse unsetExtraSpec(String shareTypeId, String extraSpecKey)
shareTypeId
- the share type IDextraSpecKey
- the key of the extra specification to unsetActionResponse addShareTypeAccess(String shareTypeId, String projectId)
shareTypeId
- the share type IDprojectId
- the project IDActionResponse removeShareTypeAccess(String shareTypeId, String projectId)
shareTypeId
- the share type IDprojectId
- the project IDList<? extends ShareTypeAccess> shareTypeAccessDetails(String shareTypeId)
shareTypeId
- the share type IDCopyright © 2017. All rights reserved.