@OpenApiAll
public final class ReadOnlyFlags
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static ReadOnlyFlags |
CREATE_DELETE |
static ReadOnlyFlags |
CREATE_DELETE_MULTI |
static ReadOnlyFlags |
CREATE_NOT_DELETE |
static ReadOnlyFlags |
NOT_CREATE_DELETE |
static ReadOnlyFlags |
NOT_CREATE_DELETE_MULTI |
static ReadOnlyFlags |
NOT_CREATE_NOT_DELETE |
Modifier and Type | Method and Description |
---|---|
boolean |
canCreate()
Is it possible to create new dependencies for this cell
|
boolean |
canDelete()
Is there any dependencies to delete here
|
static ReadOnlyFlags |
getFlagObject(boolean canCreate,
boolean canDelete)
Returns required instance of this object according to provided flags
|
static ReadOnlyFlags |
getFlagObject(boolean canCreate,
boolean canDelete,
int deleteCount)
returns flag object with additional info, if there are more than one delete action available
|
boolean |
isDeleteMulti()
Specific case, when it is required to know if there are one or more delete action for this cell
|
boolean |
isEditable()
is this cell can create or can delete at least one dependency
|
public static final ReadOnlyFlags CREATE_DELETE
public static final ReadOnlyFlags CREATE_DELETE_MULTI
public static final ReadOnlyFlags NOT_CREATE_DELETE
public static final ReadOnlyFlags NOT_CREATE_DELETE_MULTI
public static final ReadOnlyFlags CREATE_NOT_DELETE
public static final ReadOnlyFlags NOT_CREATE_NOT_DELETE
public boolean canCreate()
true
if it is possible to create at least one new dependencypublic boolean canDelete()
true
if it is possible to delete at least one dependencypublic boolean isDeleteMulti()
true
if there aer multiple delete actionspublic static ReadOnlyFlags getFlagObject(boolean canCreate, boolean canDelete)
canCreate
- can relationship be createdcanDelete
- can existing relationships be deletedpublic static ReadOnlyFlags getFlagObject(boolean canCreate, boolean canDelete, int deleteCount)
canCreate
- can relationship be createdcanDelete
- can existing relationships be deleteddeleteCount
- probable delete action countpublic boolean isEditable()
true
if can create or can delete