Interface RaceConstrainerEnablerAdminSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session creates and removes race constrainer enablers. The data
for create and update is provided via the
RaceConstrainerEnablerForm .
-
Method Summary
Modifier and TypeMethodDescriptionvoidaliasRaceConstrainerEnabler(Id raceConstrainerEnablerId, Id aliasId) Adds aIdto aRaceConstrainerEnablerfor the purpose of creating compatibility.booleanTests if this user can create race constrainer enablers.booleancanCreateRaceConstrainerEnablerWithRecordTypes(Type[] raceConstrainerEnablerRecordTypes) Tests if this user can create a singleRaceConstrainerEnablerusing the desired record types.booleanTests if this user can delete race constrainer enablers.booleanTests if this user can manageIdaliases for race constrainer enablers.booleanTests if this user can update race constrainer enablers.createRaceConstrainerEnabler(RaceConstrainerEnablerForm raceConstrainerEnablerForm) Creates a newRaceConstrainerEnabler.voiddeleteRaceConstrainerEnabler(Id raceConstrainerEnablerId) Deletes aRaceConstrainerEnabler.getPolls()Gets thePollsassociated with this session.Gets thePollsIdassociated with this session.getRaceConstrainerEnablerFormForCreate(Type[] raceConstrainerEnablerRecordTypes) Gets the race constrainer enabler form for creating new race constrainer enablers.getRaceConstrainerEnablerFormForUpdate(Id raceConstrainerEnablerId) Gets the race constrainer enabler form for updating an existing race constrainer enabler.voidupdateRaceConstrainerEnabler(RaceConstrainerEnablerForm raceConstrainerEnablerForm) Updates an existing race constrainer enabler.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionsModifier and TypeMethodDescriptionGets the agent authenticated to this session.Gets theIdof the agent authenticated to this session.Gets the rate of the service clock.getDate()Gets the service date which may be the current date or the effective date in which this session exists.Gets the effective agent in use by this session.Gets theIdof the effective agent in use by this session.Gets theDisplayTextformatTypepreference in effect for this session.Gets the locale indicating the localization preferences in effect for this session.booleanTests if an agent is authenticated to this session.Starts a new transaction for this sesson.booleanTests for the availability of transactions.
-
Method Details
-
getPollsId
Id getPollsId()Gets thePollsIdassociated with this session.- Returns:
- the
Polls Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getPolls
Gets thePollsassociated with this session.- Returns:
- the polls
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canCreateRaceConstrainerEnabler
boolean canCreateRaceConstrainerEnabler()Tests if this user can create race constrainer enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known creating aRaceConstrainerEnablerwill result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer create operations to an unauthorized user.- Returns:
falseifRaceConstrainerEnablercreation is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
canCreateRaceConstrainerEnablerWithRecordTypes
Tests if this user can create a singleRaceConstrainerEnablerusing the desired record types. WhileVotingRulesManager.getRaceConstrainerEnablerRecordTypes()can be used to examine which records are supported, this method tests which record(s) are required for creating a specificRaceConstrainerEnabler. Providing an empty array tests if aRaceConstrainerEnablercan be created with no records.- Parameters:
raceConstrainerEnablerRecordTypes- array of race constrainer enabler record types- Returns:
trueifRaceConstrainerEnablercreation using the specified recordTypesis supported,falseotherwise- Throws:
NullArgumentException-raceConstrainerEnablerRecordTypesisnull- Compliance:
mandatory- This method must be implemented.
-
getRaceConstrainerEnablerFormForCreate
RaceConstrainerEnablerForm getRaceConstrainerEnablerFormForCreate(Type[] raceConstrainerEnablerRecordTypes) throws OperationFailedException, PermissionDeniedException Gets the race constrainer enabler form for creating new race constrainer enablers. A new form should be requested for each create transaction.- Parameters:
raceConstrainerEnablerRecordTypes- array of race constrainer enabler record types- Returns:
- the race constrainer enabler form
- Throws:
NullArgumentException-raceConstrainerEnablerRecordTypesisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException- unable to get form for requested record types- Compliance:
mandatory- This method must be implemented.
-
createRaceConstrainerEnabler
RaceConstrainerEnabler createRaceConstrainerEnabler(RaceConstrainerEnablerForm raceConstrainerEnablerForm) throws OperationFailedException, PermissionDeniedException Creates a newRaceConstrainerEnabler.- Parameters:
raceConstrainerEnablerForm- the form for thisRaceConstrainerEnabler- Returns:
- the new
RaceConstrainerEnabler - Throws:
IllegalStateException-raceConstrainerEnablerFormalready used for a create transactionInvalidArgumentException- one or more of the form elements is invalidNullArgumentException-raceConstrainerEnablerFormisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-raceConstrainerEnablerForm did not originate from getRaceConstrainerEnablerFormForCreate()- Compliance:
mandatory- This method must be implemented.
-
canUpdateRaceConstrainerEnablers
boolean canUpdateRaceConstrainerEnablers()Tests if this user can update race constrainer enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known updating aRaceConstrainerEnablerwill result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer update operations to an unauthorized user.- Returns:
falseifRaceConstrainerEnablermodification is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
getRaceConstrainerEnablerFormForUpdate
RaceConstrainerEnablerForm getRaceConstrainerEnablerFormForUpdate(Id raceConstrainerEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets the race constrainer enabler form for updating an existing race constrainer enabler. A new race constrainer enabler form should be requested for each update transaction.- Parameters:
raceConstrainerEnablerId- theIdof theRaceConstrainerEnabler- Returns:
- the race constrainer enabler form
- Throws:
NotFoundException-raceConstrainerEnablerIdis not foundNullArgumentException-raceConstrainerEnablerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
updateRaceConstrainerEnabler
void updateRaceConstrainerEnabler(RaceConstrainerEnablerForm raceConstrainerEnablerForm) throws OperationFailedException, PermissionDeniedException Updates an existing race constrainer enabler.- Parameters:
raceConstrainerEnablerForm- the form containing the elements to be updated- Throws:
IllegalStateException-raceConstrainerEnablerFormalready used for an update transactionInvalidArgumentException- the form contains an invalid valueNullArgumentException-raceConstrainerEnablerFormisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-raceConstrainerEnablerForm did not originate from getRaceConstrainerEnablerFormForUpdate()- Compliance:
mandatory- This method must be implemented.
-
canDeleteRaceConstrainerEnablers
boolean canDeleteRaceConstrainerEnablers()Tests if this user can delete race constrainer enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known deleting aRaceConstrainerEnablerwill result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer delete operations to an unauthorized user.- Returns:
falseifRaceConstrainerEnablerdeletion is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
deleteRaceConstrainerEnabler
void deleteRaceConstrainerEnabler(Id raceConstrainerEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Deletes aRaceConstrainerEnabler.- Parameters:
raceConstrainerEnablerId- theIdof theRaceConstrainerEnablerto remove- Throws:
NotFoundException-raceConstrainerEnablerIdnot foundNullArgumentException-raceConstrainerEnablerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canManageRaceConstrainerEnablerAliases
boolean canManageRaceConstrainerEnablerAliases()Tests if this user can manageIdaliases for race constrainer enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known changing an alias will result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer alias operations to an unauthorized user.- Returns:
falseifRaceConstrainerEnableraliasing is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
aliasRaceConstrainerEnabler
void aliasRaceConstrainerEnabler(Id raceConstrainerEnablerId, Id aliasId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds aIdto aRaceConstrainerEnablerfor the purpose of creating compatibility. The primaryIdof theRaceConstrainerEnableris determined by the provider. The newIdperforms as an alias to the primaryId. If the alias is a pointer to another race constrainer enabler. it is reassigned to the given race constrainer enablerId.- Parameters:
raceConstrainerEnablerId- theIdof aRaceConstrainerEnableraliasId- the aliasId- Throws:
AlreadyExistsException-aliasIdis already assignedNotFoundException-raceConstrainerEnablerIdnot foundNullArgumentException-raceConstrainerEnablerIdoraliasIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-