Search in sources :

Example 1 with DocumentType

use of de.metas.ui.web.window.datatypes.DocumentType in project metasfresh-webui-api by metasfresh.

the class QuickInputDescriptorFactoryService method hasQuickInputEntityDescriptor.

public boolean hasQuickInputEntityDescriptor(@NonNull final DocumentEntityDescriptor includedDocumentDescriptor) {
    final DocumentType documentType = includedDocumentDescriptor.getDocumentType();
    final DocumentId documentTypeId = includedDocumentDescriptor.getDocumentTypeId();
    final String tableName = includedDocumentDescriptor.getTableNameOrNull();
    final DetailId detailId = includedDocumentDescriptor.getDetailId();
    final Optional<Boolean> soTrx = includedDocumentDescriptor.getIsSOTrx();
    return getQuickInputEntityDescriptorOrNull(documentType, documentTypeId, tableName, detailId, soTrx) != null;
}
Also used : DetailId(de.metas.ui.web.window.descriptor.DetailId) DocumentId(de.metas.ui.web.window.datatypes.DocumentId) DocumentType(de.metas.ui.web.window.datatypes.DocumentType)

Example 2 with DocumentType

use of de.metas.ui.web.window.datatypes.DocumentType in project metasfresh-webui-api by metasfresh.

the class QuickInputDescriptorFactoryService method getQuickInputEntityDescriptor.

public QuickInputDescriptor getQuickInputEntityDescriptor(final DocumentEntityDescriptor includedDocumentDescriptor) {
    final DocumentType documentType = includedDocumentDescriptor.getDocumentType();
    final DocumentId documentTypeId = includedDocumentDescriptor.getDocumentTypeId();
    final String tableName = includedDocumentDescriptor.getTableNameOrNull();
    final DetailId detailId = includedDocumentDescriptor.getDetailId();
    final Optional<Boolean> soTrx = includedDocumentDescriptor.getIsSOTrx();
    return getQuickInputEntityDescriptor(documentType, documentTypeId, tableName, detailId, soTrx);
}
Also used : DetailId(de.metas.ui.web.window.descriptor.DetailId) DocumentId(de.metas.ui.web.window.datatypes.DocumentId) DocumentType(de.metas.ui.web.window.datatypes.DocumentType)

Aggregations

DocumentId (de.metas.ui.web.window.datatypes.DocumentId)2 DocumentType (de.metas.ui.web.window.datatypes.DocumentType)2 DetailId (de.metas.ui.web.window.descriptor.DetailId)2