|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.swing.models.remotefileselector2.informationservices.BaseInformationServicesModel
public abstract class BaseInformationServicesModel
BaseInformationServicesModel provides common methods that talk to the Information Services structure.
Field Summary | |
---|---|
protected boolean |
allowNewFoldersInRootFolder
|
protected static java.lang.String |
CHOOSE_REPORT_METADATA_TEMPLATE
|
protected static java.lang.String |
FOLDER_TYPE
|
protected static java.lang.String |
FOLDER_TYPE_AND_SLASH
|
protected java.lang.String |
folderLocalizedType
|
static java.lang.String |
FOLDERTYPE_FOLDER
|
static java.lang.String |
FOLDERTYPE_MYFOLDER
|
static java.lang.String |
FOLDERTYPE_ROOTFOLDER
|
static java.lang.String |
FOLDERTYPE_WEBDAVFOLDER
|
protected boolean |
includeSystemFolders
|
protected boolean |
isPathUrl
|
protected static java.lang.String |
LOAD_ROOT_FOLDER_TEMPLATE
|
protected java.util.List |
locations
|
protected int |
locationsCurrentPathIndex
|
protected com.sas.util.log.CommonLoggerInterface |
log
|
static java.lang.String |
MY_FOLDER
|
protected java.lang.Object |
myFolderLocationUrl
|
protected java.lang.String |
myFolderName
|
protected com.sas.swing.models.remotefileselector2.LocationNode |
myFolderNode
|
protected com.sas.services.information.RepositoryInterface |
navigatingRepository
|
static java.lang.String |
PACKAGE
|
static java.lang.String |
RB_KEY
the resource key string |
protected com.sas.services.information.RepositoryInterface |
repository
|
protected com.sas.services.information.RepositoryInterface |
repositoryForFilteringRootFolders
|
protected java.util.List |
reposList
|
protected com.sas.services.information.metadata.FolderInterface |
rootFolder
|
protected java.lang.String[][] |
rootFolderInfo
|
protected java.lang.String |
rootFolderLocation
|
protected java.lang.String |
rootFolderName
|
protected java.util.List |
rootLocations
|
protected static java.lang.String |
SBIP
|
protected com.sas.services.information.ServerInterface |
server
|
protected static java.lang.String |
SLASH
|
static java.lang.String |
SYSTEM_FOLDER_TYPE
Defines the metadata value for the folder type of a "system" folder |
protected com.sas.services.information.publicobject.TypeDescriptorInterface |
typeDescriptor
|
protected com.sas.services.information.metadata.FolderInterface |
userHomeFolder
|
protected java.lang.String[][] |
userHomeFolderInfo
|
protected java.lang.String |
userHomeFolderName
|
protected java.util.List |
webDavReposList
|
protected java.util.List |
webDavReposNames
|
Fields inherited from class com.sas.swing.models.remotefileselector2.BaseRemoteFileServerModel |
---|
currentPath, directoriesOnly, filterValues, infoList, modelNeedsRefresh, readingFromCache, rootLocation, showDirectoriesOnly, spcs, tableEditable |
Constructor Summary | |
---|---|
BaseInformationServicesModel(com.sas.services.information.RepositoryInterface repository)
Deprecated. use constructor for the ServerInterface |
|
BaseInformationServicesModel(com.sas.services.user.UserContextInterface user)
Deprecated. use constructor for the ServerInterface |
Method Summary | |
---|---|
java.lang.String |
combinePathAndFileName(java.lang.String path,
java.lang.String name)
Concatenates a path and a folder name. |
protected java.util.List |
createMetadataItems(java.util.List itemList)
Creates metadata items that are used to store the various pieces of data retrieved from the Information Service. |
protected java.util.List |
createMetadataPackageItems(com.sas.services.publish.EntryInterface[] packageItemList)
|
protected java.util.List |
createRepositoryNodeMetadataItems(java.util.List listOfRepositories)
Creates metadata items that are used to store the various pieces of data retrieved from the Information Service. |
protected boolean |
filterData(com.sas.services.information.browse.BrowseMetadataInterface item)
The method that does the actual filtering of metadata items. |
protected boolean |
filterPackageData(com.sas.services.publish.EntryInterface element)
|
int |
getColumnCount()
Returns the number of columns available. |
int |
getColumnIndex(java.lang.String column)
A utility method that returns a column index as defined by the column name constants defined in this interface. |
protected com.sas.services.information.metadata.FolderInterface |
getCurrentFolder(java.lang.String path)
Returns a folder item for the specified path/ |
com.sas.services.information.RepositoryInterface |
getCurrentRepository(com.sas.services.information.metadata.PathUrl pathUrl)
Returns the repository associated with the PathUrl passed into the method. |
java.lang.String |
getDirectoryPath(java.lang.String path)
Returns the directory path from the Path Url |
java.util.Locale |
getLocale()
Returns the locale setting of the model. |
com.sas.services.information.RepositoryInterface |
getRepository()
Deprecated. use getUserContext |
java.util.List |
getRepositoryList()
Returns the list of repositories that have been set. |
java.lang.String |
getRepositoryRootLocation()
|
java.lang.String |
getServerName()
Returns a name used to identify the top level in the view. |
com.sas.services.user.UserContextInterface |
getUserContext()
Returns the currently set UserContextInterface. |
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex)
Given a row and column index, this method returns the item from the data. |
protected void |
initialize()
|
boolean |
isUpwardPathRestricted()
Returns true if the model's current path is at the topmost path of the current server, false otherwise. |
protected boolean |
isValidURL(java.lang.String SBIPUrl)
|
java.lang.String[][] |
parseIntoFoldersAndLocations(java.lang.String path)
A utility method that returns an array containing the the directory path, representing the element's location, and the individual folder elements. |
void |
setLocale(java.util.Locale loc)
Set the Locale for the model. |
void |
setRepository(com.sas.services.information.RepositoryInterface repository)
Deprecated. use setUserContext |
void |
setUserContext(com.sas.services.user.UserContextInterface user)
Allows the setting of a new UserContextInterface by the user. |
java.lang.String[] |
splitPathAndFileName(java.lang.String path)
Parses a given path into the parent folder and the file name. |
protected java.util.List |
updateLocations(java.lang.String path)
Method returns a list of Location objects. |
Methods inherited from class com.sas.swing.models.remotefileselector2.BaseRemoteFileServerModel |
---|
addToPasteBuffer, cancelLoadFileInfo, clearPasteBuffer, getBasePath, getFileInfo, getLocation, getNodeAt, getPasteBuffer, getPasteBufferCommandType, getRowCount, isRefreshNeeded, isTableEditable, setPasteBufferCommandType, setRefreshNeeded, setTableEditable |
Field Detail |
---|
public static final java.lang.String RB_KEY
public static final java.lang.String FOLDERTYPE_MYFOLDER
public static final java.lang.String FOLDERTYPE_FOLDER
public static final java.lang.String FOLDERTYPE_ROOTFOLDER
public static final java.lang.String FOLDERTYPE_WEBDAVFOLDER
public static final java.lang.String PACKAGE
public static final java.lang.String SYSTEM_FOLDER_TYPE
protected static final java.lang.String CHOOSE_REPORT_METADATA_TEMPLATE
protected static final java.lang.String LOAD_ROOT_FOLDER_TEMPLATE
protected com.sas.services.information.RepositoryInterface repository
protected com.sas.services.information.RepositoryInterface navigatingRepository
protected java.util.List reposList
protected boolean isPathUrl
protected com.sas.services.information.ServerInterface server
protected static final java.lang.String SBIP
protected static final java.lang.String FOLDER_TYPE
protected static final java.lang.String FOLDER_TYPE_AND_SLASH
public static final java.lang.String MY_FOLDER
protected static final java.lang.String SLASH
protected java.util.List webDavReposList
protected java.util.List webDavReposNames
protected java.util.List rootLocations
protected java.util.List locations
protected com.sas.services.information.metadata.FolderInterface userHomeFolder
protected java.lang.String userHomeFolderName
protected java.lang.String[][] userHomeFolderInfo
protected com.sas.services.information.metadata.FolderInterface rootFolder
protected java.lang.String rootFolderName
protected java.lang.String rootFolderLocation
protected java.lang.String[][] rootFolderInfo
protected int locationsCurrentPathIndex
protected com.sas.services.information.publicobject.TypeDescriptorInterface typeDescriptor
protected com.sas.util.log.CommonLoggerInterface log
protected boolean allowNewFoldersInRootFolder
protected com.sas.swing.models.remotefileselector2.LocationNode myFolderNode
protected java.lang.String myFolderName
protected java.lang.Object myFolderLocationUrl
protected boolean includeSystemFolders
protected com.sas.services.information.RepositoryInterface repositoryForFilteringRootFolders
protected java.lang.String folderLocalizedType
Constructor Detail |
---|
public BaseInformationServicesModel(com.sas.services.information.RepositoryInterface repository)
repository
- the repositorypublic BaseInformationServicesModel(com.sas.services.user.UserContextInterface user)
user
- the UserContext classMethod Detail |
---|
protected void initialize()
public int getColumnIndex(java.lang.String column)
column
- the column name constant
public int getColumnCount()
getColumnCount
in interface javax.swing.table.TableModel
public java.lang.Object getValueAt(int rowIndex, int columnIndex)
getValueAt
in interface javax.swing.table.TableModel
the
- row indexthe
- column index
protected java.util.List createMetadataItems(java.util.List itemList)
itemList
- a list of BrowseMetadataInterface instances
protected java.util.List createMetadataPackageItems(com.sas.services.publish.EntryInterface[] packageItemList)
protected boolean filterPackageData(com.sas.services.publish.EntryInterface element)
protected java.util.List createRepositoryNodeMetadataItems(java.util.List listOfRepositories)
listOfRepositories
- a list of RepositoryInterface objects
protected java.util.List updateLocations(java.lang.String path)
Location
objects.
The Location
objects contain a list
of LocationNode
objects.
The LocationNode
objects
represent a directory or folder part of the path.
Therefore, for each directory represented in a path
there is a LocationNode
.
The nodes are part of
a list where the first item in the list is
the root directory and the last item in the list is
the current directory.
Each Location
object
represents a root path that
can be navigated by the selector.
This method is specifically used when a
ServerInterface
instance
is specified.
path
-
List
of Location
objectsprotected boolean isValidURL(java.lang.String SBIPUrl)
public java.lang.String[][] parseIntoFoldersAndLocations(java.lang.String path)
path
- the path to be parsed
public java.lang.String[] splitPathAndFileName(java.lang.String path)
path
- the path to be parsed
public java.lang.String combinePathAndFileName(java.lang.String path, java.lang.String name)
path
- the parent pathname
- the folder name to be appended
public java.lang.String getRepositoryRootLocation()
public com.sas.services.information.RepositoryInterface getCurrentRepository(com.sas.services.information.metadata.PathUrl pathUrl)
PathUrl
passed into the method.
pathUrl
- path of current node
public boolean isUpwardPathRestricted()
public java.lang.String getServerName()
public java.lang.String getDirectoryPath(java.lang.String path)
the
- Path Url
protected com.sas.services.information.metadata.FolderInterface getCurrentFolder(java.lang.String path)
path
- a path in the SBIP URL form
protected boolean filterData(com.sas.services.information.browse.BrowseMetadataInterface item)
item
- the metadata item to be filtered
public void setRepository(com.sas.services.information.RepositoryInterface repository)
repository
- the new repositorypublic com.sas.services.information.RepositoryInterface getRepository()
public java.util.List getRepositoryList()
public void setUserContext(com.sas.services.user.UserContextInterface user)
user
- the new UserContextInterfacepublic com.sas.services.user.UserContextInterface getUserContext()
public void setLocale(java.util.Locale loc)
Information Services
is displayed then a
locale is necessary.
By default the Locale
will be set on the model using the
value set on the viewer.
If the Locale
is
updated on the viewer
then the Locale
is updated on the model.
setLocale
in interface com.sas.swing.models.remotefileselector2.LocaleDataInterface
loc
- Localepublic java.util.Locale getLocale()
null
is returned for the value.
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |