}
if(hasErrors()){
return INPUT;
}
Locator locator;
if(getLocator().getId() == null || "".equalsIgnoreCase(getLocator().getId())){
locator = new Locator();
logInfo = new LogInformation();
logInfo.setCreateBy(sessionCredentials.getCurrentUser().getId());
logInfo.setCreateDate(new Timestamp(System.currentTimeMillis()));
} else {
locator = (Locator) manager.getById(ProductCategory.class, getLocator().getId());
logInfo = locator.getLogInformation();
}
logInfo.setActiveFlag(getActive());
logInfo.setLastUpdateBy(sessionCredentials.getCurrentUser().getId());
logInfo.setLastUpdateDate(new Timestamp(System.currentTimeMillis()));
locator.setLogInformation(logInfo);
locator.setRelativePriority(getLocator().getRelativePriority());
locator.setAisle(getLocator().getAisle());
locator.setBin(getLocator().getBin());
locator.setLevel(getLocator().getBin());
manager.save(locator);
setLocator(getLocator());
return SUCCESS;