Interface GraphQLDTOContributor<D,R>
@ProviderType
public interface GraphQLDTOContributor<D,R>
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptioncreateDTO(D dto, DTOConverterContext dtoConverterContext) booleandeleteDTO(long id) longgetDTO(DTOConverterContext dtoConverterContext, long id) getDTOs(Aggregation aggregation, DTOConverterContext dtoConverterContext, com.liferay.portal.kernel.search.filter.Filter filter, Pagination pagination, String search, com.liferay.portal.kernel.search.Sort[] sorts) com.liferay.portal.odata.entity.EntityModeldefault List<GraphQLDTOProperty>default <T> TgetRelationshipValue(DTOConverterContext dtoConverterContext, long id, Class<T> relationshipClass, String relationshipName) Class<?>getResourceClass(GraphQLDTOContributor.Operation operation) getResourceMethod(GraphQLDTOContributor.Operation operation) booleanhasScope()updateDTO(D dto, DTOConverterContext dtoConverterContext, long id)
-
Method Details
-
createDTO
- Throws:
Exception
-
deleteDTO
- Throws:
Exception
-
getApplicationName
String getApplicationName() -
getCompanyId
long getCompanyId() -
getDTO
- Throws:
Exception
-
getDTOs
Page<R> getDTOs(Aggregation aggregation, DTOConverterContext dtoConverterContext, com.liferay.portal.kernel.search.filter.Filter filter, Pagination pagination, String search, com.liferay.portal.kernel.search.Sort[] sorts) throws Exception - Throws:
Exception
-
getEntityModel
com.liferay.portal.odata.entity.EntityModel getEntityModel() -
getGraphQLDTOProperties
List<GraphQLDTOProperty> getGraphQLDTOProperties() -
getIdName
String getIdName() -
getRelationshipGraphQLDTOProperties
-
getRelationshipValue
default <T> T getRelationshipValue(DTOConverterContext dtoConverterContext, long id, Class<T> relationshipClass, String relationshipName) throws Exception - Throws:
Exception
-
getResourceClass
-
getResourceMethod
-
getResourceName
String getResourceName() -
getTypeName
String getTypeName() -
hasScope
boolean hasScope() -
updateDTO
- Throws:
Exception
-