03-29-2006 05:52 AM
04-05-2006 06:33 AM
NodeRef categoryRef = (NodeRef)this.nodeService.getProperty(nodeRef, QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "locale")); workspace://SpacesStore/9472c578-c478-11da-8be5-db2bb273e6f3
04-06-2006 08:01 AM
this.categoryRef = (NodeRef)nodeService.getProperty(this.nodeRef, QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "locale"));String Documentlanguage = Repository.getNameForNode(nodeService, this.categoryRef);02-08-2007 05:36 AM
ApplicationContext context = new ClassPathXmlApplicationContext("classpath:alfresco/application-context.xml");
Repository repository = (Repository)context.getBean("JCR.Repository");
Session session = repository.login(new SimpleCredentials("admin", "admin".toCharArray()));
try
{
ServiceRegistry serviceRegistry = (ServiceRegistry) context.getBean(ServiceRegistry.SERVICE_REGISTRY);
NodeService nodeService = serviceRegistry.getNodeService();
StoreRef storeRef = new StoreRef(StoreRef.PROTOCOL_WORKSPACE, "SpacesStore");
NodeRef nodeRef = nodeService.getRootNode(storeRef);
NodeRef nameProp = (NodeRef)nodeService.getProperty(nodeRef, QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "locale"));
String name = null;
if (nameProp != null)
{
name = nameProp.toString();
}
System.out.println(name);
session.save();
}
finally
{
session.logout();
System.exit(0);
}02-08-2007 06:15 AM
this.nodeRef = ref.getNodeRef();
this.categoryRef = (NodeRef)nodeService.getProperty(this.nodeRef, QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "locale"));Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.