public static class GroupMember.Builder extends Object implements GroupMemberContract, ModelBuilder, Serializable
Modifier and Type | Method and Description |
---|---|
GroupMember |
build()
Returns an instance of the object being built by this builder based
on the current state of the builder.
|
static GroupMember.Builder |
create(GroupMemberContract contract)
creates a GroupMember from an existing
GroupMemberContract . |
static GroupMember.Builder |
create(String groupId,
String memberId,
MemberType type)
creates a Parameter with the required fields.
|
org.joda.time.DateTime |
getActiveFromDate()
Gets the date for which the record become active.
|
org.joda.time.DateTime |
getActiveToDate()
Gets the date for which the record become inactive.
|
String |
getGroupId()
This is the id for the Group.
|
String |
getId()
The unique identifier for an object.
|
String |
getMemberId()
This is the member id for the Group Member.
|
String |
getObjectId()
Return the globally unique object id of this object.
|
MemberType |
getType()
This is the type code for the Group Member.
|
Long |
getVersionNumber()
Returns the version number for this object.
|
boolean |
isActive()
The active indicator for an object.
|
boolean |
isActive(org.joda.time.DateTime activeAsOf)
Returns if the record is active for a given Time.
|
void |
setActiveFromDate(org.joda.time.DateTime activeFromDate) |
void |
setActiveToDate(org.joda.time.DateTime activeToDate) |
void |
setGroupId(String groupId) |
void |
setId(String id) |
void |
setMemberId(String memberId) |
void |
setObjectId(String objectId) |
void |
setType(MemberType type) |
void |
setVersionNumber(Long versionNumber) |
public static GroupMember.Builder create(String groupId, String memberId, MemberType type)
public static GroupMember.Builder create(GroupMemberContract contract)
GroupMemberContract
.public String getId()
Identifiable
getId
in interface Identifiable
public String getGroupId()
GroupMemberContract
This is a id assigned to a Group. It defines the group this group member belongs to.
getGroupId
in interface GroupMemberContract
public void setGroupId(String groupId)
public String getMemberId()
GroupMemberContract
This is a id value that defines the Group Member. This value is either a Principal Id or Group Id depending on the type code
getMemberId
in interface GroupMemberContract
public void setMemberId(String memberId)
public MemberType getType()
GroupMemberContract
This is a value that defines the type of Group Member. This value determines whether memberId is either a Principal Id or Group Id
getType
in interface GroupMemberContract
public void setType(MemberType type)
public org.joda.time.DateTime getActiveFromDate()
InactivatableFromTo
getActiveFromDate
in interface InactivatableFromTo
public void setActiveFromDate(org.joda.time.DateTime activeFromDate)
public org.joda.time.DateTime getActiveToDate()
InactivatableFromTo
getActiveToDate
in interface InactivatableFromTo
public void setActiveToDate(org.joda.time.DateTime activeToDate)
public Long getVersionNumber()
Versioned
getVersionNumber
in interface Versioned
public void setVersionNumber(Long versionNumber)
public String getObjectId()
GloballyUnique
getObjectId
in interface GloballyUnique
public void setObjectId(String objectId)
public boolean isActive(org.joda.time.DateTime activeAsOf)
InactivatableFromTo
isActive
in interface InactivatableFromTo
public boolean isActive()
Inactivatable
isActive
in interface Inactivatable
public GroupMember build()
ModelBuilder
build
in interface ModelBuilder
Copyright © 2005–2015 The Kuali Foundation. All rights reserved.