au.org.intersect.exsite9.service
Class MetadataCategoryService
java.lang.Object
au.org.intersect.exsite9.service.MetadataCategoryService
- All Implemented Interfaces:
- IMetadataCategoryService
public final class MetadataCategoryService
- extends java.lang.Object
- implements IMetadataCategoryService
A service for manipulating MetadataCategorys
|
Method Summary |
MetadataValue |
addValueToMetadataCategory(MetadataCategory metadataCategory,
java.lang.String metadataValue)
|
MetadataCategory |
createNewMetadataCategory(java.lang.String name,
java.lang.String description,
MetadataCategoryType type,
MetadataCategoryUse use,
boolean inextensible,
boolean imported,
java.util.List<MetadataValue> values,
MetadataAttribute metadataAttribute)
Creates a new metadata category. |
void |
deleteMetadataCategory(MetadataCategory metadataCategory)
|
MetadataCategory |
findById(java.lang.Long id)
|
void |
updateMetadataCategory(MetadataCategory existingMetadataCategoryToUpdate,
java.lang.String name,
java.lang.String description,
MetadataCategoryUse use,
boolean inExtensible,
java.util.List<MetadataValue> values,
MetadataAttribute newMetadataAttribute)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MetadataCategoryService
public MetadataCategoryService(javax.persistence.EntityManagerFactory emf,
MetadataCategoryDAOFactory metadataCategoryDAOFactory,
MetadataAttributeDAOFactory metadataAttributeDAOFactory)
createNewMetadataCategory
public MetadataCategory createNewMetadataCategory(java.lang.String name,
java.lang.String description,
MetadataCategoryType type,
MetadataCategoryUse use,
boolean inextensible,
boolean imported,
java.util.List<MetadataValue> values,
MetadataAttribute metadataAttribute)
- Description copied from interface:
IMetadataCategoryService
- Creates a new metadata category.
- Specified by:
createNewMetadataCategory in interface IMetadataCategoryService
- Parameters:
name - The name of the metadata category.type - The type of the metadata category.use - The use of the metadata category.imported - true if this metadata category was imported.values - The allowable values for this metadata category.metadataAttribute - The attribute for this metadata category. May be null.
- Returns:
- The newly created metadata category.
deleteMetadataCategory
public void deleteMetadataCategory(MetadataCategory metadataCategory)
- Specified by:
deleteMetadataCategory in interface IMetadataCategoryService
findById
public MetadataCategory findById(java.lang.Long id)
- Specified by:
findById in interface IMetadataCategoryService
updateMetadataCategory
public void updateMetadataCategory(MetadataCategory existingMetadataCategoryToUpdate,
java.lang.String name,
java.lang.String description,
MetadataCategoryUse use,
boolean inExtensible,
java.util.List<MetadataValue> values,
MetadataAttribute newMetadataAttribute)
- Specified by:
updateMetadataCategory in interface IMetadataCategoryService
addValueToMetadataCategory
public MetadataValue addValueToMetadataCategory(MetadataCategory metadataCategory,
java.lang.String metadataValue)
- Specified by:
addValueToMetadataCategory in interface IMetadataCategoryService