From a28d0e67f9607b53368a7a0d575f01bb52bd52f3 Mon Sep 17 00:00:00 2001 From: jensp Date: Thu, 21 May 2009 08:18:48 +0000 Subject: [PATCH] Some missing files added git-svn-id: https://svn.libreccm.org/ccm/trunk@173 8810af33-2d31-482b-a856-94f89814c4df --- .../contenttypes/OrganizationFunction.java | 49 +++++++++++++++++++ .../OrganizationFunctionCollection.java | 28 +++++++++++ 2 files changed, 77 insertions(+) create mode 100644 ccm-cms-types-genericorganization/src/com/arsdigita/cms/contenttypes/OrganizationFunction.java create mode 100644 ccm-cms-types-genericorganization/src/com/arsdigita/cms/contenttypes/OrganizationFunctionCollection.java diff --git a/ccm-cms-types-genericorganization/src/com/arsdigita/cms/contenttypes/OrganizationFunction.java b/ccm-cms-types-genericorganization/src/com/arsdigita/cms/contenttypes/OrganizationFunction.java new file mode 100644 index 000000000..8877a2860 --- /dev/null +++ b/ccm-cms-types-genericorganization/src/com/arsdigita/cms/contenttypes/OrganizationFunction.java @@ -0,0 +1,49 @@ +/** + * OrganizationFunction + * + * Part of GenericOrganization + * + * + */ + +package com.arsdigita.cms.contenttypes; + +import com.arsdigita.domain.DomainObject; +import com.arsdigita.persistence.DataObject; +import com.arsdigita.persistence.metadata.ObjectType; +import com.arsdigita.persistence.OID; +import org.apache.log4j.Logger; + + +public class OrganizationFunction extends DomainObject { + + private static final Logger s_log = Logger.getLogger(OrganizationFunction.class); + + public static final String FUNCTIONNAME = "functionname"; + + public static final String BASE_DATA_OBJECT_TYPE = "com.arsdigita.cms.contenttypes.OrganizationFunction"; + + public OrganizationFunction(String typeName) { + super(typeName); + } + + public OrganizationFunction(ObjectType type) { + super(type); + } + + public OrganizationFunction(OID oid) { + super(oid); + } + + public OrganizationFunction(DataObject dataObject) { + super(dataObject); + } + + public String getFunctionName() { + return (String)get(FUNCTIONNAME); + } + + public void setFunctioName(String functionName) { + set(FUNCTIONNAME, functionName); + } +} diff --git a/ccm-cms-types-genericorganization/src/com/arsdigita/cms/contenttypes/OrganizationFunctionCollection.java b/ccm-cms-types-genericorganization/src/com/arsdigita/cms/contenttypes/OrganizationFunctionCollection.java new file mode 100644 index 000000000..e851a36a7 --- /dev/null +++ b/ccm-cms-types-genericorganization/src/com/arsdigita/cms/contenttypes/OrganizationFunctionCollection.java @@ -0,0 +1,28 @@ +/** + * OrganizationFunctionCollection + */ + +package com.arsdigita.cms.contenttypes; + +import com.arsdigita.domain.DomainCollection; +import com.arsdigita.persistence.DataCollection; +import org.apache.log4j.Logger; + +/** + * @author Jens Pelzetter + */ +public class OrganizationFunctionCollection extends DomainCollection { + + public OrganizationFunctionCollection(DataCollection collection) { + super(collection); + } + + public final String getFunctionName() { + return (String)getOrganizationFunction().getFunctionName(); + } + + public OrganizationFunction getOrganizationFunction() { + return (OrganizationFunction)getDomainObject(); + } + +} \ No newline at end of file