Package org.kuali.rice.kim.api.group
Class GroupMember.Builder
java.lang.Object
org.kuali.rice.kim.api.group.GroupMember.Builder
- All Implemented Interfaces:
Serializable,Inactivatable,InactivatableFromTo,GloballyUnique,Identifiable,Versioned,ModelBuilder,GroupMemberContract
- Enclosing class:
- GroupMember
public static class GroupMember.Builder
extends Object
implements GroupMemberContract, ModelBuilder, Serializable
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbuild()static GroupMember.Buildercreate(String groupId, String memberId, MemberType type) creates a Parameter with the required fields.static GroupMember.Buildercreate(GroupMemberContract contract) creates a GroupMember from an existingGroupMemberContract.org.joda.time.DateTimeorg.joda.time.DateTimeThis is the id for the Group.getId()This is the member id for the Group Member.getType()This is the type code for the Group Member.booleanisActive()booleanisActive(org.joda.time.DateTime activeAsOf) voidsetActiveFromDate(org.joda.time.DateTime activeFromDate) voidsetActiveToDate(org.joda.time.DateTime activeToDate) voidsetGroupId(String groupId) voidvoidsetMemberId(String memberId) voidsetObjectId(String objectId) voidsetType(MemberType type) voidsetVersionNumber(Long versionNumber)
-
Method Details
-
create
creates a Parameter with the required fields. -
create
creates a GroupMember from an existingGroupMemberContract. -
getId
- Specified by:
getIdin interfaceIdentifiable
-
setId
-
getGroupId
Description copied from interface:GroupMemberContractThis is the id for the Group.This is a id assigned to a Group. It defines the group this group member belongs to.
- Specified by:
getGroupIdin interfaceGroupMemberContract- Returns:
- groupId
-
setGroupId
-
getMemberId
Description copied from interface:GroupMemberContractThis is the member id for the Group Member.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
- Specified by:
getMemberIdin interfaceGroupMemberContract- Returns:
- memberId
-
setMemberId
-
getType
Description copied from interface:GroupMemberContractThis is the type code for the Group Member.This is a value that defines the type of Group Member. This value determines whether memberId is either a Principal Id or Group Id
- Specified by:
getTypein interfaceGroupMemberContract- Returns:
- typeCode
-
setType
-
getActiveFromDate
public org.joda.time.DateTime getActiveFromDate()- Specified by:
getActiveFromDatein interfaceInactivatableFromTo
-
setActiveFromDate
public void setActiveFromDate(org.joda.time.DateTime activeFromDate) -
getActiveToDate
public org.joda.time.DateTime getActiveToDate()- Specified by:
getActiveToDatein interfaceInactivatableFromTo
-
setActiveToDate
public void setActiveToDate(org.joda.time.DateTime activeToDate) -
getVersionNumber
- Specified by:
getVersionNumberin interfaceVersioned
-
setVersionNumber
-
getObjectId
- Specified by:
getObjectIdin interfaceGloballyUnique
-
setObjectId
-
isActive
public boolean isActive(org.joda.time.DateTime activeAsOf) - Specified by:
isActivein interfaceInactivatableFromTo
-
isActive
public boolean isActive()- Specified by:
isActivein interfaceInactivatable
-
build
- Specified by:
buildin interfaceModelBuilder
-