org.gcube.portlets.admin.irbootstrapperportlet.gwt.server.types.data
Class MetadataCollectionDataType

java.lang.Object
  extended by org.gcube.portlets.admin.irbootstrapperportlet.gwt.server.types.data.DataType<MetadataCollectionResource>
      extended by org.gcube.portlets.admin.irbootstrapperportlet.gwt.server.types.data.MetadataCollectionDataType
All Implemented Interfaces:
Cloneable, Evaluable

public class MetadataCollectionDataType
extends DataType<MetadataCollectionResource>

Author:
Spyros Boutsis, NKUA

Field Summary
static String ATTR_COLDESCRIPTION
           
static String ATTR_COLID
           
static String ATTR_COLNAME
           
static String ATTR_ISEDITABLE
           
static String ATTR_ISINDEXABLE
           
static String ATTR_ISUSER
           
static String ATTR_LANGUAGE
           
static String ATTR_NUMOFMEMBERS
           
static String ATTR_RELATEDCOLID
           
static String ATTR_SCHEMANAME
           
static String ATTR_SCHEMAURI
           
 
Fields inherited from class org.gcube.portlets.admin.irbootstrapperportlet.gwt.server.types.data.DataType
typeName, xml
 
Constructor Summary
MetadataCollectionDataType(org.gcube.common.core.scope.GCUBEScope scope, MetadataCollectionResource associatedResource)
          Class constructor
 
Method Summary
 boolean doesIdentifyUniqueResource()
          Returns true if the currently defined attributes of this DataType are adequate in order to uniquely identify a resource in the infrastructure.
 String getCollectionDesc()
           
 String getCollectionID()
           
 String getCollectionName()
           
 String getContentCollectionID()
           
 Map<String,String> getDataTypeAttrToResourceAttrMappings()
          Returns (dataTypeAttrValue, resourceAttrValue) pairs, which describe the mappings between attributes defined in this data types and attributes defined in the wrapped type of resource.
 String getLanguage()
           
 String getNumberOfMembers()
           
 String getSchemaName()
           
 String getSchemaURI()
           
 String getUID()
          Returns an identifier that uniquely identifies the specific DataType instance.
 String getUIDescription()
          Returns a string which will be displayed as the description of this DataType in the UI.
 String getUIName()
          Returns a string which will be displayed as the name of this DataType in the UI.
 Document getXMLTypeDefinitionDocument()
          Returns a Document object defining the XML structure of this DataType's contents.
 String isEditable()
           
 String isIndexable()
           
 String isUser()
           
 void setCollectionDesc(String s)
           
 void setCollectionID(String s)
           
 void setCollectionName(String s)
           
 void setContentCollectionID(String s)
           
 void setIsEditable(String s)
           
 void setIsIndexable(String s)
           
 void setIsUser(String s)
           
 void setLanguage(String s)
           
 void setNumberOfMembers(String s)
           
 void setSchemaName(String s)
           
 void setSchemaURI(String s)
           
 
Methods inherited from class org.gcube.portlets.admin.irbootstrapperportlet.gwt.server.types.data.DataType
clone, copyDataFromResource, copyDataToResource, evaluate, findMatchesInScope, getAssociatedResource, getAttributeValue, getScope, getTypeDefinition, getTypeName, initialize, setAttributeValue
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATTR_SCHEMANAME

public static final String ATTR_SCHEMANAME
See Also:
Constant Field Values

ATTR_SCHEMAURI

public static final String ATTR_SCHEMAURI
See Also:
Constant Field Values

ATTR_LANGUAGE

public static final String ATTR_LANGUAGE
See Also:
Constant Field Values

ATTR_COLNAME

public static final String ATTR_COLNAME
See Also:
Constant Field Values

ATTR_COLDESCRIPTION

public static final String ATTR_COLDESCRIPTION
See Also:
Constant Field Values

ATTR_COLID

public static final String ATTR_COLID
See Also:
Constant Field Values

ATTR_RELATEDCOLID

public static final String ATTR_RELATEDCOLID
See Also:
Constant Field Values

ATTR_ISINDEXABLE

public static final String ATTR_ISINDEXABLE
See Also:
Constant Field Values

ATTR_ISUSER

public static final String ATTR_ISUSER
See Also:
Constant Field Values

ATTR_ISEDITABLE

public static final String ATTR_ISEDITABLE
See Also:
Constant Field Values

ATTR_NUMOFMEMBERS

public static final String ATTR_NUMOFMEMBERS
See Also:
Constant Field Values
Constructor Detail

MetadataCollectionDataType

public MetadataCollectionDataType(org.gcube.common.core.scope.GCUBEScope scope,
                                  MetadataCollectionResource associatedResource)
                           throws Exception
Class constructor

Throws:
Exception
Method Detail

getDataTypeAttrToResourceAttrMappings

public Map<String,String> getDataTypeAttrToResourceAttrMappings()
Description copied from class: DataType
Returns (dataTypeAttrValue, resourceAttrValue) pairs, which describe the mappings between attributes defined in this data types and attributes defined in the wrapped type of resource.

Specified by:
getDataTypeAttrToResourceAttrMappings in class DataType<MetadataCollectionResource>
Returns:

doesIdentifyUniqueResource

public boolean doesIdentifyUniqueResource()
Description copied from class: DataType
Returns true if the currently defined attributes of this DataType are adequate in order to uniquely identify a resource in the infrastructure. If the DataType attributes could possibly describe more than one resources, this method should return false;

Specified by:
doesIdentifyUniqueResource in class DataType<MetadataCollectionResource>
Returns:

getUID

public String getUID()
Description copied from class: DataType
Returns an identifier that uniquely identifies the specific DataType instance. It is guaranteed that when this method is called, the DataType will be fully defined, meaning that none of its attributes will be empty. This guarantee is given so that subclasses implementing this method can freely depend on any attribute required in order to construct the unique ID.

Specified by:
getUID in class DataType<MetadataCollectionResource>
Returns:
the DataType's UID

getUIDescription

public String getUIDescription()
                        throws Exception
Description copied from class: DataType
Returns a string which will be displayed as the description of this DataType in the UI.

Specified by:
getUIDescription in class DataType<MetadataCollectionResource>
Returns:
the DataType's description
Throws:
Exception

getUIName

public String getUIName()
                 throws Exception
Description copied from class: DataType
Returns a string which will be displayed as the name of this DataType in the UI.

Specified by:
getUIName in class DataType<MetadataCollectionResource>
Returns:
the DataType's name
Throws:
Exception

getXMLTypeDefinitionDocument

public Document getXMLTypeDefinitionDocument()
                                      throws Exception
Description copied from class: DataType
Returns a Document object defining the XML structure of this DataType's contents.

Specified by:
getXMLTypeDefinitionDocument in class DataType<MetadataCollectionResource>
Returns:
the XML type definition document
Throws:
Exception

getSchemaName

public String getSchemaName()

setSchemaName

public void setSchemaName(String s)
                   throws Exception
Throws:
Exception

getSchemaURI

public String getSchemaURI()

setSchemaURI

public void setSchemaURI(String s)
                  throws Exception
Throws:
Exception

getLanguage

public String getLanguage()

setLanguage

public void setLanguage(String s)
                 throws Exception
Throws:
Exception

getCollectionName

public String getCollectionName()

setCollectionName

public void setCollectionName(String s)
                       throws Exception
Throws:
Exception

getCollectionDesc

public String getCollectionDesc()

setCollectionDesc

public void setCollectionDesc(String s)
                       throws Exception
Throws:
Exception

getCollectionID

public String getCollectionID()

setCollectionID

public void setCollectionID(String s)
                     throws Exception
Throws:
Exception

getContentCollectionID

public String getContentCollectionID()

setContentCollectionID

public void setContentCollectionID(String s)
                            throws Exception
Throws:
Exception

isIndexable

public String isIndexable()

setIsIndexable

public void setIsIndexable(String s)
                    throws Exception
Throws:
Exception

isUser

public String isUser()

setIsUser

public void setIsUser(String s)
               throws Exception
Throws:
Exception

isEditable

public String isEditable()

setIsEditable

public void setIsEditable(String s)
                   throws Exception
Throws:
Exception

getNumberOfMembers

public String getNumberOfMembers()

setNumberOfMembers

public void setNumberOfMembers(String s)
                        throws Exception
Throws:
Exception


Copyright © 2013. All Rights Reserved.