Package fi.tut.mei.resdescapi.rescatapi
Class ResCatStoImpl_LocalFileSystem
- java.lang.Object
-
- fi.tut.mei.resdescapi.rescatapi.ResCatStoImpl
-
- fi.tut.mei.resdescapi.rescatapi.ResCatStoImpl_LocalFileSystem
-
- All Implemented Interfaces:
IIssueActions<ResCatIssue>
,IResCatConfigureLocal
,ResCatStorageInterface
public class ResCatStoImpl_LocalFileSystem extends ResCatStoImpl implements ResCatStorageInterface, IResCatConfigureLocal
This is a Resource Catalogue Storage Platform implementation for local file system usage. It works with a resource catalogue having one folder for ARDs and another one for RDs. Usage: After instantiation one should set the folder locations for the ARDs and RDs by using corresponding methods: setFolderLocationForARDs and setFolderLocationForRDs. ClearRegisters should be called, if old data should be removed.After this updateRegister should be called, which will update the catalogue storage internal data and indexes.- Author:
- Niko Siltala
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface fi.tut.mei.resdescapi.rescatapi.ResCatStorageInterface
ResCatStorageInterface.EnumSearchDomainForARD, ResCatStorageInterface.EnumSearchField
-
-
Field Summary
Fields Modifier and Type Field Description static String
_NAMESPACE_CAPABILITY_MODEL
Namespace for capability modelstatic String
_SEPARATOR_CAPABILITY_PARAM
Separator symbol for Capability parameterstatic String
fileExtensionForARD
File extension for Abstract Resource Descriptions (ARDs)static String
fileExtensionForRD
File extension for Resource Descriptions (RDs)-
Fields inherited from class fi.tut.mei.resdescapi.rescatapi.ResCatStoImpl
_ardList, _rdList
-
-
Constructor Summary
Constructors Constructor Description ResCatStoImpl_LocalFileSystem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearRegisters()
Clears all Resource Catalogue Storage related registers and indexesAbstractResourceDesc
getARDStructureFromStorage(String ardId)
Gets Abstract Resource Description (ARD) by given ARD Id.String
getFolderLocationForARDs()
Gets the folder location for ARDs.String
getFolderLocationForRDs()
Gets the folder location for RDs.int
getNumberOfArds()
Get number of ARDs in this repository.int
getNumberOfRds()
Get number of RDs in this repository.ResourceDescription
getRDSkeleton_ARDandProfile(String ardId, String profileId)
Creates a RDSkeleton, which is a customised RDTemplate, by given ARD and Profile.ResourceDescription
getRDStructureFromStorage(String rdId)
Gets Resource Description (RD) by given RD Id.String
getRepositoryReport()
Creates and retrieves report of this repository storage.boolean
hasARDAndProfile(String ardId, String profileId)
Has this repository a specific ARD (and Profile) or not?boolean
hasRD(String rdId)
Has this repository a specific RD or not?boolean
pushARDContentToStorage(String ardContentData, String filename, boolean overwrite)
Pushes given ARD to storage and updates the possible search index with this information.boolean
pushARDStructureToStorage(AbstractResourceDesc ardObj, String filename, boolean overwrite)
Pushes given ARD to storage and updates the possible search index with this information.boolean
pushRDContentToStorage(String rdContentData, String filename, boolean overwrite)
Pushes given RD to storage and updates the possible search index with this information.boolean
pushRDStructureToStorage(ResourceDescription rdObj, String filename, boolean overwrite)
Pushes given RD to storage and updates the possible search index with this information.void
setFolderLocationForARDs(String folderLocationForARDs)
Sets the folder location for RDs.void
setFolderLocationForRDs(String folderLocationForRDs)
Sets the folder location for RDs.boolean
updateRegister()
Updates all Resource Catalogue Storage related registers and indexesSet<ARDAndProfInfo>
viewARDAndProfiles_All()
Gets all ARDs in the storage by element's own descriptive data.Set<ARDAndProfInfo>
viewARDAndProfiles_Capability(String capability, ResCatStorageInterface.EnumSearchField searchField, fi.tut.mei.resdescapi.util.Util.EnumSearchType searchType, ResCatStorageInterface.EnumSearchDomainForARD searchDomain)
Searches matching ARDs or ARD's Profiles by capability data.Set<ARDAndProfInfo>
viewARDAndProfiles_CapabilityParameter(String capability, List<String> parameters, List<String> values, ResCatStorageInterface.EnumSearchField searchField, fi.tut.mei.resdescapi.util.Util.EnumSearchType searchType, ResCatStorageInterface.EnumSearchDomainForARD searchDomain)
Searches matching ARDs or ARD's Profiles by capability and its parameters data.Set<ARDAndProfInfo>
viewARDAndProfiles_Category(String category, ResCatStorageInterface.EnumSearchField searchField, fi.tut.mei.resdescapi.util.Util.EnumSearchType searchType, ResCatStorageInterface.EnumSearchDomainForARD searchDomain)
Searches matching ARDs or ARD's Profiles by category data.Set<ARDAndProfInfo>
viewARDAndProfiles_Description(String desc, ResCatStorageInterface.EnumSearchField searchField, fi.tut.mei.resdescapi.util.Util.EnumSearchType searchType, ResCatStorageInterface.EnumSearchDomainForARD searchDomain)
Searches matching ARDs or ARD's Profiles by element's own descriptive data.Set<ARDAndProfInfo>
viewARDAndProfiles_Interface(String ifStd, ResCatStorageInterface.EnumSearchField searchField, fi.tut.mei.resdescapi.util.Util.EnumSearchType searchType, ResCatStorageInterface.EnumSearchDomainForARD searchDomain)
Searches matching ARDs or ARD's Profiles by interface standard data.Set<ARDAndProfInfo>
viewARDAndProfiles_Property(String property, ResCatStorageInterface.EnumSearchField searchField, fi.tut.mei.resdescapi.util.Util.EnumSearchType searchType, ResCatStorageInterface.EnumSearchDomainForARD searchDomain)
Searches matching ARDs or ARD's Profiles by property data.Set<RDInfo>
viewRDs_All()
Gets all RDs in the storage by element's own descriptive data.Set<RDInfo>
viewRDs_Capability(String capability, ResCatStorageInterface.EnumSearchField searchField, fi.tut.mei.resdescapi.util.Util.EnumSearchType searchType)
Searches matching RDs by capability data.Set<RDInfo>
viewRDs_CapabilityParameter(String capability, List<String> parameters, List<String> values, ResCatStorageInterface.EnumSearchField searchField, fi.tut.mei.resdescapi.util.Util.EnumSearchType searchType)
Searches matching RDs by capability and its parameters data.Set<RDInfo>
viewRDs_Category(String category, ResCatStorageInterface.EnumSearchField searchField, fi.tut.mei.resdescapi.util.Util.EnumSearchType searchType)
Searches matching RDs by category data.Set<RDInfo>
viewRDs_Description(String desc, ResCatStorageInterface.EnumSearchField searchField, fi.tut.mei.resdescapi.util.Util.EnumSearchType searchType)
Searches matching RDs by element's own descriptive data.Set<RDInfo>
viewRDs_Interface(String ifStd, ResCatStorageInterface.EnumSearchField searchField, fi.tut.mei.resdescapi.util.Util.EnumSearchType searchType)
Searches matching RDs by interface standard data.Set<RDInfo>
viewRDs_Property(String property, ResCatStorageInterface.EnumSearchField searchField, fi.tut.mei.resdescapi.util.Util.EnumSearchType searchType)
Searches matching RDs by property data.-
Methods inherited from class fi.tut.mei.resdescapi.rescatapi.ResCatStoImpl
addIssue, clearIssues, equals, getAllStored_Capabilities_ARD, getAllStored_Capabilities_RD, getAllStored_Categories_ARD, getAllStored_Categories_RD, getAllStored_Interfaces_ARD, getAllStored_Interfaces_RD, getAllStored_Properties_ARD, getAllStored_Properties_RD, getIssues, getResourceCatalogueId, getResourceCatalogueName, hashCode, hasIssues, isWritable, setResourceCatalogueId, setResourceCatalogueName, setWritable
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface fi.tut.mei.resdescapi.rescatapi.ResCatStorageInterface
getAllStored_Capabilities_ARD, getAllStored_Capabilities_RD, getAllStored_Categories_ARD, getAllStored_Categories_RD, getAllStored_Interfaces_ARD, getAllStored_Interfaces_RD, getAllStored_Properties_ARD, getAllStored_Properties_RD, getResourceCatalogueId, getResourceCatalogueName, isWritable, setResourceCatalogueId, setResourceCatalogueName, setWritable
-
-
-
-
Field Detail
-
fileExtensionForARD
public static final String fileExtensionForARD
File extension for Abstract Resource Descriptions (ARDs)- See Also:
- Constant Field Values
-
fileExtensionForRD
public static final String fileExtensionForRD
File extension for Resource Descriptions (RDs)- See Also:
- Constant Field Values
-
_NAMESPACE_CAPABILITY_MODEL
public static final String _NAMESPACE_CAPABILITY_MODEL
Namespace for capability model- See Also:
- Constant Field Values
-
_SEPARATOR_CAPABILITY_PARAM
public static final String _SEPARATOR_CAPABILITY_PARAM
Separator symbol for Capability parameter- See Also:
- Constant Field Values
-
-
Method Detail
-
updateRegister
public boolean updateRegister()
Description copied from interface:IResCatConfigureLocal
Updates all Resource Catalogue Storage related registers and indexes- Specified by:
updateRegister
in interfaceIResCatConfigureLocal
- Returns:
- true if operation going through without issues
-
clearRegisters
public void clearRegisters()
Description copied from interface:IResCatConfigureLocal
Clears all Resource Catalogue Storage related registers and indexes- Specified by:
clearRegisters
in interfaceIResCatConfigureLocal
-
getNumberOfArds
public int getNumberOfArds()
Description copied from interface:ResCatStorageInterface
Get number of ARDs in this repository.- Specified by:
getNumberOfArds
in interfaceResCatStorageInterface
- Returns:
- Number of ARDs in the repository. 0 or larger. Returns also 0 if repository does not exist.
-
hasARDAndProfile
public boolean hasARDAndProfile(String ardId, String profileId) throws ARDNotExistException, ProfileNotExistException
Description copied from interface:ResCatStorageInterface
Has this repository a specific ARD (and Profile) or not?- Specified by:
hasARDAndProfile
in interfaceResCatStorageInterface
- Parameters:
ardId
- ID of an ARDprofileId
- ID of a Profile which is looked for. Can be null -> in this case check limits to only ARD ID.- Returns:
- true if ARD (or ARD and Profile) is found. false if not.
- Throws:
ARDNotExistException
- ARD was not found.ProfileNotExistException
- ARD and its specific Profile is not found.
-
viewARDAndProfiles_All
public Set<ARDAndProfInfo> viewARDAndProfiles_All()
Description copied from interface:ResCatStorageInterface
Gets all ARDs in the storage by element's own descriptive data.- Specified by:
viewARDAndProfiles_All
in interfaceResCatStorageInterface
- Returns:
- Set(ARDAndProfInfo) contains a collection of found ARDs and its Profiles. null if no ARDs exist.
-
viewARDAndProfiles_Description
public Set<ARDAndProfInfo> viewARDAndProfiles_Description(String desc, ResCatStorageInterface.EnumSearchField searchField, fi.tut.mei.resdescapi.util.Util.EnumSearchType searchType, ResCatStorageInterface.EnumSearchDomainForARD searchDomain)
Description copied from interface:ResCatStorageInterface
Searches matching ARDs or ARD's Profiles by element's own descriptive data.- Specified by:
viewARDAndProfiles_Description
in interfaceResCatStorageInterface
- Parameters:
desc
- search string for descriptionssearchField
- What field is used for search?searchType
- Search type used for searchsearchDomain
- What is the ARD's internal search domain?- Returns:
- Set(ARDAndProfInfo) contains a collection of found ARDs and its matching Profiles. null if no matches are found.
-
viewARDAndProfiles_Category
public Set<ARDAndProfInfo> viewARDAndProfiles_Category(String category, ResCatStorageInterface.EnumSearchField searchField, fi.tut.mei.resdescapi.util.Util.EnumSearchType searchType, ResCatStorageInterface.EnumSearchDomainForARD searchDomain)
Description copied from interface:ResCatStorageInterface
Searches matching ARDs or ARD's Profiles by category data.- Specified by:
viewARDAndProfiles_Category
in interfaceResCatStorageInterface
- Parameters:
category
- search string for categoriessearchField
- What field is used for search?searchType
- Search type used for searchsearchDomain
- What is the ARD's internal search domain?- Returns:
- Set(ARDAndProfInfo) contains a collection of found ARDs and its matching Profiles. null if no matches are found.
-
viewARDAndProfiles_Capability
public Set<ARDAndProfInfo> viewARDAndProfiles_Capability(String capability, ResCatStorageInterface.EnumSearchField searchField, fi.tut.mei.resdescapi.util.Util.EnumSearchType searchType, ResCatStorageInterface.EnumSearchDomainForARD searchDomain)
Description copied from interface:ResCatStorageInterface
Searches matching ARDs or ARD's Profiles by capability data.- Specified by:
viewARDAndProfiles_Capability
in interfaceResCatStorageInterface
- Parameters:
capability
- search string for capabilitysearchField
- What field is used for search?searchType
- Search type used for searchsearchDomain
- What is the ARD's internal search domain?- Returns:
- Set(ARDAndProfInfo) contains a collection of found ARDs and its matching Profiles. null if no matches are found.
-
viewARDAndProfiles_CapabilityParameter
public Set<ARDAndProfInfo> viewARDAndProfiles_CapabilityParameter(String capability, List<String> parameters, List<String> values, ResCatStorageInterface.EnumSearchField searchField, fi.tut.mei.resdescapi.util.Util.EnumSearchType searchType, ResCatStorageInterface.EnumSearchDomainForARD searchDomain)
Description copied from interface:ResCatStorageInterface
Searches matching ARDs or ARD's Profiles by capability and its parameters data.- Specified by:
viewARDAndProfiles_CapabilityParameter
in interfaceResCatStorageInterface
- Parameters:
capability
- search string for capabilityparameters
- List of parameter information. Meaning of this information depends on searchField.values
- Optional. Can be null. Links values to a parameter on the parameters list. Must be same size and index as parameters list.searchField
- What field is used for the search?searchType
- Search type used for search- Returns:
- Set(ARDAndProfInfo) contains a collection of found ARDs and its matching Profiles. null if no matches are found.
-
viewARDAndProfiles_Interface
public Set<ARDAndProfInfo> viewARDAndProfiles_Interface(String ifStd, ResCatStorageInterface.EnumSearchField searchField, fi.tut.mei.resdescapi.util.Util.EnumSearchType searchType, ResCatStorageInterface.EnumSearchDomainForARD searchDomain)
Description copied from interface:ResCatStorageInterface
Searches matching ARDs or ARD's Profiles by interface standard data.- Specified by:
viewARDAndProfiles_Interface
in interfaceResCatStorageInterface
- Parameters:
ifStd
- search string for interface standardssearchField
- What field is used for search?searchType
- Search type used for searchsearchDomain
- What is the ARD's internal search domain?- Returns:
- Set(ARDAndProfInfo) contains a collection of found ARDs and its matching Profiles. null if no matches are found.
-
viewARDAndProfiles_Property
public Set<ARDAndProfInfo> viewARDAndProfiles_Property(String property, ResCatStorageInterface.EnumSearchField searchField, fi.tut.mei.resdescapi.util.Util.EnumSearchType searchType, ResCatStorageInterface.EnumSearchDomainForARD searchDomain)
Description copied from interface:ResCatStorageInterface
Searches matching ARDs or ARD's Profiles by property data.- Specified by:
viewARDAndProfiles_Property
in interfaceResCatStorageInterface
- Parameters:
property
- search string for propertiessearchField
- What field is used for search?searchType
- Search type used for searchsearchDomain
- What is the ARD's internal search domain?- Returns:
- Set(ARDAndProfInfo) contains a collection of found ARDs and its matching Profiles. null if no matches are found.
-
getARDStructureFromStorage
public AbstractResourceDesc getARDStructureFromStorage(String ardId) throws ARDNotExistException, IOException, Exception
Description copied from interface:ResCatStorageInterface
Gets Abstract Resource Description (ARD) by given ARD Id.- Specified by:
getARDStructureFromStorage
in interfaceResCatStorageInterface
- Parameters:
ardId
- Id of the ARD- Returns:
- Abstract Resource Description (ARD) (TODO TBD which object is returned. ARDmodel )
- Throws:
ARDNotExistException
IOException
Exception
-
pushARDContentToStorage
public boolean pushARDContentToStorage(String ardContentData, String filename, boolean overwrite) throws UserAuthorisationException, UserHasNotRightsException, IOException, ARDAlreadyExistException
Description copied from interface:ResCatStorageInterface
Pushes given ARD to storage and updates the possible search index with this information.- Specified by:
pushARDContentToStorage
in interfaceResCatStorageInterface
- Parameters:
ardContentData
- ARD as Stringfilename
- Filename used for storing this resource. Can be null, when system decides the name.overwrite
- True = existing ARD is overwritten- Returns:
- true if ARD is successfully stored
- Throws:
UserAuthorisationException
UserHasNotRightsException
IOException
ARDAlreadyExistException
-
pushARDStructureToStorage
public boolean pushARDStructureToStorage(AbstractResourceDesc ardObj, String filename, boolean overwrite) throws UserAuthorisationException, UserHasNotRightsException, IOException, ARDAlreadyExistException
Description copied from interface:ResCatStorageInterface
Pushes given ARD to storage and updates the possible search index with this information.- Specified by:
pushARDStructureToStorage
in interfaceResCatStorageInterface
- Parameters:
ardObj
- ARD as Java object modelfilename
- Filename used for storing this resource. Can be null, when system decides the name.overwrite
- True = existing ARD is overwritten- Returns:
- true if ARD is successfully stored
- Throws:
UserAuthorisationException
UserHasNotRightsException
IOException
ARDAlreadyExistException
-
getRDSkeleton_ARDandProfile
public ResourceDescription getRDSkeleton_ARDandProfile(String ardId, String profileId) throws ARDNotExistException, ProfileNotExistException, IOException, Exception
Description copied from interface:ResCatStorageInterface
Creates a RDSkeleton, which is a customised RDTemplate, by given ARD and Profile. This is a valid Resource Description (RD), which the user can start to modify and fill in.- Specified by:
getRDSkeleton_ARDandProfile
in interfaceResCatStorageInterface
- Parameters:
ardId
- Selected Abstract Resource Description(ARD)profileId
- Selected Profile inside ARD- Returns:
- Resource Description (RD)
- Throws:
ARDNotExistException
ProfileNotExistException
IOException
Exception
-
getNumberOfRds
public int getNumberOfRds()
Description copied from interface:ResCatStorageInterface
Get number of RDs in this repository.- Specified by:
getNumberOfRds
in interfaceResCatStorageInterface
- Returns:
- Number of RDs in the repository. 0 or larger. Returns also 0 if repository does not exist.
-
hasRD
public boolean hasRD(String rdId) throws RDNotExistException
Description copied from interface:ResCatStorageInterface
Has this repository a specific RD or not?- Specified by:
hasRD
in interfaceResCatStorageInterface
- Parameters:
rdId
- ID of an RD- Returns:
- true if RD is found. False if not.
- Throws:
RDNotExistException
- RD was not found.
-
viewRDs_All
public Set<RDInfo> viewRDs_All()
Description copied from interface:ResCatStorageInterface
Gets all RDs in the storage by element's own descriptive data.- Specified by:
viewRDs_All
in interfaceResCatStorageInterface
- Returns:
- Set(RDInfo) contains a collection of found RDs. null if RDs exists.
-
viewRDs_Description
public Set<RDInfo> viewRDs_Description(String desc, ResCatStorageInterface.EnumSearchField searchField, fi.tut.mei.resdescapi.util.Util.EnumSearchType searchType)
Description copied from interface:ResCatStorageInterface
Searches matching RDs by element's own descriptive data.- Specified by:
viewRDs_Description
in interfaceResCatStorageInterface
- Parameters:
desc
- search string for descriptionssearchField
- What field is used for search?searchType
- Search type used for search- Returns:
- Set(RDInfo) contains a collection of found RDs. null if no matches are found.
-
viewRDs_Category
public Set<RDInfo> viewRDs_Category(String category, ResCatStorageInterface.EnumSearchField searchField, fi.tut.mei.resdescapi.util.Util.EnumSearchType searchType)
Description copied from interface:ResCatStorageInterface
Searches matching RDs by category data.- Specified by:
viewRDs_Category
in interfaceResCatStorageInterface
- Parameters:
category
- search string for categoriessearchField
- What field is used for search?searchType
- Search type used for search- Returns:
- Set(RDInfo) contains a collection of found RDs. null if no matches are found.
-
viewRDs_Capability
public Set<RDInfo> viewRDs_Capability(String capability, ResCatStorageInterface.EnumSearchField searchField, fi.tut.mei.resdescapi.util.Util.EnumSearchType searchType)
Description copied from interface:ResCatStorageInterface
Searches matching RDs by capability data.- Specified by:
viewRDs_Capability
in interfaceResCatStorageInterface
- Parameters:
capability
- search string for capabilitysearchField
- What field is used for search?searchType
- Search type used for search- Returns:
- Set(RDInfo) contains a collection of found RDs. null if no matches are found.
-
viewRDs_CapabilityParameter
public Set<RDInfo> viewRDs_CapabilityParameter(String capability, List<String> parameters, List<String> values, ResCatStorageInterface.EnumSearchField searchField, fi.tut.mei.resdescapi.util.Util.EnumSearchType searchType)
Description copied from interface:ResCatStorageInterface
Searches matching RDs by capability and its parameters data.- Specified by:
viewRDs_CapabilityParameter
in interfaceResCatStorageInterface
- Parameters:
capability
- search string for capabilityparameters
- List of parameter information. Meaning of this information depends on searchField.values
- Optional. Can be null. Links values to a parameter on the parameters list. Must be same size and index as parameters list.searchField
- What field is used for the search?searchType
- Search type used for search- Returns:
- Set(RDInfo) contains a collection of found RDs. null if no matches are found.
-
viewRDs_Interface
public Set<RDInfo> viewRDs_Interface(String ifStd, ResCatStorageInterface.EnumSearchField searchField, fi.tut.mei.resdescapi.util.Util.EnumSearchType searchType)
Description copied from interface:ResCatStorageInterface
Searches matching RDs by interface standard data.- Specified by:
viewRDs_Interface
in interfaceResCatStorageInterface
- Parameters:
ifStd
- search string for interface standardssearchField
- What field is used for search?searchType
- Search type used for search- Returns:
- Set(RDInfo) contains a collection of found RDs. null if no matches are found.
-
viewRDs_Property
public Set<RDInfo> viewRDs_Property(String property, ResCatStorageInterface.EnumSearchField searchField, fi.tut.mei.resdescapi.util.Util.EnumSearchType searchType)
Description copied from interface:ResCatStorageInterface
Searches matching RDs by property data.- Specified by:
viewRDs_Property
in interfaceResCatStorageInterface
- Parameters:
property
- search string for propertiessearchField
- What field is used for search?searchType
- Search type used for search- Returns:
- Set(RDInfo) contains a collection of found RDs. null if no matches are found.
-
getRDStructureFromStorage
public ResourceDescription getRDStructureFromStorage(String rdId) throws RDNotExistException, IOException, Exception
Description copied from interface:ResCatStorageInterface
Gets Resource Description (RD) by given RD Id.- Specified by:
getRDStructureFromStorage
in interfaceResCatStorageInterface
- Parameters:
rdId
- Id of the RD- Returns:
- Resource Description (RD)
- Throws:
RDNotExistException
IOException
Exception
-
pushRDContentToStorage
public boolean pushRDContentToStorage(String rdContentData, String filename, boolean overwrite) throws UserAuthorisationException, UserHasNotRightsException, IOException, RDAlreadyExistException
Description copied from interface:ResCatStorageInterface
Pushes given RD to storage and updates the possible search index with this information.- Specified by:
pushRDContentToStorage
in interfaceResCatStorageInterface
- Parameters:
rdContentData
- RD as Stringfilename
- Filename used for storing this resource. Can be null, when system decides the name.overwrite
- True = existing RD is overwritten- Returns:
- true if RD is successfully stored
- Throws:
UserAuthorisationException
UserHasNotRightsException
IOException
RDAlreadyExistException
-
pushRDStructureToStorage
public boolean pushRDStructureToStorage(ResourceDescription rdObj, String filename, boolean overwrite) throws UserAuthorisationException, UserHasNotRightsException, IOException, RDAlreadyExistException
Description copied from interface:ResCatStorageInterface
Pushes given RD to storage and updates the possible search index with this information.- Specified by:
pushRDStructureToStorage
in interfaceResCatStorageInterface
- Parameters:
rdObj
- RD as Java object modelfilename
- Filename used for storing this resource. Can be null, when system decides the name.overwrite
- True = existing RD is overwritten- Returns:
- true if RD is successfully stored
- Throws:
UserAuthorisationException
UserHasNotRightsException
IOException
RDAlreadyExistException
-
getRepositoryReport
public String getRepositoryReport()
Description copied from interface:ResCatStorageInterface
Creates and retrieves report of this repository storage. Should contain listings of available ARDs and RDs. Each of these is listed at least ID, name and description.- Specified by:
getRepositoryReport
in interfaceResCatStorageInterface
- Returns:
- Report in plain text format.
-
getFolderLocationForARDs
public String getFolderLocationForARDs()
Description copied from interface:IResCatConfigureLocal
Gets the folder location for ARDs. I.e. its (system)path.- Specified by:
getFolderLocationForARDs
in interfaceIResCatConfigureLocal
- Returns:
- path to ARDs folder location.
-
setFolderLocationForARDs
public void setFolderLocationForARDs(String folderLocationForARDs)
Description copied from interface:IResCatConfigureLocal
Sets the folder location for RDs. I.e. its (system)path.- Specified by:
setFolderLocationForARDs
in interfaceIResCatConfigureLocal
- Parameters:
folderLocationForARDs
- the path to ARDs folder location to be set.
-
getFolderLocationForRDs
public String getFolderLocationForRDs()
Description copied from interface:IResCatConfigureLocal
Gets the folder location for RDs. I.e. its (system)path.- Specified by:
getFolderLocationForRDs
in interfaceIResCatConfigureLocal
- Returns:
- path to RDs folder location.
-
setFolderLocationForRDs
public void setFolderLocationForRDs(String folderLocationForRDs)
Description copied from interface:IResCatConfigureLocal
Sets the folder location for RDs. I.e. its (system)path.- Specified by:
setFolderLocationForRDs
in interfaceIResCatConfigureLocal
- Parameters:
folderLocationForRDs
- the path to RDs folder location to be set.
-
-