230 likes | 344 Views
AosiMachine.dll. Gjuro Kladarić MS EDU IT Pro sastanak 2012-12-21. AosiMachine.dll. API za AOSI servis Za .NET okolinu Bit će slobodno dostupan Besplatno Uz nešto dokumentacije Negdje sa aaiedu.hr. Prije. Nakon najmanje pet godina vrludanja… CUC 2012 http://www.ffzg.hr/LDAP4DOTNET
E N D
AosiMachine.dll Gjuro Kladarić MS EDU IT Pro sastanak 2012-12-21
AosiMachine.dll • API za AOSI servis • Za .NET okolinu • Bit će slobodno dostupan • Besplatno • Uz nešto dokumentacije • Negdje sa aaiedu.hr
Prije Nakon najmanje pet godina vrludanja… • CUC 2012http://www.ffzg.hr/LDAP4DOTNET • Dan AAIhttp://www.ffzg.hr/AOSI4DOTNET
Danas • Prezentacija AosiMachine.dll API-ja • Prezentacija aplikacije napravljene s tim API-jem
API (1) Sub New() PublicFunctionGetOrgInfo() As String PublicFunctionGetAdminInfo() As String PublicFunctionTestUserExist() As Boolean PublicFunctionTestUserPassword() As Boolean PublicFunctionSearchToXML() As XDocument PublicFunctionSearchToList() As List(OfDictionary(OfString, String))
API (2) PublicFunctionAddUser() As Boolean PublicFunctionDeleteUser() As Boolean PublicFunctionAddAttributeValues() As Boolean PublicFunctionModifyAttributeValues() As Boolean PublicFunctionDeleteAllAttributeValues() As Boolean PublicFunctionGetAllUids() As List(OfString) PublicFunctionGetAllOIBs() As Dictionary(OfString, String)
Public properties Public ErrorMessage As String Public Result As String Public ResultStatus As Integer Public Const StatusOk As Integer = 0 ' Unicode line separator Public Const LineSeparator As Char = ChrW(&H2028)
New() Sub New( baseDn As String, adminUid As String, adminPwd As String, OptionalreturnPrettyPrintedXML As Boolean = False )
GetOrgInfo() Public Function GetOrgInfo( ) As String
GetAdminInfo() Public Function GetAdminInfo( uid As String ) As String
TestUserExist() Public Function TestUserExist( uid As String ) As Boolean
TestUserPassword() Public Function TestUserPassword( uid As String, password As String ) As Boolean
SearchToXML() Public Function SearchToXML( filter As String, fieldNames As String ) As XDocument
SearchToList() Public Function SearchToList( filter As String, fieldNames As String ) As List(Of Dictionary(Of String, String))
AddUser() PublicFunctionAddUser( uid As String, passwd As String, oib As String, ime As String, prezime As String, email As String, istek As String, statusUUstanovi As String ) As Boolean
DeleteUser() Public Function DeleteUser( uid As String ) As Boolean
AddAttributeValues() Public Function AddAttributeValues( uid As String, attributeName As String, newAttributeValue As String ) As Boolean
ModifyAttributeValues() Public Function ModifyAttributeValues( uid As String, attributeName As String, newAttributeValue As String ) As Boolean
DeleteAllAttributeValues() Public Function DeleteAllAttributeValues( uid As String, attributeName As String ) As Boolean
GetAllUids() Public Function GetAllUids( Optional pattern As String = "*" ) As List(Of String)
GetAllOIBs() Public Function GetAllOIBs( Optional otherFieldName As String = Nothing ) As Dictionary(Of String, String)
DEMO • Demo-aplikacija
Nema više Pitanja? gjuro@ffzg.hr