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

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

public class GCUBECollectionDataType
extends DataType<GCUBECollectionResource>

Author:
Panagiota Koltsida, NKUA

Field Summary
static String ATTR_COLID
           
static String ATTR_COLLECTIONNAME
           
static String ATTR_ISUSER
           
 
Fields inherited from class org.gcube.portlets.admin.irbootstrapperportlet.gwt.server.types.data.DataType
typeName, xml
 
Constructor Summary
GCUBECollectionDataType(org.gcube.common.core.scope.GCUBEScope scope, GCUBECollectionResource 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 getCollectionID()
           
 String getCollectionName()
           
 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 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 isUser()
           
 void setCollectionID(String s)
           
 void setCollectionName(String s)
           
 void setIsUser(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_COLLECTIONNAME

public static final String ATTR_COLLECTIONNAME
See Also:
Constant Field Values

ATTR_COLID

public static final String ATTR_COLID
See Also:
Constant Field Values

ATTR_ISUSER

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

GCUBECollectionDataType

public GCUBECollectionDataType(org.gcube.common.core.scope.GCUBEScope scope,
                               GCUBECollectionResource 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<GCUBECollectionResource>
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<GCUBECollectionResource>
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<GCUBECollectionResource>
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<GCUBECollectionResource>
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<GCUBECollectionResource>
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<GCUBECollectionResource>
Returns:
the XML type definition document
Throws:
Exception

getCollectionName

public String getCollectionName()

setCollectionName

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

getCollectionID

public String getCollectionID()

setCollectionID

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

isUser

public String isUser()

setIsUser

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


Copyright © 2013. All Rights Reserved.