Interface CreateTicketOperationBuilder
-
public interface CreateTicketOperationBuilder
This interface provides a builder to build operations to create a new ticket.- Since:
- 12.25
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
CreateTicketOperationBuilder.WithRequired
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CreateTicketOperationBuilder.WithRequired
with(Category category, Account account)
This method returns aCreateTicketOperationBuilder.WithRequired
instance with the required basic information for an anonymous user which is able to set the different parameters for building a new ticket.CreateTicketOperationBuilder.WithRequired
with(User user, Category category, Account account)
This method returns anCreateTicketOperationBuilder.WithRequired
instance with the required basic information which is able to set the different parameters for building a new ticket.
-
-
-
Method Detail
-
with
CreateTicketOperationBuilder.WithRequired with(Category category, Account account) throws ValidationException
This method returns aCreateTicketOperationBuilder.WithRequired
instance with the required basic information for an anonymous user which is able to set the different parameters for building a new ticket.- Parameters:
account
- theAccount
of the new ticketcategory
- theCategory
of new ticket- Returns:
- the
CreateTicketOperationBuilder.WithRequired
- Throws:
ValidationException
- if any of the parameters is invalid or mismatching to each other- Since:
- 12.25
-
with
CreateTicketOperationBuilder.WithRequired with(User user, Category category, Account account) throws ValidationException
This method returns anCreateTicketOperationBuilder.WithRequired
instance with the required basic information which is able to set the different parameters for building a new ticket. The specified user must be an agent, otherwise aValidationException
is thrown. The specified category must be assigned to the agent, otherwise aValidationException
is thrown.- Parameters:
user
- theUser
to create the new ticket foraccount
- theAccount
of the new ticketcategory
- theCategory
of new ticket- Returns:
- the
CreateTicketOperationBuilder.WithRequired
- Throws:
ValidationException
- if any of the parameters is invalid or mismatching to each other- Since:
- 12.25
-
-