package <%= base_package %>.controllers.manager { import <%= base_package %>.controllers.manager.ResourcesManager; import <%= base_package %>.controllers.event.ResourceEvent; import <%= base_package %>.models.constant.ResourceResult; import <%= base_package %>.models.domain.<%= class_name %>; import org.restfulx.Rx; import org.restfulx.collections.ModelsCollection; public class <%= class_name %>Manager extends ResourcesManager { private var _current<%= class_name %>:<%= class_name %>; [Bindable] public function get current<%= class_name %>():<%= class_name %> { return _current<%= class_name %>; } public function set current<%= class_name %>(value:<%= class_name %>):void { _current<%= class_name %> = value; } private var _<%= class_name.pluralize.dcfirst %>:ModelsCollection; public function get <%= class_name.pluralize.dcfirst %>():ModelsCollection { return _<%= class_name.pluralize.dcfirst %>; } public function set <%= class_name.pluralize.dcfirst %>(value:ModelsCollection):void { _<%= class_name.pluralize.dcfirst %> = value; } public function <%= class_name %>Manager() { <%= class_name.pluralize.dcfirst %> = Rx.models.index(<%= class_name %>); setModel(current<%= class_name %>); resourceResultName = ResourceResult.<%= class_name.upcase %>; } } }