removes modifications from earlier and adds getter and setter to each modules/core class
git-svn-id: https://svn.libreccm.org/ccm/trunk@4174 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
970c2c88df
commit
676b3be133
|
|
@ -51,7 +51,7 @@ import org.apache.log4j.Logger;
|
||||||
* @version 1.0
|
* @version 1.0
|
||||||
* @version $Id: Permission.java 287 2005-02-22 00:29:02Z sskracic $
|
* @version $Id: Permission.java 287 2005-02-22 00:29:02Z sskracic $
|
||||||
*/
|
*/
|
||||||
class Permission extends DomainObject {
|
public class Permission extends DomainObject {
|
||||||
|
|
||||||
// Get the category named the same as this class
|
// Get the category named the same as this class
|
||||||
private static final Logger s_log = Logger.getLogger(Permission.class);
|
private static final Logger s_log = Logger.getLogger(Permission.class);
|
||||||
|
|
|
||||||
|
|
@ -41,15 +41,8 @@ public class Categorization implements Identifiable {
|
||||||
private long objectOrder;
|
private long objectOrder;
|
||||||
|
|
||||||
|
|
||||||
public Categorization(ACSObject acsObject, Category category) {
|
public Categorization(final ACSObject acsObject) {
|
||||||
this.categorizationId = category.getObjectId() +
|
|
||||||
acsObject.getID().longValue();
|
|
||||||
// Todo: generatedID
|
|
||||||
this.category = category;
|
|
||||||
this.categorizedObject = new CcmObject(acsObject);
|
|
||||||
this.index = false;
|
|
||||||
this.categoryOrder = this.categorizedObject.getCategories().size() + 1;
|
|
||||||
this.objectOrder = this.category.getObjects().size() + 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,18 +18,12 @@
|
||||||
*/
|
*/
|
||||||
package com.arsdigita.portation.modules.core.categorization;
|
package com.arsdigita.portation.modules.core.categorization;
|
||||||
|
|
||||||
import com.arsdigita.categorization.CategorizedCollection;
|
|
||||||
import com.arsdigita.categorization.CategoryLocalizationCollection;
|
|
||||||
import com.arsdigita.portation.AbstractMarshaller;
|
import com.arsdigita.portation.AbstractMarshaller;
|
||||||
import com.arsdigita.portation.Identifiable;
|
import com.arsdigita.portation.Identifiable;
|
||||||
import com.arsdigita.portation.modules.core.categorization.utils.CollectionConverter;
|
|
||||||
import com.arsdigita.portation.modules.core.core.CcmObject;
|
import com.arsdigita.portation.modules.core.core.CcmObject;
|
||||||
import com.arsdigita.portation.modules.core.l10n.LocalizedString;
|
import com.arsdigita.portation.modules.core.l10n.LocalizedString;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Locale;
|
|
||||||
|
|
||||||
import static com.arsdigita.portation.modules.core.categorization.utils.CollectionConverter.convertCategories;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The category entity represents a single category. Each category is part of a
|
* The category entity represents a single category. Each category is part of a
|
||||||
|
|
@ -64,29 +58,6 @@ public class Category extends CcmObject {
|
||||||
|
|
||||||
public Category(final com.arsdigita.categorization.Category trunkCategory) {
|
public Category(final com.arsdigita.categorization.Category trunkCategory) {
|
||||||
super(trunkCategory);
|
super(trunkCategory);
|
||||||
|
|
||||||
this.uniqueId = null;// Todo: mapping
|
|
||||||
this.name = trunkCategory.getName();
|
|
||||||
|
|
||||||
CategoryLocalizationCollection categoryLocalization = trunkCategory
|
|
||||||
.getCategoryLocalizationCollection();
|
|
||||||
Locale locale = new Locale(categoryLocalization.getLocale());
|
|
||||||
this.title.addValue(locale, categoryLocalization.getName());
|
|
||||||
this.description.addValue(locale, categoryLocalization.getDescription());
|
|
||||||
|
|
||||||
this.enabled = trunkCategory.isEnabled();
|
|
||||||
this.visible = trunkCategory.isVisible();
|
|
||||||
this.abstractCategory = trunkCategory.isAbstract();
|
|
||||||
|
|
||||||
CategorizedCollection categorizedCollection = trunkCategory.getObjects(
|
|
||||||
trunkCategory.getObjectType().toString());
|
|
||||||
this.objects = CollectionConverter.convertCategorizations(
|
|
||||||
categorizedCollection, this);
|
|
||||||
|
|
||||||
this.subCategories = convertCategories(trunkCategory.getChildren());
|
|
||||||
this.parentCategory = trunkCategory.getParentCategoryCount() >= 1 ?
|
|
||||||
new Category(trunkCategory.getParents().getCategory()) : null;
|
|
||||||
this.categoryOrder = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -48,8 +48,7 @@ public class CollectionConverter {
|
||||||
List<Categorization> categorizations = new ArrayList<>();
|
List<Categorization> categorizations = new ArrayList<>();
|
||||||
if (categorizedCollection != null) {
|
if (categorizedCollection != null) {
|
||||||
while (categorizedCollection.next()) {
|
while (categorizedCollection.next()) {
|
||||||
categorizations.add(new Categorization(categorizedCollection
|
//categorizations.add();
|
||||||
.getACSObject(), category));
|
|
||||||
}
|
}
|
||||||
categorizedCollection.close();
|
categorizedCollection.close();
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -70,7 +69,7 @@ public class CollectionConverter {
|
||||||
List<Category> categories = new ArrayList<>();
|
List<Category> categories = new ArrayList<>();
|
||||||
if (categoryCollection != null) {
|
if (categoryCollection != null) {
|
||||||
while (categoryCollection.next()) {
|
while (categoryCollection.next()) {
|
||||||
categories.add(new Category(categoryCollection.getCategory()));
|
//.add(new Category());
|
||||||
}
|
}
|
||||||
categoryCollection.close();
|
categoryCollection.close();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -54,11 +54,7 @@ public class CcmObject implements Identifiable {
|
||||||
|
|
||||||
|
|
||||||
public CcmObject(final ACSObject trunkObject) {
|
public CcmObject(final ACSObject trunkObject) {
|
||||||
this.objectId = trunkObject.getID().longValue();
|
|
||||||
this.uuid = null;
|
|
||||||
this.displayName = trunkObject.getDisplayName();
|
|
||||||
this.permissions = null;// Todo: mapping
|
|
||||||
this.categories = null;// Todo: mapping
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,8 @@ public class EmailAddress implements Identifiable {
|
||||||
private boolean verified;
|
private boolean verified;
|
||||||
|
|
||||||
|
|
||||||
public EmailAddress() {
|
public EmailAddress(final com.arsdigita.kernel.EmailAddress
|
||||||
|
trunkEmailAddress) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -40,4 +41,28 @@ public class EmailAddress implements Identifiable {
|
||||||
public AbstractMarshaller<? extends Identifiable> getMarshaller() {
|
public AbstractMarshaller<? extends Identifiable> getMarshaller() {
|
||||||
return new EmailAddressMarshaller();
|
return new EmailAddressMarshaller();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getAddress() {
|
||||||
|
return address;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAddress(String address) {
|
||||||
|
this.address = address;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isBouncing() {
|
||||||
|
return bouncing;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBouncing(boolean bouncing) {
|
||||||
|
this.bouncing = bouncing;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isVerified() {
|
||||||
|
return verified;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setVerified(boolean verified) {
|
||||||
|
this.verified = verified;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -32,9 +32,20 @@ public class Group extends Party {
|
||||||
|
|
||||||
private Set<GroupMembership> memberships = new HashSet<>();
|
private Set<GroupMembership> memberships = new HashSet<>();
|
||||||
|
|
||||||
|
public Group(final com.arsdigita.kernel.Group trunkGroup) {
|
||||||
|
super(trunkGroup);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public AbstractMarshaller<? extends Identifiable> getMarshaller() {
|
public AbstractMarshaller<? extends Identifiable> getMarshaller() {
|
||||||
return new GroupMarshaller();
|
return new GroupMarshaller();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Set<GroupMembership> getMemberships() {
|
||||||
|
return memberships;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMemberships(Set<GroupMembership> memberships) {
|
||||||
|
this.memberships = memberships;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,6 @@ public class GroupMembership implements Identifiable {
|
||||||
private Group group;
|
private Group group;
|
||||||
private User member;
|
private User member;
|
||||||
|
|
||||||
|
|
||||||
public GroupMembership() {
|
public GroupMembership() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
@ -40,4 +39,28 @@ public class GroupMembership implements Identifiable {
|
||||||
public AbstractMarshaller<? extends Identifiable> getMarshaller() {
|
public AbstractMarshaller<? extends Identifiable> getMarshaller() {
|
||||||
return new GroupMembershipMarshaller();
|
return new GroupMembershipMarshaller();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public long getMembershipId() {
|
||||||
|
return membershipId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMembershipId(long membershipId) {
|
||||||
|
this.membershipId = membershipId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Group getGroup() {
|
||||||
|
return group;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGroup(Group group) {
|
||||||
|
this.group = group;
|
||||||
|
}
|
||||||
|
|
||||||
|
public User getMember() {
|
||||||
|
return member;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMember(User member) {
|
||||||
|
this.member = member;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -34,8 +34,7 @@ public class Party implements Identifiable {
|
||||||
private String name;
|
private String name;
|
||||||
private Set<RoleMembership> roleMemberships = new HashSet<>();
|
private Set<RoleMembership> roleMemberships = new HashSet<>();
|
||||||
|
|
||||||
|
public Party(final com.arsdigita.kernel.Party trunkParty) {
|
||||||
public Party() {
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -43,4 +42,28 @@ public class Party implements Identifiable {
|
||||||
public AbstractMarshaller<? extends Identifiable> getMarshaller() {
|
public AbstractMarshaller<? extends Identifiable> getMarshaller() {
|
||||||
return new PartyMarshaller();
|
return new PartyMarshaller();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public long getPartyId() {
|
||||||
|
return partyId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPartyId(long partyId) {
|
||||||
|
this.partyId = partyId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setName(String name) {
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Set<RoleMembership> getRoleMemberships() {
|
||||||
|
return roleMemberships;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRoleMemberships(Set<RoleMembership> roleMemberships) {
|
||||||
|
this.roleMemberships = roleMemberships;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -38,9 +38,7 @@ public class Permission implements Identifiable {
|
||||||
private Date creationDate;
|
private Date creationDate;
|
||||||
private String creationIp;
|
private String creationIp;
|
||||||
|
|
||||||
|
public Permission(final com.arsdigita.kernel.permissions.Permission permission) {
|
||||||
|
|
||||||
public Permission() {
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -48,4 +46,60 @@ public class Permission implements Identifiable {
|
||||||
public AbstractMarshaller<? extends Identifiable> getMarshaller() {
|
public AbstractMarshaller<? extends Identifiable> getMarshaller() {
|
||||||
return new PermissionMarshaller();
|
return new PermissionMarshaller();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public long getPermissionId() {
|
||||||
|
return permissionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPermissionId(long permissionId) {
|
||||||
|
this.permissionId = permissionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getGrantedPrivilege() {
|
||||||
|
return grantedPrivilege;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGrantedPrivilege(String grantedPrivilege) {
|
||||||
|
this.grantedPrivilege = grantedPrivilege;
|
||||||
|
}
|
||||||
|
|
||||||
|
public CcmObject getObject() {
|
||||||
|
return object;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setObject(CcmObject object) {
|
||||||
|
this.object = object;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Role getGrantee() {
|
||||||
|
return grantee;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGrantee(Role grantee) {
|
||||||
|
this.grantee = grantee;
|
||||||
|
}
|
||||||
|
|
||||||
|
public User getCreationUser() {
|
||||||
|
return creationUser;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreationUser(User creationUser) {
|
||||||
|
this.creationUser = creationUser;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getCreationDate() {
|
||||||
|
return creationDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreationDate(Date creationDate) {
|
||||||
|
this.creationDate = creationDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCreationIp() {
|
||||||
|
return creationIp;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreationIp(String creationIp) {
|
||||||
|
this.creationIp = creationIp;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -39,9 +39,52 @@ public class Role implements Identifiable {
|
||||||
private ArrayList permissions = new ArrayList();
|
private ArrayList permissions = new ArrayList();
|
||||||
private List<TaskAssignment> assignedTasks;
|
private List<TaskAssignment> assignedTasks;
|
||||||
|
|
||||||
|
public Role() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public AbstractMarshaller<? extends Identifiable> getMarshaller() {
|
public AbstractMarshaller<? extends Identifiable> getMarshaller() {
|
||||||
return new RoleMarshaller();
|
return new RoleMarshaller();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public long getRoleId() {
|
||||||
|
return roleId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRoleId(long roleId) {
|
||||||
|
this.roleId = roleId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setName(String name) {
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Set<RoleMembership> getMemberships() {
|
||||||
|
return memberships;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMemberships(Set<RoleMembership> memberships) {
|
||||||
|
this.memberships = memberships;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ArrayList getPermissions() {
|
||||||
|
return permissions;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPermissions(ArrayList permissions) {
|
||||||
|
this.permissions = permissions;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<TaskAssignment> getAssignedTasks() {
|
||||||
|
return assignedTasks;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAssignedTasks(List<TaskAssignment> assignedTasks) {
|
||||||
|
this.assignedTasks = assignedTasks;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -35,9 +35,32 @@ public class RoleMembership implements Identifiable {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public AbstractMarshaller<? extends Identifiable> getMarshaller() {
|
public AbstractMarshaller<? extends Identifiable> getMarshaller() {
|
||||||
return new RoleMembershipMarshaller();
|
return new RoleMembershipMarshaller();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public long getMembershipId() {
|
||||||
|
return membershipId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMembershipId(long membershipId) {
|
||||||
|
this.membershipId = membershipId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Role getRole() {
|
||||||
|
return role;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRole(Role role) {
|
||||||
|
this.role = role;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Party getMember() {
|
||||||
|
return member;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMember(Party member) {
|
||||||
|
this.member = member;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -41,13 +41,76 @@ public class User extends Party {
|
||||||
private boolean passwordResetRequired;
|
private boolean passwordResetRequired;
|
||||||
private Set<GroupMembership> groupMemberships = new HashSet<>();
|
private Set<GroupMembership> groupMemberships = new HashSet<>();
|
||||||
|
|
||||||
|
public User(final com.arsdigita.kernel.User trunkUser) {
|
||||||
public User() {
|
super(trunkUser);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public AbstractMarshaller<? extends Identifiable> getMarshaller() {
|
public AbstractMarshaller<? extends Identifiable> getMarshaller() {
|
||||||
return new UserMarshaller();
|
return new UserMarshaller();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getGivenName() {
|
||||||
|
return givenName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGivenName(String givenName) {
|
||||||
|
this.givenName = givenName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFamilyName() {
|
||||||
|
return familyName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFamilyName(String familyName) {
|
||||||
|
this.familyName = familyName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public EmailAddress getPrimaryEmailAddress() {
|
||||||
|
return primaryEmailAddress;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPrimaryEmailAddress(EmailAddress primaryEmailAddress) {
|
||||||
|
this.primaryEmailAddress = primaryEmailAddress;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<EmailAddress> getEmailAddresses() {
|
||||||
|
return emailAddresses;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmailAddresses(List<EmailAddress> emailAddresses) {
|
||||||
|
this.emailAddresses = emailAddresses;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isBanned() {
|
||||||
|
return banned;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBanned(boolean banned) {
|
||||||
|
this.banned = banned;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPassword() {
|
||||||
|
return password;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPassword(String password) {
|
||||||
|
this.password = password;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isPasswordResetRequired() {
|
||||||
|
return passwordResetRequired;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPasswordResetRequired(boolean passwordResetRequired) {
|
||||||
|
this.passwordResetRequired = passwordResetRequired;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Set<GroupMembership> getGroupMemberships() {
|
||||||
|
return groupMemberships;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGroupMemberships(Set<GroupMembership> groupMemberships) {
|
||||||
|
this.groupMemberships = groupMemberships;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -40,8 +40,7 @@ public class Task implements Identifiable {
|
||||||
private List<Task> dependsOn;
|
private List<Task> dependsOn;
|
||||||
private List<String> comments;
|
private List<String> comments;
|
||||||
|
|
||||||
|
public Task(final com.arsdigita.workflow.simple.Task trunkTask) {
|
||||||
public Task() {
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -49,4 +48,76 @@ public class Task implements Identifiable {
|
||||||
public AbstractMarshaller<? extends Identifiable> getMarshaller() {
|
public AbstractMarshaller<? extends Identifiable> getMarshaller() {
|
||||||
return new TaskMarshaller();
|
return new TaskMarshaller();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public long getTaskId() {
|
||||||
|
return taskId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTaskId(long taskId) {
|
||||||
|
this.taskId = taskId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalizedString getLabel() {
|
||||||
|
return label;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLabel(LocalizedString label) {
|
||||||
|
this.label = label;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalizedString getDescription() {
|
||||||
|
return description;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDescription(LocalizedString description) {
|
||||||
|
this.description = description;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isActive() {
|
||||||
|
return active;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setActive(boolean active) {
|
||||||
|
this.active = active;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTaskState() {
|
||||||
|
return taskState;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTaskState(String taskState) {
|
||||||
|
this.taskState = taskState;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Workflow getWorkflow() {
|
||||||
|
return workflow;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setWorkflow(Workflow workflow) {
|
||||||
|
this.workflow = workflow;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Task> getDependentTasks() {
|
||||||
|
return dependentTasks;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDependentTasks(List<Task> dependentTasks) {
|
||||||
|
this.dependentTasks = dependentTasks;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Task> getDependsOn() {
|
||||||
|
return dependsOn;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDependsOn(List<Task> dependsOn) {
|
||||||
|
this.dependsOn = dependsOn;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<String> getComments() {
|
||||||
|
return comments;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setComments(List<String> comments) {
|
||||||
|
this.comments = comments;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -40,4 +40,28 @@ public class TaskAssignment implements Identifiable {
|
||||||
public AbstractMarshaller<? extends Identifiable> getMarshaller() {
|
public AbstractMarshaller<? extends Identifiable> getMarshaller() {
|
||||||
return new TaskAssignmentMarshaller();
|
return new TaskAssignmentMarshaller();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public long getTaskAssignmentId() {
|
||||||
|
return taskAssignmentId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTaskAssignmentId(long taskAssignmentId) {
|
||||||
|
this.taskAssignmentId = taskAssignmentId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public UserTask getTask() {
|
||||||
|
return task;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTask(UserTask task) {
|
||||||
|
this.task = task;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Role getRole() {
|
||||||
|
return role;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRole(Role role) {
|
||||||
|
this.role = role;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -39,8 +39,9 @@ public class UserTask extends Task {
|
||||||
private User notificationSender;
|
private User notificationSender;
|
||||||
private List<TaskAssignment> assignments;
|
private List<TaskAssignment> assignments;
|
||||||
|
|
||||||
|
public UserTask(final com.arsdigita.workflow.simple.UserTask
|
||||||
public UserTask() {
|
trunkUserTask) {
|
||||||
|
super(trunkUserTask);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -48,4 +49,60 @@ public class UserTask extends Task {
|
||||||
public AbstractMarshaller<? extends Identifiable> getMarshaller() {
|
public AbstractMarshaller<? extends Identifiable> getMarshaller() {
|
||||||
return new UserTaskMarshaller();
|
return new UserTaskMarshaller();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isLocked() {
|
||||||
|
return locked;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLocked(boolean locked) {
|
||||||
|
this.locked = locked;
|
||||||
|
}
|
||||||
|
|
||||||
|
public User getLockingUser() {
|
||||||
|
return lockingUser;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLockingUser(User lockingUser) {
|
||||||
|
this.lockingUser = lockingUser;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getStartDate() {
|
||||||
|
return startDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStartDate(Date startDate) {
|
||||||
|
this.startDate = startDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getDueDate() {
|
||||||
|
return dueDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDueDate(Date dueDate) {
|
||||||
|
this.dueDate = dueDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public long getDurationMinutes() {
|
||||||
|
return durationMinutes;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDurationMinutes(long durationMinutes) {
|
||||||
|
this.durationMinutes = durationMinutes;
|
||||||
|
}
|
||||||
|
|
||||||
|
public User getNotificationSender() {
|
||||||
|
return notificationSender;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNotificationSender(User notificationSender) {
|
||||||
|
this.notificationSender = notificationSender;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<TaskAssignment> getAssignments() {
|
||||||
|
return assignments;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAssignments(List<TaskAssignment> assignments) {
|
||||||
|
this.assignments = assignments;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -30,16 +30,13 @@ import java.util.List;
|
||||||
*/
|
*/
|
||||||
public class Workflow implements Identifiable {
|
public class Workflow implements Identifiable {
|
||||||
|
|
||||||
private String trunkClass;
|
|
||||||
|
|
||||||
private long workflowId;
|
private long workflowId;
|
||||||
private LocalizedString name;
|
private LocalizedString name;
|
||||||
private LocalizedString description;
|
private LocalizedString description;
|
||||||
private List<Task> tasks;
|
private List<Task> tasks;
|
||||||
|
|
||||||
|
public Workflow(final com.arsdigita.workflow.simple.Workflow
|
||||||
|
trunkWorkFlow) {
|
||||||
public Workflow() {
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -47,4 +44,36 @@ public class Workflow implements Identifiable {
|
||||||
public AbstractMarshaller<? extends Identifiable> getMarshaller() {
|
public AbstractMarshaller<? extends Identifiable> getMarshaller() {
|
||||||
return new WorkflowMarshaller();
|
return new WorkflowMarshaller();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public long getWorkflowId() {
|
||||||
|
return workflowId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setWorkflowId(long workflowId) {
|
||||||
|
this.workflowId = workflowId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalizedString getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setName(LocalizedString name) {
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalizedString getDescription() {
|
||||||
|
return description;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDescription(LocalizedString description) {
|
||||||
|
this.description = description;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Task> getTasks() {
|
||||||
|
return tasks;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTasks(List<Task> tasks) {
|
||||||
|
this.tasks = tasks;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue