Some missing files added
git-svn-id: https://svn.libreccm.org/ccm/trunk@173 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
8de9e445fe
commit
a28d0e67f9
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue