} else if (hasLifecyclePermission(person, PortletLifecycleState.CREATED, categories)) {
states.add(PortletLifecycleState.CREATED);
}
return states;
}
<BUG>public boolean hasLifecyclePermission(IPerson person, PortletLifecycleState state, List<JsonEntityBean> categories) {
</BUG>
EntityIdentifier ei = person.getEntityIdentifier();
IAuthorizationPrincipal ap = authorizationService.newPrincipal(ei.getKey(), ei.getType());
final String activity;

} else if (hasLifecyclePermission(person, PortletLifecycleState.CREATED, categories)) {
states.add(PortletLifecycleState.CREATED);
}
return states;
}
public boolean hasLifecyclePermission(IPerson person, PortletLifecycleState state, SortedSet<JsonEntityBean> categories) {
EntityIdentifier ei = person.getEntityIdentifier();
IAuthorizationPrincipal ap = authorizationService.newPrincipal(ei.getKey(), ei.getType());
final String activity;
