Package com.iland.core.web.rest.api
Interface FrontEndFeatureResource
@Path("front-end-features")
@Consumes("application/json")
@Produces("application/vnd.ilandcloud.api.v1.0+json")
public interface FrontEndFeatureResource
API for interacting with front end feature state.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddFeature(FeatureRequest featureRequest) Adds a new frontend feature.voiddeleteFeature(String featureUuid) Deletes an existing frontend feature.Queries for the list of all frontend features.Queries for the list of frontend features available to the currently authenticated user.getUsersForFeature(String featureUuid) Queries users for which a provided frontend feature is active.voidupdateFeature(String featureUuid, FeatureRequest featureRequest) Updates an existing frontend feature.
-
Method Details
-
getSessionFeatures
Queries for the list of frontend features available to the currently authenticated user.- Returns:
- the list of features
-
getFeatures
Queries for the list of all frontend features.- Returns:
- the list of features
-
addFeature
Adds a new frontend feature. Requires system admin access.- Parameters:
featureRequest- the payload containing the feature to add
-
getUsersForFeature
@GET @Path("{featureUuid}/users") List<String> getUsersForFeature(@PathParam("featureUuid") String featureUuid) Queries users for which a provided frontend feature is active. An empty list means the feature is active for all users. Requires system admin access.- Parameters:
featureUuid- the UUID of the feature to get users for- Returns:
- the list of users or empty list for global features
-
updateFeature
@PUT @Path("{featureUuid}") void updateFeature(@PathParam("featureUuid") String featureUuid, FeatureRequest featureRequest) Updates an existing frontend feature. Requires system admin access.- Parameters:
featureUuid- the UUID of the feature to updatefeatureRequest- the payload containing the feature to update
-
deleteFeature
Deletes an existing frontend feature. Requires system admin access.- Parameters:
featureUuid- the UUID of the feature to delete
-