Interface AuctionConstrainerEnablerAdminSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session creates and removes auction constrainer enablers. The data
for create and update is provided via the
AuctionConstrainerEnablerForm .
-
Method Summary
Modifier and TypeMethodDescriptionvoidaliasAuctionConstrainerEnabler(Id auctionConstrainerEnablerId, Id aliasId) Adds anIdto anAuctionConstrainerEnablerfor the purpose of creating compatibility.booleanTests if this user can create auction constrainer enablers.booleancanCreateAuctionConstrainerEnablerWithRecordTypes(Type[] auctionConstrainerEnablerRecordTypes) Tests if this user can create a singleAuctionConstrainerEnablerusing the desired record types.booleanTests if this user can delete auction constrainer enablers.booleanTests if this user can manageIdaliases for auction constrainer enablers.booleanTests if this user can update auction constrainer enablers.createAuctionConstrainerEnabler(AuctionConstrainerEnablerForm auctionConstrainerEnablerForm) Creates a newAuctionConstrainerEnabler.voiddeleteAuctionConstrainerEnabler(Id auctionConstrainerEnablerId) Deletes anAuctionConstrainerEnabler.getAuctionConstrainerEnablerFormForCreate(Type[] auctionConstrainerEnablerRecordTypes) Gets the auction constrainer enabler form for creating new auction constrainer enablers.getAuctionConstrainerEnablerFormForUpdate(Id auctionConstrainerEnablerId) Gets the auction constrainer enabler form for updating an existing auction constrainer enabler.Gets theAuctionHouseassociated with this session.Gets theAuctionHouseIdassociated with this session.voidupdateAuctionConstrainerEnabler(AuctionConstrainerEnablerForm auctionConstrainerEnablerForm) Updates an existing auction 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
-
getAuctionHouseId
Id getAuctionHouseId()Gets theAuctionHouseIdassociated with this session.- Returns:
- the
AuctionHouse Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getAuctionHouse
Gets theAuctionHouseassociated with this session.- Returns:
- the auction house
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canCreateAuctionConstrainerEnabler
boolean canCreateAuctionConstrainerEnabler()Tests if this user can create auction constrainer enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known creating anAuctionConstrainerEnablerwill 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:
falseifAuctionConstrainerEnablercreation is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
canCreateAuctionConstrainerEnablerWithRecordTypes
boolean canCreateAuctionConstrainerEnablerWithRecordTypes(Type[] auctionConstrainerEnablerRecordTypes) Tests if this user can create a singleAuctionConstrainerEnablerusing the desired record types. WhileBiddingRulesManager.getAuctionConstrainerEnablerRecordTypes()can be used to examine which records are supported, this method tests which record(s) are required for creating a specificAuctionConstrainerEnabler. Providing an empty array tests if anAuctionConstrainerEnablercan be created with no records.- Parameters:
auctionConstrainerEnablerRecordTypes- array of auction constrainer enabler record types- Returns:
trueifAuctionConstrainerEnablercreation using the specified recordTypesis supported,falseotherwise- Throws:
NullArgumentException-auctionConstrainerEnablerRecordTypesisnull- Compliance:
mandatory- This method must be implemented.
-
getAuctionConstrainerEnablerFormForCreate
AuctionConstrainerEnablerForm getAuctionConstrainerEnablerFormForCreate(Type[] auctionConstrainerEnablerRecordTypes) throws OperationFailedException, PermissionDeniedException Gets the auction constrainer enabler form for creating new auction constrainer enablers. A new form should be requested for each create transaction.- Parameters:
auctionConstrainerEnablerRecordTypes- array of auction constrainer enabler record types- Returns:
- the auction constrainer enabler form
- Throws:
NullArgumentException-auctionConstrainerEnablerRecordTypesisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException- unable to get form for requested record types- Compliance:
mandatory- This method must be implemented.
-
createAuctionConstrainerEnabler
AuctionConstrainerEnabler createAuctionConstrainerEnabler(AuctionConstrainerEnablerForm auctionConstrainerEnablerForm) throws OperationFailedException, PermissionDeniedException Creates a newAuctionConstrainerEnabler.- Parameters:
auctionConstrainerEnablerForm- the form for thisAuctionConstrainerEnabler- Returns:
- the new
AuctionConstrainerEnabler - Throws:
IllegalStateException-auctionConstrainerEnablerFormalready used in a create transactionInvalidArgumentException- one or more of the form elements is invalidNullArgumentException-auctionConstrainerEnablerFormisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-auctionConstrainerEnablerForm did not originate from getAuctionConstrainerEnablerFormForCreate()- Compliance:
mandatory- This method must be implemented.
-
canUpdateAuctionConstrainerEnablers
boolean canUpdateAuctionConstrainerEnablers()Tests if this user can update auction constrainer enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known updating anAuctionConstrainerEnablerwill 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:
falseifAuctionConstrainerEnablermodification is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
getAuctionConstrainerEnablerFormForUpdate
AuctionConstrainerEnablerForm getAuctionConstrainerEnablerFormForUpdate(Id auctionConstrainerEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets the auction constrainer enabler form for updating an existing auction constrainer enabler. A new auction constrainer enabler form should be requested for each update transaction.- Parameters:
auctionConstrainerEnablerId- theIdof theAuctionConstrainerEnabler- Returns:
- the auction constrainer enabler form
- Throws:
NotFoundException-auctionConstrainerEnablerIdis not foundNullArgumentException-auctionConstrainerEnablerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
updateAuctionConstrainerEnabler
void updateAuctionConstrainerEnabler(AuctionConstrainerEnablerForm auctionConstrainerEnablerForm) throws OperationFailedException, PermissionDeniedException Updates an existing auction constrainer enabler.- Parameters:
auctionConstrainerEnablerForm- the form containing the elements to be updated- Throws:
IllegalStateException-auctionConstrainerEnablerFormalready used in an update transactionInvalidArgumentException- the form contains an invalid valueNullArgumentException-auctionConstrainerEnablerFormisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-auctionConstrainerEnablerFormdid not originate fromgetAuctionConstrainerEnablerFormForUpdate()- Compliance:
mandatory- This method must be implemented.
-
canDeleteAuctionConstrainerEnablers
boolean canDeleteAuctionConstrainerEnablers()Tests if this user can delete auction constrainer enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known deleting anAuctionConstrainerEnablerwill 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:
falseifAuctionConstrainerEnablerdeletion is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
deleteAuctionConstrainerEnabler
void deleteAuctionConstrainerEnabler(Id auctionConstrainerEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Deletes anAuctionConstrainerEnabler.- Parameters:
auctionConstrainerEnablerId- theIdof theAuctionConstrainerEnablerto remove- Throws:
NotFoundException-auctionConstrainerEnablerIdnot foundNullArgumentException-auctionConstrainerEnablerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canManageAuctionConstrainerEnablerAliases
boolean canManageAuctionConstrainerEnablerAliases()Tests if this user can manageIdaliases for auction 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:
falseifAuctionConstrainerEnableraliasing is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
aliasAuctionConstrainerEnabler
void aliasAuctionConstrainerEnabler(Id auctionConstrainerEnablerId, Id aliasId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds anIdto anAuctionConstrainerEnablerfor the purpose of creating compatibility. The primaryIdof theAuctionConstrainerEnableris determined by the provider. The newIdperforms as an alias to the primaryId. If the alias is a pointer to another auction constrainer enabler. it is reassigned to the given auction constrainer enablerId.- Parameters:
auctionConstrainerEnablerId- theIdof anAuctionConstrainerEnableraliasId- the aliasId- Throws:
AlreadyExistsException-aliasIdis already assignedNotFoundException-auctionConstrainerEnablerIdnot foundNullArgumentException-auctionConstrainerEnablerIdoraliasIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-