public abstract class AbstractReferentialCardAction extends AbstractExerciseListAction
| Modifier and Type | Field and Description |
|---|---|
protected String |
id
id of organism to display as a string
|
protected Integer |
orgId
id of organism to display
|
protected ReferentialService |
referentialService |
protected SPEALotService |
speaLotService |
chosenExerciseId, exercise, exerciseList, exerciseServicepagingUser, searchUsersInfoapplication, configuration, formatDate, formatDateOnly, menu, nextPage, parameters, serviceMessages, session, sispeaSession, strutsMessages, submitValue, territoryService, userService| Constructor and Description |
|---|
AbstractReferentialCardAction() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkId()
check id parameter
|
protected boolean |
computeCanViewUsers(UserDto currentUser,
TerritoryDto territory,
ExerciseDto exercise) |
protected int |
getAssociatedTerritoryId(TerritoryDto territory) |
String |
getId() |
protected boolean |
hasViewAccess(SPEADto spea,
ExerciseDto exercise)
This method checks if the current user is allowed to view the SPEA lot
for the exercise pExercise.
|
protected DDTDto |
readDdt(Integer pOrganismId,
Integer pOrganismTypeId) |
protected DepartmentDto |
readDepartment(Integer pOrganismId,
Integer pOrganismTypeId) |
void |
setId(String pId) |
checkExercise, getChosenExerciseId, getExercise, getExerciseList, loadExerciseList, setChosenExerciseId, setExercisecheckSessionParams, formatString, getAllUserTypes, getBooleanCriteria, getConnectionTypes, getPagingUser, getSearchUsersInfo, getTrueCriterion, getUserTypes, loadUsers, manageUserPaging, setSearchUsersInfobuildMenu, checkIfUserCanViewDashBoard, checkRight, checkUserRight, checkUserRight, checkUserRight, createMenu, doExecute, doHandleException, doHandleSispeaException, execute, getApplication, getCurrentUser, getCurrentUserTerritory, getFormatDate, getFormatDateOnly, getMenu, getNextPage, getOption, getParameters, getSession, getSispeaSession, getSubmitValue, initSession, isEnglish, isFrench, isSpanish, logException, openMenu, removeSession, setApplication, setMenu, setNextPage, setParameters, setSession, setSubmitValueaddActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, doDefault, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getFormatted, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, validate@Autowired protected transient ReferentialService referentialService
@Autowired protected transient SPEALotService speaLotService
protected String id
protected Integer orgId
protected void checkId()
throws SispeaException
SispeaExceptionprotected DDTDto readDdt(Integer pOrganismId, Integer pOrganismTypeId)
protected DepartmentDto readDepartment(Integer pOrganismId, Integer pOrganismTypeId)
protected boolean hasViewAccess(SPEADto spea, ExerciseDto exercise) throws SispeaException
This method checks if the current user is allowed to view the SPEA lot for the exercise pExercise.
lot.lotStatus.id == 5 && hasViewRight OR lot.lotStatus.id == 4 && (hasPublishRight || hasCheckRight) OR lot.lotStatus.id != 5 && (hasEditRight || hasCheckRight)
spea - The requested SPEA.exercise - The exercise.SispeaException - If the checkUserRight fails.protected int getAssociatedTerritoryId(TerritoryDto territory)
territory - the territory to testpublic String getId()
public void setId(String pId)
protected boolean computeCanViewUsers(UserDto currentUser, TerritoryDto territory, ExerciseDto exercise)
Copyright © 2014–2015 eaudefrance. All rights reserved.