@Test(expected = RiceIllegalArgumentException.class) public void testNullActionDefinition() { notificationPFATS.loadAction(null); }
@Override public Action loadAction(ActionDefinition actionDefinition) { if (actionDefinition == null) { throw new RiceIllegalArgumentException("actionDefinition must not be null"); } if (actionDefinition.getAttributes() == null || !actionDefinition.getAttributes().containsKey(ATTRIBUTE_FIELD_NAME)) { throw new RiceIllegalArgumentException("actionDefinition does not contain an " + ATTRIBUTE_FIELD_NAME + " attribute"); } String peopleFlowId = actionDefinition.getAttributes().get(ATTRIBUTE_FIELD_NAME); if (StringUtils.isBlank(peopleFlowId)) { throw new RiceIllegalArgumentException(ATTRIBUTE_FIELD_NAME + " attribute must not be null or blank"); } return new PeopleFlowAction(type, peopleFlowId); }
PeopleFlowActionTypeService extends KrmsTypeServiceBase implements ActionTypeService { @Override public Action loadAction(ActionDefinition actionDefinition) { if (actionDefinition == null) { throw new RiceIllegalArgumentException("actionDefinition must not be null"); } if (actionDefinition.getAttributes() == null || !actionDefinition.getAttributes().containsKey(ATTRIBUTE_FIELD_NAME)) { throw new RiceIllegalArgumentException("actionDefinition does not contain an " + ATTRIBUTE_FIELD_NAME + " attribute"); } String peopleFlowId = actionDefinition.getAttributes().get(ATTRIBUTE_FIELD_NAME); if (StringUtils.isBlank(peopleFlowId)) { throw new RiceIllegalArgumentException(ATTRIBUTE_FIELD_NAME + " attribute must not be null or blank"); } return new PeopleFlowAction(type, peopleFlowId); } }
PeopleFlowActionTypeService extends KrmsTypeServiceBase implements ActionTypeService { @Override public Action loadAction(ActionDefinition actionDefinition) { if (actionDefinition == null) { throw new RiceIllegalArgumentException("actionDefinition must not be null"); } if (actionDefinition.getAttributes() == null || !actionDefinition.getAttributes().containsKey(ATTRIBUTE_FIELD_NAME)) { throw new RiceIllegalArgumentException("actionDefinition does not contain an " + ATTRIBUTE_FIELD_NAME + " attribute"); } String peopleFlowId = actionDefinition.getAttributes().get(ATTRIBUTE_FIELD_NAME); if (StringUtils.isBlank(peopleFlowId)) { throw new RiceIllegalArgumentException(ATTRIBUTE_FIELD_NAME + " attribute must not be null or blank"); } return new PeopleFlowAction(type, peopleFlowId); } PeopleFlowActionTypeService(Type type); }
PeopleFlowActionTypeService extends KrmsTypeServiceBase implements ActionTypeService { @Override public Action loadAction(ActionDefinition actionDefinition) { if (actionDefinition == null) { throw new RiceIllegalArgumentException("actionDefinition must not be null"); } if (actionDefinition.getAttributes() == null || !actionDefinition.getAttributes().containsKey(ATTRIBUTE_FIELD_NAME)) { throw new RiceIllegalArgumentException("actionDefinition does not contain an " + ATTRIBUTE_FIELD_NAME + " attribute"); } String peopleFlowId = actionDefinition.getAttributes().get(ATTRIBUTE_FIELD_NAME); if (StringUtils.isBlank(peopleFlowId)) { throw new RiceIllegalArgumentException(ATTRIBUTE_FIELD_NAME + " attribute must not be null or blank"); } return new PeopleFlowAction(type, peopleFlowId); } PeopleFlowActionTypeService(Type type); static PeopleFlowActionTypeService getInstance(Type type); void setConfigurationService(ConfigurationService configurationService); @Override Action loadAction(ActionDefinition actionDefinition); @Override RemotableAttributeField translateTypeAttribute(KrmsTypeAttribute inputAttribute,
            KrmsAttributeDefinition attributeDefinition); @Override List<RemotableAttributeError> validateAttributes(

            @WebParam(name = "krmsTypeId") String krmsTypeId,

            @WebParam(name = "attributes")
            @XmlJavaTypeAdapter(value = MapStringStringAdapter.class)
            Map<String, String> attributes

    ); @Override List<RemotableAttributeError> validateAttributesAgainstExisting(
            @WebParam(name = "krmsTypeId") String krmsTypeId, @WebParam(name = "newAttributes") @XmlJavaTypeAdapter(
            value = MapStringStringAdapter.class) Map<String, String> newAttributes,
            @WebParam(name = "oldAttributes") @XmlJavaTypeAdapter(
                    value = MapStringStringAdapter.class) Map<String, String> oldAttributes); PeopleFlowService getPeopleFlowService(); void setPeopleFlowService(PeopleFlowService peopleFlowService); }
PeopleFlowActionTypeService extends KrmsTypeServiceBase implements ActionTypeService { @Override public Action loadAction(ActionDefinition actionDefinition) { if (actionDefinition == null) { throw new RiceIllegalArgumentException("actionDefinition must not be null"); } if (actionDefinition.getAttributes() == null || !actionDefinition.getAttributes().containsKey(ATTRIBUTE_FIELD_NAME)) { throw new RiceIllegalArgumentException("actionDefinition does not contain an " + ATTRIBUTE_FIELD_NAME + " attribute"); } String peopleFlowId = actionDefinition.getAttributes().get(ATTRIBUTE_FIELD_NAME); if (StringUtils.isBlank(peopleFlowId)) { throw new RiceIllegalArgumentException(ATTRIBUTE_FIELD_NAME + " attribute must not be null or blank"); } return new PeopleFlowAction(type, peopleFlowId); } PeopleFlowActionTypeService(Type type); static PeopleFlowActionTypeService getInstance(Type type); void setConfigurationService(ConfigurationService configurationService); @Override Action loadAction(ActionDefinition actionDefinition); @Override RemotableAttributeField translateTypeAttribute(KrmsTypeAttribute inputAttribute,
            KrmsAttributeDefinition attributeDefinition); @Override List<RemotableAttributeError> validateAttributes(

            @WebParam(name = "krmsTypeId") String krmsTypeId,

            @WebParam(name = "attributes")
            @XmlJavaTypeAdapter(value = MapStringStringAdapter.class)
            Map<String, String> attributes

    ); @Override List<RemotableAttributeError> validateAttributesAgainstExisting(
            @WebParam(name = "krmsTypeId") String krmsTypeId, @WebParam(name = "newAttributes") @XmlJavaTypeAdapter(
            value = MapStringStringAdapter.class) Map<String, String> newAttributes,
            @WebParam(name = "oldAttributes") @XmlJavaTypeAdapter(
                    value = MapStringStringAdapter.class) Map<String, String> oldAttributes); PeopleFlowService getPeopleFlowService(); void setPeopleFlowService(PeopleFlowService peopleFlowService); static final String ATTRIBUTE_FIELD_NAME; static final String NAME_ATTRIBUTE_FIELD; }