com.sage.orion.sdata.servlet
Class ResourceKindInfo

java.lang.Object
  extended by com.sage.orion.sdata.servlet.ResourceKindInfo
All Implemented Interfaces:
SDataResourceKindInfo

public class ResourceKindInfo
extends java.lang.Object
implements SDataResourceKindInfo

Class to hold the detailed information on a resource in the pool.

Author:
cliwa01

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.sage.orion.sdata.servlet.SDataResourceKindInfo
SDataResourceKindInfo.Status
 
Constructor Summary
ResourceKindInfo(java.lang.String userID, java.lang.String userInstance, ResourceKind resourceKind)
          Constructor.
 
Method Summary
 java.util.Date getCreationDate()
          Gets the date (and time) the resource kind was created.
 java.util.Date getLastUsedDate()
          Gets the date (and time) that the resource kind was lasted used.
 java.lang.String getResourceInstance()
          Gets a unique string value representing this particular instance of the resource kind across the system.
 ResourceKind getResourceKind()
           
 java.lang.String getResourceKindName()
          Gets the name of the resource kind
 SDataResourceKindInfo.Status getStatus()
          Gets the resource kind's status.
 java.lang.String getUserID()
           Gets the ID of the user that is running this resource.
 java.lang.String getUserInstance()
          Gets the user instance that is running this resource.
 void setLastUsedDate(java.util.Date lastUsedDate)
           
 void setStatus(SDataResourceKindInfo.Status status)
          Sets the status of the resource kind.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceKindInfo

public ResourceKindInfo(java.lang.String userID,
                        java.lang.String userInstance,
                        ResourceKind resourceKind)
Constructor.

Parameters:
resourceKind -
Method Detail

getResourceKind

public ResourceKind getResourceKind()
Specified by:
getResourceKind in interface SDataResourceKindInfo
Returns:
the resourceKind

getStatus

public SDataResourceKindInfo.Status getStatus()
Description copied from interface: SDataResourceKindInfo
Gets the resource kind's status.

Specified by:
getStatus in interface SDataResourceKindInfo
Returns:
the status of the resource kind.

setStatus

public void setStatus(SDataResourceKindInfo.Status status)
Sets the status of the resource kind.

Specified by:
setStatus in interface SDataResourceKindInfo
Parameters:
status -

getLastUsedDate

public java.util.Date getLastUsedDate()
Description copied from interface: SDataResourceKindInfo
Gets the date (and time) that the resource kind was lasted used.

Specified by:
getLastUsedDate in interface SDataResourceKindInfo
Returns:
the date the resource was last used.

setLastUsedDate

public void setLastUsedDate(java.util.Date lastUsedDate)
Specified by:
setLastUsedDate in interface SDataResourceKindInfo
Parameters:
lastUsedDate -

getCreationDate

public java.util.Date getCreationDate()
Description copied from interface: SDataResourceKindInfo
Gets the date (and time) the resource kind was created.

Specified by:
getCreationDate in interface SDataResourceKindInfo
Returns:
the date that the resource was created.

getResourceInstance

public java.lang.String getResourceInstance()
Description copied from interface: SDataResourceKindInfo
Gets a unique string value representing this particular instance of the resource kind across the system.

Specified by:
getResourceInstance in interface SDataResourceKindInfo
Returns:
the resource kind's Instance value.

getUserID

public java.lang.String getUserID()
Description copied from interface: SDataResourceKindInfo

Gets the ID of the user that is running this resource.

TODO - This is currently the Sage 300 ERP User - but once Single Signon is implemented this should be changed to the Single Sign On ID.

Specified by:
getUserID in interface SDataResourceKindInfo
Returns:
a String containing the user ID

getUserInstance

public java.lang.String getUserInstance()
Description copied from interface: SDataResourceKindInfo
Gets the user instance that is running this resource. The user instance is the particular instance of use that is running this resource.

Specified by:
getUserInstance in interface SDataResourceKindInfo
Returns:
a String containing the instance descriptor

getResourceKindName

public java.lang.String getResourceKindName()
Description copied from interface: SDataResourceKindInfo
Gets the name of the resource kind

Specified by:
getResourceKindName in interface SDataResourceKindInfo
Returns:
a String containing the name of the resource kind


Copyright © 2011 Sage Software, Inc. All rights reserved.