Default
Equinox
Controller
The DefaultEquinoxController
class is
useful to give the base behavior of the Equinox's controllers with the
default EquinoxUser
class and for a greater clarity during your own implementation:
public SomeCustomController extends EquinoxController<EquinoxUser> {
// rest of the class
}
public SomeCustomControllerTwo extends EquinoxController<EquinoxUser> {
// rest of the class
}
// wrap the declaration for a better readability
public SomeCustomController extends DefaultEquinoxController {
// rest of the class
}
// wrap the declaration for a better readability
public SomeCustomControllerTwo extends DefaultEquinoxController {
// rest of the class
}
Content copied to clipboard
Author
N7ghtm4r3 - Tecknobit
Since
1.0.2
Properties
Link copied to clipboard
jsonHelper
helper to work with JSON values
Link copied to clipboard
NOT_AUTHORIZED_OR_WRONG_DETAILS_MESSAGE
message to use when the request is by a not authorized user
or tried to fetch wrong details
Link copied to clipboard
resourcesProvider
the
resources provider and manager
Link copied to clipboard
RESPONSE_SUCCESSFUL_MESSAGE
message to use when the request has been successful
Link copied to clipboard
protector
the instance to launch the server protector to manage the
server accesses
Link copied to clipboard
usersRepository
instance for
the user repository
Link copied to clipboard
WRONG_PROCEDURE_MESSAGE
message to use when the procedure is wrong
Functions
Link copied to clipboard
Method to get the payload for a failed
response
Link copied to clipboard
Method to generate an identifier of an item
No-any params required
Link copied to clipboard
open fun initEquinoxEnvironment(storagePath: String, saveMessage: String, context: Class<out Any>, args: Array<String>, customSubDirectories: Array<String>)
Method to init the serverProtector
and create the resources directories correctly
Link copied to clipboard
Method to load the jsonHelper
Link copied to clipboard
Method to get the payload for a successful
response No-any params required
Method to get the payload for a successful
response