23
AosiMachine.dll Gjuro Kladarić MS EDU IT Pro sastanak 2012-12-21

AosiMachine.dll Gjuro Kladarić MS EDU IT Pro sastanak 2012-12-21

Embed Size (px)

Citation preview

Page 1: AosiMachine.dll Gjuro Kladarić MS EDU IT Pro sastanak 2012-12-21

AosiMachine.dll

Gjuro KladarićMS EDU IT Pro sastanak

2012-12-21

Page 2: 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

Page 3: AosiMachine.dll Gjuro Kladarić MS EDU IT Pro sastanak 2012-12-21

Prije

Nakon najmanje pet godina vrludanja…

•CUC 2012http://www.ffzg.hr/LDAP4DOTNET

•Dan AAIhttp://www.ffzg.hr/AOSI4DOTNET

Page 4: AosiMachine.dll Gjuro Kladarić MS EDU IT Pro sastanak 2012-12-21

Danas

• Prezentacija AosiMachine.dll API-ja

• Prezentacija aplikacije napravljene s tim API-jem

Page 5: AosiMachine.dll Gjuro Kladarić MS EDU IT Pro sastanak 2012-12-21

API (1)

Sub New()

Public Function GetOrgInfo() As String

Public Function GetAdminInfo() As String

Public Function TestUserExist() As Boolean

Public Function TestUserPassword() As Boolean

Public Function SearchToXML() As XDocument

Public Function SearchToList() As List(Of Dictionary(Of String, String))

Page 6: AosiMachine.dll Gjuro Kladarić MS EDU IT Pro sastanak 2012-12-21

API (2)

Public Function AddUser() As Boolean

Public Function DeleteUser() As Boolean

Public Function AddAttributeValues() As Boolean

Public Function ModifyAttributeValues() As Boolean

Public Function DeleteAllAttributeValues() As Boolean

Public Function GetAllUids() As List(Of String)

Public Function GetAllOIBs() As Dictionary(Of String, String)

Page 7: AosiMachine.dll Gjuro Kladarić MS EDU IT Pro sastanak 2012-12-21

Public properties

Public ErrorMessage As StringPublic Result As StringPublic ResultStatus As IntegerPublic Const StatusOk As Integer = 0 ' Unicode line separatorPublic Const LineSeparator As Char = ChrW(&H2028)

Page 8: AosiMachine.dll Gjuro Kladarić MS EDU IT Pro sastanak 2012-12-21

New()

Sub New(baseDn As String, adminUid As String, adminPwd As String, Optional returnPrettyPrintedXML As Boolean = False)

Page 9: AosiMachine.dll Gjuro Kladarić MS EDU IT Pro sastanak 2012-12-21

GetOrgInfo()

Public Function GetOrgInfo() As String

Page 10: AosiMachine.dll Gjuro Kladarić MS EDU IT Pro sastanak 2012-12-21

GetAdminInfo()

Public Function GetAdminInfo(uid As String) As String

Page 11: AosiMachine.dll Gjuro Kladarić MS EDU IT Pro sastanak 2012-12-21

TestUserExist()

Public Function TestUserExist(uid As String) As Boolean

Page 12: AosiMachine.dll Gjuro Kladarić MS EDU IT Pro sastanak 2012-12-21

TestUserPassword()

Public Function TestUserPassword(uid As String, password As String) As Boolean

Page 13: AosiMachine.dll Gjuro Kladarić MS EDU IT Pro sastanak 2012-12-21

SearchToXML()

Public Function SearchToXML(filter As String, fieldNames As String) As XDocument

Page 14: AosiMachine.dll Gjuro Kladarić MS EDU IT Pro sastanak 2012-12-21

SearchToList()

Public Function SearchToList(filter As String, fieldNames As String) As List(Of Dictionary(Of String, String))

Page 15: AosiMachine.dll Gjuro Kladarić MS EDU IT Pro sastanak 2012-12-21

AddUser()

Public Function AddUser(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

Page 16: AosiMachine.dll Gjuro Kladarić MS EDU IT Pro sastanak 2012-12-21

DeleteUser()

Public Function DeleteUser(uid As String) As Boolean

Page 17: AosiMachine.dll Gjuro Kladarić MS EDU IT Pro sastanak 2012-12-21

AddAttributeValues()

Public Function AddAttributeValues(uid As String,attributeName As String,newAttributeValue As String) As Boolean

Page 18: AosiMachine.dll Gjuro Kladarić MS EDU IT Pro sastanak 2012-12-21

ModifyAttributeValues()

Public Function ModifyAttributeValues(uid As String,attributeName As String,newAttributeValue As String) As Boolean

Page 19: AosiMachine.dll Gjuro Kladarić MS EDU IT Pro sastanak 2012-12-21

DeleteAllAttributeValues()

Public Function DeleteAllAttributeValues(uid As String,attributeName As String) As Boolean

Page 20: AosiMachine.dll Gjuro Kladarić MS EDU IT Pro sastanak 2012-12-21

GetAllUids()

Public Function GetAllUids(Optional pattern As String = "*") As List(Of String)

Page 21: AosiMachine.dll Gjuro Kladarić MS EDU IT Pro sastanak 2012-12-21

GetAllOIBs()

Public Function GetAllOIBs(Optional otherFieldName As String = Nothing) As Dictionary(Of String, String)

Page 22: AosiMachine.dll Gjuro Kladarić MS EDU IT Pro sastanak 2012-12-21

DEMO

• Demo-aplikacija

Page 23: AosiMachine.dll Gjuro Kladarić MS EDU IT Pro sastanak 2012-12-21

Nema više

[email protected]