UML Class Diagram - Fahim1505/CSE327-Alumni-Student GitHub Wiki
UML Class Diagram (Implementation Perspective) for Alumni-Student Link
classDiagram
User <|-- Student
User <|-- Alumni
class User{
- id : Integer
- name : String
- email : String
- password : String
+ role : String
# getUserId() Integer
+ getUserName() String
+ getUserEmail() String
+ setUserId(id: Integer) void
+ setUserName(name: String) void
+ setUserEmail(email: String) void
+ setUserPassword()
}
class Student{
}
class Alumni{
- graduationYear: integer
+ getGraduationYear() Integer
+ setGraduationYear(graduationYear: Integer) void
}
User "1" *--"1" Profile
class Profile{
- phone : String
- address
- currentWork
- socialLinks
- imagePath
+ getPhone() String
+ getAddress() String
+ getCurrentWork() String
+ getSocialLinks() String
}
Alumni "1" --> "0..*" Job: posts about
Alumni "1"--> "0..*" Event: posts about
Alumni "1" --> "0..*" Donation: makes
Alumni "1" --> "0..*" Announcement: makes
Alumni "0..*" --> "1" Photo Gallery: shares photos in
class Job{
- id : Integer
- title : String
- companyName : String
- description
- applyLink
- postedBy
- createdAt : DateTime
+ getJobId() Integer
+ getJobTitle() String
+ getCompanyName() String
+ getJobDesc() String
+ getApplyLink() String
+ setJobId(id: Integer) void
+ setJobTitle(title: String) void
+ setCompanyName(companyname: String) void
+ setJobDesc(description: String) void
+ setApplyLink(applyLink: String) void
}
class Event{
- id : Integer
- title : String
- description
- startTime : DateTime
- endTime : DateTime
- location
- createdBy
+ getEventId() Integer
+ getEventTitle() String
+ getEventDesc() String
+ getEventStartTime() DateTime
+ getEventEndTime() DateTime
+ getEventLocation() String
+ setEventId(id: Integer) void
+ setEventTitle(title: String) void
+ setEventDesc(description: String) void
+ setEventStartTime() void
+ setEventEndTime() void
+ setEventLocation(location: String) void
}
class Donation{
- id : Integer
- amount : String
- donationDate : DateTime
- note
+ getDonationId() Integer
+ getDonationAmount() Integer
+ getDonationDate() DateTime
+ getDonationNote() String
+ setDonationId(id: Integer) void
+ setDonationAmount(amount: Integer) void
+ setDonationDate() DateTime
+ setDonationNote(note: String) void
}
class Announcement{
- id : Integer
- title : String
- body
- attachment
- postedBy
- createdAt
+ getDonationId() Integer
+ getDonationAmount() Integer
+ getDonationDate() DateTime
+ getDonationNote() String
+ setDonationId(id: Integer) void
+ setDonationAmount(amount: Integer) void
+ setDonationDate() DateTime
+ setDonationNote(note: String) void
}
class PhotoGallery{
- id : Integer
- filePath
- caption : String
- uploadedAt
+ getPhotoId() Integer
+ getFilePath()
+ getCaption() String
+ setPhotoId(id: Integer) void
+ setCaption(caption: String) void
}
User "1" --> "0..*" Achievement : posts about
class Achievement{
- id : Integer
- title : String
- description
- imagePath
- createdAt : DateTime
+ getAchievementId() Integer
+ getAchievementTitle() String
+ getAchievementDesc() String
+ setAchievementId(id: Integer) void
+ setAchievementTitle(title: String) void
+ setAchievementDesc(description: String) void
}