#ifndef __SECRT_ICE__ #define __SECRT_ICE__ module Secrt { // Sort flags const int eSortLogin = 0x01 ; const int eSortBlocked = 0x03 ; const int eSortJurPerson = 0x04 ; ["java:getset"] struct Sort { int sortType ; bool ascend ; }; ["java:type:java.util.ArrayList"] sequence SortArray ; // User roles const int eRoleTopManager = 0x01 ; const int eRoleSupervisor = 0x02 ; const int eRoleFinanceManager = 0x03 ; const int eRoleBrandManager = 0x04 ; const int eRoleGameManager = 0x05 ; const int eRolePlayerAdmin = 0x06 ; const int eRoleDeveloper = 0x07 ; const int eRoleDiscounter = 0x08 ; const int eRolePlayer = 0x09 ; ["java:type:java.util.ArrayList"] sequence RoleArray ; // User fields const int eFieldUserLogin = 0x01 ; const int eFieldUserPassword = 0x02 ; const int eFieldUserRoles = 0x04 ; const int eFieldUserBlocked = 0x08 ; const int eFieldUserJurPerson = 0x10 ; const int eFieldUserAll = 0x1f ; // Filter flags const int eFilterRole = 0x01 ; const int eFilterBlocked = 0x02 ; const int eFilterJurPerson = 0x04 ; ["java:getset"] struct Filters { int filterMask ; RoleArray roles ; bool blocked ; bool jurPerson ; }; ["java:getset"] struct User { int fieldMask ; long id ; string login ; string password ; /** only for add and set **/ RoleArray roles ; bool blocked ; bool jurPerson ; }; ["java:type:java.util.ArrayList"] sequence UserArray ; interface IIceSecurity { int AddUser(User objUser, out long lUserId) ; int UpdateUser(User objUser) ; int GetUserList(long nStart, long nCount, Filters objFilters, SortArray aSort, out UserArray aUser, out long nTotal) ; }; }; #endif // __SECRT_ICE__