Search in sources :

Example 6 with Condition

use of org.simbasecurity.core.domain.Condition in project simba-os by cegeka.

the class ConditionDTOAssembler method assemble.

private static Condition assemble(final TimeConditionDTO condition) {
    final Condition timeCondition = new TimeCondition(condition.getStartCondition(), condition.getEndCondition());
    timeCondition.setName(condition.getName());
    return timeCondition;
}
Also used : Condition(org.simbasecurity.core.domain.Condition) TimeCondition(org.simbasecurity.core.domain.condition.TimeCondition) TimeCondition(org.simbasecurity.core.domain.condition.TimeCondition)

Aggregations

Condition (org.simbasecurity.core.domain.Condition)6 TimeCondition (org.simbasecurity.core.domain.condition.TimeCondition)3 Test (org.junit.Test)2 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)2 ResponseBody (org.springframework.web.bind.annotation.ResponseBody)2 ConditionEntity (org.simbasecurity.core.domain.ConditionEntity)1 Policy (org.simbasecurity.core.domain.Policy)1 User (org.simbasecurity.core.domain.User)1 AuthorizationRequestContext (org.simbasecurity.core.service.AuthorizationRequestContext)1 ConditionDTO (org.simbasecurity.core.service.manager.dto.ConditionDTO)1 TimeConditionDTO (org.simbasecurity.core.service.manager.dto.TimeConditionDTO)1