Skip to content

Commit

Permalink
IProcessPreconditionsContext.getSingleSelectedRecordId()
Browse files Browse the repository at this point in the history
  • Loading branch information
teosarca committed Jun 11, 2017
1 parent 6d53081 commit 0264f2e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ public <T> List<T> getSelectedModels(final Class<T> modelClass)
return ImmutableList.of(model);
}

@Override
public int getSingleSelectedRecordId()
{
return document.getDocumentIdAsInt();
}

@Override
public int getSelectionSize()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,12 @@ public DocumentId getSingleSelectedDocumentId()
{
return selectedDocumentIds.getSingleDocumentId();
}

@Override
public int getSingleSelectedRecordId()
{
return getSingleSelectedDocumentId().toInt();
}

@Override
public <T> T getSelectedModel(final Class<T> modelClass)
Expand Down

0 comments on commit 0264f2e

Please sign in to comment.